1717import frc .robot .Constants ;
1818import org .littletonrobotics .junction .Logger ;
1919
20- public class GroundIntakePivotIOSim implements GroundIntakePivotIO {
20+ public class GroundIntakeIOSim implements GroundIntakeIO {
2121
2222 private final SingleJointedArmSim groundIntakePivotSim = new SingleJointedArmSim (
2323 DCMotor .getKrakenX60 (1 ),
24- GroundIntakePivotConstants .MOTOR_TO_PIVOT_GEARING ,
24+ GroundIntakeConstants .MOTOR_TO_PIVOT_GEARING ,
2525 SingleJointedArmSim .estimateMOI (
26- GroundIntakePivotConstants .GROUND_INTAKE_LENGTH .in (Units .Meters ),
27- GroundIntakePivotConstants .GROUND_INTAKE_WEIGHT .in (Units .Kilograms )),
28- GroundIntakePivotConstants .GROUND_INTAKE_LENGTH .in (Units .Meters ),
29- GroundIntakePivotConstants .MIN_PIVOT_ANGLE .in (Radians ),
30- GroundIntakePivotConstants .MAX_PIVOT_ANGLE .in (Radians ),
26+ GroundIntakeConstants .GROUND_INTAKE_LENGTH .in (Units .Meters ),
27+ GroundIntakeConstants .GROUND_INTAKE_WEIGHT .in (Units .Kilograms )),
28+ GroundIntakeConstants .GROUND_INTAKE_LENGTH .in (Units .Meters ),
29+ GroundIntakeConstants .MIN_PIVOT_ANGLE .in (Radians ),
30+ GroundIntakeConstants .MAX_PIVOT_ANGLE .in (Radians ),
3131 true ,
3232 Units .Degrees .of (0 ).in (Radians ));
3333
@@ -37,16 +37,16 @@ public class GroundIntakePivotIOSim implements GroundIntakePivotIO {
3737
3838 PositionVoltage pivotPositionControl = new PositionVoltage (0 );
3939
40- public GroundIntakePivotIOSim () {
40+ public GroundIntakeIOSim () {
4141 pivotMotor = new TalonFX (Constants .GROUND_INTAKE_PIVOT_ID );
4242 pivotMotorSimState = pivotMotor .getSimState ();
4343
4444 pivotMotorConfig = new TalonFXConfiguration ();
4545
4646 pivotMotorConfig .withSlot0 (new Slot0Configs ()
47- .withKP (GroundIntakePivotConstants .kP_PIVOT )
48- .withKI (GroundIntakePivotConstants .kI_PIVOT )
49- .withKD (GroundIntakePivotConstants .kD_PIVOT ));
47+ .withKP (GroundIntakeConstants .kP_PIVOT )
48+ .withKI (GroundIntakeConstants .kI_PIVOT )
49+ .withKD (GroundIntakeConstants .kD_PIVOT ));
5050
5151 pivotMotorConfig .withMotorOutput (new MotorOutputConfigs ().withInverted (InvertedValue .Clockwise_Positive ));
5252
@@ -76,10 +76,10 @@ private void updateSim() {
7676
7777 pivotMotorSimState .setRawRotorPosition (
7878 edu .wpi .first .math .util .Units .radiansToRotations (groundIntakePivotSim .getAngleRads ())
79- * GroundIntakePivotConstants .MOTOR_TO_PIVOT_GEARING );
79+ * GroundIntakeConstants .MOTOR_TO_PIVOT_GEARING );
8080 pivotMotorSimState .setRotorVelocity (groundIntakePivotSim .getVelocityRadPerSec ()
8181 / (2.0 * Math .PI )
82- * GroundIntakePivotConstants .MOTOR_TO_PIVOT_GEARING );
82+ * GroundIntakeConstants .MOTOR_TO_PIVOT_GEARING );
8383 }
8484
8585 @ Override
0 commit comments