From 02fd4494b9ec6c3d9d8b7cde1f74699f90310969 Mon Sep 17 00:00:00 2001 From: Owen-Morgan825 Date: Tue, 22 Oct 2024 19:51:03 -0400 Subject: [PATCH] Testing changing speed that elevator moves at --- src/main/java/frc/robot/Constants.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/frc/robot/Constants.java b/src/main/java/frc/robot/Constants.java index ddc8d4b..bafa41e 100644 --- a/src/main/java/frc/robot/Constants.java +++ b/src/main/java/frc/robot/Constants.java @@ -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; @@ -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); }