This repository was archived by the owner on Jan 10, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ public class TunerConstants {
79
79
private static final double kSteerFrictionVoltage = 0.25 ;
80
80
private static final double kDriveFrictionVoltage = 0.25 ;
81
81
82
- private static final SwerveDrivetrainConstants DrivetrainConstants =
82
+ public static final SwerveDrivetrainConstants DrivetrainConstants =
83
83
new SwerveDrivetrainConstants ()
84
84
.withCANbusName (kCANbusName )
85
85
.withPigeon2Id (kPigeonId )
Original file line number Diff line number Diff line change @@ -33,16 +33,20 @@ protected IntakeState getNextState(IntakeState currentState) {
33
33
@ Override
34
34
protected void afterTransition (IntakeState newState ) {
35
35
switch (newState ) {
36
- case IDLE :
36
+ case IDLE -> {
37
37
mainMotor .disable ();
38
38
centeringMotor .disable ();
39
- break ;
40
- case INTAKING :
39
+ }
40
+
41
+ case INTAKING -> {
41
42
mainMotor .setVoltage (0 ); // around 10
42
43
centeringMotor .setVoltage (0 );
43
- case OUTTAKING :
44
+ }
45
+
46
+ case OUTTAKING -> {
44
47
mainMotor .setVoltage (0 ); // around -6
45
48
centeringMotor .setVoltage (0 );
49
+ }
46
50
}
47
51
}
48
52
You can’t perform that action at this time.
0 commit comments