Commit 1ed336ff authored by Rustom Jehangir's avatar Rustom Jehangir

Joystick: Fix throttle center point.

The lines removed set the center point of the throttle axis to one extreme of the joystick range. This causes an offset value when the stick is centered if the joystick does not return exactly zero. This is important for vehicles with reversible throttle, such as ground robots or boats.
parent ecb0c803
......@@ -386,11 +386,6 @@ void JoystickConfigController::_inputStickMin(Joystick::AxisFunction_t function,
} else {
_rgAxisInfo[axis].axisMin = value;
}
// Check if this is throttle and set trim accordingly
if (function == Joystick::throttleFunction) {
_rgAxisInfo[axis].axisTrim = value;
}
qCDebug(JoystickConfigControllerLog) << "_inputStickMin saving values, function:axis:value:reversed" << function << axis << value << info->reversed;
......
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