2020-02-27, 02:30 AM
(This post was last modified: 2020-02-27, 02:34 AM by seandepagnier.)
(2020-02-26, 04:04 PM)ironman Wrote: 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.
This is nice. I don't think bells needs to be integrated into pypilot directly but through your control client is ok..
It would make most sense to me that opencpn can do this through the autopilot route plugin.
Quote: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 intoSo in this case switching to compass just holds a compass course correct?
Then switching to gps would go back to "nav" mode. It should have this behavior if you change the nmea sentence prefix.
Should there be a separate "nav" mode and now gps mode just holds a gps course, or nav mode could be whatever the chart plotter commands??
As for waypoint confirmation.. I believe this is supported already in the autopilot route plugin in opencpn. If not, is there any specific reason for the autopilot to need to deal with waypoint confirmation? To use the same remote or controls?
Quote: 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.I learned python to write pypilot so I am also new; not using it very long.
Quote: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.Sounds good. It would be cool to be able to have the same interface as other pilots as an option, so once we can settle on the details and the best way to implement, maybe it can just be a boolean in the config.