diff --git a/src/AutoPilotPlugins/PX4/SensorsComponentController.cc b/src/AutoPilotPlugins/PX4/SensorsComponentController.cc index ebeec5f5e337f5282f35fe3616d85d11d08c06ed..6a5a73b958e7b7ba25e01f377cc0295a021ea19c 100644 --- a/src/AutoPilotPlugins/PX4/SensorsComponentController.cc +++ b/src/AutoPilotPlugins/PX4/SensorsComponentController.cc @@ -39,6 +39,7 @@ SensorsComponentController::SensorsComponentController(void) : _gyroButton(NULL), _accelButton(NULL), _airspeedButton(NULL), + _levelButton(NULL), _cancelButton(NULL), _showOrientationCalArea(false), _gyroCalInProgress(false), @@ -106,6 +107,7 @@ void SensorsComponentController::_startVisualCalibration(void) _gyroButton->setEnabled(false); _accelButton->setEnabled(false); _airspeedButton->setEnabled(false); + _levelButton->setEnabled(false); _cancelButton->setEnabled(true); _progressBar->setProperty("value", 0); @@ -119,6 +121,7 @@ void SensorsComponentController::_stopCalibration(SensorsComponentController::St _gyroButton->setEnabled(true); _accelButton->setEnabled(true); _airspeedButton->setEnabled(true); + _levelButton->setEnabled(true); _cancelButton->setEnabled(false); if (code == StopCalibrationSuccess) { @@ -439,4 +442,4 @@ void SensorsComponentController::cancelCalibration(void) emit waitingForCancelChanged(); _cancelButton->setEnabled(false); _uas->stopCalibration(); -} \ No newline at end of file +} diff --git a/src/AutoPilotPlugins/PX4/SensorsComponentController.h b/src/AutoPilotPlugins/PX4/SensorsComponentController.h index 41a17e486aa743747187f48ad18dc1dcc24c0be2..985b33661eb09ccbe2d1defb1165fec500ec6f15 100644 --- a/src/AutoPilotPlugins/PX4/SensorsComponentController.h +++ b/src/AutoPilotPlugins/PX4/SensorsComponentController.h @@ -50,6 +50,7 @@ public: Q_PROPERTY(QQuickItem* gyroButton MEMBER _gyroButton) Q_PROPERTY(QQuickItem* accelButton MEMBER _accelButton) Q_PROPERTY(QQuickItem* airspeedButton MEMBER _airspeedButton) + Q_PROPERTY(QQuickItem* levelButton MEMBER _levelButton) Q_PROPERTY(QQuickItem* cancelButton MEMBER _cancelButton) Q_PROPERTY(QQuickItem* orientationCalAreaHelpText MEMBER _orientationCalAreaHelpText) @@ -127,6 +128,7 @@ private: QQuickItem* _gyroButton; QQuickItem* _accelButton; QQuickItem* _airspeedButton; + QQuickItem* _levelButton; QQuickItem* _cancelButton; QQuickItem* _orientationCalAreaHelpText;