|
QGroundControl
Ground Control Station for MAVLink Drones
|
FactGroupWithId is a FactGroup which has an id Fact which can be used to identify the group. More...
#include <FactGroupWithId.h>
Inheritance diagram for FactGroupWithId:
Collaboration diagram for FactGroupWithId:Public Member Functions | |
| FactGroupWithId (int updateRateMsecs, const QString &metaDataFile, QObject *parent=nullptr, bool ignoreCamelCase=false) | |
| Fact * | id () |
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 |
| virtual void | handleMessage (Vehicle *, const mavlink_message_t &) |
| Allows a FactGroup to parse incoming messages and fill in values. | |
Protected Attributes | |
| 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 |
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) |
FactGroupWithId is a FactGroup which has an id Fact which can be used to identify the group.
It is mainly used in combination with FactGroupListModel to manage dynamic FactGroups.
Definition at line 9 of file FactGroupWithId.h.
|
explicit |
Definition at line 3 of file FactGroupWithId.cc.
References FactGroup::_addFact(), and _idFact.
|
inline |
Definition at line 18 of file FactGroupWithId.h.
References _idFact.
|
protected |
Definition at line 21 of file FactGroupWithId.h.
Referenced by BatteryFactGroup::BatteryFactGroup(), EscStatusFactGroup::EscStatusFactGroup(), FactGroupWithId(), and id().