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
/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