From a20ad8d11495a6a8cd922e717abf4e0acb6ca10a Mon Sep 17 00:00:00 2001 From: royjr Date: Wed, 1 Apr 2026 20:09:30 -0400 Subject: [PATCH] Update joystick_control.py --- tools/joystick/joystick_control.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tools/joystick/joystick_control.py b/tools/joystick/joystick_control.py index d1a6ba1c24..903e3b3db2 100755 --- a/tools/joystick/joystick_control.py +++ b/tools/joystick/joystick_control.py @@ -55,10 +55,11 @@ class Joystick: steer_axis = 'ABS_Z' self.flip_map = {'ABS_RY': accel_axis} - self.min_axis_value = {accel_axis: 0., steer_axis: 0.} - self.max_axis_value = {accel_axis: 255., steer_axis: 255.} - self.axes_values = {accel_axis: 0., steer_axis: 0.} - self.axes_order = [accel_axis, steer_axis] + damp_axis = 'ABS_X' + self.min_axis_value = {accel_axis: 0., steer_axis: 0., damp_axis: 0.} + self.max_axis_value = {accel_axis: 255., steer_axis: 255., damp_axis: 255.} + self.axes_values = {accel_axis: 0., steer_axis: 0., damp_axis: 0.} + self.axes_order = [accel_axis, steer_axis, damp_axis] self.cancel = False def update(self):