Browse Source

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.

QGC4.4
Lorenz Meier 11 years ago
parent
commit
11417a140d
  1. 15
      src/ui/QGCPX4VehicleConfig.cc

15
src/ui/QGCPX4VehicleConfig.cc

@ -1460,14 +1460,15 @@ void QGCPX4VehicleConfig::remoteControlChannelRawChanged(int chan, float fval)
rcYaw = normalized; rcYaw = normalized;
} }
else if (chan == rcMapping[3]) { else if (chan == rcMapping[3]) {
if (rcRev[chan]) { rcThrottle = normalized;
rcThrottle = 1.0f + normalized; // if (rcRev[chan]) {
} // rcThrottle = 1.0f + normalized;
else { // }
rcThrottle = normalized; // else {
} // rcThrottle = normalized;
// }
rcThrottle = qBound(0.0f, rcThrottle, 1.0f); // rcThrottle = qBound(0.0f, rcThrottle, 1.0f);
} }
else if (chan == rcMapping[4]) { else if (chan == rcMapping[4]) {
rcMode = normalized; // MODE SWITCH rcMode = normalized; // MODE SWITCH

Loading…
Cancel
Save