The bell-related code chimes a sound on my laptop each 5 seconds when there is a waypoint arrival, 1 times for a starboard change and twice for a port change of heading. It's a bit ugly code but it works.
When switching to 'compass' when there is an active route, pypilot normally goes back to 'gps' mode, as discussed in this thread. I had to solve this in the pypilot code. Also the waypoint confirmation logic had to be integrated into nmea.py. Still being a python newbie, I struggled a bit and resorted to the use of global variables, so please have mercy on me . Attached the changes I made.
The set of measures I took make that my PyPilot-powered tiller pilot has exactly the same user interface as the original one, which I have as backup. They both react in the same way to OpenCPN active routes as well. So when the going gets tough and the brain fogs up, you don't need to think about which tiller pilot is on duty.
When switching to 'compass' when there is an active route, pypilot normally goes back to 'gps' mode, as discussed in this thread. I had to solve this in the pypilot code. Also the waypoint confirmation logic had to be integrated into nmea.py. Still being a python newbie, I struggled a bit and resorted to the use of global variables, so please have mercy on me . Attached the changes I made.
The set of measures I took make that my PyPilot-powered tiller pilot has exactly the same user interface as the original one, which I have as backup. They both react in the same way to OpenCPN active routes as well. So when the going gets tough and the brain fogs up, you don't need to think about which tiller pilot is on duty.