Package frc.robot
Class Constants.Climber.Pivot
java.lang.Object
frc.robot.Constants.Climber.Pivot
- Enclosing class:
- Constants.Climber
Pivot rotation mechanism constants.
Includes motor configuration, PID and feedforward gains for motion magic control, motion constraints, and preset angle positions.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final doubleMotion magic acceleration, in rotations per second squared.static final com.ctre.phoenix6.signals.NeutralModeValueNeutral mode for the pivot motor (brake or coast).static final doubleMotion magic cruise velocity, in rotations per second.static final AnglePivot angle at the top position, in degrees.static final doubleGear ratio for the pivot mechanism.static final intCAN ID for the pivot motor.static final doubleMotion magic jerk limit.static final doubleAcceleration feedforward constant.static final doubleDerivative gain for pivot position control.static final doubleGravity feedforward constant for maintaining pivot angle.static final doubleIntegral gain for pivot position control.static final doubleProportional gain for pivot position control.static final doubleStatic feedforward constant for overcoming friction.static final doubleVelocity feedforward constant.static final AngularVelocityMaximum pivot velocity.static final AnglePivot angle at the top position, in radians.static final doubleSensor to mechanism ratio for converting encoder rotations to mechanism angle.static final AngleAngle of the climber in starting configuration -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
ID
public static final int IDCAN ID for the pivot motor.- See Also:
-
BREAK
public static final com.ctre.phoenix6.signals.NeutralModeValue BREAKNeutral mode for the pivot motor (brake or coast). -
KP
public static final double KPProportional gain for pivot position control.- See Also:
-
KI
public static final double KIIntegral gain for pivot position control.- See Also:
-
KD
public static final double KDDerivative gain for pivot position control.- See Also:
-
KS
public static final double KSStatic feedforward constant for overcoming friction.- See Also:
-
KV
public static final double KVVelocity feedforward constant.- See Also:
-
KA
public static final double KAAcceleration feedforward constant.- See Also:
-
KG
public static final double KGGravity feedforward constant for maintaining pivot angle.- See Also:
-
C_VELOCITY
public static final double C_VELOCITYMotion magic cruise velocity, in rotations per second.- See Also:
-
ACCELERATION
public static final double ACCELERATIONMotion magic acceleration, in rotations per second squared.- See Also:
-
JERK
public static final double JERKMotion magic jerk limit.- See Also:
-
MAX_VELOCITY
Maximum pivot velocity. -
GEAR_RATIO
public static final double GEAR_RATIOGear ratio for the pivot mechanism.- See Also:
-
DEGREES_AT_TOP
Pivot angle at the top position, in degrees. -
ROTATIONS_AT_TOP
Pivot angle at the top position, in radians. -
startingAngle
Angle of the climber in starting configuration -
SENSOR_TO_MECHANISM_RATIO
public static final double SENSOR_TO_MECHANISM_RATIOSensor to mechanism ratio for converting encoder rotations to mechanism angle.
-
-
Constructor Details
-
Pivot
public Pivot()
-