Skip to content

Commit

Permalink
SUPER AMAING BROWNOUT VOLTAGE LIMITER COMMIT EPIC :3
Browse files Browse the repository at this point in the history
  • Loading branch information
MeowAzalea committed Apr 5, 2024
1 parent 9cd08b6 commit e313c6d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/frc/robot/Constants.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ public static enum Bot {
public static final Bot currentBot;
public static final String serialNumber;

public static final double ROBOT_BROWNOUT_LIMIT = 6.0;

public static final double BOT_WIDTH = 0.885; // metres

/**
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/frc/robot/Robot.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package frc.robot;

import edu.wpi.first.wpilibj.RobotController;
import edu.wpi.first.wpilibj.TimedRobot;
import edu.wpi.first.wpilibj2.command.Command;
import edu.wpi.first.wpilibj2.command.CommandScheduler;
Expand All @@ -26,6 +27,7 @@ public void robotInit() {
// Instantiate the RobotContainer. This will perform all the button bindings,
// and put the autonomous chooser on the dashboard.
robotContainer = new RobotContainer();
RobotController.setBrownoutVoltage(Constants.ROBOT_BROWNOUT_LIMIT);
}

/**
Expand Down

0 comments on commit e313c6d

Please sign in to comment.