Package frc.robot

Class Constants.ElevatorConstants

java.lang.Object
frc.robot.Constants.ElevatorConstants
Enclosing class:
Constants

public static class Constants.ElevatorConstants extends Object
Constants used to configure the elevator.
  • Field Details

    • RIGHT_MOTOR_ID

      public static final int RIGHT_MOTOR_ID
      CAN ID for the right elevator motor.
      See Also:
    • LEFT_MOTOR_ID

      public static final int LEFT_MOTOR_ID
      CAN ID for the left elevator motor.
      See Also:
    • KP

      public static final double KP
      Elevator kP.
      See Also:
    • KI

      public static final double KI
      Elevator kI.
      See Also:
    • KD

      public static final double KD
      Elevator kD.
      See Also:
    • KS

      public static final double KS
      Elevator kS.
      See Also:
    • KG

      public static final double KG
      Elevator kG.
      See Also:
    • KV

      public static final double KV
      Elevator kV.
      See Also:
    • KMIN_OUTPUT

      public static final double KMIN_OUTPUT
      Elevator kMinOutput as a percentage.
      See Also:
    • KMAX_OUTPUT

      public static final double KMAX_OUTPUT
      Elevator kMaxOutput as a percentage.
      See Also:
    • MAX_VELOCITY

      public static final double MAX_VELOCITY
      Maximum velocity in m/s.
      See Also:
    • MAX_ACCELERATION

      public static final double MAX_ACCELERATION
      Maximum acceleration in m/s^2.
      See Also:
    • MAX_POSITION

      public static final double MAX_POSITION
      Maximum position in meters.
      See Also:
    • MIN_POSITION

      public static final double MIN_POSITION
      Minimum position in meters.
      See Also:
    • MAX_LOWERED_POSITION

      public static final double MAX_LOWERED_POSITION
      This is the maximum position for the elevator to be considered lowered, in meters.
      See Also:
    • POSITION_CONVERSION_FACTOR

      public static final double POSITION_CONVERSION_FACTOR
      Conversion factor from rotation to meters. 3.81cm diameter spool, 16:1 gear ratio
      See Also:
    • VELOCITY_CONVERSION_FACTOR

      public static final double VELOCITY_CONVERSION_FACTOR
      Conversion factor from rotation to meters per second.
      See Also:
    • ZERO_OFFSET

      public static final double ZERO_OFFSET
      Zero offset, meters.
      See Also:
    • CURRENT_LIMIT

      public static final int CURRENT_LIMIT
      Current limit in amps.
      See Also:
    • TOLERANCE

      public static final double TOLERANCE
      Tolerance for the target to be considered reached in meters.
      See Also:
  • Constructor Details

    • ElevatorConstants

      public ElevatorConstants()