This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Best of both worlds?
#15
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 Tongue . 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.


Attached Files
.pdf   pypilot-git-diff.pdf (Size: 106.33 KB / Downloads: 247)
Reply


Messages In This Thread
Best of both worlds? - by Ranur - 2020-02-21, 11:05 AM
RE: Best of both worlds? - by seandepagnier - 2020-02-21, 03:30 PM
RE: Best of both worlds? - by beholder77 - 2020-02-21, 04:01 PM
RE: Best of both worlds? - by Ranur - 2020-02-21, 05:41 PM
RE: Best of both worlds? - by seandepagnier - 2020-02-21, 07:36 PM
RE: Best of both worlds? - by Ranur - 2020-02-21, 11:24 PM
RE: Best of both worlds? - by Ranur - 2020-02-24, 02:08 PM
RE: Best of both worlds? - by seandepagnier - 2020-02-25, 05:16 PM
RE: Best of both worlds? - by Ranur - 2020-02-25, 05:29 PM
RE: Best of both worlds? - by seandepagnier - 2020-02-25, 08:17 PM
RE: Best of both worlds? - by ironman - 2020-02-25, 09:24 PM
RE: Best of both worlds? - by seandepagnier - 2020-02-26, 03:34 AM
RE: Best of both worlds? - by ironman - 2020-02-25, 06:18 PM
RE: Best of both worlds? - by Ranur - 2020-02-25, 09:54 PM
RE: Best of both worlds? - by ironman - 2020-02-26, 04:04 PM
RE: Best of both worlds? - by seandepagnier - 2020-02-27, 02:30 AM
RE: Best of both worlds? - by ironman - 2020-02-27, 01:34 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)