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 int
Current limit in amps.static final double
Elevator kD.static final double
Elevator kG.static final double
Elevator kI.static final double
Elevator kMaxOutput as a percentage.static final double
Elevator kMinOutput as a percentage.static final double
Elevator kP.static final double
Elevator kS.static final double
Elevator kV.static final int
CAN ID for the left elevator motor.static final double
Maximum acceleration in m/s^2.static final double
This is the maximum position for the elevator to be considered lowered, in meters.static final double
Maximum position in meters.static final double
Maximum velocity in m/s.static final double
Minimum position in meters.static final double
Conversion factor from rotation to meters.static final int
CAN ID for the right elevator motor.static final double
Tolerance for the target to be considered reached in meters.static final double
Conversion factor from rotation to meters per second.static final double
Zero 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()
-