marcobergman / ais_simulation

Simulates moving AIS targets by creating NMEA AIVD messages and sending them off by TCP
7 stars 2 forks source link

ais_simulation

Simulates moving AIS targets by creating NMEA AIVD messages and sending them off by TCP; tested both on raspberry linux and windows.

prerequisites:

to install:

to run:

hints:

example

wind simulation

The script allows setting a true wind direction, and converts this in apparent wind data sent off in NMEA messages. This facilitates off-boat testing of e.g. dashboard and tactics plugins. Note: third field is supposed to be 'variance', but not implemented yet. Calculation of wind is not always correct - have been struggeling with quadrant ambiguity.

track simulation

The 'own boat' will normally follow the heading initially set in the waypoint, and manually adjusted by the direction arrows. If NMEA APB sentences are sent to TCP/20220, the heading will be taken from 'heading to steer to waypoint' field instead. This simulates a boat equipped with an autopilot. Linked to opencpn, this facilitates testing of various track following algorithms. For these purposes, water current direction and speed has also been made available, adjusting the boat movements accordingly.

example