2021-03-19, 10:00 PM
Ironman, the high level functional overview is super helpful for beginners so thanks a million for that and the workbook. I’ve followed your updated process. Enabled mdns but there’s no access request to approve. If I understand things correctly I shouldn’t need to manually add the connections in Pypilot if I’m using mdns but I tried it both ways and nothing. I then attempted to update Pypilot as shown in step 7 but “python setup.py build” returned a request to update python to version 3. I got it updated by blindly following a process I googled but now I get a file not found error shown in the screen grab. Below that is the terminal dump from before I tried updating Pypilot. I’m so far in the weeds
pi@openplotter:~ $ pypilot
loading servo calibration /home/pi/.pypilot/servocalibration
WARNING: using default servo calibration!!
Settings file RTIMULib.ini loaded
Using settings file RTIMULib.ini
Detected MPU9250/MPU9255 at standard address
Using fusion algorithm Kalman STATE4
IMU Name: MPU-925x
min/max compass calibration not in use
Using ellipsoid compass calibration
Using accel calibration
Loaded Pilots: ['learning', 'basic', 'absolute', 'simple', 'wind']
warning: failed to open special file /dev/watchdog0 for writing
cannot stroke the watchdog
connected to gpsd
autopilot failed to read imu at time: 1616175732.210111
I2C read error from 12, 16 - Failed to read compass fuse ROM
ERROR: IMU Init Failed, no inertial data available
autopilot failed to read imu at time: 1616175732.380395
autopilot failed to read imu at time: 1616175732.5212145
autopilot failed to read imu at time: 1616175732.661924
autopilot failed to read imu at time: 1616175732.8027282
autopilot failed to read imu at time: 1616175732.944327
autopilot failed to read imu at time: 1616175733.08571
autopilot failed to read imu at time: 1616175733.2271347
Using settings file RTIMULib.ini
Detected MPU9250/MPU9255 at standard address
Using fusion algorithm Kalman STATE4
IMU Name: MPU-925x
min/max compass calibration not in use
Using ellipsoid compass calibration
Using accel calibration
autopilot failed to read imu at time: 1616175733.3687413
autopilot failed to read imu at time: 1616175733.5101938
I2C read error from 12, 16 - Failed to read compass fuse ROM
ERROR: IMU Init Failed, no inertial data available
autopilot failed to read imu at time: 1616175733.6516252
autopilot failed to read imu at time: 1616175733.7929516
autopilot failed to read imu at time: 1616175733.9345188
pypilot_server: bind failed; already running a server?
nmea ready for connections
nmea_bridge: bind failed.
got signal 17 cleaning up
Traceback (most recent call last):
File "/usr/local/bin/pypilot", line 11, in <module>
got signal 15 cleaning up
got signal 15 cleaning up
Process gpsProcess-5:
load_entry_point('pypilot==0.16', 'console_scripts', 'pypilot')()
File "/usr/local/lib/python3.7/dist-packages/pypilot-0.16-py3.7-linux-armv7l.egg/pypilot/autopilot.py", line 395, in main
Process Process-3:
got signal 15 cleaning up
Process Process-1:
got signal 15 cleaning up
connect failed to localhost:21311
ap.run()
File "/usr/local/lib/python3.7/dist-packages/pypilot-0.16-py3.7-linux-armv7l.egg/pypilot/autopilot.py", line 214, in run
Process Process-2:
self.iteration()
File "/usr/local/lib/python3.7/dist-packages/pypilot-0.16-py3.7-linux-armv7l.egg/pypilot/autopilot.py", line 320, in iteration
time.sleep(self.boatimu.period/10)
File "/usr/local/lib/python3.7/dist-packages/pypilot-0.16-py3.7-linux-armv7l.egg/pypilot/autopilot.py", line 107, in cleanup
raise KeyboardInterrupt # to get backtrace on all processes
KeyboardInterrupt
got signal atexit cleaning up
Traceback (most recent call last):
File "/usr/lib/python3.7/multiprocessing/process.py", line 297, in _bootstrap
self.run()
File "/usr/lib/python3.7/multiprocessing/process.py", line 99, in run
self._target(*self._args, **self._kwargs)
File "/usr/local/lib/python3.7/dist-packages/pypilot-0.16-py3.7-linux-armv7l.egg/pypilot/boatimu.py", line 85, in imu_process
time.sleep(1)
File "/usr/local/lib/python3.7/dist-packages/pypilot-0.16-py3.7-linux-armv7l.egg/pypilot/autopilot.py", line 107, in cleanup
raise KeyboardInterrupt # to get backtrace on all processes
KeyboardInterrupt
Traceback (most recent call last):
File "/usr/local/lib/python3.7/dist-packages/pypilot-0.16-py3.7-linux-armv7l.egg/pypilot/server.py", line 209, in HandleRequests
self.server_socket.bind(('0.0.0.0', self.port))
OSError: [Errno 98] Address already in use
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.7/multiprocessing/process.py", line 297, in _bootstrap
self.run()
File "/usr/lib/python3.7/multiprocessing/process.py", line 99, in run
self._target(*self._args, **self._kwargs)
File "/usr/local/lib/python3.7/dist-packages/pypilot-0.16-py3.7-linux-armv7l.egg/pypilot/pipeserver.py", line 146, in pipe_server_process
server.HandleRequests()
File "/usr/local/lib/python3.7/dist-packages/pypilot-0.16-py3.7-linux-armv7l.egg/pypilot/server.py", line 212, in HandleRequests
time.sleep(1)
File "/usr/local/lib/python3.7/dist-packages/pypilot-0.16-py3.7-linux-armv7l.egg/pypilot/autopilot.py", line 107, in cleanup
raise KeyboardInterrupt # to get backtrace on all processes
KeyboardInterrupt
got signal 17 cleaning up
Error in atexit._run_exitfuncs:
Traceback (most recent call last):
Traceback (most recent call last):
File "/usr/lib/python3.7/multiprocessing/popen_fork.py", line 28, in poll
File "/usr/lib/python3.7/multiprocessing/process.py", line 297, in _bootstrap
self.run()
File "/usr/lib/python3.7/multiprocessing/process.py", line 99, in run
self._target(*self._args, **self._kwargs)
File "/usr/local/lib/python3.7/dist-packages/pypilot-0.16-py3.7-linux-armv7l.egg/pypilot/gpsd.py", line 66, in gps_process
self.read(pipe)
File "/usr/local/lib/python3.7/dist-packages/pypilot-0.16-py3.7-linux-armv7l.egg/pypilot/gpsd.py", line 39, in read
gpsdata = self.gpsd.next()
File "/usr/local/lib/python3.7/dist-packages/gps/gps.py", line 301, in next
return self.__next__()
File "/usr/local/lib/python3.7/dist-packages/gps/gps.py", line 292, in __next__
if self.read() == -1:
File "/usr/local/lib/python3.7/dist-packages/gps/gps.py", line 281, in read
status = gpscommon.read(self)
File "/usr/local/lib/python3.7/dist-packages/gps/client.py", line 115, in read
frag = self.sock.recv(8192)
pid, sts = os.waitpid(self.pid, flag)
File "/usr/local/lib/python3.7/dist-packages/pypilot-0.16-py3.7-linux-armv7l.egg/pypilot/autopilot.py", line 107, in cleanup
raise KeyboardInterrupt # to get backtrace on all processes
File "/usr/local/lib/python3.7/dist-packages/pypilot-0.16-py3.7-linux-armv7l.egg/pypilot/autopilot.py", line 107, in cleanup
KeyboardInterrupt
raise KeyboardInterrupt # to get backtrace on all processes
KeyboardInterrupt
Traceback (most recent call last):
File "/usr/lib/python3.7/multiprocessing/process.py", line 297, in _bootstrap
self.run()
File "/usr/lib/python3.7/multiprocessing/process.py", line 99, in run
self._target(*self._args, **self._kwargs)
File "/usr/local/lib/python3.7/dist-packages/pypilot-0.16-py3.7-linux-armv7l.egg/pypilot/calibration_fit.py", line 589, in CalibrationProcess
client = pypilotClient(on_con, 'localhost', autoreconnect=True)
File "/usr/local/lib/python3.7/dist-packages/pypilot-0.16-py3.7-linux-armv7l.egg/pypilot/client.py", line 98, in __init__
connection.connect((host, port))
File "/usr/local/lib/python3.7/dist-packages/pypilot-0.16-py3.7-linux-armv7l.egg/pypilot/autopilot.py", line 107, in cleanup
raise KeyboardInterrupt # to get backtrace on all processes
KeyboardInterrupt
closing autopilot
pi@openplotter:~ $ pypilot
loading servo calibration /home/pi/.pypilot/servocalibration
WARNING: using default servo calibration!!
Settings file RTIMULib.ini loaded
Using settings file RTIMULib.ini
Detected MPU9250/MPU9255 at standard address
Using fusion algorithm Kalman STATE4
IMU Name: MPU-925x
min/max compass calibration not in use
Using ellipsoid compass calibration
Using accel calibration
Loaded Pilots: ['learning', 'basic', 'absolute', 'simple', 'wind']
warning: failed to open special file /dev/watchdog0 for writing
cannot stroke the watchdog
connected to gpsd
autopilot failed to read imu at time: 1616175732.210111
I2C read error from 12, 16 - Failed to read compass fuse ROM
ERROR: IMU Init Failed, no inertial data available
autopilot failed to read imu at time: 1616175732.380395
autopilot failed to read imu at time: 1616175732.5212145
autopilot failed to read imu at time: 1616175732.661924
autopilot failed to read imu at time: 1616175732.8027282
autopilot failed to read imu at time: 1616175732.944327
autopilot failed to read imu at time: 1616175733.08571
autopilot failed to read imu at time: 1616175733.2271347
Using settings file RTIMULib.ini
Detected MPU9250/MPU9255 at standard address
Using fusion algorithm Kalman STATE4
IMU Name: MPU-925x
min/max compass calibration not in use
Using ellipsoid compass calibration
Using accel calibration
autopilot failed to read imu at time: 1616175733.3687413
autopilot failed to read imu at time: 1616175733.5101938
I2C read error from 12, 16 - Failed to read compass fuse ROM
ERROR: IMU Init Failed, no inertial data available
autopilot failed to read imu at time: 1616175733.6516252
autopilot failed to read imu at time: 1616175733.7929516
autopilot failed to read imu at time: 1616175733.9345188
pypilot_server: bind failed; already running a server?
nmea ready for connections
nmea_bridge: bind failed.
got signal 17 cleaning up
Traceback (most recent call last):
File "/usr/local/bin/pypilot", line 11, in <module>
got signal 15 cleaning up
got signal 15 cleaning up
Process gpsProcess-5:
load_entry_point('pypilot==0.16', 'console_scripts', 'pypilot')()
File "/usr/local/lib/python3.7/dist-packages/pypilot-0.16-py3.7-linux-armv7l.egg/pypilot/autopilot.py", line 395, in main
Process Process-3:
got signal 15 cleaning up
Process Process-1:
got signal 15 cleaning up
connect failed to localhost:21311
ap.run()
File "/usr/local/lib/python3.7/dist-packages/pypilot-0.16-py3.7-linux-armv7l.egg/pypilot/autopilot.py", line 214, in run
Process Process-2:
self.iteration()
File "/usr/local/lib/python3.7/dist-packages/pypilot-0.16-py3.7-linux-armv7l.egg/pypilot/autopilot.py", line 320, in iteration
time.sleep(self.boatimu.period/10)
File "/usr/local/lib/python3.7/dist-packages/pypilot-0.16-py3.7-linux-armv7l.egg/pypilot/autopilot.py", line 107, in cleanup
raise KeyboardInterrupt # to get backtrace on all processes
KeyboardInterrupt
got signal atexit cleaning up
Traceback (most recent call last):
File "/usr/lib/python3.7/multiprocessing/process.py", line 297, in _bootstrap
self.run()
File "/usr/lib/python3.7/multiprocessing/process.py", line 99, in run
self._target(*self._args, **self._kwargs)
File "/usr/local/lib/python3.7/dist-packages/pypilot-0.16-py3.7-linux-armv7l.egg/pypilot/boatimu.py", line 85, in imu_process
time.sleep(1)
File "/usr/local/lib/python3.7/dist-packages/pypilot-0.16-py3.7-linux-armv7l.egg/pypilot/autopilot.py", line 107, in cleanup
raise KeyboardInterrupt # to get backtrace on all processes
KeyboardInterrupt
Traceback (most recent call last):
File "/usr/local/lib/python3.7/dist-packages/pypilot-0.16-py3.7-linux-armv7l.egg/pypilot/server.py", line 209, in HandleRequests
self.server_socket.bind(('0.0.0.0', self.port))
OSError: [Errno 98] Address already in use
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.7/multiprocessing/process.py", line 297, in _bootstrap
self.run()
File "/usr/lib/python3.7/multiprocessing/process.py", line 99, in run
self._target(*self._args, **self._kwargs)
File "/usr/local/lib/python3.7/dist-packages/pypilot-0.16-py3.7-linux-armv7l.egg/pypilot/pipeserver.py", line 146, in pipe_server_process
server.HandleRequests()
File "/usr/local/lib/python3.7/dist-packages/pypilot-0.16-py3.7-linux-armv7l.egg/pypilot/server.py", line 212, in HandleRequests
time.sleep(1)
File "/usr/local/lib/python3.7/dist-packages/pypilot-0.16-py3.7-linux-armv7l.egg/pypilot/autopilot.py", line 107, in cleanup
raise KeyboardInterrupt # to get backtrace on all processes
KeyboardInterrupt
got signal 17 cleaning up
Error in atexit._run_exitfuncs:
Traceback (most recent call last):
Traceback (most recent call last):
File "/usr/lib/python3.7/multiprocessing/popen_fork.py", line 28, in poll
File "/usr/lib/python3.7/multiprocessing/process.py", line 297, in _bootstrap
self.run()
File "/usr/lib/python3.7/multiprocessing/process.py", line 99, in run
self._target(*self._args, **self._kwargs)
File "/usr/local/lib/python3.7/dist-packages/pypilot-0.16-py3.7-linux-armv7l.egg/pypilot/gpsd.py", line 66, in gps_process
self.read(pipe)
File "/usr/local/lib/python3.7/dist-packages/pypilot-0.16-py3.7-linux-armv7l.egg/pypilot/gpsd.py", line 39, in read
gpsdata = self.gpsd.next()
File "/usr/local/lib/python3.7/dist-packages/gps/gps.py", line 301, in next
return self.__next__()
File "/usr/local/lib/python3.7/dist-packages/gps/gps.py", line 292, in __next__
if self.read() == -1:
File "/usr/local/lib/python3.7/dist-packages/gps/gps.py", line 281, in read
status = gpscommon.read(self)
File "/usr/local/lib/python3.7/dist-packages/gps/client.py", line 115, in read
frag = self.sock.recv(8192)
pid, sts = os.waitpid(self.pid, flag)
File "/usr/local/lib/python3.7/dist-packages/pypilot-0.16-py3.7-linux-armv7l.egg/pypilot/autopilot.py", line 107, in cleanup
raise KeyboardInterrupt # to get backtrace on all processes
File "/usr/local/lib/python3.7/dist-packages/pypilot-0.16-py3.7-linux-armv7l.egg/pypilot/autopilot.py", line 107, in cleanup
KeyboardInterrupt
raise KeyboardInterrupt # to get backtrace on all processes
KeyboardInterrupt
Traceback (most recent call last):
File "/usr/lib/python3.7/multiprocessing/process.py", line 297, in _bootstrap
self.run()
File "/usr/lib/python3.7/multiprocessing/process.py", line 99, in run
self._target(*self._args, **self._kwargs)
File "/usr/local/lib/python3.7/dist-packages/pypilot-0.16-py3.7-linux-armv7l.egg/pypilot/calibration_fit.py", line 589, in CalibrationProcess
client = pypilotClient(on_con, 'localhost', autoreconnect=True)
File "/usr/local/lib/python3.7/dist-packages/pypilot-0.16-py3.7-linux-armv7l.egg/pypilot/client.py", line 98, in __init__
connection.connect((host, port))
File "/usr/local/lib/python3.7/dist-packages/pypilot-0.16-py3.7-linux-armv7l.egg/pypilot/autopilot.py", line 107, in cleanup
raise KeyboardInterrupt # to get backtrace on all processes
KeyboardInterrupt
closing autopilot