diff --git a/src/VehicleSetup/JoystickConfigController.cc b/src/VehicleSetup/JoystickConfigController.cc index 67a3ffa1ea6805f84aaeda0eb6f1216c79a5c90c..08badb5eae3a71568cd416df77e1c24cf1d21306 100644 --- a/src/VehicleSetup/JoystickConfigController.cc +++ b/src/VehicleSetup/JoystickConfigController.cc @@ -416,8 +416,8 @@ void JoystickConfigController::_inputCenterWait(Joystick::AxisFunction_t functio if (_stickDetectAxis == _axisNoAxis) { // Sticks have not yet moved close enough to center - - if (abs(_calCenterPoint - value) < _calRoughCenterDelta) { + int roughCenter = getDeadbandToggle() ? _rgAxisInfo[axis].deadband : _calRoughCenterDelta; + if (abs(_calCenterPoint - value) < roughCenter) { // Stick has moved close enough to center that we can start waiting for it to settle _stickDetectAxis = axis; _stickDetectInitialValue = value;