2020-01-04, 08:13 PM
(2020-01-04, 01:22 AM)seandepagnier Wrote: I can say I found a bug as you described in the first post sailing today. The problem was in the autopilot route plugin for opencpn, not pypilot.
pypilot works in both gps and compass mode. In gps mode if a route is not activated, it just follows the course, but using true north rather than the (possibly misaligned) compass course of magnetic heading.
If pypilot receives nmea APB while engaged, it will automatically switch to gps mode, and the heading to hold will be updated with each new APB message. The only exception is if it receives GPAPB message in which case it will ignore the message if the autopilot is in compass mode rather than switching automatically, so you can probably put this prefix 'GP' in opencpn to get this behavior.
Thanks for looking into this. If I activate a route while in compass mode I get a violent change in course, this may be because I have a 100 degree compass correction, have I done something wrong here?
I need to activate the route before changing to gps mode to ensure I will head to the correct waypoint. Can you please explain exactly what sentences I should be sending and receiving on my two data connections in opencpn?
Thanks for your help
John