This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Request for new image
#8
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:

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.
Reply


Messages In This Thread
Request for new image - by Vic - 2023-10-17, 08:14 PM
RE: Request for new image - by seandepagnier - 2023-10-22, 05:43 PM
RE: Request for new image - by Vic - 2023-10-23, 10:28 AM
RE: Request for new image - by Vic - 2023-11-01, 11:05 PM
RE: Request for new image - by Vic - 2023-11-02, 11:36 AM
RE: Request for new image - by seandepagnier - 2023-11-02, 05:55 PM
RE: Request for new image - by Vic - 2023-11-02, 10:29 PM
RE: Request for new image - by ironman - 2023-11-16, 09:56 PM
RE: Request for new image - by ironman - 2023-11-16, 10:58 PM
RE: Request for new image - by ironman - 2023-11-17, 12:12 AM
RE: Request for new image - by seandepagnier - 2023-11-17, 05:25 AM
RE: Request for new image - by mgrouch - 2023-11-17, 06:24 PM
RE: Request for new image - by Vic - 2023-12-12, 09:09 AM
RE: Request for new image - by seandepagnier - 2023-12-13, 12:47 AM
RE: Request for new image - by Vic - 2023-12-13, 09:03 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)