Package frc.robot
Class Constants.WristConstants
java.lang.Object
frc.robot.Constants.WristConstants
- Enclosing class:
- Constants
Constants used to configure the wrist.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intCurrent limit in amps.static final doubleWrist kD.static final doubleWrist kG.static final doubleWrist kI.static final doubleWrist kMaxOutput.static final doubleWrist kMinOutput.static final doubleWrist kP.static final doubleWrist kS.static final doubleWrist kV.static final doubleMaximum acceleration in degrees/s^2.static final doubleMaximum position that the wrist can be while holding an algae (to make sure it doesn't hit the elevator), in degrees.static final doubleMaximum position that the wrist can be while holding an algae if the elevator is fully extended, in degrees.static final doubleMaximum position in degrees.static final doubleMaximum velocity in degrees/s.static final doubleMinimum position when the elevator is not lowered, (determined by MAX_LOWERED_POSITION) in degrees.static final intCAN Motor ID for the wrist.static final doubleConversion factor from rotation to degrees.static final doubleMaximum safe position while the elevator is raised (so it doesn't collide with the metal thing on top), in degrees.static final doubleMinimum safe position while the elevator is lowered, 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
-
MOTOR_ID
public static final int MOTOR_IDCAN Motor ID for the wrist.- See Also:
-
KP
public static final double KPWrist kP.- See Also:
-
KI
public static final double KIWrist kI.- See Also:
-
KD
public static final double KDWrist kD.- See Also:
-
KS
public static final double KSWrist kS.- See Also:
-
KG
public static final double KGWrist kG.- See Also:
-
KV
public static final double KVWrist kV.- See Also:
-
KMIN_OUTPUT
public static final double KMIN_OUTPUTWrist kMinOutput.- See Also:
-
KMAX_OUTPUT
public static final double KMAX_OUTPUTWrist 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, (determined by MAX_LOWERED_POSITION) in degrees.- See Also:
-
SAFE_MIN_POSITION
public static final double SAFE_MIN_POSITIONMinimum safe position while the elevator is lowered, in degrees.- See Also:
-
SAFE_MAX_POSITION
public static final double SAFE_MAX_POSITIONMaximum safe position while the elevator is raised (so it doesn't collide with the metal thing on top), in degrees.- See Also:
-
MAX_ALGAE_POSITION_WITH_ELEVATOR
public static final double MAX_ALGAE_POSITION_WITH_ELEVATORMaximum position that the wrist can be while holding an algae (to make sure it doesn't hit the elevator), in degrees.- See Also:
-
MAX_ALGAE_POSITION_WITHOUT_ELEVATOR
public static final double MAX_ALGAE_POSITION_WITHOUT_ELEVATORMaximum position that the wrist can be while holding an algae if the elevator is fully extended, 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
-
WristConstants
public WristConstants()
-