Skip to content

Commit

Permalink
Merge pull request #31 from thedropbears/remove_swerve_lock
Browse files Browse the repository at this point in the history
remove call to lock swerve modules
  • Loading branch information
LucienMorey authored Jan 15, 2024
2 parents 0ea5900 + 1905bc5 commit 9d1f0bf
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions robot.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,6 @@ def teleopPeriodic(self) -> None:
if self.gamepad.getAButtonPressed():
self.chassis.snap_to_heading(math.radians(self.dpad_angle))

if self.gamepad.getBButtonPressed():
self.chassis.lock_swerve()

if self.gamepad.getBButtonReleased():
self.chassis.unlock_swerve()

# stop rumble after time
if self.rumble_timer.hasElapsed(self.rumble_duration):
self.gamepad.setRumble(wpilib.XboxController.RumbleType.kBothRumble, 0)
Expand Down

0 comments on commit 9d1f0bf

Please sign in to comment.