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

#include <VehicleDistanceSensorFactGroup.h>

Inheritance diagram for VehicleDistanceSensorFactGroup:
Collaboration diagram for VehicleDistanceSensorFactGroup:

Public Member Functions

 VehicleDistanceSensorFactGroup (QObject *parent=nullptr)
Fact * rotationNone ()
Fact * rotationYaw45 ()
Fact * rotationYaw90 ()
Fact * rotationYaw135 ()
Fact * rotationYaw180 ()
Fact * rotationYaw225 ()
Fact * rotationYaw270 ()
Fact * rotationYaw315 ()
Fact * rotationPitch90 ()
Fact * rotationPitch270 ()
Fact * minDistance ()
Fact * maxDistance ()
void handleMessage (Vehicle *vehicle, const mavlink_message_t &message) final
 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 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

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 5 of file VehicleDistanceSensorFactGroup.h.

Constructor & Destructor Documentation

◆ VehicleDistanceSensorFactGroup()

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

Member Function Documentation

◆ handleMessage()

void VehicleDistanceSensorFactGroup::handleMessage ( Vehicle * ,
const mavlink_message_t &  )
finalvirtual

◆ maxDistance()

Fact * VehicleDistanceSensorFactGroup::maxDistance ( )
inline

Definition at line 35 of file VehicleDistanceSensorFactGroup.h.

Referenced by handleMessage().

◆ minDistance()

Fact * VehicleDistanceSensorFactGroup::minDistance ( )
inline

Definition at line 34 of file VehicleDistanceSensorFactGroup.h.

Referenced by handleMessage().

◆ rotationNone()

Fact * VehicleDistanceSensorFactGroup::rotationNone ( )
inline

Definition at line 24 of file VehicleDistanceSensorFactGroup.h.

Referenced by handleMessage().

◆ rotationPitch270()

Fact * VehicleDistanceSensorFactGroup::rotationPitch270 ( )
inline

Definition at line 33 of file VehicleDistanceSensorFactGroup.h.

Referenced by handleMessage().

◆ rotationPitch90()

Fact * VehicleDistanceSensorFactGroup::rotationPitch90 ( )
inline

Definition at line 32 of file VehicleDistanceSensorFactGroup.h.

Referenced by handleMessage().

◆ rotationYaw135()

Fact * VehicleDistanceSensorFactGroup::rotationYaw135 ( )
inline

Definition at line 27 of file VehicleDistanceSensorFactGroup.h.

Referenced by handleMessage().

◆ rotationYaw180()

Fact * VehicleDistanceSensorFactGroup::rotationYaw180 ( )
inline

Definition at line 28 of file VehicleDistanceSensorFactGroup.h.

Referenced by handleMessage().

◆ rotationYaw225()

Fact * VehicleDistanceSensorFactGroup::rotationYaw225 ( )
inline

Definition at line 29 of file VehicleDistanceSensorFactGroup.h.

Referenced by handleMessage().

◆ rotationYaw270()

Fact * VehicleDistanceSensorFactGroup::rotationYaw270 ( )
inline

Definition at line 30 of file VehicleDistanceSensorFactGroup.h.

Referenced by handleMessage().

◆ rotationYaw315()

Fact * VehicleDistanceSensorFactGroup::rotationYaw315 ( )
inline

Definition at line 31 of file VehicleDistanceSensorFactGroup.h.

Referenced by handleMessage().

◆ rotationYaw45()

Fact * VehicleDistanceSensorFactGroup::rotationYaw45 ( )
inline

Definition at line 25 of file VehicleDistanceSensorFactGroup.h.

Referenced by handleMessage().

◆ rotationYaw90()

Fact * VehicleDistanceSensorFactGroup::rotationYaw90 ( )
inline

Definition at line 26 of file VehicleDistanceSensorFactGroup.h.

Referenced by handleMessage().


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