Skip to content

Commit

Permalink
[Robot] Don't brown out during matches
Browse files Browse the repository at this point in the history
  • Loading branch information
rmheuer committed Mar 22, 2024
1 parent 5dd6c44 commit e7a40b2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Robot/src/main/java/com/swrobotics/robot/RobotContainer.java
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,12 @@ public RobotContainer() {
autoDelay.addOption(time + " seconds", time);
}
autoDelaySelector = new LoggedDashboardChooser<>("Auto Delay", autoDelay);

// Don't brown out in matches
new Trigger(DriverStation::isFMSAttached)
.onTrue(Commands.runOnce(() -> {
RobotController.setBrownoutVoltage(0);
}));
}

private static final record AutoEntry(String name, Command cmd) {}
Expand Down

0 comments on commit e7a40b2

Please sign in to comment.