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:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
MPU9250 heading is slowly drifting
#83
interesting I ran:

/usr/local/bin/pypilot_calibration |& tee /tmp/out

Oooo! Lots of unhappy stack traces. Initially about the interface window

(pypilot_calibration:9461): Gtk-WARNING **: 19:47:37.072: Negative content height -9 (allocation 1, extents 5x5) while allocating gadget (node button, owner GtkButton)

Followed by this repeating every second and then when ever switching to another tab:

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
 File "/usr/local/lib/python3.7/dist-packages/pypilot-0.12-py3.7-linux-armv7l.egg/ui/autopilot_calibration.py", line 145, in receive_messages
   msg = self.client.receive_single()
 File "/usr/local/lib/python3.7/dist-packages/pypilot-0.12-py3.7-linux-armv7l.egg/signalk/client.py", line 187, in receive_single
   line = self.receive_line(timeout)
 File "/usr/local/lib/python3.7/dist-packages/pypilot-0.12-py3.7-linux-armv7l.egg/signalk/client.py", line 139, in receive_line
   raise Exception('invalid message from server:', line)
Exception: ('invalid message from server:', 'invalid request: watch unknown value: servo.flags')
Traceback (most recent call last):
 File "/usr/local/lib/python3.7/dist-packages/pypilot-0.12-py3.7-linux-armv7l.egg/signalk/client.py", line 137, in receive_line
   msg = kjson.loads(line.rstrip())
ValueError: Expected object or value

Rotating the IMU to each a face of the cube does not seem to cause any stack traces.
I have evaluated OP 1.x  with a different IMU and I wonder if there is additional setup that for OP2.x? 
Maybe I need some signal K integration?

---edit--- 

I also edited calibration_fit.py  to uncomment the debug function and then ran boatimu.py on the CLI and ran: 
pi@openplotter:/usr/local/lib/python3.7/dist-packages/pypilot-0.12-py3.7-linux-armv7l.egg/pypilot $ python ./boatimu.py  

Traceback (most recent call last):

  File "/usr/local/lib/python3.7/dist-packages/pypilot-0.12-py3.7-linux-armv7l.egg/pypilot/boatimu.py", line 20, in <module>

    import autopilot, calibration_fit, vector, quaternion

  File "/usr/local/lib/python3.7/dist-packages/pypilot-0.12-py3.7-linux-armv7l.egg/pypilot/autopilot.py", line 21, in <module>

    from signalk.server import *
ImportError: No module named signalk.server

Is there a venv that this need to run in?  I started the "Signal K Installer" and ran the "Reinstall Signal K" procedure, but the results are the same 
Reply


Messages In This Thread
RE: MPU9250 heading is slowly drifting - by wdee - 2020-01-17, 04:08 PM
RE: MPU9250 heading is slowly drifting - by Lazzz - 2020-01-21, 09:16 PM
RE: MPU9250 heading is slowly drifting - by Lazzz - 2020-01-22, 05:39 AM
RE: MPU9250 heading is slowly drifting - by diyc235 - 2020-01-26, 03:05 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)