From 07f1e080735a3ffbd6b81f3008a8194181fcc4a2 Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Sun, 2 Feb 2014 20:44:02 +0100 Subject: [PATCH] Use the reversed values for the four control channels as well. Not using them would make the display very confusing. --- src/ui/QGCPX4VehicleConfig.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ui/QGCPX4VehicleConfig.cc b/src/ui/QGCPX4VehicleConfig.cc index 684293737..e4af517d0 100644 --- a/src/ui/QGCPX4VehicleConfig.cc +++ b/src/ui/QGCPX4VehicleConfig.cc @@ -1896,10 +1896,10 @@ void QGCPX4VehicleConfig::checktimeOuts() void QGCPX4VehicleConfig::updateRcWidgetValues() { - ui->rollWidget->setValueAndRange(rcMappedValue[0],rcMappedMin[0],rcMappedMax[0]); - ui->pitchWidget->setValueAndRange(rcMappedValue[1],rcMappedMin[1],rcMappedMax[1]); - ui->yawWidget->setValueAndRange(rcMappedValue[2],rcMappedMin[2],rcMappedMax[2]); - ui->throttleWidget->setValueAndRange(rcMappedValue[3],rcMappedMin[3],rcMappedMax[3]); + ui->rollWidget->setValueAndRange(rcMappedValueRev[0],rcMappedMin[0],rcMappedMax[0]); + ui->pitchWidget->setValueAndRange(rcMappedValueRev[1],rcMappedMin[1],rcMappedMax[1]); + ui->yawWidget->setValueAndRange(rcMappedValueRev[2],rcMappedMin[2],rcMappedMax[2]); + ui->throttleWidget->setValueAndRange(rcMappedValueRev[3],rcMappedMin[3],rcMappedMax[3]); ui->radio5Widget->setValueAndRange(rcValueReversed[4],rcMin[4],rcMax[4]); ui->radio6Widget->setValueAndRange(rcValueReversed[5],rcMin[5],rcMax[5]); -- 2.22.0