QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
RTCMMAVLink Class Reference

#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.

Detailed Description

Definition at line 10 of file RTCMMAVLink.h.

Member Typedef Documentation

◆ Output

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.

◆ OutputProvider

using RTCMMAVLink::OutputProvider = std::function<QList<Output>()>

Definition at line 15 of file RTCMMAVLink.h.

Constructor & Destructor Documentation

◆ RTCMMAVLink()

RTCMMAVLink::RTCMMAVLink ( )

Submits to vehicleLinkOutputs() until setOutputProvider() replaces them.

Definition at line 50 of file RTCMMAVLink.cc.

References vehicleLinkOutputs().

◆ ~RTCMMAVLink()

RTCMMAVLink::~RTCMMAVLink ( )

Definition at line 56 of file RTCMMAVLink.cc.

Member Function Documentation

◆ setOutputProvider()

void RTCMMAVLink::setOutputProvider ( OutputProvider provider)

Definition at line 87 of file RTCMMAVLink.cc.

◆ submitToOutputs()

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().

◆ totalBytesSubmitted()

quint64 RTCMMAVLink::totalBytesSubmitted ( ) const
inline

Definition at line 25 of file RTCMMAVLink.h.

◆ vehicleLinkOutputs()

RTCMMAVLink::OutputProvider RTCMMAVLink::vehicleLinkOutputs ( )
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().


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