Commit de17dbb1 authored by nanthony21's avatar nanthony21

Made it so that joystick values will not be sent out during calibration.

parent 2e7789d6
...@@ -445,7 +445,7 @@ void Joystick::run(void) ...@@ -445,7 +445,7 @@ void Joystick::run(void)
} }
} }
if (_activeVehicle->joystickEnabled() && _calibrated) { if (_activeVehicle->joystickEnabled() && !_calibrationMode && _calibrated) {
int axis = _rgFunctionAxis[rollFunction]; int axis = _rgFunctionAxis[rollFunction];
float roll = _adjustRange(_rgAxisValues[axis], _rgCalibration[axis], _deadband); float roll = _adjustRange(_rgAxisValues[axis], _rgCalibration[axis], _deadband);
......
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