Skip to content

Commit

Permalink
Testing changing speed that elevator moves at
Browse files Browse the repository at this point in the history
  • Loading branch information
Owen-Morgan825 committed Oct 22, 2024
1 parent 7c42ebb commit 02fd449
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 02fd449

Please sign in to comment.