Hi all. I'm trying to get my tinypilot to work. Since last time I used it, I have been trying some attempts to reinstall/build an updated version from GIT. This fails, however, and I have been rebuilding version (0.31, I believe) from the /pypilot folder on my toinypilot.
When trying to run various scripts, I get some sort of error message. Typically:
Any activation of the AP fails due to various overcurrent and rudder out of range messages... Any ideas where to start troubleshooting?
When trying to run various scripts, I get some sort of error message. Typically:
Code:
tc@pypilot:~$ pypilot_calibration
Traceback (most recent call last):
File "/usr/local/bin/pypilot_calibration", line 11, in <module>
load_entry_point('pypilot==0.32', 'console_scripts', 'pypilot_calibration')()
File "/usr/local/lib/python3.6/site-packages/pkg_resources/__init__.py", line 565, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/local/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2631, in load_entry_point
return ep.load()
File "/usr/local/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2291, in load
return self.resolve()
File "/usr/local/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2297, in resolve
module = __import__(self.module_name, fromlist=['__name__'], level=0)
File "/usr/local/lib/python3.6/site-packages/pypilot/ui/autopilot_calibration.py", line 11, in <module>
import wx, wx.glcanvas
ModuleNotFoundError: No module named 'wx'
Code:
tc@pypilot:~$ pypilot
autopilot start 1464.401773
ERROR loading wind.py cannot import name 'HeadingOffset' cannot import name 'HeadingOffset'
ERROR loading gps.py cannot import name 'HeadingOffset' cannot import name 'HeadingOffset'
imu process 4096
made imu process realtime
Using settings file RTIMULib.ini
Settings file RTIMULib.ini loaded
Failed to open SPI bus 0, select 0
Using fusion algorithm Kalman STATE4
ERROR: No IMU Detected 1465.569427
warning, failed to make calibration process idle, trying renice
nmea process 4103
listening on port 20220 for nmea connections
gps process 4107
loading servo calibration /home/tc/.pypilot/servocalibration
WARNING: using default servo calibration!!
Available Pilots: ['simple', 'basic', 'absolute']
warning: failed to open special file /dev/watchdog0 for writing
cannot stroke the watchdog
pypilotServer process 4108
autopilot init complete 1465.879017
servo probe ('/dev/ttyAMA0', 38400) 1465.91319
server/client is running too _slowly_ 0.07228399999985413
server setup has 5 pipes
imu rate set to rate 20
setting initial gyro bias [-1.915, -2.625, -0.228]
imu rate set to rate 20
server add socket ('127.0.0.1', 56272)
server add socket ('127.0.0.1', 56274)
server add socket ('127.0.0.1', 56276)
arduino servo found ['/dev/ttyAMA0', 38400]
serialprobe success: /home/tc/.pypilot/servodevice ['/dev/ttyAMA0', 38400]
sensor found rudder servo /dev/ttyAMA0
Any activation of the AP fails due to various overcurrent and rudder out of range messages... Any ideas where to start troubleshooting?
Code:
tc@pypilot:~$ pypilot_boatimu
imu process 4124
pypilotServer process 4126
made imu process realtime
Using settings file RTIMULib.ini
Settings file RTIMULib.ini loaded
Failed to open SPI bus 0, select 0
Using fusion algorithm Kalman STATE4
ERROR: No IMU Detected 3101.016343
server setup has 3 pipes
warning, failed to make calibration process idle, trying renice
imu rate set to rate 20
setting initial gyro bias [-1.915, -2.625, -0.228]
server add socket ('127.0.0.1', 53226)
server add socket ('127.0.0.1', 53228)
server, remove socket ('127.0.0.1', 53226)
server, remove socket ('127.0.0.1', 53228)
server add socket ('127.0.0.1', 53230)
server add socket ('127.0.0.1', 53232)
calibration loaded, starting 4123
server add socket ('127.0.0.1', 53234)
server, remove socket ('127.0.0.1', 53234)