2019-09-01, 11:41 PM
(This post was last modified: 2019-09-01, 11:41 PM by seandepagnier.)
If you can submit a new pull request to fix that would be great, or I will find it eventually.
Sorry for changing the code so much, but this way is better. The old way could only receive APB route message via tcp socket nmea0183. Now it can receive from serial port, tcp nmea, and signalk nmea. If opencpn could output this someday it could also provide more information like trajectory than APB so this would enhance route following even more.
The RF remote typically has buttons like:
A B
C D
I have so far:
A = -1
B = +1
C = -10
D = +10
AB = engage autopilot
CD = disengage
AC = tack to port
BD = tack to starboard
AD = compass mode
BC = wind mode
Possible also to use 3 or even all 4 keys at once to do something but it's difficult to press.
It also would be possible to press chords like
A hold (1sec) B, release B, C, release C and A
This gives many combinations for more functions but not sure all are needed, but if tacking and jibing are needed as well as switching modes or changing gains it could be useful.
The buttons unfortunately cannot really be used to toggle a state, like autopilot engaged because there is no feedback in case it does not work or way to detect repeats. This is also true for changing the mode which is why I have different combinations to engage and disengage
Another option is a custom remote which uses 2 way communication on rf433 and provides a small lcd display as well as all 7 normal keys, but it's a bigger project.
Sorry for changing the code so much, but this way is better. The old way could only receive APB route message via tcp socket nmea0183. Now it can receive from serial port, tcp nmea, and signalk nmea. If opencpn could output this someday it could also provide more information like trajectory than APB so this would enhance route following even more.
The RF remote typically has buttons like:
A B
C D
I have so far:
A = -1
B = +1
C = -10
D = +10
AB = engage autopilot
CD = disengage
AC = tack to port
BD = tack to starboard
AD = compass mode
BC = wind mode
Possible also to use 3 or even all 4 keys at once to do something but it's difficult to press.
It also would be possible to press chords like
A hold (1sec) B, release B, C, release C and A
This gives many combinations for more functions but not sure all are needed, but if tacking and jibing are needed as well as switching modes or changing gains it could be useful.
The buttons unfortunately cannot really be used to toggle a state, like autopilot engaged because there is no feedback in case it does not work or way to detect repeats. This is also true for changing the mode which is why I have different combinations to engage and disengage
Another option is a custom remote which uses 2 way communication on rf433 and provides a small lcd display as well as all 7 normal keys, but it's a bigger project.