Package frc.robot
Class Constants.ElevatorConstants
java.lang.Object
frc.robot.Constants.ElevatorConstants
- Enclosing class:
- Constants
Constants used to configure the elevator.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intCurrent limit in amps.static final doubleElevator kD.static final doubleElevator kG.static final doubleElevator kI.static final doubleElevator kMaxOutput as a percentage.static final doubleElevator kMinOutput as a percentage.static final doubleElevator kP.static final doubleElevator kS.static final doubleElevator kV.static final intCAN ID for the left elevator motor.static final doubleMaximum acceleration in m/s^2.static final doubleThis is the maximum position for the elevator to be considered lowered, in meters.static final doubleMaximum position in meters.static final doubleMaximum velocity in m/s.static final doubleMinimum position in meters.static final doubleConversion factor from rotation to meters.static final intCAN ID for the right elevator motor.static final doubleTolerance for the target to be considered reached in meters.static final doubleConversion factor from rotation to meters per second.static final doubleZero offset, meters. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
RIGHT_MOTOR_ID
public static final int RIGHT_MOTOR_IDCAN ID for the right elevator motor.- See Also:
-
LEFT_MOTOR_ID
public static final int LEFT_MOTOR_IDCAN ID for the left elevator motor.- See Also:
-
KP
public static final double KPElevator kP.- See Also:
-
KI
public static final double KIElevator kI.- See Also:
-
KD
public static final double KDElevator kD.- See Also:
-
KS
public static final double KSElevator kS.- See Also:
-
KG
public static final double KGElevator kG.- See Also:
-
KV
public static final double KVElevator kV.- See Also:
-
KMIN_OUTPUT
public static final double KMIN_OUTPUTElevator kMinOutput as a percentage.- See Also:
-
KMAX_OUTPUT
public static final double KMAX_OUTPUTElevator kMaxOutput as a percentage.- See Also:
-
MAX_VELOCITY
public static final double MAX_VELOCITYMaximum velocity in m/s.- See Also:
-
MAX_ACCELERATION
public static final double MAX_ACCELERATIONMaximum acceleration in m/s^2.- See Also:
-
MAX_POSITION
public static final double MAX_POSITIONMaximum position in meters.- See Also:
-
MIN_POSITION
public static final double MIN_POSITIONMinimum position in meters.- See Also:
-
MAX_LOWERED_POSITION
public static final double MAX_LOWERED_POSITIONThis is the maximum position for the elevator to be considered lowered, in meters.- See Also:
-
POSITION_CONVERSION_FACTOR
public static final double POSITION_CONVERSION_FACTORConversion factor from rotation to meters. 3.81cm diameter spool, 16:1 gear ratio- See Also:
-
VELOCITY_CONVERSION_FACTOR
public static final double VELOCITY_CONVERSION_FACTORConversion factor from rotation to meters per second.- See Also:
-
ZERO_OFFSET
public static final double ZERO_OFFSETZero offset, meters.- See Also:
-
CURRENT_LIMIT
public static final int CURRENT_LIMITCurrent limit in amps.- See Also:
-
TOLERANCE
public static final double TOLERANCETolerance for the target to be considered reached in meters.- See Also:
-
-
Constructor Details
-
ElevatorConstants
public ElevatorConstants()
-