From f09bb36bd0f2e418914846bff239ebc3e7c2b4c6 Mon Sep 17 00:00:00 2001 From: Don Gagne Date: Sun, 10 Apr 2016 12:50:10 -0700 Subject: [PATCH 1/2] Remove test code --- src/FactSystem/ParameterLoader.cc | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/FactSystem/ParameterLoader.cc b/src/FactSystem/ParameterLoader.cc index 0a350f4..0024406 100644 --- a/src/FactSystem/ParameterLoader.cc +++ b/src/FactSystem/ParameterLoader.cc @@ -595,8 +595,6 @@ void ParameterLoader::_readParameterRaw(int componentId, const QString& paramNam void ParameterLoader::_writeParameterRaw(int componentId, const QString& paramName, const QVariant& value) { - return; - mavlink_param_set_t p; mavlink_param_union_t union_value; From 664222f24cd2e41471f856966f51bcb54645d3d7 Mon Sep 17 00:00:00 2001 From: Don Gagne Date: Sun, 10 Apr 2016 12:50:21 -0700 Subject: [PATCH 2/2] 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)) {