|
QGroundControl
Ground Control Station for MAVLink Drones
|
#include <VehicleGPSAggregateFactGroup.h>
Inheritance diagram for VehicleGPSAggregateFactGroup:
Collaboration diagram for VehicleGPSAggregateFactGroup:Public Types | |
| enum | AuthState { AUTH_UNKNOWN = 0 , AUTH_INITIALIZING = 1 , AUTH_ERROR = 2 , AUTH_OK = 3 , AUTH_DISABLED = 4 , AUTH_INVALID = -1 } |
Public Member Functions | |
| VehicleGPSAggregateFactGroup (QObject *parent=nullptr) | |
| Fact * | spoofingState () |
| Fact * | jammingState () |
| Fact * | authenticationState () |
| Fact * | isStale () |
| void | updateFromGps (VehicleGPSFactGroup *gps1, VehicleGPSFactGroup *gps2) |
| void | bindToGps (VehicleGPSFactGroup *gps1, VehicleGPSFactGroup *gps2) |
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. | |
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 |
Definition at line 19 of file VehicleGPSAggregateFactGroup.h.
| Enumerator | |
|---|---|
| AUTH_UNKNOWN | |
| AUTH_INITIALIZING | |
| AUTH_ERROR | |
| AUTH_OK | |
| AUTH_DISABLED | |
| AUTH_INVALID | |
Definition at line 27 of file VehicleGPSAggregateFactGroup.h.
|
explicit |
Definition at line 15 of file VehicleGPSAggregateFactGroup.cc.
References FactGroup::_addFact(), and Fact::setRawValue().
|
inline |
Definition at line 40 of file VehicleGPSAggregateFactGroup.h.
| void VehicleGPSAggregateFactGroup::bindToGps | ( | VehicleGPSFactGroup * | gps1, |
| VehicleGPSFactGroup * | gps2 | ||
| ) |
Definition at line 33 of file VehicleGPSAggregateFactGroup.cc.
References VehicleGPSFactGroup::gnssIntegrityReceived().
|
inline |
Definition at line 41 of file VehicleGPSAggregateFactGroup.h.
|
inline |
Definition at line 39 of file VehicleGPSAggregateFactGroup.h.
|
inline |
Definition at line 38 of file VehicleGPSAggregateFactGroup.h.
| void VehicleGPSAggregateFactGroup::updateFromGps | ( | VehicleGPSFactGroup * | gps1, |
| VehicleGPSFactGroup * | gps2 | ||
| ) |
Definition at line 116 of file VehicleGPSAggregateFactGroup.cc.
References VehicleGPSFactGroup::authenticationState(), VehicleGPSFactGroup::jammingState(), Fact::setRawValue(), and VehicleGPSFactGroup::spoofingState().