From 3f606af54ac5320b4dde1fc1cafc765addb1a5f4 Mon Sep 17 00:00:00 2001 From: tstellanova Date: Sat, 31 Aug 2013 15:30:08 -0700 Subject: [PATCH] clear channel mappings for > Ch 5 when starting rc cal --- src/ui/QGCPX4VehicleConfig.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/ui/QGCPX4VehicleConfig.cc b/src/ui/QGCPX4VehicleConfig.cc index dc0e7b5fe..ceb17af29 100644 --- a/src/ui/QGCPX4VehicleConfig.cc +++ b/src/ui/QGCPX4VehicleConfig.cc @@ -426,6 +426,11 @@ void QGCPX4VehicleConfig::startCalibrationRC() return; } + // reset all channel mappings above Ch 5 to invalid/unused value before starting calibration + for (unsigned int j= 5; j < chanMappedMax; j++) { + rcMapping[j] = -1; + } + configEnabled = true; QMessageBox::warning(0,tr("Safety Warning"), -- 2.22.0