From da5eaf93f3b74eef9c224739256dd4b433089c00 Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Mon, 19 Aug 2013 15:50:16 +0200 Subject: [PATCH] Make non-moved channels safe, will fail RC check else --- src/ui/QGCPX4VehicleConfig.cc | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/ui/QGCPX4VehicleConfig.cc b/src/ui/QGCPX4VehicleConfig.cc index dcd406e58..54fa593c3 100644 --- a/src/ui/QGCPX4VehicleConfig.cc +++ b/src/ui/QGCPX4VehicleConfig.cc @@ -313,12 +313,21 @@ void QGCPX4VehicleConfig::stopCalibrationRC() ui->radio7Widget->hideMinMax(); ui->radio8Widget->hideMinMax(); + for (int i=0;i 1350) + rcMin[i] = 1000; + + if (rcMax[i] < 1650) + rcMax[i] = 2000; + } + QString statusstr; statusstr = "Below you will find the detected radio calibration information that will be sent to the autopilot\n"; - statusstr += "Normal values are around 1100 to 1900, with disconnected channels reading very close to 1500\n\n"; + statusstr += "Normal values are around 1100 to 1900, with disconnected channels reading 1000, 1500, 2000\n\n"; statusstr += "Channel\tMin\tCenter\tMax\n"; statusstr += "--------------------\n"; - for (int i=0;i<8;i++) + for (int i=0;i