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

#include <MAVLinkMessage.h>

Inheritance diagram for QGCMAVLinkMessage:
Collaboration diagram for QGCMAVLinkMessage:

Signals

void countChanged ()
void actualRateHzChanged ()
void targetRateHzChanged ()
void fieldSelectedChanged ()
void selectedChanged ()

Public Member Functions

 QGCMAVLinkMessage (const mavlink_message_t &message, const QString &instanceValue=QString(), QObject *parent=nullptr)
 ~QGCMAVLinkMessage ()
quint32 id () const
quint32 sysId () const
quint8 compId () const
QString name () const
QString instanceValue () const
qreal actualRateHz () const
int32_t targetRateHz () const
quint64 count () const
quint64 lastCount () const
QmlObjectListModel * fields () const
bool fieldSelected () const
bool selected () const
void updateFieldSelection ()
void update (const mavlink_message_t &message)
void updateFreq ()
void setSelected (bool sel)
void setTargetRateHz (int32_t rate)

Static Public Member Functions

static QString extractInstanceValue (const mavlink_message_t &message)
 Extract the instance field value from a raw mavlink message, or empty string if none.

Detailed Description

Definition at line 12 of file MAVLinkMessage.h.

Constructor & Destructor Documentation

◆ QGCMAVLinkMessage()

QGCMAVLinkMessage::QGCMAVLinkMessage ( const mavlink_message_t & message,
const QString & instanceValue = QString(),
QObject * parent = nullptr )
explicit

Definition at line 14 of file MAVLinkMessage.cc.

References MAVLinkMessageInfo::byId(), instanceValue(), and QGCMAVLinkMessage().

Referenced by QGCMAVLinkMessage().

◆ ~QGCMAVLinkMessage()

QGCMAVLinkMessage::~QGCMAVLinkMessage ( )

Definition at line 72 of file MAVLinkMessage.cc.

Member Function Documentation

◆ actualRateHz()

qreal QGCMAVLinkMessage::actualRateHz ( ) const
inline

Definition at line 42 of file MAVLinkMessage.h.

◆ actualRateHzChanged

void QGCMAVLinkMessage::actualRateHzChanged ( )
signal

Referenced by updateFreq().

◆ compId()

quint8 QGCMAVLinkMessage::compId ( ) const
inline

Definition at line 39 of file MAVLinkMessage.h.

Referenced by QGCMAVLinkSystem::findMessage().

◆ count()

quint64 QGCMAVLinkMessage::count ( ) const
inline

Definition at line 44 of file MAVLinkMessage.h.

◆ countChanged

void QGCMAVLinkMessage::countChanged ( )
signal

Referenced by update().

◆ extractInstanceValue()

QString QGCMAVLinkMessage::extractInstanceValue ( const mavlink_message_t & message)
static

Extract the instance field value from a raw mavlink message, or empty string if none.

Definition at line 79 of file MAVLinkMessage.cc.

References MAVLinkMessageInfo::byId().

◆ fields()

QmlObjectListModel * QGCMAVLinkMessage::fields ( ) const
inline

Definition at line 46 of file MAVLinkMessage.h.

◆ fieldSelected()

bool QGCMAVLinkMessage::fieldSelected ( ) const
inline

Definition at line 47 of file MAVLinkMessage.h.

◆ fieldSelectedChanged

void QGCMAVLinkMessage::fieldSelectedChanged ( )
signal

Referenced by updateFieldSelection().

◆ id()

quint32 QGCMAVLinkMessage::id ( ) const
inline

◆ instanceValue()

QString QGCMAVLinkMessage::instanceValue ( ) const
inline

Definition at line 41 of file MAVLinkMessage.h.

Referenced by QGCMAVLinkSystem::findMessage(), and QGCMAVLinkMessage().

◆ lastCount()

quint64 QGCMAVLinkMessage::lastCount ( ) const
inline

Definition at line 45 of file MAVLinkMessage.h.

◆ name()

QString QGCMAVLinkMessage::name ( ) const
inline

Definition at line 40 of file MAVLinkMessage.h.

◆ selected()

bool QGCMAVLinkMessage::selected ( ) const
inline

Definition at line 48 of file MAVLinkMessage.h.

Referenced by QGCMAVLinkSystem::setSelected().

◆ selectedChanged

void QGCMAVLinkMessage::selectedChanged ( )
signal

Referenced by setSelected().

◆ setSelected()

void QGCMAVLinkMessage::setSelected ( bool sel)

Definition at line 212 of file MAVLinkMessage.cc.

References selectedChanged().

Referenced by QGCMAVLinkSystem::append(), and QGCMAVLinkSystem::setSelected().

◆ setTargetRateHz()

void QGCMAVLinkMessage::setTargetRateHz ( int32_t rate)

Definition at line 221 of file MAVLinkMessage.cc.

References targetRateHzChanged().

◆ sysId()

quint32 QGCMAVLinkMessage::sysId ( ) const
inline

Definition at line 38 of file MAVLinkMessage.h.

◆ targetRateHz()

int32_t QGCMAVLinkMessage::targetRateHz ( ) const
inline

Definition at line 43 of file MAVLinkMessage.h.

◆ targetRateHzChanged

void QGCMAVLinkMessage::targetRateHzChanged ( )
signal

Referenced by setTargetRateHz().

◆ update()

void QGCMAVLinkMessage::update ( const mavlink_message_t & message)

Definition at line 229 of file MAVLinkMessage.cc.

References countChanged().

◆ updateFieldSelection()

void QGCMAVLinkMessage::updateFieldSelection ( )

◆ updateFreq()

void QGCMAVLinkMessage::updateFreq ( )

Definition at line 201 of file MAVLinkMessage.cc.

References actualRateHzChanged().


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