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

#include <Gimbal.h>

+ Inheritance diagram for Gimbal:
+ Collaboration diagram for Gimbal:

Signals

void pitchRateChanged ()
 
void yawRateChanged ()
 
void yawLockChanged ()
 
void retractedChanged ()
 
void gimbalHaveControlChanged ()
 
void gimbalOthersHaveControlChanged ()
 
void capabilityFlagsChanged ()
 
- Signals inherited from FactGroup
void factNamesChanged ()
 
void factGroupNamesChanged ()
 
void telemetryAvailableChanged (bool telemetryAvailable)
 

Public Member Functions

 Gimbal (GimbalController *parent)
 
 Gimbal (const Gimbal &other)
 
const Gimbaloperator= (const Gimbal &other)
 
 ~Gimbal ()
 
FactabsoluteRoll ()
 
FactabsolutePitch ()
 
FactbodyYaw ()
 
FactabsoluteYaw ()
 
FactdeviceId ()
 
FactmanagerCompid ()
 
float pitchRate () const
 
float yawRate () const
 
bool yawLock () const
 
bool retracted () const
 
bool gimbalHaveControl () const
 
bool gimbalOthersHaveControl () const
 
void setAbsoluteRoll (float absRoll)
 
void setAbsolutePitch (float absPitch)
 
void setBodyYaw (float yaw)
 
void setAbsoluteYaw (float absYaw)
 
void setDeviceId (uint id)
 
void setManagerCompid (uint id)
 
void setPitchRate (float pitchRate)
 
void setYawRate (float yawRate)
 
void setYawLock (bool yawLock)
 
void setRetracted (bool retracted)
 
void setGimbalHaveControl (bool set)
 
void setGimbalOthersHaveControl (bool set)
 
void setCapabilityFlags (uint32_t flags)
 
bool supportsRetract () const
 
bool supportsYawLock () const
 
- 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.
 

Friends

class GimbalController
 

Additional Inherited Members

- 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 8 of file Gimbal.h.

Constructor & Destructor Documentation

◆ Gimbal() [1/2]

Gimbal::Gimbal ( GimbalController parent)

Definition at line 7 of file Gimbal.cc.

◆ Gimbal() [2/2]

Gimbal::Gimbal ( const Gimbal other)

Definition at line 15 of file Gimbal.cc.

◆ ~Gimbal()

Gimbal::~Gimbal ( )

Definition at line 22 of file Gimbal.cc.

Member Function Documentation

◆ absolutePitch()

Fact * Gimbal::absolutePitch ( )
inline

◆ absoluteRoll()

Fact * Gimbal::absoluteRoll ( )
inline

Definition at line 34 of file Gimbal.h.

Referenced by setAbsoluteRoll().

◆ absoluteYaw()

Fact * Gimbal::absoluteYaw ( )
inline

Definition at line 37 of file Gimbal.h.

Referenced by GimbalController::sendPitchYawFlags(), and setAbsoluteYaw().

◆ bodyYaw()

Fact * Gimbal::bodyYaw ( )
inline

◆ capabilityFlagsChanged

void Gimbal::capabilityFlagsChanged ( )
signal

Referenced by setCapabilityFlags().

◆ deviceId()

◆ gimbalHaveControl()

bool Gimbal::gimbalHaveControl ( ) const
inline

Definition at line 45 of file Gimbal.h.

◆ gimbalHaveControlChanged

void Gimbal::gimbalHaveControlChanged ( )
signal

Referenced by setGimbalHaveControl().

◆ gimbalOthersHaveControl()

bool Gimbal::gimbalOthersHaveControl ( ) const
inline

Definition at line 46 of file Gimbal.h.

◆ gimbalOthersHaveControlChanged

void Gimbal::gimbalOthersHaveControlChanged ( )
signal

◆ managerCompid()

◆ operator=()

const Gimbal & Gimbal::operator= ( const Gimbal other)

Definition at line 27 of file Gimbal.cc.

◆ pitchRate()

float Gimbal::pitchRate ( ) const
inline

Definition at line 41 of file Gimbal.h.

Referenced by GimbalController::sendRate(), and setPitchRate().

◆ pitchRateChanged

void Gimbal::pitchRateChanged ( )
signal

Referenced by setPitchRate().

◆ retracted()

bool Gimbal::retracted ( ) const
inline

Definition at line 44 of file Gimbal.h.

Referenced by setRetracted().

◆ retractedChanged

void Gimbal::retractedChanged ( )
signal

Referenced by setRetracted().

◆ setAbsolutePitch()

void Gimbal::setAbsolutePitch ( float  absPitch)
inline

◆ setAbsoluteRoll()

void Gimbal::setAbsoluteRoll ( float  absRoll)
inline

Definition at line 48 of file Gimbal.h.

References absoluteRoll(), and Fact::setRawValue().

◆ setAbsoluteYaw()

void Gimbal::setAbsoluteYaw ( float  absYaw)
inline

Definition at line 51 of file Gimbal.h.

References absoluteYaw(), and Fact::setRawValue().

◆ setBodyYaw()

void Gimbal::setBodyYaw ( float  yaw)
inline

Definition at line 50 of file Gimbal.h.

References bodyYaw(), and Fact::setRawValue().

◆ setCapabilityFlags()

void Gimbal::setCapabilityFlags ( uint32_t  flags)

Definition at line 69 of file Gimbal.cc.

References capabilityFlagsChanged().

◆ setDeviceId()

void Gimbal::setDeviceId ( uint  id)
inline

Definition at line 52 of file Gimbal.h.

References deviceId(), and Fact::setRawValue().

◆ setGimbalHaveControl()

void Gimbal::setGimbalHaveControl ( bool  set)
inline

Definition at line 59 of file Gimbal.h.

References gimbalHaveControlChanged().

◆ setGimbalOthersHaveControl()

void Gimbal::setGimbalOthersHaveControl ( bool  set)
inline

Definition at line 60 of file Gimbal.h.

References gimbalOthersHaveControlChanged().

◆ setManagerCompid()

void Gimbal::setManagerCompid ( uint  id)
inline

Definition at line 53 of file Gimbal.h.

References managerCompid(), and Fact::setRawValue().

◆ setPitchRate()

void Gimbal::setPitchRate ( float  pitchRate)
inline

◆ setRetracted()

void Gimbal::setRetracted ( bool  retracted)
inline

Definition at line 58 of file Gimbal.h.

References retracted(), and retractedChanged().

◆ setYawLock()

void Gimbal::setYawLock ( bool  yawLock)
inline

Definition at line 57 of file Gimbal.h.

References yawLock(), and yawLockChanged().

◆ setYawRate()

void Gimbal::setYawRate ( float  yawRate)
inline

◆ supportsRetract()

bool Gimbal::supportsRetract ( ) const
inline

Definition at line 63 of file Gimbal.h.

◆ supportsYawLock()

bool Gimbal::supportsYawLock ( ) const
inline

Definition at line 64 of file Gimbal.h.

◆ yawLock()

bool Gimbal::yawLock ( ) const
inline

Definition at line 43 of file Gimbal.h.

Referenced by GimbalController::gimbalOnScreenControl(), and setYawLock().

◆ yawLockChanged

void Gimbal::yawLockChanged ( )
signal

Referenced by setYawLock().

◆ yawRate()

float Gimbal::yawRate ( ) const
inline

Definition at line 42 of file Gimbal.h.

Referenced by GimbalController::sendRate(), and setYawRate().

◆ yawRateChanged

void Gimbal::yawRateChanged ( )
signal

Referenced by setYawRate().

Friends And Related Symbol Documentation

◆ GimbalController

friend class GimbalController
friend

Definition at line 26 of file Gimbal.h.


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