Skip to content

Commit

Permalink
stop 2 place left before match end
Browse files Browse the repository at this point in the history
combats drift issue
  • Loading branch information
Speedy6451 committed Oct 14, 2023
1 parent 1d0cc2a commit 1a90816
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/com/team2502/robot2023/autonomous/Autos.java
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ public enum Autos { // first auto is default
)
),
Commands.deadline(Commands.waitSeconds(0.25), new InstantCommand(() -> i.setSpeed(-0.25))),
new InstantCommand(() -> i.setSpeed(0))
new InstantCommand(() -> i.setSpeed(0)),
new InstantCommand(() -> {d.setPowerNeutralMode(NeutralMode.Brake); d.stop();})
)),

PLACE_CUBE_GRAB_CUBE_SOUTH("PP right", (d,i,e) -> Commands.sequence(
Expand Down

0 comments on commit 1a90816

Please sign in to comment.