NMEA2000 Library
0.1
Library to handle NMEA 2000 Communication written in C++
|
NMEA2000 library example. Send main wind data to the bus. More...
Go to the source code of this file.
Functions | |
void | loop () |
void | OnN2kOpen () |
double | ReadWindAngle () |
double | ReadWindSpeed () |
void | SendN2kWind () |
void | setup () |
Variables | |
const unsigned long | TransmitMessages [] ={130306L,0} |
tN2kSyncScheduler | WindScheduler (false, 100, 500) |
NMEA2000 library example. Send main wind data to the bus.
This simple example sends hardcoded wind angle and speed information to the NMEA2000 bus. To make it working device you need add functionality, which reads real values.
Example does not fullfill all NMEA2000 requirements.
Definition in file WindMonitor.ino.
void loop | ( | ) |
Definition at line 76 of file WindMonitor.ino.
void OnN2kOpen | ( | ) |
Definition at line 38 of file WindMonitor.ino.
double ReadWindAngle | ( | ) |
Definition at line 82 of file WindMonitor.ino.
double ReadWindSpeed | ( | ) |
Definition at line 87 of file WindMonitor.ino.
void SendN2kWind | ( | ) |
Definition at line 92 of file WindMonitor.ino.
void setup | ( | ) |
Definition at line 43 of file WindMonitor.ino.
const unsigned long TransmitMessages[] ={130306L,0} |
Definition at line 25 of file WindMonitor.ino.
tN2kSyncScheduler WindScheduler(false, 100, 500) | ( | false | , |
100 | , | ||
500 | |||
) |