Commit 11417a14 authored by Lorenz Meier's avatar Lorenz Meier

PX4 config: Remove the specialized throttle handling - this needs testing, but...

PX4 config: Remove the specialized throttle handling - this needs testing, but doing the math on paper it doesn’t look like a special case is needed / wanted here.
parent 07f1e080
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment