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

#include <EscStatusFactGroupListModel.h>

+ Inheritance diagram for EscStatusFactGroup:
+ Collaboration diagram for EscStatusFactGroup:

Public Member Functions

 EscStatusFactGroup (uint32_t escIndex, QObject *parent=nullptr)
 
Factrpm ()
 
Factcurrent ()
 
Factvoltage ()
 
Factcount ()
 
FactconnectionType ()
 
Factinfo ()
 
FactfailureFlags ()
 
FacterrorCount ()
 
Facttemperature ()
 
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 FactGroupWithId
 FactGroupWithId (int updateRateMsecs, const QString &metaDataFile, QObject *parent=nullptr, bool ignoreCamelCase=false)
 
Factid ()
 
- 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 FactgetFact (const QString &name) const
 
Q_INVOKABLE FactGroupgetFactGroup (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 FactGroupWithId
Fact _idFact = Fact(0, QStringLiteral("id"), FactMetaData::valueTypeUint32)
 
- 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 20 of file EscStatusFactGroupListModel.h.

Constructor & Destructor Documentation

◆ EscStatusFactGroup()

EscStatusFactGroup::EscStatusFactGroup ( uint32_t  escIndex,
QObject *  parent = nullptr 
)
explicit

Member Function Documentation

◆ connectionType()

Fact * EscStatusFactGroup::connectionType ( )
inline

Definition at line 41 of file EscStatusFactGroupListModel.h.

◆ count()

Fact * EscStatusFactGroup::count ( )
inline

Definition at line 40 of file EscStatusFactGroupListModel.h.

◆ current()

Fact * EscStatusFactGroup::current ( )
inline

Definition at line 38 of file EscStatusFactGroupListModel.h.

◆ errorCount()

Fact * EscStatusFactGroup::errorCount ( )
inline

Definition at line 44 of file EscStatusFactGroupListModel.h.

◆ failureFlags()

Fact * EscStatusFactGroup::failureFlags ( )
inline

Definition at line 43 of file EscStatusFactGroupListModel.h.

◆ handleMessage()

void EscStatusFactGroup::handleMessage ( Vehicle ,
const mavlink_message_t  
)
finalvirtual

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

Reimplemented from FactGroup.

Definition at line 79 of file EscStatusFactGroupListModel.cc.

◆ info()

Fact * EscStatusFactGroup::info ( )
inline

Definition at line 42 of file EscStatusFactGroupListModel.h.

◆ rpm()

Fact * EscStatusFactGroup::rpm ( )
inline

Definition at line 37 of file EscStatusFactGroupListModel.h.

◆ temperature()

Fact * EscStatusFactGroup::temperature ( )
inline

Definition at line 45 of file EscStatusFactGroupListModel.h.

◆ voltage()

Fact * EscStatusFactGroup::voltage ( )
inline

Definition at line 39 of file EscStatusFactGroupListModel.h.


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