Skip to content

Commit

Permalink
Fix twist lockout
Browse files Browse the repository at this point in the history
  • Loading branch information
superpenguin612 committed Apr 19, 2024
1 parent 2342887 commit f0a7bb3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/frc/robot/Controls.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ public static void configureDriverControls(int port, Drivetrain drivetrain, Inta
() -> -joystick.getX(),
() -> -joystick.getTwist()));

new Trigger(() -> (Math.abs(joystick.getTwist()) > 0.05)).onTrue(drivetrain.disableControlledRotateCommand());
new Trigger(() -> (Math.abs(joystick.getTwist()) > 0.05))
.whileTrue(drivetrain.disableControlledRotateCommand());

joystick.stickButton().onTrue(drivetrain.resetGyroCommand());

Expand Down

0 comments on commit f0a7bb3

Please sign in to comment.