31#include "ocpn_plugin.h"
32#include "comm_navmsg_bus.h"
33#include "comm_appmsg.h"
38 auto msg = UnpackEvtPointer<Nmea2000Msg>(ev);
43 auto msg = UnpackEvtPointer<Nmea2000Msg>(ev);
44 return msg->source->to_string();
48 auto msg = UnpackEvtPointer<Nmea0183Msg>(ev);
52shared_ptr<ObservableListener> GetListener(
NMEA2000Id id, wxEventType et,
54 return make_shared<ObservableListener>(
Nmea2000Msg(
id.
id), eh,
58std::shared_ptr<ObservableListener> GetListener(
NMEA0183Id id, wxEventType et,
60 return make_shared<ObservableListener>(
Nmea0183Msg(
id.
id), eh, et);
63shared_ptr<ObservableListener> GetListener(
SignalkId id, wxEventType et,
65 return make_shared<ObservableListener>(
SignalkMsg(), eh, et);
68shared_ptr<ObservableListener> GetListener(
NavDataId id, wxEventType et,
74 auto msg = UnpackEvtPointer<BasicNavDataMsg>(ev);
77 data.lat = msg->pos.lat;
78 data.lon = msg->pos.lon;
83 data.time = msg->time;
Global heartbeat message with decoded values for position, speed course, etc.
A regular Nmea0183 message.
See: https://github.com/OpenCPN/OpenCPN/issues/2729#issuecomment-1179506343.
Adds a std::shared<void> element to wxCommandEvent.
A parsed, raw SignalK message.
Facade for BasicNavDataMsg.
Available decoded data for plugins.
Facade for NavAddrSignalK.