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 steals serial GPS from signalk
#33
Not sure if this is directly related, but pypilot is exiting after a while on my RPI. After it exits, I check gpsd status with cgps, and it appears that the gps is still running and gpsd does not have any errors.

Is there a way to force pypilot to retry if it gets this error?
sensor lost gps gpsd /dev/ttyACM0 Tue Apr 16 07:07:50 2024

gpsd connected
GPSD devices ['/dev/ttyACM0']
sensor found gps gpsd /dev/ttyACM0 Tue Apr 16 07:07:09 2024
calibration loaded, starting 84952
server/client is running too _slowly_ 0.11605840499396436
signalk process 84960
signalkread token eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJkZXZpY2UiOiI3ZjhiYjM3YS0yMjVkLTQxMGItYmJjMC01M2ZkNDgxZTlmNGIiLCJpYXQiOjE3MTExMjczMTB9.ueM0YTOkOKZnNGAwR4LFp8Ft_zVQoNAxuvdgz65lX28
signalk server found 127.0.0.1:3000
signalk found ws://127.0.0.1:3000/signalk/v1/stream?subscribe=none
signalk connected to ws://127.0.0.1:3000/signalk/v1/stream?subscribe=none
sensor lost gps gpsd /dev/ttyACM0 Tue Apr 16 07:07:50 2024
Traceback (most recent call last):
File "/usr/local/bin/pypilot", line 33, in <module>
sys.exit(load_entry_point('pypilot==0.51', 'console_scripts', 'pypilot')())
File "/usr/local/lib/python3.9/dist-packages/pypilot/autopilot.py", line 519, in main
ap.iteration()
File "/usr/local/lib/python3.9/dist-packages/pypilot/autopilot.py", line 360, in iteration
self.sensors.poll()
File "/usr/local/lib/python3.9/dist-packages/pypilot/sensors.py", line 391, in poll
self.signalk.poll()
File "/usr/local/lib/python3.9/dist-packages/pypilot/signalk.py", line 327, in poll
self.sensors.write(sensor, data, 'signalk')
File "/usr/local/lib/python3.9/dist-packages/pypilot/sensors.py", line 418, in write
self.sensors[sensor].write(data, source)
File "/usr/local/lib/python3.9/dist-packages/pypilot/sensors.py", line 45, in write
if not self.update(data):
File "/usr/local/lib/python3.9/dist-packages/pypilot/sensors.py", line 219, in update
self.speed.set(data['speed'])
KeyError: 'speed'
Error in atexit._run_exitfuncs:
Traceback (most recent call last):
File "/usr/lib/python3.9/multiprocessing/popen_fork.py", line 27, in poll
pid, sts = os.waitpid(self.pid, flag)
File "/usr/local/lib/python3.9/dist-packages/pypilot/autopilot.py", line 193, in cleanup
raise KeyboardInterrupt # to get backtrace on all processes
KeyboardInterrupt
Reply


Messages In This Thread
RE: Pypilot steals serial GPS from signalk - by barnaclebill22 - 2024-04-16, 07:44 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)