|
QGroundControl
Ground Control Station for MAVLink Drones
|
#include <VehicleFactGroup.h>
Inheritance diagram for VehicleFactGroup:
Collaboration diagram for VehicleFactGroup:Public Member Functions | |
| VehicleFactGroup (QObject *parent=nullptr) | |
| Fact * | roll () |
| Fact * | pitch () |
| Fact * | heading () |
| Fact * | rollRate () |
| Fact * | pitchRate () |
| Fact * | yawRate () |
| Fact * | airSpeed () |
| Fact * | airSpeedSetpoint () |
| Fact * | groundSpeed () |
| Fact * | climbRate () |
| Fact * | altitudeRelative () |
| Fact * | altitudeAMSL () |
| Fact * | altitudeAboveTerr () |
| Fact * | altitudeTuning () |
| Fact * | altitudeTuningSetpoint () |
| Fact * | xTrackError () |
| Fact * | rangeFinderDist () |
| Fact * | flightDistance () |
| Fact * | distanceToHome () |
| Fact * | timeToHome () |
| Fact * | missionItemIndex () |
| Fact * | headingToNextWP () |
| Fact * | distanceToNextWP () |
| Fact * | headingToHome () |
| Fact * | headingFromHome () |
| Fact * | headingFromGCS () |
| Fact * | distanceToGCS () |
| Fact * | hobbs () |
| Fact * | throttlePct () |
| Fact * | imuTemp () |
| Fact * | rcRSSI () |
| void | handleMessage (Vehicle *vehicle, const mavlink_message_t &message) override |
| Allows a FactGroup to parse incoming messages and fill in values. | |
| void | updateRCRSSI (uint8_t rssi) |
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 |
Protected Member Functions | |
| void | _handleAttitude (Vehicle *vehicle, const mavlink_message_t &message) |
| void | _handleAttitudeQuaternion (Vehicle *vehicle, const mavlink_message_t &message) |
| void | _handleAltitude (const mavlink_message_t &message) |
| void | _handleVfrHud (const mavlink_message_t &message) |
| void | _handleRawImuTemp (const mavlink_message_t &message) |
| void | _handleNavControllerOutput (const mavlink_message_t &message) |
| void | _handleRangefinder (const mavlink_message_t &message) |
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) |
Additional Inherited Members | |
Signals inherited from FactGroup | |
| void | factNamesChanged () |
| void | factGroupNamesChanged () |
| void | telemetryAvailableChanged (bool telemetryAvailable) |
Protected Slots inherited from FactGroup | |
| virtual void | _updateAllValues () |
Definition at line 5 of file VehicleFactGroup.h.
|
explicit |
Definition at line 10 of file VehicleFactGroup.cc.
References FactGroup::_addFact(), _airSpeedFact, _airSpeedSetpointFact, _altitudeAboveTerrFact, _altitudeAMSLFact, _altitudeRelativeFact, _altitudeTuningFact, _altitudeTuningSetpointFact, _climbRateFact, _distanceToGCSFact, _distanceToHomeFact, _distanceToNextWPFact, _flightDistanceFact, _flightTimeFact, _groundSpeedFact, _headingFact, _headingFromGCSFact, _headingFromHomeFact, _headingToHomeFact, _headingToNextWPFact, _hobbsFact, _imuTempFact, _missionItemIndexFact, _pitchFact, _pitchRateFact, _rangeFinderDistFact, _rcRSSIFact, _rollFact, _rollRateFact, _throttlePctFact, _timeToHomeFact, _xTrackErrorFact, _yawRateFact, and Fact::setRawValue().
|
protected |
Definition at line 149 of file VehicleFactGroup.cc.
References _altitudeMessageAvailable, FactGroup::_setTelemetryAvailable(), altitudeAMSL(), altitudeRelative(), and Fact::setRawValue().
Referenced by handleMessage().
|
protected |
Definition at line 131 of file VehicleFactGroup.cc.
References FactGroup::_setTelemetryAvailable(), Vehicle::compId(), and Vehicle::id().
Referenced by handleMessage().
|
protected |
Definition at line 162 of file VehicleFactGroup.cc.
References FactGroup::_setTelemetryAvailable(), Vehicle::compId(), Vehicle::id(), pitchRate(), rollRate(), Fact::setRawValue(), and yawRate().
Referenced by handleMessage().
|
protected |
Definition at line 197 of file VehicleFactGroup.cc.
References _airSpeedFact, _altitudeTuningFact, FactGroup::_setTelemetryAvailable(), airSpeedSetpoint(), altitudeTuningSetpoint(), distanceToNextWP(), Fact::rawValue(), Fact::setRawValue(), and xTrackError().
Referenced by handleMessage().
|
protected |
Definition at line 241 of file VehicleFactGroup.cc.
References FactGroup::_setTelemetryAvailable(), rangeFinderDist(), and Fact::setRawValue().
Referenced by handleMessage().
|
protected |
Definition at line 230 of file VehicleFactGroup.cc.
References FactGroup::_setTelemetryAvailable(), imuTemp(), and Fact::setRawValue().
Referenced by handleMessage().
|
protected |
Definition at line 210 of file VehicleFactGroup.cc.
References _altitudeTuningOffset, _distanceToHomeFact, FactGroup::_setTelemetryAvailable(), airSpeed(), altitudeTuning(), climbRate(), Fact::cookedValue(), groundSpeed(), Fact::setRawValue(), throttlePct(), and timeToHome().
Referenced by handleMessage().
|
inline |
Definition at line 49 of file VehicleFactGroup.h.
References _airSpeedFact.
Referenced by _handleVfrHud().
|
inline |
Definition at line 50 of file VehicleFactGroup.h.
References _airSpeedSetpointFact.
Referenced by _handleNavControllerOutput().
|
inline |
Definition at line 55 of file VehicleFactGroup.h.
References _altitudeAboveTerrFact.
|
inline |
Definition at line 54 of file VehicleFactGroup.h.
References _altitudeAMSLFact.
Referenced by _handleAltitude(), APMFirmwarePlugin::guidedModeGotoLocation(), PX4FirmwarePlugin::guidedModeGotoLocation(), and PX4FirmwarePlugin::guidedModeTakeoff().
|
inline |
Definition at line 53 of file VehicleFactGroup.h.
References _altitudeRelativeFact.
Referenced by _handleAltitude(), APMFirmwarePlugin::guidedModeChangeAltitude(), PX4FirmwarePlugin::guidedModeChangeAltitude(), APMFirmwarePlugin::guidedModeGotoLocation(), Vehicle::guidedModeTakeoff(), and TerrainQueryCoordinator::updateAltAboveTerrain().
|
inline |
Definition at line 56 of file VehicleFactGroup.h.
References _altitudeTuningFact.
Referenced by _handleVfrHud().
|
inline |
Definition at line 57 of file VehicleFactGroup.h.
References _altitudeTuningSetpointFact.
Referenced by _handleNavControllerOutput().
|
inline |
Definition at line 52 of file VehicleFactGroup.h.
References _climbRateFact.
Referenced by _handleVfrHud().
|
inline |
Definition at line 69 of file VehicleFactGroup.h.
References _distanceToGCSFact.
|
inline |
Definition at line 61 of file VehicleFactGroup.h.
References _distanceToHomeFact.
|
inline |
Definition at line 65 of file VehicleFactGroup.h.
References _distanceToNextWPFact.
Referenced by _handleNavControllerOutput().
|
inline |
Definition at line 60 of file VehicleFactGroup.h.
References _flightDistanceFact.
|
inline |
Definition at line 51 of file VehicleFactGroup.h.
References _groundSpeedFact.
Referenced by _handleVfrHud().
|
overridevirtual |
Allows a FactGroup to parse incoming messages and fill in values.
Reimplemented from FactGroup.
Definition at line 79 of file VehicleFactGroup.cc.
References _handleAltitude(), _handleAttitude(), _handleAttitudeQuaternion(), _handleNavControllerOutput(), _handleRangefinder(), _handleRawImuTemp(), and _handleVfrHud().
|
inline |
Definition at line 45 of file VehicleFactGroup.h.
References _headingFact.
Referenced by GimbalController::gimbalOnScreenControl(), and APMFirmwarePlugin::guidedModeChangeHeading().
|
inline |
Definition at line 68 of file VehicleFactGroup.h.
References _headingFromGCSFact.
|
inline |
Definition at line 67 of file VehicleFactGroup.h.
References _headingFromHomeFact.
|
inline |
Definition at line 66 of file VehicleFactGroup.h.
References _headingToHomeFact.
|
inline |
Definition at line 64 of file VehicleFactGroup.h.
References _headingToNextWPFact.
|
inline |
Definition at line 70 of file VehicleFactGroup.h.
References _hobbsFact.
|
inline |
Definition at line 72 of file VehicleFactGroup.h.
References _imuTempFact.
Referenced by _handleRawImuTemp().
|
inline |
Definition at line 63 of file VehicleFactGroup.h.
References _missionItemIndexFact.
|
inline |
Definition at line 44 of file VehicleFactGroup.h.
References _pitchFact.
Referenced by Vehicle::sendJoystickDataThreadSafe(), and Vehicle::virtualTabletJoystickValue().
|
inline |
Definition at line 47 of file VehicleFactGroup.h.
References _pitchRateFact.
Referenced by _handleAttitudeQuaternion().
|
inline |
Definition at line 59 of file VehicleFactGroup.h.
References _rangeFinderDistFact.
Referenced by _handleRangefinder().
|
inline |
Definition at line 73 of file VehicleFactGroup.h.
References _rcRSSIFact.
|
inline |
Definition at line 43 of file VehicleFactGroup.h.
References _rollFact.
Referenced by Vehicle::sendJoystickDataThreadSafe(), and Vehicle::virtualTabletJoystickValue().
|
inline |
Definition at line 46 of file VehicleFactGroup.h.
References _rollRateFact.
Referenced by _handleAttitudeQuaternion().
|
inline |
Definition at line 71 of file VehicleFactGroup.h.
References _throttlePctFact.
Referenced by _handleVfrHud().
|
inline |
Definition at line 62 of file VehicleFactGroup.h.
References _timeToHomeFact.
Referenced by _handleVfrHud().
| void VehicleFactGroup::updateRCRSSI | ( | uint8_t | rssi | ) |
Write a raw RSSI sample (0-100, or 255 for invalid) through the low-pass filter into the rcRSSI Fact. Called by Vehicle when an RC_CHANNELS message arrives.
Definition at line 52 of file VehicleFactGroup.cc.
References _rcRSSIFact, Fact::rawValue(), and Fact::setRawValue().
|
inline |
Definition at line 58 of file VehicleFactGroup.h.
References _xTrackErrorFact.
Referenced by _handleNavControllerOutput().
|
inline |
Definition at line 48 of file VehicleFactGroup.h.
References _yawRateFact.
Referenced by _handleAttitudeQuaternion().
|
protected |
Definition at line 99 of file VehicleFactGroup.h.
Referenced by _handleNavControllerOutput(), airSpeed(), and VehicleFactGroup().
|
protected |
Definition at line 100 of file VehicleFactGroup.h.
Referenced by airSpeedSetpoint(), and VehicleFactGroup().
|
protected |
Definition at line 104 of file VehicleFactGroup.h.
Referenced by altitudeAboveTerr(), and VehicleFactGroup().
|
protected |
Definition at line 103 of file VehicleFactGroup.h.
Referenced by altitudeAMSL(), and VehicleFactGroup().
|
protected |
Definition at line 128 of file VehicleFactGroup.h.
Referenced by _handleAltitude().
|
protected |
Definition at line 102 of file VehicleFactGroup.h.
Referenced by altitudeRelative(), and VehicleFactGroup().
|
protected |
Definition at line 105 of file VehicleFactGroup.h.
Referenced by _handleNavControllerOutput(), altitudeTuning(), Vehicle::setPIDTuningTelemetryMode(), and VehicleFactGroup().
|
protected |
Definition at line 125 of file VehicleFactGroup.h.
Referenced by _handleVfrHud().
|
protected |
Definition at line 106 of file VehicleFactGroup.h.
Referenced by altitudeTuningSetpoint(), Vehicle::setPIDTuningTelemetryMode(), and VehicleFactGroup().
|
protected |
Definition at line 101 of file VehicleFactGroup.h.
Referenced by climbRate(), and VehicleFactGroup().
|
protected |
Definition at line 119 of file VehicleFactGroup.h.
Referenced by distanceToGCS(), and VehicleFactGroup().
|
protected |
Definition at line 111 of file VehicleFactGroup.h.
Referenced by _handleVfrHud(), distanceToHome(), and VehicleFactGroup().
|
protected |
Definition at line 115 of file VehicleFactGroup.h.
Referenced by distanceToNextWP(), and VehicleFactGroup().
|
protected |
Definition at line 109 of file VehicleFactGroup.h.
Referenced by flightDistance(), Vehicle::updateFlightDistance(), and VehicleFactGroup().
|
protected |
Definition at line 110 of file VehicleFactGroup.h.
Referenced by VehicleFactGroup().
|
protected |
Definition at line 98 of file VehicleFactGroup.h.
Referenced by groundSpeed(), and VehicleFactGroup().
|
protected |
Definition at line 94 of file VehicleFactGroup.h.
Referenced by heading(), and VehicleFactGroup().
|
protected |
Definition at line 118 of file VehicleFactGroup.h.
Referenced by headingFromGCS(), and VehicleFactGroup().
|
protected |
Definition at line 117 of file VehicleFactGroup.h.
Referenced by headingFromHome(), and VehicleFactGroup().
|
protected |
Definition at line 116 of file VehicleFactGroup.h.
Referenced by headingToHome(), and VehicleFactGroup().
|
protected |
Definition at line 114 of file VehicleFactGroup.h.
Referenced by headingToNextWP(), and VehicleFactGroup().
|
protected |
Definition at line 120 of file VehicleFactGroup.h.
Referenced by hobbs(), and VehicleFactGroup().
|
protected |
Definition at line 122 of file VehicleFactGroup.h.
Referenced by imuTemp(), and VehicleFactGroup().
|
protected |
Definition at line 113 of file VehicleFactGroup.h.
Referenced by missionItemIndex(), and VehicleFactGroup().
|
protected |
Definition at line 93 of file VehicleFactGroup.h.
Referenced by pitch(), and VehicleFactGroup().
|
protected |
Definition at line 96 of file VehicleFactGroup.h.
Referenced by pitchRate(), and VehicleFactGroup().
|
protected |
Definition at line 108 of file VehicleFactGroup.h.
Referenced by rangeFinderDist(), and VehicleFactGroup().
|
protected |
Definition at line 123 of file VehicleFactGroup.h.
Referenced by rcRSSI(), updateRCRSSI(), and VehicleFactGroup().
|
protected |
Definition at line 92 of file VehicleFactGroup.h.
Referenced by roll(), and VehicleFactGroup().
|
protected |
Definition at line 95 of file VehicleFactGroup.h.
Referenced by rollRate(), and VehicleFactGroup().
|
protected |
Definition at line 121 of file VehicleFactGroup.h.
Referenced by throttlePct(), and VehicleFactGroup().
|
protected |
Definition at line 112 of file VehicleFactGroup.h.
Referenced by timeToHome(), and VehicleFactGroup().
|
protected |
Definition at line 107 of file VehicleFactGroup.h.
Referenced by VehicleFactGroup(), and xTrackError().
|
protected |
Definition at line 97 of file VehicleFactGroup.h.
Referenced by VehicleFactGroup(), and yawRate().