From facc770e4155ad9a388f30d981ffa192ab17cafe Mon Sep 17 00:00:00 2001 From: Don Gagne Date: Sun, 1 Mar 2015 10:49:35 -0800 Subject: [PATCH] Catch mag/dpress calibration complete --- src/AutoPilotPlugins/PX4/SensorsComponentController.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/AutoPilotPlugins/PX4/SensorsComponentController.cc b/src/AutoPilotPlugins/PX4/SensorsComponentController.cc index 006ef8c14..dc2b53aec 100644 --- a/src/AutoPilotPlugins/PX4/SensorsComponentController.cc +++ b/src/AutoPilotPlugins/PX4/SensorsComponentController.cc @@ -232,6 +232,9 @@ void SensorsComponentController::_handleUASTextMessage(int uasId, int compId, in _progressBar->setProperty("value", 1); _updateAndEmitGyroCalInProgress(false); _refreshParams(); + } else if (text == "mag calibration: done" || text == "dpress calibration: done") { + _progressBar->setProperty("value", 1); + _refreshParams(); } else if (text.endsWith(" calibration: failed")) { QGCMessageBox::warning("Calibration", "Calibration failed. Calibration log will be displayed."); _hideAllCalAreas(); -- 2.22.0