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

MAVLink micro air vehicle protocol reference implementation. More...

#include <MAVLinkProtocol.h>

Inheritance diagram for MAVLinkProtocol:
Collaboration diagram for MAVLinkProtocol:

Public Slots

void receiveBytes (LinkInterface *link, const QByteArray &data)
void logSentBytes (const LinkInterface *link, const QByteArray &data)
static void deleteTempLogFiles ()

Signals

void vehicleHeartbeatInfo (LinkInterface *link, quint32 vehicleId, int componentId, int vehicleFirmwareType, int vehicleType)
void messageReceived (LinkInterface *link, const mavlink_message_t &message)
void mavlinkMessageStatus (quint32 sysid, uint64_t totalSent, uint64_t totalReceived, uint64_t totalLoss, float lossPercent)

Public Member Functions

 MAVLinkProtocol (QObject *parent=nullptr)
 ~MAVLinkProtocol ()
void init ()
quint32 getSystemId () const
void resetMetadataForLink (LinkInterface *link)
void resetSequenceTracking (LinkInterface *link)
 Reset sequence tracking so signing transitions don't inflate loss counters.
void suspendLogForReplay (bool suspend)
void checkForLostLogFiles ()

Static Public Member Functions

static MAVLinkProtocol * instance ()
static QString getName ()
static int getComponentId ()

Detailed Description

MAVLink micro air vehicle protocol reference implementation.

Definition at line 17 of file MAVLinkProtocol.h.

Constructor & Destructor Documentation

◆ MAVLinkProtocol()

MAVLinkProtocol::MAVLinkProtocol ( QObject * parent = nullptr)
explicit

Definition at line 31 of file MAVLinkProtocol.cc.

References MAVLinkProtocol().

Referenced by instance(), and MAVLinkProtocol().

◆ ~MAVLinkProtocol()

MAVLinkProtocol::~MAVLinkProtocol ( )

Definition at line 40 of file MAVLinkProtocol.cc.

Member Function Documentation

◆ checkForLostLogFiles()

void MAVLinkProtocol::checkForLostLogFiles ( )

Definition at line 404 of file MAVLinkProtocol.cc.

◆ deleteTempLogFiles

void MAVLinkProtocol::deleteTempLogFiles ( )
staticslot

Definition at line 423 of file MAVLinkProtocol.cc.

◆ getComponentId()

◆ getName()

QString MAVLinkProtocol::getName ( )
inlinestatic

Definition at line 30 of file MAVLinkProtocol.h.

Referenced by logSentBytes().

◆ getSystemId()

quint32 MAVLinkProtocol::getSystemId ( ) const

◆ init()

void MAVLinkProtocol::init ( )

◆ instance()

◆ logSentBytes

void MAVLinkProtocol::logSentBytes ( const LinkInterface * link,
const QByteArray & data )
slot

Definition at line 82 of file MAVLinkProtocol.cc.

References getName(), and QGC::showAppMessage().

Referenced by LinkManager::createConnectedLink().

◆ mavlinkMessageStatus

void MAVLinkProtocol::mavlinkMessageStatus ( quint32 sysid,
uint64_t totalSent,
uint64_t totalReceived,
uint64_t totalLoss,
float lossPercent )
signal

References MAVLINK_COMM_NUM_BUFFERS.

Referenced by Vehicle::Vehicle().

◆ messageReceived

void MAVLinkProtocol::messageReceived ( LinkInterface * link,
const mavlink_message_t & message )
signal

◆ receiveBytes

◆ resetMetadataForLink()

void MAVLinkProtocol::resetMetadataForLink ( LinkInterface * link)

◆ resetSequenceTracking()

void MAVLinkProtocol::resetSequenceTracking ( LinkInterface * link)

Reset sequence tracking so signing transitions don't inflate loss counters.

Definition at line 75 of file MAVLinkProtocol.cc.

References LinkInterface::mavlinkChannel().

Referenced by receiveBytes(), and resetMetadataForLink().

◆ suspendLogForReplay()

void MAVLinkProtocol::suspendLogForReplay ( bool suspend)
inline

Definition at line 41 of file MAVLinkProtocol.h.

Referenced by LogReplayWorker::pause(), and LogReplayWorker::play().

◆ vehicleHeartbeatInfo

void MAVLinkProtocol::vehicleHeartbeatInfo ( LinkInterface * link,
quint32 vehicleId,
int componentId,
int vehicleFirmwareType,
int vehicleType )
signal

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