Package frc.robot
Class Constants.PivotConstants
java.lang.Object
frc.robot.Constants.PivotConstants
- Enclosing class:
- Constants
Constants used to configure the pivot.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intCurrent limit in amps.static final doublePivot kD.static final doublePivot kG.static final doublePivot kI.static final doublePivot kMaxOutput.static final doublePivot kMinOutput.static final doublePivot kP.static final doublePivot kS.static final doublePivot kV.static final intLeft motor CAN ID.static final doubleMaximum acceleration in degrees/s^2.static final doubleMaximum position in degrees.static final doubleMaximum velocity in degrees/s.static final doubleMinimum position when the elevator is not lowered, in degrees.static final doubleConversion factor from rotation to degrees.static final intRight motor CAN ID.static final doubleMinimum safe position while the elevator is belowConstants.ElevatorConstants.HEAD_CLEAR_POSITION, in degrees.static final doubleTolerance for the target to be considered reached in degrees.static final doubleConversion factor from rotation to degrees per second.static final doubleZero offset, in rotations, because reasons. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
LEFT_MOTOR_ID
public static final int LEFT_MOTOR_IDLeft motor CAN ID.- See Also:
-
RIGHT_MOTOR_ID
public static final int RIGHT_MOTOR_IDRight motor CAN ID.- See Also:
-
KP
public static final double KPPivot kP.- See Also:
-
KI
public static final double KIPivot kI.- See Also:
-
KD
public static final double KDPivot kD.- See Also:
-
KS
public static final double KSPivot kS.- See Also:
-
KG
public static final double KGPivot kG.- See Also:
-
KV
public static final double KVPivot kV.- See Also:
-
KMIN_OUTPUT
public static final double KMIN_OUTPUTPivot kMinOutput.- See Also:
-
KMAX_OUTPUT
public static final double KMAX_OUTPUTPivot kMaxOutput.- See Also:
-
MAX_VELOCITY
public static final double MAX_VELOCITYMaximum velocity in degrees/s.- See Also:
-
MAX_ACCELERATION
public static final double MAX_ACCELERATIONMaximum acceleration in degrees/s^2.- See Also:
-
MAX_POSITION
public static final double MAX_POSITIONMaximum position in degrees.- See Also:
-
MIN_POSITION
public static final double MIN_POSITIONMinimum position when the elevator is not lowered, in degrees.- See Also:
-
SAFE_MIN_POSITION
public static final double SAFE_MIN_POSITIONMinimum safe position while the elevator is belowConstants.ElevatorConstants.HEAD_CLEAR_POSITION, in degrees.- See Also:
-
POSITION_CONVERSION_FACTOR
public static final double POSITION_CONVERSION_FACTORConversion factor from rotation to degrees.- See Also:
-
VELOCITY_CONVERSION_FACTOR
public static final double VELOCITY_CONVERSION_FACTORConversion factor from rotation to degrees per second.- See Also:
-
ZERO_OFFSET
public static final double ZERO_OFFSETZero offset, in rotations, because reasons. -
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 degrees.- See Also:
-
-
Constructor Details
-
PivotConstants
public PivotConstants()
-