Package frc.robot
Class Constants.CoralArmConstants
java.lang.Object
frc.robot.Constants.CoralArmConstants
- Enclosing class:
- Constants
Constants for the coral arm mechanism (elevator and elbow).
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final record
Represents a specific position state of the armField Summary
FieldsModifier and TypeFieldDescriptionstatic final edu.wpi.first.units.measure.Distance
Arm length.static final Map<String,
Constants.CoralArmConstants.ArmState> Predefined arm positionsstatic final edu.wpi.first.units.measure.Angle
Angle traveled per motor rotation.static final edu.wpi.first.units.measure.Angle
Minimum elbow angle.static final int
DIO channel for elbow back limit switchstatic final int
CAN ID for elbow motor.static final int
Current limit for elbow motor in ampsstatic final edu.wpi.first.units.measure.Angle
Maximum elbow angle.static final int
DIO channel for elbow front limit switchstatic final boolean
Whether elbow motor is invertedstatic final PID
PID constants for elbow control.static final double
Ramp rate for elbow motor (seconds from 0 to full throttle)static final double
Power to use when zeroing elbowstatic final int
DIO channel for elevator bottom limit switchstatic final int
CAN ID for elevator motor.static final int
Current limit for elevator motor in ampsstatic final edu.wpi.first.units.measure.Distance
Distance traveled per motor rotation.static final boolean
Whether elevator motor is invertedstatic final edu.wpi.first.units.measure.Distance
Maximum elevator height.static final edu.wpi.first.units.measure.Distance
Minimum elevator height.static final PID
PID constants for elevator control.static final double
Ramp rate for elevator motor (seconds from 0 to full throttle)static final int
CANifier pin for elevator top limitstatic final double
Power to use when zeroing elevator downstatic final double
Power to use when zeroing elevator upstatic final double
Maximum allowed offset when hitting limit switches.static final edu.wpi.first.units.measure.Angle
Safe angle deadzone backstatic final edu.wpi.first.units.measure.Angle
Safe angle deadzone frontstatic final edu.wpi.first.units.measure.Distance
Safe elevator height.static final double
Power applied when zeroing unknown positions (-1.0 to 1.0).Method Summary
Field Details
ELEVATOR_CAN_ID
public static final int ELEVATOR_CAN_IDCAN ID for elevator motor.- See Also:
ELEVATOR_DISTANCE_PER_ROTATION
public static final edu.wpi.first.units.measure.Distance ELEVATOR_DISTANCE_PER_ROTATIONDistance traveled per motor rotation.ELEVATOR_BOTTOM_LIMIT_CHANNEL
public static final int ELEVATOR_BOTTOM_LIMIT_CHANNELDIO channel for elevator bottom limit switch- See Also:
ELEVATOR_TOP_LIMIT_CHANNEL
public static final int ELEVATOR_TOP_LIMIT_CHANNELCANifier pin for elevator top limit- See Also:
ELEVATOR_MIN_POSITION
public static final edu.wpi.first.units.measure.Distance ELEVATOR_MIN_POSITIONMinimum elevator height.ELEVATOR_MAX_POSITION
public static final edu.wpi.first.units.measure.Distance ELEVATOR_MAX_POSITIONMaximum elevator height.ELEVATOR_PID
PID constants for elevator control.ELEVATOR_INVERTED
public static final boolean ELEVATOR_INVERTEDWhether elevator motor is inverted- See Also:
ELEVATOR_ZEROING_POWER_UP
public static final double ELEVATOR_ZEROING_POWER_UPPower to use when zeroing elevator up- See Also:
ELEVATOR_ZEROING_POWER_DOWN
public static final double ELEVATOR_ZEROING_POWER_DOWNPower to use when zeroing elevator down- See Also:
ELEVATOR_RAMP_RATE
public static final double ELEVATOR_RAMP_RATERamp rate for elevator motor (seconds from 0 to full throttle)- See Also:
ELEVATOR_CURRENT_LIMIT
public static final int ELEVATOR_CURRENT_LIMITCurrent limit for elevator motor in amps- See Also:
ELBOW_CAN_ID
public static final int ELBOW_CAN_IDCAN ID for elbow motor.- See Also:
ELBOW_ANGLE_PER_ROTATION
public static final edu.wpi.first.units.measure.Angle ELBOW_ANGLE_PER_ROTATIONAngle traveled per motor rotation.ELBOW_FRONT_LIMIT_CHANNEL
public static final int ELBOW_FRONT_LIMIT_CHANNELDIO channel for elbow front limit switch- See Also:
ELBOW_BACK_LIMIT_CHANNEL
public static final int ELBOW_BACK_LIMIT_CHANNELDIO channel for elbow back limit switch- See Also:
ELBOW_FRONT_ANGLE
public static final edu.wpi.first.units.measure.Angle ELBOW_FRONT_ANGLEMaximum elbow angle.ELBOW_BACK_ANGLE
public static final edu.wpi.first.units.measure.Angle ELBOW_BACK_ANGLEMinimum elbow angle.ELBOW_PID
PID constants for elbow control.ARM_LENGTH
public static final edu.wpi.first.units.measure.Distance ARM_LENGTHArm length.ELBOW_INVERTED
public static final boolean ELBOW_INVERTEDWhether elbow motor is inverted- See Also:
ELBOW_ZEROING_POWER
public static final double ELBOW_ZEROING_POWERPower to use when zeroing elbow- See Also:
ELBOW_RAMP_RATE
public static final double ELBOW_RAMP_RATERamp rate for elbow motor (seconds from 0 to full throttle)- See Also:
ELBOW_CURRENT_LIMIT
public static final int ELBOW_CURRENT_LIMITCurrent limit for elbow motor in amps- See Also:
UNKNOWN_STATE_POWER
public static final double UNKNOWN_STATE_POWERPower applied when zeroing unknown positions (-1.0 to 1.0).- See Also:
POSITION_TOLERANCE
public static final double POSITION_TOLERANCEMaximum allowed offset when hitting limit switches.- See Also:
SAFE_ELEVATOR_HEIGHT
public static final edu.wpi.first.units.measure.Distance SAFE_ELEVATOR_HEIGHTSafe elevator height.SAFE_ANGLE_DEADZONE_FRONT
public static final edu.wpi.first.units.measure.Angle SAFE_ANGLE_DEADZONE_FRONTSafe angle deadzone frontSAFE_ANGLE_DEADZONE_BACK
public static final edu.wpi.first.units.measure.Angle SAFE_ANGLE_DEADZONE_BACKSafe angle deadzone backARM_SETPOINTS
Predefined arm positions