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

#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)
 
FactspoofingState ()
 
FactjammingState ()
 
FactauthenticationState ()
 
FactisStale ()
 
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 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
 
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
 

Detailed Description

Definition at line 19 of file VehicleGPSAggregateFactGroup.h.

Member Enumeration Documentation

◆ AuthState

Enumerator
AUTH_UNKNOWN 
AUTH_INITIALIZING 
AUTH_ERROR 
AUTH_OK 
AUTH_DISABLED 
AUTH_INVALID 

Definition at line 27 of file VehicleGPSAggregateFactGroup.h.

Constructor & Destructor Documentation

◆ VehicleGPSAggregateFactGroup()

VehicleGPSAggregateFactGroup::VehicleGPSAggregateFactGroup ( QObject *  parent = nullptr)
explicit

Definition at line 15 of file VehicleGPSAggregateFactGroup.cc.

References FactGroup::_addFact(), and Fact::setRawValue().

Member Function Documentation

◆ authenticationState()

Fact * VehicleGPSAggregateFactGroup::authenticationState ( )
inline

Definition at line 40 of file VehicleGPSAggregateFactGroup.h.

◆ bindToGps()

void VehicleGPSAggregateFactGroup::bindToGps ( VehicleGPSFactGroup gps1,
VehicleGPSFactGroup gps2 
)

◆ isStale()

Fact * VehicleGPSAggregateFactGroup::isStale ( )
inline

Definition at line 41 of file VehicleGPSAggregateFactGroup.h.

◆ jammingState()

Fact * VehicleGPSAggregateFactGroup::jammingState ( )
inline

Definition at line 39 of file VehicleGPSAggregateFactGroup.h.

◆ spoofingState()

Fact * VehicleGPSAggregateFactGroup::spoofingState ( )
inline

Definition at line 38 of file VehicleGPSAggregateFactGroup.h.

◆ updateFromGps()


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