Skip to content

Commit

Permalink
Remove gamepad button conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
james-ward committed Jan 18, 2024
1 parent 672dba6 commit f7b7458
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion robot.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def teleopPeriodic(self) -> None:
drive_x = -rescale_js(self.gamepad.getLeftY(), 0.1) * self.max_speed
drive_y = -rescale_js(self.gamepad.getLeftX(), 0.1) * self.max_speed
drive_z = -rescale_js(self.gamepad.getRightX(), 0.1, exponential=2) * spin_rate
local_driving = self.gamepad.getBButton()
local_driving = self.gamepad.getYButton()
driver_inputs = (drive_x, drive_y, drive_z)
if local_driving:
self.chassis.drive_local(*driver_inputs)
Expand Down

0 comments on commit f7b7458

Please sign in to comment.