I just tested the new 2023_10_20_beta image with pypilot version 0.42 on a pizero, but was not able to 'level' the alignment. It does not reset to pitch/heel 0.0/0.0, but remains at something like 70/160. It does do the Accelerometer 'cube' calibration and the Compass 'circle on the sphere' calibration all right, but without proper alignment, it cannot be used.
The (pypilot store bought GY9250) IMU is beyond doubt, because when I test it with the 2021_11_16 image, it calibrates as advertised.
The plot thickens. When I click 'Level' on a PyPilot 0.42 on Openplotter, running pypilot at the prompt, I get this:
Now my suspicion is, that on that new image it also aborts pypilot for the same reason, but there it runs as a service and pypilot is restarted immediately again. I will check that now (have to reburn the SD card first). Btw, I do the calibration from a pypilot plugin 0.40.30.0 from an ubuntu 20.04 laptop.
The (pypilot store bought GY9250) IMU is beyond doubt, because when I test it with the 2021_11_16 image, it calibrates as advertised.
The plot thickens. When I click 'Level' on a PyPilot 0.42 on Openplotter, running pypilot at the prompt, I get this:
Code:
Traceback (most recent call last):
File "/usr/local/bin/pypilot", line 33, in <module>
sys.exit(load_entry_point('pypilot==0.42', 'console_scripts', 'pypilot')())
File "/usr/local/lib/python3.9/dist-packages/pypilot/autopilot.py", line 520, in main
ap.iteration()
File "/usr/local/lib/python3.9/dist-packages/pypilot/autopilot.py", line 371, in iteration
data = self.boatimu.read()
File "/usr/local/lib/python3.9/dist-packages/pypilot/boatimu.py", line 479, in read
self.alignmentPose = list(map(lambda x, y : x + y, self.alignmentPose, aligned))
UnboundLocalError: local variable 'aligned' referenced before assignment
Error in atexit._run_exitfuncs:
Traceback (most recent call last):
File "/usr/lib/python3.9/multiprocessing/popen_fork.py", line 27, in poll
pid, sts = os.waitpid(self.pid, flag)
File "/usr/local/lib/python3.9/dist-packages/pypilot/autopilot.py", line 176, in cleanup
pid = os.waitpid(-1, os.WNOHANG)
File "/usr/local/lib/python3.9/dist-packages/pypilot/autopilot.py", line 194, in cleanup
raise KeyboardInterrupt # to get backtrace on all processes
KeyboardInterrupt
closing autopilot
Now my suspicion is, that on that new image it also aborts pypilot for the same reason, but there it runs as a service and pypilot is restarted immediately again. I will check that now (have to reburn the SD card first). Btw, I do the calibration from a pypilot plugin 0.40.30.0 from an ubuntu 20.04 laptop.