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

#include <VehicleGPSFactGroup.h>

+ Inheritance diagram for VehicleGPSFactGroup:
+ Collaboration diagram for VehicleGPSFactGroup:

Signals

void gnssIntegrityReceived ()
 
- Signals inherited from FactGroup
void factNamesChanged ()
 
void factGroupNamesChanged ()
 
void telemetryAvailableChanged (bool telemetryAvailable)
 

Public Member Functions

 VehicleGPSFactGroup (QObject *parent=nullptr)
 
Factlat ()
 
Factlon ()
 
Factmgrs ()
 
Facthdop ()
 
Factvdop ()
 
FactcourseOverGround ()
 
Factyaw ()
 
Factcount ()
 
Factlock ()
 
FactsystemErrors ()
 
FactspoofingState ()
 
FactjammingState ()
 
FactauthenticationState ()
 
FactcorrectionsQuality ()
 
FactsystemQuality ()
 
FactgnssSignalQuality ()
 
FactpostProcessingQuality ()
 
void handleMessage (Vehicle *vehicle, const mavlink_message_t &message) override
 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 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
 

Protected Member Functions

void _handleGpsRawInt (const mavlink_message_t &message)
 
void _handleHighLatency (const mavlink_message_t &message)
 
void _handleHighLatency2 (const mavlink_message_t &message)
 
void _handleGnssIntegrity (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)
 

Protected Attributes

Fact _latFact = Fact(0, QStringLiteral("lat"), FactMetaData::valueTypeDouble)
 
Fact _lonFact = Fact(0, QStringLiteral("lon"), FactMetaData::valueTypeDouble)
 
Fact _mgrsFact = Fact(0, QStringLiteral("mgrs"), FactMetaData::valueTypeString)
 
Fact _hdopFact = Fact(0, QStringLiteral("hdop"), FactMetaData::valueTypeDouble)
 
Fact _vdopFact = Fact(0, QStringLiteral("vdop"), FactMetaData::valueTypeDouble)
 
Fact _courseOverGroundFact = Fact(0, QStringLiteral("courseOverGround"), FactMetaData::valueTypeDouble)
 
Fact _yawFact = Fact(0, QStringLiteral("yaw"), FactMetaData::valueTypeDouble)
 
Fact _countFact = Fact(0, QStringLiteral("count"), FactMetaData::valueTypeInt32)
 
Fact _lockFact = Fact(0, QStringLiteral("lock"), FactMetaData::valueTypeInt32)
 
Fact _systemErrorsFact = Fact(0, QStringLiteral("systemErrors"), FactMetaData::valueTypeUint32)
 
Fact _spoofingStateFact = Fact(0, QStringLiteral("spoofingState"), FactMetaData::valueTypeUint8)
 
Fact _jammingStateFact = Fact(0, QStringLiteral("jammingState"), FactMetaData::valueTypeUint8)
 
Fact _authenticationStateFact = Fact(0, QStringLiteral("authenticationState"), FactMetaData::valueTypeUint8)
 
Fact _correctionsQualityFact = Fact(0, QStringLiteral("correctionsQuality"), FactMetaData::valueTypeUint8)
 
Fact _systemQualityFact = Fact(0, QStringLiteral("systemQuality"), FactMetaData::valueTypeUint8)
 
Fact _gnssSignalQualityFact = Fact(0, QStringLiteral("gnssSignalQuality"), FactMetaData::valueTypeUint8)
 
Fact _postProcessingQualityFact = Fact(0, QStringLiteral("postProcessingQuality"), FactMetaData::valueTypeUint8)
 
uint8_t _gnssIntegrityId {}
 
- 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

- Protected Slots inherited from FactGroup
virtual void _updateAllValues ()
 

Detailed Description

Definition at line 5 of file VehicleGPSFactGroup.h.

Constructor & Destructor Documentation

◆ VehicleGPSFactGroup()

Member Function Documentation

◆ _handleGnssIntegrity()

◆ _handleGpsRawInt()

void VehicleGPSFactGroup::_handleGpsRawInt ( const mavlink_message_t message)
protected

◆ _handleHighLatency()

void VehicleGPSFactGroup::_handleHighLatency ( const mavlink_message_t message)
protected

◆ _handleHighLatency2()

void VehicleGPSFactGroup::_handleHighLatency2 ( const mavlink_message_t message)
protected

◆ authenticationState()

Fact * VehicleGPSFactGroup::authenticationState ( )
inline

◆ correctionsQuality()

Fact * VehicleGPSFactGroup::correctionsQuality ( )
inline

Definition at line 42 of file VehicleGPSFactGroup.h.

References _correctionsQualityFact.

Referenced by _handleGnssIntegrity().

◆ count()

Fact * VehicleGPSFactGroup::count ( )
inline

Definition at line 36 of file VehicleGPSFactGroup.h.

References _countFact.

Referenced by _handleGpsRawInt(), _handleHighLatency(), and _handleHighLatency2().

◆ courseOverGround()

Fact * VehicleGPSFactGroup::courseOverGround ( )
inline

Definition at line 34 of file VehicleGPSFactGroup.h.

References _courseOverGroundFact.

Referenced by _handleGpsRawInt().

◆ gnssIntegrityReceived

void VehicleGPSFactGroup::gnssIntegrityReceived ( )
signal

◆ gnssSignalQuality()

Fact * VehicleGPSFactGroup::gnssSignalQuality ( )
inline

Definition at line 44 of file VehicleGPSFactGroup.h.

References _gnssSignalQualityFact.

Referenced by _handleGnssIntegrity().

◆ handleMessage()

void VehicleGPSFactGroup::handleMessage ( Vehicle ,
const mavlink_message_t  
)
overridevirtual

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

Reimplemented from FactGroup.

Definition at line 46 of file VehicleGPSFactGroup.cc.

References _handleGnssIntegrity(), _handleGpsRawInt(), _handleHighLatency(), and _handleHighLatency2().

◆ hdop()

Fact * VehicleGPSFactGroup::hdop ( )
inline

Definition at line 32 of file VehicleGPSFactGroup.h.

References _hdopFact.

Referenced by _handleGpsRawInt(), and _handleHighLatency2().

◆ jammingState()

Fact * VehicleGPSFactGroup::jammingState ( )
inline

◆ lat()

Fact * VehicleGPSFactGroup::lat ( )
inline

Definition at line 29 of file VehicleGPSFactGroup.h.

References _latFact.

Referenced by _handleGpsRawInt(), _handleHighLatency(), and _handleHighLatency2().

◆ lock()

Fact * VehicleGPSFactGroup::lock ( )
inline

Definition at line 37 of file VehicleGPSFactGroup.h.

References _lockFact.

Referenced by _handleGpsRawInt().

◆ lon()

Fact * VehicleGPSFactGroup::lon ( )
inline

Definition at line 30 of file VehicleGPSFactGroup.h.

References _lonFact.

Referenced by _handleGpsRawInt(), _handleHighLatency(), and _handleHighLatency2().

◆ mgrs()

Fact * VehicleGPSFactGroup::mgrs ( )
inline

Definition at line 31 of file VehicleGPSFactGroup.h.

References _mgrsFact.

Referenced by _handleGpsRawInt(), _handleHighLatency(), and _handleHighLatency2().

◆ postProcessingQuality()

Fact * VehicleGPSFactGroup::postProcessingQuality ( )
inline

Definition at line 45 of file VehicleGPSFactGroup.h.

References _postProcessingQualityFact.

Referenced by _handleGnssIntegrity().

◆ spoofingState()

Fact * VehicleGPSFactGroup::spoofingState ( )
inline

◆ systemErrors()

Fact * VehicleGPSFactGroup::systemErrors ( )
inline

Definition at line 38 of file VehicleGPSFactGroup.h.

References _systemErrorsFact.

Referenced by _handleGnssIntegrity().

◆ systemQuality()

Fact * VehicleGPSFactGroup::systemQuality ( )
inline

Definition at line 43 of file VehicleGPSFactGroup.h.

References _systemQualityFact.

Referenced by _handleGnssIntegrity().

◆ vdop()

Fact * VehicleGPSFactGroup::vdop ( )
inline

Definition at line 33 of file VehicleGPSFactGroup.h.

References _vdopFact.

Referenced by _handleGpsRawInt(), and _handleHighLatency2().

◆ yaw()

Fact * VehicleGPSFactGroup::yaw ( )
inline

Definition at line 35 of file VehicleGPSFactGroup.h.

References _yawFact.

Referenced by _handleGpsRawInt().

Member Data Documentation

◆ _authenticationStateFact

Fact VehicleGPSFactGroup::_authenticationStateFact = Fact(0, QStringLiteral("authenticationState"), FactMetaData::valueTypeUint8)
protected

Definition at line 71 of file VehicleGPSFactGroup.h.

Referenced by authenticationState(), and VehicleGPSFactGroup().

◆ _correctionsQualityFact

Fact VehicleGPSFactGroup::_correctionsQualityFact = Fact(0, QStringLiteral("correctionsQuality"), FactMetaData::valueTypeUint8)
protected

Definition at line 72 of file VehicleGPSFactGroup.h.

Referenced by correctionsQuality(), and VehicleGPSFactGroup().

◆ _countFact

Fact VehicleGPSFactGroup::_countFact = Fact(0, QStringLiteral("count"), FactMetaData::valueTypeInt32)
protected

Definition at line 66 of file VehicleGPSFactGroup.h.

Referenced by count(), and VehicleGPSFactGroup().

◆ _courseOverGroundFact

Fact VehicleGPSFactGroup::_courseOverGroundFact = Fact(0, QStringLiteral("courseOverGround"), FactMetaData::valueTypeDouble)
protected

Definition at line 64 of file VehicleGPSFactGroup.h.

Referenced by courseOverGround(), and VehicleGPSFactGroup().

◆ _gnssIntegrityId

uint8_t VehicleGPSFactGroup::_gnssIntegrityId {}
protected

◆ _gnssSignalQualityFact

Fact VehicleGPSFactGroup::_gnssSignalQualityFact = Fact(0, QStringLiteral("gnssSignalQuality"), FactMetaData::valueTypeUint8)
protected

Definition at line 74 of file VehicleGPSFactGroup.h.

Referenced by gnssSignalQuality(), and VehicleGPSFactGroup().

◆ _hdopFact

Fact VehicleGPSFactGroup::_hdopFact = Fact(0, QStringLiteral("hdop"), FactMetaData::valueTypeDouble)
protected

Definition at line 62 of file VehicleGPSFactGroup.h.

Referenced by hdop(), and VehicleGPSFactGroup().

◆ _jammingStateFact

Fact VehicleGPSFactGroup::_jammingStateFact = Fact(0, QStringLiteral("jammingState"), FactMetaData::valueTypeUint8)
protected

Definition at line 70 of file VehicleGPSFactGroup.h.

Referenced by jammingState(), and VehicleGPSFactGroup().

◆ _latFact

Fact VehicleGPSFactGroup::_latFact = Fact(0, QStringLiteral("lat"), FactMetaData::valueTypeDouble)
protected

Definition at line 59 of file VehicleGPSFactGroup.h.

Referenced by lat(), and VehicleGPSFactGroup().

◆ _lockFact

Fact VehicleGPSFactGroup::_lockFact = Fact(0, QStringLiteral("lock"), FactMetaData::valueTypeInt32)
protected

Definition at line 67 of file VehicleGPSFactGroup.h.

Referenced by lock(), and VehicleGPSFactGroup().

◆ _lonFact

Fact VehicleGPSFactGroup::_lonFact = Fact(0, QStringLiteral("lon"), FactMetaData::valueTypeDouble)
protected

Definition at line 60 of file VehicleGPSFactGroup.h.

Referenced by lon(), and VehicleGPSFactGroup().

◆ _mgrsFact

Fact VehicleGPSFactGroup::_mgrsFact = Fact(0, QStringLiteral("mgrs"), FactMetaData::valueTypeString)
protected

Definition at line 61 of file VehicleGPSFactGroup.h.

Referenced by mgrs(), and VehicleGPSFactGroup().

◆ _postProcessingQualityFact

Fact VehicleGPSFactGroup::_postProcessingQualityFact = Fact(0, QStringLiteral("postProcessingQuality"), FactMetaData::valueTypeUint8)
protected

Definition at line 75 of file VehicleGPSFactGroup.h.

Referenced by postProcessingQuality(), and VehicleGPSFactGroup().

◆ _spoofingStateFact

Fact VehicleGPSFactGroup::_spoofingStateFact = Fact(0, QStringLiteral("spoofingState"), FactMetaData::valueTypeUint8)
protected

Definition at line 69 of file VehicleGPSFactGroup.h.

Referenced by spoofingState(), and VehicleGPSFactGroup().

◆ _systemErrorsFact

Fact VehicleGPSFactGroup::_systemErrorsFact = Fact(0, QStringLiteral("systemErrors"), FactMetaData::valueTypeUint32)
protected

Definition at line 68 of file VehicleGPSFactGroup.h.

Referenced by systemErrors(), and VehicleGPSFactGroup().

◆ _systemQualityFact

Fact VehicleGPSFactGroup::_systemQualityFact = Fact(0, QStringLiteral("systemQuality"), FactMetaData::valueTypeUint8)
protected

Definition at line 73 of file VehicleGPSFactGroup.h.

Referenced by systemQuality(), and VehicleGPSFactGroup().

◆ _vdopFact

Fact VehicleGPSFactGroup::_vdopFact = Fact(0, QStringLiteral("vdop"), FactMetaData::valueTypeDouble)
protected

Definition at line 63 of file VehicleGPSFactGroup.h.

Referenced by vdop(), and VehicleGPSFactGroup().

◆ _yawFact

Fact VehicleGPSFactGroup::_yawFact = Fact(0, QStringLiteral("yaw"), FactMetaData::valueTypeDouble)
protected

Definition at line 65 of file VehicleGPSFactGroup.h.

Referenced by VehicleGPSFactGroup(), and yaw().


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