2024-03-29, 03:41 PM (This post was last modified: 2024-03-29, 04:15 PM by barnaclebill22.)
I disabled the other helper gpsd services but same result.
pypilot now says "gpsd failed to connect" but still exits on KeyError: 'speed'
@ironman's fix worked for me: I changed the GPS connection in SK from serial to gpsd, so now (I think?) SK and pypilot are both reading from gpsd and pypilot is reporting heading to SK.
2024-03-30, 10:15 AM (This post was last modified: 2024-03-30, 10:30 AM by PaddyB.)
(2024-03-29, 03:41 PM)barnaclebill22 Wrote:
@ironman's fix worked for me: I changed the GPS connection in SK from serial to gpsd, so now (I think?) SK and pypilot are both reading from gpsd and pypilot is reporting heading to SK.
Thanks for the assistance!
Does the nav data from the gps show up as signalk data? When I tried it the nmea data was getting passed through but not being converted to signalk. Maybe need another try.
Edit. Something weird going on, with GPS & GPSD connection in signalk, run pypilot with gpsd enabled, signalk loses GPS connection, no traffic showing in GPSD connection but opencpn gets position data over signalk somehow..
Think I'll leave GPSD off, don't need it.
2024-03-30, 01:41 PM (This post was last modified: 2024-03-30, 01:41 PM by ironman.)
(2024-03-28, 08:59 PM)PaddyB Wrote: On a plus I had pypilot running for real today, nice sail along the bottom of Gran Canaria to hide from some easterly winds in another anchorage - worked great! For so many years I've just had an aries windvane so this is a whole new world!!
Thanks for sharing this great moment and congratulations!
(2024-03-29, 03:41 PM)barnaclebill22 Wrote: Edit. Something weird going on, with GPS & GPSD connection in signalk, run pypilot with gpsd enabled, signalk loses GPS connection, no traffic showing in GPSD connection but opencpn gets position data over signalk somehow..
Think I'll leave GPSD off, don't need it.
Are you sure opencpn is getting position from signalk but there is no position data in signalk stream?? This makes no sense.
How did you get gpsd connection into signalk exactly? (I am trying to figure this out)
(2024-03-29, 03:41 PM)barnaclebill22 Wrote:
@ironman's fix worked for me: I changed the GPS connection in SK from serial to gpsd, so now (I think?) SK and pypilot are both reading from gpsd and pypilot is reporting heading to SK.
Thanks for the assistance!
Does the nav data from the gps show up as signalk data? When I tried it the nmea data was getting passed through but not being converted to signalk. Maybe need another try.
Edit. Something weird going on, with GPS & GPSD connection in signalk, run pypilot with gpsd enabled, signalk loses GPS connection, no traffic showing in GPSD connection but opencpn gets position data over signalk somehow..
Think I'll leave GPSD off, don't need it.
2024-04-01, 09:00 AM (This post was last modified: 2024-04-01, 09:01 AM by PaddyB.)
(2024-03-31, 03:43 PM)seandepagnier Wrote:
(2024-03-30, 10:15 AM)PaddyB Wrote:
(2024-03-29, 03:41 PM)barnaclebill22 Wrote: Edit. Something weird going on, with GPS & GPSD connection in signalk, run pypilot with gpsd enabled, signalk loses GPS connection, no traffic showing in GPSD connection but opencpn gets position data over signalk somehow..
Think I'll leave GPSD off, don't need it.
Are you sure opencpn is getting position from signalk but there is no position data in signalk stream?? This makes no sense.
How did you get gpsd connection into signalk exactly? (I am trying to figure this out)
Made no sense to me either. I renabled the 3 gpsd entries in systemd, set up a gpsd connection in signalk , started pypilot then the gps connection in signalk stopped- opencpn still had green bars receiving data but if i disabled signalk input in oencpn the green bars went red. But no position data coming into signalk in the data browser! Think it must something weird in my setup but it's all working fine so will leave it alone with gpsd disabled.
Good thing is pypilot can steer the boat lots better than I can beating dead into the wind
Is there an elegant way to turn it on/off without having a terminal running? I've changed RTIMULib.ini so systemd doesn't work.
Cheers
2024-04-01, 10:38 AM (This post was last modified: 2024-04-01, 10:46 AM by ironman.)
If Forward NMEA is checked in the OpenCPN pypilot plugin, this is how OpenCPN could get its data: straight through pypilot. 'Forward NMEA' works in two directions... It might also come in through the 20220 port. What OpenCPN data connections do you have? Can you share the output of the NMEA debug window?
2024-04-01, 11:02 AM (This post was last modified: 2024-04-01, 11:02 AM by PaddyB.)
(2024-04-01, 10:38 AM)ironman Wrote: If Forward NMEA is checked in the OpenCPN pypilot plugin, this is how OpenCPN could get its data: straight through pypilot. 'Forward NMEA' works in two directions... It might also come in through the 20220 port. What OpenCPN data connections do you have? Can you share the output of the NMEA debug window?
20220 port & forward nmea were both off. No position nmea sentences coming in. Lost interest now, gpsd is history
I'm not quite sure if I have exactly the same issue with my GPS signal but lots of similarities anyway.
If I select "Enable IMU only" then the GPS signal is read correctly into SignalK:
However immediately when I select "Enable Autopilot" the GPS signal is lost in SignalK with an error "Device or resource busy, cannot open /dev/ttyOP_gps":
Any ideas what I'm doing wrong or what should be checked?
2024-04-03, 10:10 PM (This post was last modified: 2024-04-03, 10:12 PM by ironman.)
It makes perfect sense to me; pypilot wakes the gpsd who then hijacks the gps. Solution: change signalk connection to gpsd, port 2947, as described here.