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 disconnected at startup - Steps toward troubleshooting?
#11
Ok Sean, I ran update to make sure everything is the most current version.  Staying with 1.2 for now because it (mostly) works and 2.2 is still a bit new.

After update, same story.  No pypilot is running when openplotter starts, but it starts and runs stable from the console.  Changing port assignment to "none" then clicking Auto-Apply also starts pypilot.

Code:
pi@blue:~ $ killall python
pi@blue:~ $ openplotter
[[[[[
[[[[[ Clicking Autopilot Control on the pypilot tab
[[[[[
connect failed to localhost:21311
connect failed to localhost:21311
Traceback (most recent call last):
 File "/usr/local/lib/python2.7/dist-packages/pypilot-0.1-py2.7-linux-armv7l.egg/ui/autopilot_control.py", line 231, in onAP
   self.client.set('servo.raw_command', 0)
AttributeError: 'bool' object has no attribute 'set'
connect failed to localhost:21311
[[[[[
[[[[[ Changing port assignment for /dev/ttyAMA0 to none, then click Auto and Apply
[[[[[ Autopilot now works normally
[[[[[
Warning: Stopping signalk.service, but it can still be activated by:
 signalk.socket
probing arduino servo on /dev/ttyAMA0
arduino servo found
Settings file RTIMULib.ini loaded
Using fusion algorithm RTQF
read_sensors_d waiting for signal to exit
launched pypilot pid 2602
failed to load /home/pi/.pypilot/pypilot.conf Expected object or value
WARNING Alignment and other data lost!!!!!!!!!
failed to load /home/pi/.pypilot/pypilot.conf Expected object or value
WARNING Alignment and other data lost!!!!!!!!!
loading servo calibration /home/pi/.pypilot/servocalibration
WARNING: using default servo calibration!!
failed to open special file /dev/watchdog0 for writing:
autopilot cannot strobe the watchdog
connected to gpsd
Settings file RTIMULib.ini loaded
Using settings file RTIMULib.ini
Using fusion algorithm Kalman STATE4
IMU Name: MPU-925x
min/max compass calibration not in use
Using ellipsoid compass calibration
Accel calibration not in use
autopilot failed to read imu at time: 1585096370.33
servo probe... (u'/dev/ttyOP_ap', 38400)
arduino servo found on (u'/dev/ttyOP_ap', 38400)
serialprobe success: /home/pi/.pypilot/servodevice {u'path': u'/dev/ttyOP_ap', u'bauds': [38400]}
servo is running too _slowly_ 0.0551450252533
autopilot failed to read imu at time: 1585096370.52
arduino server buffer overflow
MPU-925x init complete
autopilot failed to read imu at time: 1585096370.67
nmea source for gps source gpsd 1585096370.88
connect failed to localhost:21311
nmea client connected
listening on port 20220 for nmea connections
connected
IMURead failed!
nmea timeout for gps source gpsd 1585096387.04
nmea source for gps source gpsd 1585096387.54
FitPoints [] [-0.10289744062253131, 0.9786159943966504, -0.17810910202566343]
Reply


Messages In This Thread
RE: pypilot disconnected at startup - Steps toward troubleshooting? - by AlanH - 2020-03-25, 05:05 AM

Forum Jump:


Users browsing this thread: 2 Guest(s)