2020-03-24, 04:30 AM
ps aux | grep pypilot shows two processes running
- pypilot_webapp 8080
- pypilot_control
systemctl status pypilot shows
Unit pypilot.service could not be found.
cat serial_ports shows
/dev/ttyOP_ap
(I notice on the openplotter serial page it appears as /dev/ttyOP_AMA. Is this a problem?)
I couldn't find any entries in syslog. Do you log errors somewhere else?
Running from the console shows
- pypilot_webapp 8080
- pypilot_control
systemctl status pypilot shows
Unit pypilot.service could not be found.
cat serial_ports shows
/dev/ttyOP_ap
(I notice on the openplotter serial page it appears as /dev/ttyOP_AMA. Is this a problem?)
I couldn't find any entries in syslog. Do you log errors somewhere else?
Running from the console shows
Code:
pi@blue:~ $ 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 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
Accel calibration not in use
autopilot failed to read imu at time: 1585012430.11
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.0625510215759
autopilot failed to read imu at time: 1585012430.31
MPU-925x init complete
nmea client connected
listening on port 20220 for nmea connections
Process NmeaBridgeProcess-5:
Traceback (most recent call last):
File "/usr/lib/python2.7/multiprocessing/process.py", line 258, in _bootstrap
self.run()
File "/usr/lib/python2.7/multiprocessing/process.py", line 114, in run
self._target(*self._args, **self._kwargs)
File "/usr/local/lib/python2.7/dist-packages/pypilot-0.1-py2.7-linux-armv7l.egg/pypilot/nmea.py", line 615, in process
self.receive_nmea(line, msgs)
File "/usr/local/lib/python2.7/dist-packages/pypilot-0.1-py2.7-linux-armv7l.egg/pypilot/nmea.py", line 434, in receive_nmea
result = parser(line)
File "/usr/local/lib/python2.7/dist-packages/pypilot-0.1-py2.7-linux-armv7l.egg/pypilot/nmea.py", line 63, in parse_nmea_gps
speed = float(data[6])
ValueError: could not convert string to float:
got signal 17 cleaning up
Traceback (most recent call last):
got signal 15 cleaning up
File "/usr/local/bin/pypilot", line 11, in <module>
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
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
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
Process Process-3:
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
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
got signal 15 cleaning up
self.run()
got signal 15 cleaning up
File "/usr/lib/python2.7/multiprocessing/process.py", line 114, in run
self._target(*self._args, **self._kwargs)
File "/usr/local/lib/python2.7/dist-packages/pypilot-0.1-py2.7-linux-armv7l.egg/pypilot/boatimu.py", line 113, in imu_process
Process GpsProcess-4:
Traceback (most recent call last):
File "/usr/lib/python2.7/multiprocessing/process.py", line 258, in _bootstrap
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
self.run()
File "/usr/lib/python2.7/multiprocessing/process.py", line 114, in run
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
self.read(pipe)
raise KeyboardInterrupt # to get backtrace on all processes
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()
KeyboardInterrupt
File "/usr/lib/python2.7/dist-packages/gps/gps.py", line 326, in next
Process Process-2:
Traceback (most recent call last):
if self.read() == -1:
File "/usr/lib/python2.7/dist-packages/gps/gps.py", line 312, in read
File "/usr/lib/python2.7/multiprocessing/process.py", line 258, in _bootstrap
status = gpscommon.read(self)
File "/usr/lib/python2.7/dist-packages/gps/client.py", line 84, in read
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
self.run()
raise KeyboardInterrupt # to get backtrace on all processes
KeyboardInterrupt
File "/usr/lib/python2.7/multiprocessing/process.py", line 114, in run
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
got signal 17 cleaning up
got signal 15 cleaning up
Error in atexit._run_exitfuncs:
Traceback (most recent call last):
File "/usr/lib/python2.7/atexit.py", line 24, in _run_exitfuncs
Process Process-1:
Traceback (most recent call last):
File "/usr/lib/python2.7/multiprocessing/process.py", line 258, in _bootstrap
func(*targs, **kargs)
File "/usr/lib/python2.7/multiprocessing/util.py", line 325, in _exit_function
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
p.join()
self.run()
File "/usr/lib/python2.7/multiprocessing/process.py", line 145, in join
File "/usr/lib/python2.7/multiprocessing/process.py", line 114, in run
self._target(*self._args, **self._kwargs)
File "/usr/local/lib/python2.7/dist-packages/pypilot-0.1-py2.7-linux-armv7l.egg/signalk/pipeserver.py", line 158, in pipe_server_process
res = self._popen.wait(timeout)
File "/usr/lib/python2.7/multiprocessing/forking.py", line 154, in wait
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
return self.poll(0)
File "/usr/lib/python2.7/multiprocessing/forking.py", line 135, in poll
raise KeyboardInterrupt # to get backtrace on all processes
pid, sts = os.waitpid(self.pid, flag)
File "/usr/local/lib/python2.7/dist-packages/pypilot-0.1-py2.7-linux-armv7l.egg/pypilot/autopilot.py", line 93, in cleanup
KeyboardInterrupt
raise KeyboardInterrupt # to get backtrace on all processes
KeyboardInterrupt
Error in sys.exitfunc:
Traceback (most recent call last):
File "/usr/lib/python2.7/atexit.py", line 24, in _run_exitfuncs
func(*targs, **kargs)
File "/usr/lib/python2.7/multiprocessing/util.py", line 325, in _exit_function
p.join()
File "/usr/lib/python2.7/multiprocessing/process.py", line 145, in join
res = self._popen.wait(timeout)
File "/usr/lib/python2.7/multiprocessing/forking.py", line 154, in wait
return self.poll(0)
File "/usr/lib/python2.7/multiprocessing/forking.py", line 135, in poll
pid, sts = os.waitpid(self.pid, flag)
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
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
raise KeyboardInterrupt # to get backtrace on all processes
KeyboardInterrupt
pi@blue:~ $