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 int
Current limit in amps.static final double
Pivot kD.static final double
Pivot kG.static final double
Pivot kI.static final double
Pivot kMaxOutput.static final double
Pivot kMinOutput.static final double
Pivot kP.static final double
Pivot kS.static final double
Pivot kV.static final double
Maximum acceleration in degrees/s^2.static final double
Maximum position in degrees.static final double
Maximum velocity in degrees/s.static final double
Minimum position when the elevator is not lowered, in degrees.static final int
Motor CAN ID.static final double
Conversion factor from rotation to degrees.static final double
Minimum safe position while the elevator is belowConstants.ElevatorConstants.HEAD_CLEAR_POSITION
, in degrees.static final double
Tolerance for the target to be considered reached in degrees.static final double
Conversion factor from rotation to degrees per second.static final double
Zero offset, in rotations, because reasons. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
MOTOR_ID
public static final int MOTOR_IDMotor 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.- 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 degrees.- See Also:
-
-
Constructor Details
-
PivotConstants
public PivotConstants()
-