OpenCPN Partial API docs
|
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) |
Decoded messages definitions.
These messages are handled by the ApgMsgBus defined in comm_appmsg_bus.h.
Definition in file comm_appmsg.h.
#define COG_UPDATE (int)(1 << 1) |
Definition at line 160 of file comm_appmsg.h.
#define HDT_UPDATE (int)(1 << 4) |
Definition at line 163 of file comm_appmsg.h.
#define POS_UPDATE (int)(1) |
Definition at line 159 of file comm_appmsg.h.
#define POS_VALID (int)(1 << 5) |
Definition at line 164 of file comm_appmsg.h.
#define SOG_UPDATE (int)(1 << 2) |
Definition at line 161 of file comm_appmsg.h.
#define VAR_UPDATE (int)(1 << 3) |
Definition at line 162 of file comm_appmsg.h.
std::string DegreesToString | ( | double | degrees | ) |
Definition at line 55 of file comm_appmsg.cpp.
double PosPartsToDegrees | ( | float | degrees, |
float | minutes, | ||
float | percent_of_minute | ||
) |
Definition at line 64 of file comm_appmsg.cpp.
std::string TimeToString | ( | const time_t | time | ) |
Definition at line 42 of file comm_appmsg.cpp.