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

#include <VehicleRPMFactGroup.h>

Inheritance diagram for VehicleRPMFactGroup:
Collaboration diagram for VehicleRPMFactGroup:

Public Member Functions

 VehicleRPMFactGroup (QObject *parent=nullptr)
Fact * rpm1 ()
Fact * rpm2 ()
Fact * rpm3 ()
Fact * rpm4 ()
Fact * rpmSensor1 ()
Fact * rpmSensor2 ()
void handleMessage (Vehicle *vehicle, const mavlink_message_t &message) final
 Allows a FactGroup to parse incoming messages and fill in values.
Public Member Functions inherited from FactGroup
 FactGroup (int updateRateMsecs, const QString &metaDataFile, QObject *parent=nullptr, bool ignoreCamelCase=false)
 < false: No telemetry for these values has been received
 FactGroup (int updateRateMsecs, QObject *parent=nullptr, bool ignoreCamelCase=false)
virtual ~FactGroup ()
Q_INVOKABLE bool factExists (const QString &name) const
 @ return true: if the fact exists in the group
Q_INVOKABLE Fact * getFact (const QString &name) const
Q_INVOKABLE FactGroup * getFactGroup (const QString &name) const
Q_INVOKABLE void setLiveUpdates (bool liveUpdates)
 Turning on live updates will allow value changes to flow through as they are received.
QStringList factNames () const
QStringList factGroupNames () const
bool telemetryAvailable () const
const QMap< QString, FactGroup * > & factGroups () const

Additional Inherited Members

Signals inherited from FactGroup
void factNamesChanged ()
void factGroupNamesChanged ()
void telemetryAvailableChanged (bool telemetryAvailable)
Protected Slots inherited from FactGroup
virtual void _updateAllValues ()
Protected Member Functions inherited from FactGroup
void _addFact (Fact *fact, const QString &name)
void _addFact (Fact *fact)
void _addFactGroup (FactGroup *factGroup, const QString &name)
void _addFactGroup (FactGroup *factGroup)
void _loadFromJsonArray (const QJsonArray &jsonArray)
void _setTelemetryAvailable (bool telemetryAvailable)
Protected Attributes inherited from FactGroup
const int _updateRateMSecs = 0
 Update rate for Fact::valueChanged signals, 0: immediate update.
QMap< QString, Fact * > _nameToFactMap
QMap< QString, FactGroup * > _nameToFactGroupMap
QMap< QString, FactMetaData * > _nameToFactMetaDataMap
QStringList _factNames

Detailed Description

Definition at line 5 of file VehicleRPMFactGroup.h.

Constructor & Destructor Documentation

◆ VehicleRPMFactGroup()

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

Definition at line 6 of file VehicleRPMFactGroup.cc.

References FactGroup::_addFact(), and FactGroup::FactGroup().

Member Function Documentation

◆ handleMessage()

void VehicleRPMFactGroup::handleMessage ( Vehicle * ,
const mavlink_message_t &  )
finalvirtual

Allows a FactGroup to parse incoming messages and fill in values.

Reimplemented from FactGroup.

Definition at line 24 of file VehicleRPMFactGroup.cc.

◆ rpm1()

Fact * VehicleRPMFactGroup::rpm1 ( )
inline

Definition at line 18 of file VehicleRPMFactGroup.h.

◆ rpm2()

Fact * VehicleRPMFactGroup::rpm2 ( )
inline

Definition at line 19 of file VehicleRPMFactGroup.h.

◆ rpm3()

Fact * VehicleRPMFactGroup::rpm3 ( )
inline

Definition at line 20 of file VehicleRPMFactGroup.h.

◆ rpm4()

Fact * VehicleRPMFactGroup::rpm4 ( )
inline

Definition at line 21 of file VehicleRPMFactGroup.h.

◆ rpmSensor1()

Fact * VehicleRPMFactGroup::rpmSensor1 ( )
inline

Definition at line 22 of file VehicleRPMFactGroup.h.

◆ rpmSensor2()

Fact * VehicleRPMFactGroup::rpmSensor2 ( )
inline

Definition at line 23 of file VehicleRPMFactGroup.h.


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