From 664222f24cd2e41471f856966f51bcb54645d3d7 Mon Sep 17 00:00:00 2001 From: Don Gagne Date: Sun, 10 Apr 2016 12:50:21 -0700 Subject: [PATCH] Warn user of already completed side --- src/AutoPilotPlugins/PX4/SensorsComponentController.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/AutoPilotPlugins/PX4/SensorsComponentController.cc b/src/AutoPilotPlugins/PX4/SensorsComponentController.cc index 130fa45..6404700 100644 --- a/src/AutoPilotPlugins/PX4/SensorsComponentController.cc +++ b/src/AutoPilotPlugins/PX4/SensorsComponentController.cc @@ -413,6 +413,11 @@ void SensorsComponentController::_handleUASTextMessage(int uasId, int compId, in emit orientationCalSidesRotateChanged(); return; } + + if (text.endsWith("side already completed")) { + _orientationCalAreaHelpText->setProperty("text", "Orientation already completed, place you vehicle into one of the incomplete orientations shown below and hold it still"); + return; + } QString calCompletePrefix("calibration done:"); if (text.startsWith(calCompletePrefix)) {