Skip to content

Commit

Permalink
Merge branch 'add-mode-manager' of https://github.com/FRC2713/Robot2024
Browse files Browse the repository at this point in the history
… into add-mode-manager
  • Loading branch information
RHR2713 committed Oct 22, 2024
2 parents b898733 + 02fd449 commit 0df37ea
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/frc/robot/Constants.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
import edu.wpi.first.math.numbers.N1;
import edu.wpi.first.math.numbers.N3;
import edu.wpi.first.math.util.Units;
import frc.robot.Robot.RobotMode;
import frc.robot.subsystems.swerveIO.module.ModuleInfo;
import frc.robot.subsystems.swerveIO.module.SwerveModuleName;
import frc.robot.subsystems.visionIO.VisionInfo;
Expand Down Expand Up @@ -208,7 +209,7 @@ public static final class ElevatorConstants {
public static final double MAX_HEIGHT_METERS = Units.inchesToMeters(17);
public static final double STARTING_HEIGHT_METERS = Units.inchesToMeters(2);
public static final boolean SIMULATE_GRAVITY = true;
public static final int ELEVATOR_CURRENT_LIMIT = 30;
public static final int ELEVATOR_CURRENT_LIMIT = Robot.modeManager.getMode() == RobotMode.DEMO ? 15 : 30;
public static final double FLOOR_TO_ELEVATOR_BASE_METRES = Units.inchesToMeters(31.25);
}

Expand Down

0 comments on commit 0df37ea

Please sign in to comment.