From 1582de98488725e2a276a80d5b03d88b26c9871a Mon Sep 17 00:00:00 2001 From: Seb-TheDropBears Date: Fri, 15 Mar 2024 14:07:26 +1100 Subject: [PATCH] Lower deadzone. Higher exponential value --- robot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/robot.py b/robot.py index 8b6c3112..c942729c 100644 --- a/robot.py +++ b/robot.py @@ -89,8 +89,8 @@ def teleopPeriodic(self) -> None: max_spin_rate = self.lower_max_spin_rate # Driving - drive_x = -rescale_js(self.gamepad.getLeftY(), 0.1) * max_speed - drive_y = -rescale_js(self.gamepad.getLeftX(), 0.1) * max_speed + drive_x = -rescale_js(self.gamepad.getLeftY(), 0.05, 2.5) * max_speed + drive_y = -rescale_js(self.gamepad.getLeftX(), 0.05, 2.5) * max_speed drive_z = ( -rescale_js(self.gamepad.getRightX(), 0.1, exponential=2) * max_spin_rate )