1818/** Add your docs here. */
1919public class AlgaeFlyWheel extends SubsystemBase {
2020 public static class Settings {
21- static final int kLeftId = 27 ;
22- static final int kRightId = 28 ;
21+ static final int kLeftId = 15 ;
22+ static final int kRightId = 16 ;
2323
24- static final InvertedValue kAlgaeScoringInverted = InvertedValue .Clockwise_Positive ;
25- static final InvertedValue kAlgaeIntakingInverted = InvertedValue .CounterClockwise_Positive ;
24+ public static final InvertedValue kAlgaeScoringInverted = InvertedValue .Clockwise_Positive ;
25+ public static final InvertedValue kAlgaeIntakingInverted = InvertedValue .CounterClockwise_Positive ;
2626
2727 static final Slot0Configs kAlgaeFlyWheelConfigs = new Slot0Configs ()
2828 .withKS (0.0 )
@@ -44,15 +44,15 @@ public static class Settings {
4444
4545
4646 private AlgaeFlyWheel () {
47- LeftFlyWheel = new TalonFX (Settings .kLeftId , "Canivore" );
48- var leftTalonFXConfigurator = LeftFlyWheel .getConfigurator ();
47+ LeftFlyWheel = new TalonFX (Settings .kLeftId );
48+ leftTalonFXConfigurator = LeftFlyWheel .getConfigurator ();
4949 leftMotorConfigs = new MotorOutputConfigs ();
5050
5151 leftTalonFXConfigurator .apply (Settings .kAlgaeFlyWheelConfigs );
5252
5353
54- RightFlyWheel = new TalonFX (Settings .kRightId , "Canivore" );
55- var rightTalonFXConfigurator = RightFlyWheel .getConfigurator ();
54+ RightFlyWheel = new TalonFX (Settings .kRightId );
55+ rightTalonFXConfigurator = RightFlyWheel .getConfigurator ();
5656 rightMotorConfigs = new MotorOutputConfigs ();
5757
5858 rightTalonFXConfigurator .apply (Settings .kAlgaeFlyWheelConfigs );
@@ -65,17 +65,17 @@ public static AlgaeFlyWheel getInstance() {
6565 return mInstance ;
6666 }
6767
68- public void setLeftFlywheelVelocity (Rotation2d velocity , InvertedValue kInvertedValue ) {
68+ public void setLeftFlywheelVelocity (Rotation2d velocity , InvertedValue kLeftInvertedValue ) {
6969 // set invert to CW+ and apply config change
70- leftMotorConfigs .Inverted = kInvertedValue ;
70+ leftMotorConfigs .Inverted = kLeftInvertedValue ;
7171 leftTalonFXConfigurator .apply (leftMotorConfigs );
7272
7373 LeftFlyWheel .setControl (new VelocityVoltage (velocity .getRotations ()));
7474 }
7575
76- public void setRightFlywheelVelocity (Rotation2d velocity , InvertedValue kInvertedValue ) {
76+ public void setRightFlywheelVelocity (Rotation2d velocity , InvertedValue kRightInvertedValue ) {
7777 // set invert to CW+ and apply config change
78- rightMotorConfigs .Inverted = kInvertedValue ;
78+ rightMotorConfigs .Inverted = kRightInvertedValue ;
7979 rightTalonFXConfigurator .apply (rightMotorConfigs );
8080
8181 RightFlyWheel .setControl (new VelocityVoltage (velocity .getRotations ()));
0 commit comments