Class WristTalonFXSimConstants
java.lang.Object
frc.alotobots.reefscape.subsystems.wrist.constants.WristTalonFXSimConstants
Contains constants specific to the simulated implementation of the wrist. These values are used
to configure the physics simulation.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final double
Length of the wrist arm in metersstatic final com.ctre.phoenix6.signals.SensorDirectionValue
Direction of the encoder rotationstatic final double
Magnet offset for the CANCoder absolute positionstatic final double
Moment of inertia of the wrist mechanism in kg⋅m²static final com.ctre.phoenix6.signals.NeutralModeValue
Neutral mode (brake/coast) setting for the mechanismstatic final com.ctre.phoenix6.signals.InvertedValue
Direction of the motor rotationstatic final int
Gear ratio between motor rotation and mechanism rotation -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
INERTIA_KGM2
public static final double INERTIA_KGM2Moment of inertia of the wrist mechanism in kg⋅m²- See Also:
-
ARM_LENGTH
public static final double ARM_LENGTHLength of the wrist arm in meters- See Also:
-
MOTOR_DIRECTION
public static final com.ctre.phoenix6.signals.InvertedValue MOTOR_DIRECTIONDirection of the motor rotation -
ENCODER_DIRECTION
public static final com.ctre.phoenix6.signals.SensorDirectionValue ENCODER_DIRECTIONDirection of the encoder rotation -
MECHANISM_NEUTRAL_MODE
public static final com.ctre.phoenix6.signals.NeutralModeValue MECHANISM_NEUTRAL_MODENeutral mode (brake/coast) setting for the mechanism -
ROTOR_TO_SENSOR_RATIO
public static final int ROTOR_TO_SENSOR_RATIOGear ratio between motor rotation and mechanism rotation- See Also:
-
ENCODER_MAGNET_OFFSET
public static final double ENCODER_MAGNET_OFFSETMagnet offset for the CANCoder absolute position- See Also:
-
-
Constructor Details
-
WristTalonFXSimConstants
public WristTalonFXSimConstants()
-