NMEA2000 Library  0.1
Library to handle NMEA 2000 Communication written in C++
WindMonitor.ino File Reference

NMEA2000 library example. Send main wind data to the bus. More...

#include <Arduino.h>
#include <NMEA2000_CAN.h>
#include <N2kMessages.h>
Include dependency graph for WindMonitor.ino:

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)
 

Detailed Description

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.

Function Documentation

◆ loop()

void loop ( )

Definition at line 76 of file WindMonitor.ino.

◆ OnN2kOpen()

void OnN2kOpen ( )

Definition at line 38 of file WindMonitor.ino.

◆ ReadWindAngle()

double ReadWindAngle ( )

Definition at line 82 of file WindMonitor.ino.

◆ ReadWindSpeed()

double ReadWindSpeed ( )

Definition at line 87 of file WindMonitor.ino.

◆ SendN2kWind()

void SendN2kWind ( )

Definition at line 92 of file WindMonitor.ino.

◆ setup()

void setup ( )

Definition at line 43 of file WindMonitor.ino.

Variable Documentation

◆ TransmitMessages

const unsigned long TransmitMessages[] ={130306L,0}

Definition at line 25 of file WindMonitor.ino.

◆ WindScheduler

tN2kSyncScheduler WindScheduler(false, 100, 500) ( false  ,
100  ,
500   
)