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, int vehicleId, int componentId, int vehicleFirmwareType, int vehicleType)
 
void messageReceived (LinkInterface *link, const mavlink_message_t &message)
 
void mavlinkMessageStatus (int sysid, uint64_t totalSent, uint64_t totalReceived, uint64_t totalLoss, float lossPercent)
 

Public Member Functions

 MAVLinkProtocol (QObject *parent=nullptr)
 
 ~MAVLinkProtocol ()
 
void init ()
 
int 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 MAVLinkProtocolinstance ()
 
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.

◆ ~MAVLinkProtocol()

MAVLinkProtocol::~MAVLinkProtocol ( )

Definition at line 36 of file MAVLinkProtocol.cc.

Member Function Documentation

◆ checkForLostLogFiles()

void MAVLinkProtocol::checkForLostLogFiles ( )

Definition at line 382 of file MAVLinkProtocol.cc.

◆ deleteTempLogFiles

void MAVLinkProtocol::deleteTempLogFiles ( )
staticslot

Definition at line 401 of file MAVLinkProtocol.cc.

◆ getComponentId()

◆ getName()

static QString MAVLinkProtocol::getName ( )
inlinestatic

Definition at line 30 of file MAVLinkProtocol.h.

Referenced by logSentBytes().

◆ getSystemId()

◆ init()

void MAVLinkProtocol::init ( )

◆ instance()

◆ logSentBytes

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

Definition at line 78 of file MAVLinkProtocol.cc.

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

Referenced by LinkManager::createConnectedLink().

◆ mavlinkMessageStatus

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

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 70 of file MAVLinkProtocol.cc.

References LinkInterface::mavlinkChannel().

Referenced by receiveBytes().

◆ 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,
int  vehicleId,
int  componentId,
int  vehicleFirmwareType,
int  vehicleType 
)
signal

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