Posts: 21
Threads: 7
Joined: Nov 2019
Reputation:
0
My tiny pilot is working well in both compass and gps mode. If I am sailing in compass mode and activate a route in opencpn this affects the compass mode control setting and the boat veers off violently, also I noticed the mode had changed to gps mode. Am I doing something wrong?
Posts: 2,199
Threads: 20
Joined: Jun 2016
Reputation:
65
What happens if you switch between compass and gps mode without an active route?
Does activating the route in gps mode work ok?
.
Posts: 2,199
Threads: 20
Joined: Jun 2016
Reputation:
65
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.