Skip to content

Commit

Permalink
added run on disable for drive assist
Browse files Browse the repository at this point in the history
  • Loading branch information
faeqk committed Jun 18, 2024
1 parent 64c9f83 commit 0fc70c6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/com/team1701/robot/RobotContainer.java
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,9 @@ private void setupControllerBindings() {
var setAmpModeCommand = runOnce(() -> mRobotState.setScoringMode(ScoringMode.AMP))
.ignoringDisable(true)
.withName("SetAmpScoringMode");
var setDriveAssist = runOnce(() -> mDrive.toggleDriveAssist(), mDrive);
var setDriveAssist = runOnce(() -> mDrive.toggleDriveAssist(), mDrive)
.ignoringDisable(true)
.withName("SetDriveAssist");
var setClimbModeCommand = runOnce(() -> mRobotState.setScoringMode(ScoringMode.CLIMB))
.ignoringDisable(true)
.withName("SetClimbScoringMode");
Expand Down

0 comments on commit 0fc70c6

Please sign in to comment.