OpenCPN Partial API docs
Loading...
Searching...
No Matches
comm_appmsg.h File Reference

Decoded messages definitions. More...

#include <memory>
#include <iomanip>
#include <wx/event.h>
#include "model/comm_driver.h"
#include "observable.h"

Go to the source code of this file.

Classes

class  Position
 
class  AppMsg
 
class  DataPrioNeeded
 Issued when there are multiple sources providing 'what' with priority == 0. More...
 
class  GnssFix
 GPS, Galileo, etc. More...
 
class  BasicNavDataMsg
 
class  GPSWatchdogMsg
 
class  AisData
 AIS data point for a vessel. More...
 
class  CustomMsg
 A generic message containing a const pointer to basically anything, the pointer neds to be casted to the proper type on the receiving side. More...
 

Macros

#define POS_UPDATE   (int)(1)
 
#define COG_UPDATE   (int)(1 << 1)
 
#define SOG_UPDATE   (int)(1 << 2)
 
#define VAR_UPDATE   (int)(1 << 3)
 
#define HDT_UPDATE   (int)(1 << 4)
 
#define POS_VALID   (int)(1 << 5)
 

Functions

double PosPartsToDegrees (float degrees, float minutes, float percent_of_minute)
 
std::string DegreesToString (double degrees)
 
std::string TimeToString (const time_t time)
 

Detailed Description

Decoded messages definitions.

These messages are handled by the ApgMsgBus defined in comm_appmsg_bus.h.

Definition in file comm_appmsg.h.

Macro Definition Documentation

◆ COG_UPDATE

#define COG_UPDATE   (int)(1 << 1)

Definition at line 160 of file comm_appmsg.h.

◆ HDT_UPDATE

#define HDT_UPDATE   (int)(1 << 4)

Definition at line 163 of file comm_appmsg.h.

◆ POS_UPDATE

#define POS_UPDATE   (int)(1)

Definition at line 159 of file comm_appmsg.h.

◆ POS_VALID

#define POS_VALID   (int)(1 << 5)

Definition at line 164 of file comm_appmsg.h.

◆ SOG_UPDATE

#define SOG_UPDATE   (int)(1 << 2)

Definition at line 161 of file comm_appmsg.h.

◆ VAR_UPDATE

#define VAR_UPDATE   (int)(1 << 3)

Definition at line 162 of file comm_appmsg.h.

Function Documentation

◆ DegreesToString()

std::string DegreesToString ( double  degrees)

Definition at line 55 of file comm_appmsg.cpp.

◆ PosPartsToDegrees()

double PosPartsToDegrees ( float  degrees,
float  minutes,
float  percent_of_minute 
)

Definition at line 64 of file comm_appmsg.cpp.

◆ TimeToString()

std::string TimeToString ( const time_t  time)

Definition at line 42 of file comm_appmsg.cpp.