BerndCirotzki / raymarine_autopilot_pi

Raymarine Autopilot Plugin for OpenCPN

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Active Route Test

rgleason opened this issue · comments

I set a premade route active, autopilot_raymarine and then started Marco Bergman's ais-simulation.exe
https://github.com/marcobergman/ais_simulation
and finally got things right and recorded a session (I had autopilot_route enabled at first, which messed up things!)

I hope I am doing this right.
1-Turn-at-wpt

2-Continue

3-Overshoot

10-Overshoot-and-turn-to-wpt
11-continue-on-same-course

Maybe I need to adjust something?

Hello Rick,

The Autopilot sends Seatalkmessages every second( Statusmessages ) , that must be translated form NMEA/Seatalk convert to NMEA in this Format:
$STALK,84,26,A2,88,40,00,FE,02,06*15 ( This is a Standby )
The Plugin wants this Sentence ever Second. after 10 Seconds No Message received, the Plugin shows "-------". ( No Autopilot activ)
The Autopilot receives only Keystroke-Seatalk sentences, from the Plugin. The must be converted from NMEA/Seatalk Converter from NMEA to Seatalk.
(Try to push a Button (Auto) on the Pluin an you See Senteces in the NMEA Output Window)

16:41:32 (virtual) $STALK,86,21,01,FE4E<0x0D><0x0A>
--> 16:41:32 (COM10) $STALK,86,21,01,FE
4E<0x0D><0x0A>

Now you see The receive and the Send Sentence is "STALK" .. thats the reason you can change the names in the preferencedialog.
Because Opencpn mirriors every incoming Message back to the Serial Port, when it is defined as an output to Autopilot.
( for a long time I wore an Issue for that, Not to Send the same message back to the Serial port, where it comes from. Because that makes no sence.)
( Also I found out, that Opencpn not receives all NMEA Sententences from the Serial Port, when it is an Outputport, and there is no Output filter Set.
It seems that then there is too much traffic for Opencpn.)

The RMB, APB and XTE you can send out to the NMEA/Seatalk Converter, when it will be translated, or use an other Serial output port and Send the
Sentences to the NMEA Input from Raymarine Autopilot. no matter.

With the keystrokes, on Plugin you only tell the Raymarine Autopilot to change his Status.
go to Auto or go to Windmode, or to Trackmode.

When you tell the Autopilot to go to track mode, he want to get RMB,APB, XTE Sentences to accept this Mode. otherwise it will cause an Error,
with the Autopilot also sends back in the $STALK,84 .... Sentence to the Plugin. The plugin the shows "No Waypoint"

You can not test the function as you like. sorry :-)

Bernd

I am going to close this now. Thanks.