From 11417a140dda82b6edbb86c6d6c6a3c3db9b64cd Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Sun, 2 Feb 2014 20:44:51 +0100 Subject: [PATCH] =?UTF-8?q?PX4=20config:=20Remove=20the=20specialized=20th?= =?UTF-8?q?rottle=20handling=20-=20this=20needs=20testing,=20but=20doing?= =?UTF-8?q?=20the=20math=20on=20paper=20it=20doesn=E2=80=99t=20look=20like?= =?UTF-8?q?=20a=20special=20case=20is=20needed=20/=20wanted=20here.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/ui/QGCPX4VehicleConfig.cc | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/ui/QGCPX4VehicleConfig.cc b/src/ui/QGCPX4VehicleConfig.cc index e4af517d0..32fdcf919 100644 --- a/src/ui/QGCPX4VehicleConfig.cc +++ b/src/ui/QGCPX4VehicleConfig.cc @@ -1460,14 +1460,15 @@ void QGCPX4VehicleConfig::remoteControlChannelRawChanged(int chan, float fval) rcYaw = normalized; } else if (chan == rcMapping[3]) { - if (rcRev[chan]) { - rcThrottle = 1.0f + normalized; - } - else { - rcThrottle = normalized; - } + rcThrottle = normalized; +// if (rcRev[chan]) { +// rcThrottle = 1.0f + normalized; +// } +// else { +// rcThrottle = normalized; +// } - rcThrottle = qBound(0.0f, rcThrottle, 1.0f); +// rcThrottle = qBound(0.0f, rcThrottle, 1.0f); } else if (chan == rcMapping[4]) { rcMode = normalized; // MODE SWITCH -- 2.22.0