Commit 8b3548f9 authored by Rustom Jehangir's avatar Rustom Jehangir

Hide joystick throttle mode selector for sub

parent ecf18b85
......@@ -284,7 +284,7 @@ void Joystick::run(void)
throttle = std::max(-1.0f, std::min(tanf(asinf(throttle_limited)), 1.0f));
// Adjust throttle to 0:1 range
if (_throttleMode == ThrottleModeCenterZero) {
if (_throttleMode == ThrottleModeCenterZero && !_activeVehicle->sub()) {
throttle = std::max(0.0f, throttle);
} else {
throttle = (throttle + 1.0f) / 2.0f;
......
......@@ -380,6 +380,7 @@ QGCView {
Column {
spacing: ScreenTools.defaultFontPixelHeight / 3
visible: !_activeVehicle.sub
ExclusiveGroup { id: throttleModeExclusiveGroup }
......
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