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
Pypilot calibration fails
#1
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:


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


Messages In This Thread
Pypilot calibration fails - by kniven - 2022-02-25, 08:55 AM
RE: Pypilot calibration fails - by kniven - 2022-02-25, 11:48 AM
RE: Pypilot calibration fails - by seandepagnier - 2022-02-25, 08:12 PM
RE: Pypilot calibration fails - by vincenthure - 2023-11-18, 07:59 PM
RE: Pypilot calibration fails - by kniven - 2022-02-26, 08:50 AM
RE: Pypilot calibration fails - by seandepagnier - 2022-02-26, 06:15 PM
RE: Pypilot calibration fails - by kniven - 2022-02-28, 11:05 AM
RE: Pypilot calibration fails - by kniven - 2022-03-08, 02:16 PM
RE: Pypilot calibration fails - by seandepagnier - 2023-11-19, 02:58 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)