#include <RTCMMAVLink.h>
Public Types | |
| using | Output = std::function<bool(const GPSRTCMPacket&)> |
| Admits one packet to a vehicle link; admission only, not physical delivery or receiver acknowledgement. | |
| using | OutputProvider = std::function<QList<Output>()> |
Public Member Functions | |
| RTCMMAVLink () | |
| Submits to vehicleLinkOutputs() until setOutputProvider() replaces them. | |
| ~RTCMMAVLink () | |
| quint64 | totalBytesSubmitted () const |
| void | setOutputProvider (OutputProvider provider) |
| quint64 | submitToOutputs (QByteArrayView data) |
Static Public Member Functions | |
| static OutputProvider | vehicleLinkOutputs () |
| The distinct primary links of live vehicles, excluding log replay. Outputs hold their link weakly. | |
Definition at line 10 of file RTCMMAVLink.h.
| using RTCMMAVLink::Output = std::function<bool(const GPSRTCMPacket&)> |
Admits one packet to a vehicle link; admission only, not physical delivery or receiver acknowledgement.
Definition at line 14 of file RTCMMAVLink.h.
| using RTCMMAVLink::OutputProvider = std::function<QList<Output>()> |
Definition at line 15 of file RTCMMAVLink.h.
| RTCMMAVLink::RTCMMAVLink | ( | ) |
Submits to vehicleLinkOutputs() until setOutputProvider() replaces them.
Definition at line 50 of file RTCMMAVLink.cc.
References vehicleLinkOutputs().
| RTCMMAVLink::~RTCMMAVLink | ( | ) |
Definition at line 56 of file RTCMMAVLink.cc.
| void RTCMMAVLink::setOutputProvider | ( | OutputProvider | provider | ) |
Definition at line 87 of file RTCMMAVLink.cc.
| quint64 RTCMMAVLink::submitToOutputs | ( | QByteArrayView | data | ) |
Packs data once and submits its packets to each output, stopping at the first packet an output refuses. Returns the bytes submitted.
Definition at line 92 of file RTCMMAVLink.cc.
References RTCMMAVLinkPacket::pack().
|
inline |
Definition at line 25 of file RTCMMAVLink.h.
|
staticnodiscard |
The distinct primary links of live vehicles, excluding log replay. Outputs hold their link weakly.
Definition at line 61 of file RTCMMAVLink.cc.
References MultiVehicleManager::instance(), VehicleLinkManager::primaryLink(), and Vehicle::vehicleLinkManager().
Referenced by RTCMMAVLink().