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

Sensors Component MVC Controller for SensorsComponent.qml. More...

#include <SensorsComponentController.h>

+ Inheritance diagram for SensorsComponentController:
+ Collaboration diagram for SensorsComponentController:

Public Types

enum  SideCalState { SideCalStateIdle , SideCalStateIncomplete , SideCalStateInProgress , SideCalStateCompleted }
 

Signals

void showGyroCalAreaChanged (void)
 
void showOrientationCalAreaChanged (void)
 
void orientationCalSidesStateChanged (void)
 
void orientationCalSidesVisibleChanged (void)
 
void resetStatusTextArea (void)
 
void waitingForCancelChanged (void)
 
void magCalComplete (void)
 
void calibrationActiveChanged (void)
 
- Signals inherited from FactPanelController
void missingParametersAvailable ()
 

Public Member Functions

 SensorsComponentController (void)
 
Q_INVOKABLE void calibrateCompass (void)
 
Q_INVOKABLE void calibrateGyro (void)
 
Q_INVOKABLE void calibrateAccel (void)
 
Q_INVOKABLE void calibrateLevel (void)
 
Q_INVOKABLE void calibrateAirspeed (void)
 
Q_INVOKABLE void cancelCalibration (void)
 
Q_INVOKABLE bool usingUDPLink (void)
 
Q_INVOKABLE void resetFactoryParameters ()
 
Q_INVOKABLE void resetSidesToIdle (void)
 
bool calibrationActive () const
 
- Public Member Functions inherited from FactPanelController
 FactPanelController (QObject *parent=nullptr)
 
virtual ~FactPanelController ()
 
Q_INVOKABLE FactgetParameterFact (int componentId, const QString &name, bool reportMissing=true) const
 
Q_INVOKABLE bool parameterExists (int componentId, const QString &name) const
 
Q_INVOKABLE void getMissingParameters (const QStringList &rgNames)
 

Additional Inherited Members

- Protected Member Functions inherited from FactPanelController
bool _allParametersExists (int componentId, const QStringList &names) const
 
void _reportMissingParameter (int componentId, const QString &name) const
 Report a missing parameter.
 
- Protected Attributes inherited from FactPanelController
Vehicle_vehicle = nullptr
 

Detailed Description

Sensors Component MVC Controller for SensorsComponent.qml.

Definition at line 10 of file SensorsComponentController.h.

Member Enumeration Documentation

◆ SideCalState

Calibration state of a single orientation side shown in the preview. Values must stay in sync with the VehicleRotationCal.CalState QML enum.

Enumerator
SideCalStateIdle 

No calibration data to show (neutral preview)

SideCalStateIncomplete 

Calibration running, side not yet calibrated.

SideCalStateInProgress 

Side actively being calibrated.

SideCalStateCompleted 

Side calibration complete.

Definition at line 19 of file SensorsComponentController.h.

Constructor & Destructor Documentation

◆ SensorsComponentController()

SensorsComponentController::SensorsComponentController ( void  )

Member Function Documentation

◆ calibrateAccel()

void SensorsComponentController::calibrateAccel ( void  )

◆ calibrateAirspeed()

void SensorsComponentController::calibrateAirspeed ( void  )

◆ calibrateCompass()

void SensorsComponentController::calibrateCompass ( void  )

◆ calibrateGyro()

void SensorsComponentController::calibrateGyro ( void  )

◆ calibrateLevel()

void SensorsComponentController::calibrateLevel ( void  )

◆ calibrationActive()

bool SensorsComponentController::calibrationActive ( ) const
inline

Definition at line 63 of file SensorsComponentController.h.

Referenced by resetSidesToIdle().

◆ calibrationActiveChanged

void SensorsComponentController::calibrationActiveChanged ( void  )
signal

◆ cancelCalibration()

void SensorsComponentController::cancelCalibration ( void  )

◆ magCalComplete

void SensorsComponentController::magCalComplete ( void  )
signal

◆ orientationCalSidesStateChanged

void SensorsComponentController::orientationCalSidesStateChanged ( void  )
signal

◆ orientationCalSidesVisibleChanged

void SensorsComponentController::orientationCalSidesVisibleChanged ( void  )
signal

◆ resetFactoryParameters()

void SensorsComponentController::resetFactoryParameters ( )

◆ resetSidesToIdle()

void SensorsComponentController::resetSidesToIdle ( void  )

Returns the orientation preview side indicators to the neutral Idle state. Called when the preview switches to a different sensor so completion state from a previous calibration doesn't carry over.

Definition at line 80 of file SensorsComponentController.cc.

References calibrationActive(), and SideCalStateIdle.

◆ resetStatusTextArea

void SensorsComponentController::resetStatusTextArea ( void  )
signal

◆ showGyroCalAreaChanged

void SensorsComponentController::showGyroCalAreaChanged ( void  )
signal

◆ showOrientationCalAreaChanged

void SensorsComponentController::showOrientationCalAreaChanged ( void  )
signal

◆ usingUDPLink()

bool SensorsComponentController::usingUDPLink ( void  )

◆ waitingForCancelChanged

void SensorsComponentController::waitingForCancelChanged ( void  )
signal

Referenced by cancelCalibration().


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