|
QGroundControl
Ground Control Station for MAVLink Drones
|
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 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) |
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 |
Sensors Component MVC Controller for SensorsComponent.qml.
Definition at line 10 of file SensorsComponentController.h.
Calibration state of a single orientation side shown in the preview. Values must stay in sync with the VehicleRotationCal.CalState QML enum.
Definition at line 19 of file SensorsComponentController.h.
| SensorsComponentController::SensorsComponentController | ( | void | ) |
Definition at line 10 of file SensorsComponentController.cc.
References Vehicle::sensorsParametersResetAck().
| void SensorsComponentController::calibrateAccel | ( | void | ) |
Definition at line 165 of file SensorsComponentController.cc.
References FactPanelController::_vehicle, QGCMAVLink::CalibrationAccel, and Vehicle::startCalibration().
| void SensorsComponentController::calibrateAirspeed | ( | void | ) |
Definition at line 177 of file SensorsComponentController.cc.
References FactPanelController::_vehicle, QGCMAVLink::CalibrationPX4Airspeed, and Vehicle::startCalibration().
| void SensorsComponentController::calibrateCompass | ( | void | ) |
Definition at line 159 of file SensorsComponentController.cc.
References FactPanelController::_vehicle, QGCMAVLink::CalibrationMag, and Vehicle::startCalibration().
| void SensorsComponentController::calibrateGyro | ( | void | ) |
Definition at line 153 of file SensorsComponentController.cc.
References FactPanelController::_vehicle, QGCMAVLink::CalibrationGyro, and Vehicle::startCalibration().
| void SensorsComponentController::calibrateLevel | ( | void | ) |
Definition at line 171 of file SensorsComponentController.cc.
References FactPanelController::_vehicle, QGCMAVLink::CalibrationLevel, and Vehicle::startCalibration().
|
inline |
Definition at line 63 of file SensorsComponentController.h.
Referenced by resetSidesToIdle().
|
signal |
| void SensorsComponentController::cancelCalibration | ( | void | ) |
Definition at line 396 of file SensorsComponentController.cc.
References FactPanelController::_vehicle, Vehicle::stopCalibration(), and waitingForCancelChanged().
|
signal |
|
signal |
|
signal |
| void SensorsComponentController::resetFactoryParameters | ( | ) |
Definition at line 419 of file SensorsComponentController.cc.
References FactPanelController::_vehicle, Vehicle::defaultComponentId(), and Vehicle::sendMavCommand().
| 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.
|
signal |
|
signal |
|
signal |
| bool SensorsComponentController::usingUDPLink | ( | void | ) |
Definition at line 38 of file SensorsComponentController.cc.
References FactPanelController::_vehicle, VehicleLinkManager::primaryLink(), LinkConfiguration::TypeUdp, and Vehicle::vehicleLinkManager().
|
signal |
Referenced by cancelCalibration().