2020-03-24, 03:31 PM
(This post was last modified: 2020-03-24, 03:34 PM by jamos.tan@gmail.com.)
(2020-03-24, 12:46 AM)seandepagnier Wrote: are any other processes trying to use the serial port?
What does "journalctl -u pypilot" output?
Code:
pi@openplotter:~ $ journalctl -u pypilot
-- No entries --
Code:
pi@openplotter:~ $ ps aux | grep pypilot
pi 1121 0.1 2.8 40944 26736 ? Sl 11:11 0:13 /usr/bin/python /usr/local/bin/pypilot_webapp 8081
pi 1142 2.6 2.4 35144 22792 ? S 11:11 5:01 /usr/bin/python /usr/local/bin/pypilot
pi 1202 0.9 1.8 35044 17404 ? S 11:12 1:46 /usr/bin/python /usr/local/bin/pypilot
pi 1207 0.3 1.7 35044 16780 ? S 11:12 0:37 /usr/bin/python /usr/local/bin/pypilot
pi 1210 1.3 1.8 35044 17524 ? D 11:12 2:35 /usr/bin/python /usr/local/bin/pypilot
pi 1217 0.4 1.7 35044 17028 ? S 11:12 0:52 /usr/bin/python /usr/local/bin/pypilot
pi 1218 0.4 1.8 35172 17852 ? S 11:12 0:48 /usr/bin/python /usr/local/bin/pypilot
pi 14336 0.0 0.0 4368 536 pts/0 S+ 14:24 0:00 grep --color=auto pypilot
Code:
pi@openplotter:~ $ python /usr/local/bin/pypilot
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 not found. Using defaults and creating settings file
Using settings file RTIMULib.ini
Detected LSM9DS1 at standard/standard address
Using fusion algorithm Kalman STATE4
IMU Name: LSM9DS1
min/max compass calibration not in use
Using ellipsoid compass calibration
Accel calibration not in use
LSM9DS1 init complete
autopilot failed to read imu at time: 1585060023.64
busy, try again later {u'path': u'/dev/ttyOP_uno', u'bauds': [38400]} servo
busy, try again later {'path': '/dev/ttyOP_uno', 'bauds': [38400, 4800]} nmea0
nmea source for gps source gpsd 1585060023.71
busy, try again later {'path': '/dev/ttyOP_uno', 'bauds': [38400]} servo
signalk_server: bind failed, try again.
nmea client connected
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
load_entry_point('pypilot==0.1', 'console_scripts', 'pypilot')()
File "/usr/local/lib/python2.7/dist-packages/pypilot-0.1-py2.7-linux-armv7l.egg/pypilot/basic_autopilot.py", line 108, in main
Process Process-1:
Process Process-3:
got signal 15 cleaning up
Traceback (most recent call last):
Traceback (most recent call last):
File "/usr/lib/python2.7/multiprocessing/process.py", line 258, in _bootstrap
File "/usr/lib/python2.7/multiprocessing/process.py", line 258, in _bootstrap
ap.run()
File "/usr/local/lib/python2.7/dist-packages/pypilot-0.1-py2.7-linux-armv7l.egg/pypilot/autopilot.py", line 180, in run
Process GpsProcess-4:
Traceback (most recent call last):
File "/usr/lib/python2.7/multiprocessing/process.py", line 258, in _bootstrap
got signal 15 cleaning up
self.run()
self.run()
self.run()
File "/usr/lib/python2.7/multiprocessing/process.py", line 114, in run
File "/usr/lib/python2.7/multiprocessing/process.py", line 114, in run
File "/usr/lib/python2.7/multiprocessing/process.py", line 114, in run
self._target(*self._args, **self._kwargs)
self._target(*self._args, **self._kwargs)
self._target(*self._args, **self._kwargs)
File "/usr/local/lib/python2.7/dist-packages/pypilot-0.1-py2.7-linux-armv7l.egg/pypilot/gpsdpoller.py", line 62, in gps_process
File "/usr/local/lib/python2.7/dist-packages/pypilot-0.1-py2.7-linux-armv7l.egg/pypilot/boatimu.py", line 113, in imu_process
File "/usr/local/lib/python2.7/dist-packages/pypilot-0.1-py2.7-linux-armv7l.egg/signalk/pipeserver.py", line 157, in pipe_server_process
self.iteration()
File "/usr/local/lib/python2.7/dist-packages/pypilot-0.1-py2.7-linux-armv7l.egg/pypilot/autopilot.py", line 346, in iteration
time.sleep(dt)
File "/usr/local/lib/python2.7/dist-packages/pypilot-0.1-py2.7-linux-armv7l.egg/pypilot/autopilot.py", line 93, in cleanup
Process Process-2:
Traceback (most recent call last):
raise KeyboardInterrupt # to get backtrace on all processes
KeyboardInterrupt
File "/usr/lib/python2.7/multiprocessing/process.py", line 258, in _bootstrap
got signal atexit cleaning up
self.run()
File "/usr/lib/python2.7/multiprocessing/process.py", line 114, in run
self.read(pipe)
File "/usr/local/lib/python2.7/dist-packages/pypilot-0.1-py2.7-linux-armv7l.egg/pypilot/gpsdpoller.py", line 36, in read
gpsdata = self.gpsd.next()
File "/usr/lib/python2.7/dist-packages/gps/gps.py", line 326, in next
self._target(*self._args, **self._kwargs)
File "/usr/local/lib/python2.7/dist-packages/pypilot-0.1-py2.7-linux-armv7l.egg/pypilot/calibration_fit.py", line 438, in CalibrationProcess
server.HandleRequests()
File "/usr/local/lib/python2.7/dist-packages/pypilot-0.1-py2.7-linux-armv7l.egg/signalk/server.py", line 317, in HandleRequests
if self.read() == -1:
File "/usr/lib/python2.7/dist-packages/gps/gps.py", line 312, in read
status = gpscommon.read(self)
File "/usr/lib/python2.7/dist-packages/gps/client.py", line 84, in read
time.sleep(1)
File "/usr/local/lib/python2.7/dist-packages/pypilot-0.1-py2.7-linux-armv7l.egg/pypilot/autopilot.py", line 93, in cleanup
time.sleep(t)
File "/usr/local/lib/python2.7/dist-packages/pypilot-0.1-py2.7-linux-armv7l.egg/pypilot/autopilot.py", line 93, in cleanup
raise KeyboardInterrupt # to get backtrace on all processes
raise KeyboardInterrupt # to get backtrace on all processes
KeyboardInterrupt
KeyboardInterrupt
frag = self.sock.recv(4096)
File "/usr/local/lib/python2.7/dist-packages/pypilot-0.1-py2.7-linux-armv7l.egg/pypilot/autopilot.py", line 93, 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):
File "/usr/lib/python2.7/atexit.py", line 24, in _run_exitfuncs
got signal 17 cleaning up
Error in sys.exitfunc:
Traceback (most recent call last):
File "/usr/lib/python2.7/atexit.py", line 30, in _run_exitfuncs
traceback.print_exc()
File "/usr/lib/python2.7/traceback.py", line 233, in print_exc
p = points.recv(1)
File "/usr/local/lib/python2.7/dist-packages/pypilot-0.1-py2.7-linux-armv7l.egg/signalk/pipeserver.py", line 35, in recv
if self.pollin.poll(1000.0*timeout):
File "/usr/local/lib/python2.7/dist-packages/pypilot-0.1-py2.7-linux-armv7l.egg/pypilot/autopilot.py", line 93, in cleanup
print_exception(etype, value, tb, limit, file)
got signal 17 cleaning up
raise KeyboardInterrupt # to get backtrace on all processes
KeyboardInterrupt