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

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

#include <APMSensorsComponentController.h>

Inheritance diagram for APMSensorsComponentController:
Collaboration diagram for APMSensorsComponentController:

Signals

void showGyroCalAreaChanged ()
void showOrientationCalAreaChanged ()
void orientationCalSidesDoneChanged ()
void orientationCalSidesVisibleChanged ()
void orientationCalSidesInProgressChanged ()
void orientationCalSidesRotateChanged ()
void resetStatusTextArea ()
void waitingForCancelChanged ()
void calibrationActiveChanged ()
void setupNeededChanged ()
void calibrationComplete (QGCMAVLink::CalibrationType calType)
void compass1CalSucceededChanged (bool compass1CalSucceeded)
void compass2CalSucceededChanged (bool compass2CalSucceeded)
void compass3CalSucceededChanged (bool compass3CalSucceeded)
void compass1CalFitnessChanged (double compass1CalFitness)
void compass2CalFitnessChanged (double compass2CalFitness)
void compass3CalFitnessChanged (double compass3CalFitness)
void setAllCalButtonsEnabled (bool enabled)
Signals inherited from FactPanelController
void missingParametersAvailable ()
void suppressRebootMessageChanged ()

Public Member Functions

 APMSensorsComponentController (QObject *parent=nullptr)
 ~APMSensorsComponentController ()
Q_INVOKABLE void calibrateCompass ()
Q_INVOKABLE void calibrateAccel (bool doSimpleAccelCal)
Q_INVOKABLE void calibrateCompassNorth (float lat, float lon, int mask)
Q_INVOKABLE void calibrateGyro ()
Q_INVOKABLE void calibrateMotorInterference ()
Q_INVOKABLE void levelHorizon ()
Q_INVOKABLE void calibratePressure ()
Q_INVOKABLE void cancelCalibration ()
Q_INVOKABLE void nextClicked ()
Q_INVOKABLE bool usingUDPLink () const
bool compassSetupNeeded () const
bool accelSetupNeeded () const
bool compass1CalSucceeded () const
bool compass2CalSucceeded () const
bool compass3CalSucceeded () const
bool calibrationActive () const
double compass1CalFitness () const
double compass2CalFitness () const
double compass3CalFitness () const
Public Member Functions inherited from FactPanelController
 FactPanelController (QObject *parent=nullptr)
virtual ~FactPanelController ()
Q_INVOKABLE Fact * getParameterFact (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)
bool suppressRebootMessage () const
void setSuppressRebootMessage (bool suppress)

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 16 of file APMSensorsComponentController.h.

Constructor & Destructor Documentation

◆ APMSensorsComponentController()

◆ ~APMSensorsComponentController()

APMSensorsComponentController::~APMSensorsComponentController ( )

Definition at line 38 of file APMSensorsComponentController.cc.

Member Function Documentation

◆ accelSetupNeeded()

bool APMSensorsComponentController::accelSetupNeeded ( ) const

Definition at line 483 of file APMSensorsComponentController.cc.

◆ calibrateAccel()

◆ calibrateCompass()

◆ calibrateCompassNorth()

void APMSensorsComponentController::calibrateCompassNorth ( float lat,
float lon,
int mask )

◆ calibrateGyro()

void APMSensorsComponentController::calibrateGyro ( )

◆ calibrateMotorInterference()

void APMSensorsComponentController::calibrateMotorInterference ( )

◆ calibratePressure()

void APMSensorsComponentController::calibratePressure ( )

◆ calibrationActive()

bool APMSensorsComponentController::calibrationActive ( ) const
inline

Definition at line 94 of file APMSensorsComponentController.h.

References QGCMAVLink::CalibrationNone.

◆ calibrationActiveChanged

void APMSensorsComponentController::calibrationActiveChanged ( )
signal

◆ calibrationComplete

void APMSensorsComponentController::calibrationComplete ( QGCMAVLink::CalibrationType calType)
signal

◆ cancelCalibration()

void APMSensorsComponentController::cancelCalibration ( )

◆ compass1CalFitness()

double APMSensorsComponentController::compass1CalFitness ( ) const
inline

Definition at line 96 of file APMSensorsComponentController.h.

Referenced by compass1CalFitnessChanged().

◆ compass1CalFitnessChanged

void APMSensorsComponentController::compass1CalFitnessChanged ( double compass1CalFitness)
signal

References compass1CalFitness().

◆ compass1CalSucceeded()

bool APMSensorsComponentController::compass1CalSucceeded ( ) const
inline

Definition at line 90 of file APMSensorsComponentController.h.

Referenced by compass1CalSucceededChanged().

◆ compass1CalSucceededChanged

void APMSensorsComponentController::compass1CalSucceededChanged ( bool compass1CalSucceeded)
signal

◆ compass2CalFitness()

double APMSensorsComponentController::compass2CalFitness ( ) const
inline

Definition at line 97 of file APMSensorsComponentController.h.

Referenced by compass2CalFitnessChanged().

◆ compass2CalFitnessChanged

void APMSensorsComponentController::compass2CalFitnessChanged ( double compass2CalFitness)
signal

References compass2CalFitness().

◆ compass2CalSucceeded()

bool APMSensorsComponentController::compass2CalSucceeded ( ) const
inline

Definition at line 91 of file APMSensorsComponentController.h.

Referenced by compass2CalSucceededChanged().

◆ compass2CalSucceededChanged

void APMSensorsComponentController::compass2CalSucceededChanged ( bool compass2CalSucceeded)
signal

◆ compass3CalFitness()

double APMSensorsComponentController::compass3CalFitness ( ) const
inline

Definition at line 98 of file APMSensorsComponentController.h.

Referenced by compass3CalFitnessChanged().

◆ compass3CalFitnessChanged

void APMSensorsComponentController::compass3CalFitnessChanged ( double compass3CalFitness)
signal

References compass3CalFitness().

◆ compass3CalSucceeded()

bool APMSensorsComponentController::compass3CalSucceeded ( ) const
inline

Definition at line 92 of file APMSensorsComponentController.h.

Referenced by compass3CalSucceededChanged().

◆ compass3CalSucceededChanged

void APMSensorsComponentController::compass3CalSucceededChanged ( bool compass3CalSucceeded)
signal

◆ compassSetupNeeded()

bool APMSensorsComponentController::compassSetupNeeded ( ) const

Definition at line 478 of file APMSensorsComponentController.cc.

◆ levelHorizon()

void APMSensorsComponentController::levelHorizon ( )

◆ nextClicked()

◆ orientationCalSidesDoneChanged

void APMSensorsComponentController::orientationCalSidesDoneChanged ( )
signal

Referenced by calibrateAccel().

◆ orientationCalSidesInProgressChanged

void APMSensorsComponentController::orientationCalSidesInProgressChanged ( )
signal

Referenced by calibrateAccel().

◆ orientationCalSidesRotateChanged

void APMSensorsComponentController::orientationCalSidesRotateChanged ( )
signal

◆ orientationCalSidesVisibleChanged

void APMSensorsComponentController::orientationCalSidesVisibleChanged ( )
signal

Referenced by calibrateAccel().

◆ resetStatusTextArea

void APMSensorsComponentController::resetStatusTextArea ( )
signal

◆ setAllCalButtonsEnabled

void APMSensorsComponentController::setAllCalButtonsEnabled ( bool enabled)
signal

◆ setupNeededChanged

void APMSensorsComponentController::setupNeededChanged ( )
signal

◆ showGyroCalAreaChanged

void APMSensorsComponentController::showGyroCalAreaChanged ( )
signal

◆ showOrientationCalAreaChanged

void APMSensorsComponentController::showOrientationCalAreaChanged ( )
signal

◆ usingUDPLink()

bool APMSensorsComponentController::usingUDPLink ( ) const

◆ waitingForCancelChanged

void APMSensorsComponentController::waitingForCancelChanged ( )
signal

Referenced by cancelCalibration().


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