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 int
Current limit in amps.static final double
Wrist kD.static final double
Wrist kG.static final double
Wrist kI.static final double
Wrist kMaxOutput.static final double
Wrist kMinOutput.static final double
Wrist kP.static final double
Wrist kS.static final double
Wrist kV.static final double
Maximum acceleration in degrees/s^2.static final double
Maximum position that the wrist can be while holding an algae (to make sure it doesn't hit the elevator), in degrees.static final double
Maximum position that the wrist can be while holding an algae if the elevator is fully extended, in degrees.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, (determined by MAX_LOWERED_POSITION) in degrees.static final int
CAN Motor ID for the wrist.static final double
Conversion factor from rotation to degrees.static final double
Maximum safe position while the elevator is raised (so it doesn't collide with the metal thing on top), in degrees.static final double
Minimum safe position while the elevator is lowered, 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_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()
-