OpenCPN Partial API docs
Loading...
Searching...
No Matches
BasicNavDataMsg Class Reference

Global heartbeat message with decoded values for position, speed course, etc. More...

#include <comm_appmsg.h>

Inheritance diagram for BasicNavDataMsg:
AppMsg KeyProvider

Public Member Functions

 BasicNavDataMsg (double lat, double lon, double SOG, double COG, double VAR, double HDT, time_t t)
 
- Public Member Functions inherited from AppMsg
 AppMsg (AppMsg::Type t)
 
virtual std::string key () const
 
std::string GetKey () const
 Return key used to listen and notify. More...
 
std::string TypeToString (const Type t) const
 
virtual std::string GetKey () const =0
 Return key used to listen and notify. More...
 

Public Attributes

const Position pos
 
const double sog
 
const double cog
 
const double var
 
const double hdt
 
const time_t time
 
- Public Attributes inherited from AppMsg
const Type type
 
const std::string name
 
NavAddr source
 
unsigned short prio
 

Additional Inherited Members

- Public Types inherited from AppMsg
enum class  Type {
  BasicNavData , GPSWatchdog , GnssFix , AisData ,
  DataPrioNeeded , CustomMsg , Undef
}
 
- Protected Member Functions inherited from AppMsg
 AppMsg (AppMsg::Type tp, const std::string &nm, NavAddr src)
 

Detailed Description

Global heartbeat message with decoded values for position, speed course, etc.

Definition at line 161 of file comm_appmsg.h.

Constructor & Destructor Documentation

◆ BasicNavDataMsg() [1/2]

BasicNavDataMsg::BasicNavDataMsg ( double  lat,
double  lon,
double  SOG,
double  COG,
double  VAR,
double  HDT,
time_t  t 
)
inline

Definition at line 163 of file comm_appmsg.h.

◆ BasicNavDataMsg() [2/2]

BasicNavDataMsg::BasicNavDataMsg ( )
inline

Definition at line 173 of file comm_appmsg.h.

Member Data Documentation

◆ cog

const double BasicNavDataMsg::cog

Definition at line 185 of file comm_appmsg.h.

◆ hdt

const double BasicNavDataMsg::hdt

Definition at line 187 of file comm_appmsg.h.

◆ pos

const Position BasicNavDataMsg::pos

Definition at line 183 of file comm_appmsg.h.

◆ sog

const double BasicNavDataMsg::sog

Definition at line 184 of file comm_appmsg.h.

◆ time

const time_t BasicNavDataMsg::time

Definition at line 188 of file comm_appmsg.h.

◆ var

const double BasicNavDataMsg::var

Definition at line 186 of file comm_appmsg.h.


The documentation for this class was generated from the following file: