Skip to content
This repository was archived by the owner on Jan 10, 2025. It is now read-only.

Commit ae8728e

Browse files
authored
intake bug fix + tuner constant private -> public (#41)
1 parent ff7da64 commit ae8728e

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

src/main/java/frc/robot/generated/TunerConstants.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public class TunerConstants {
7979
private static final double kSteerFrictionVoltage = 0.25;
8080
private static final double kDriveFrictionVoltage = 0.25;
8181

82-
private static final SwerveDrivetrainConstants DrivetrainConstants =
82+
public static final SwerveDrivetrainConstants DrivetrainConstants =
8383
new SwerveDrivetrainConstants()
8484
.withCANbusName(kCANbusName)
8585
.withPigeon2Id(kPigeonId)

src/main/java/frc/robot/intake/IntakeSubsystem.java

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,16 +33,20 @@ protected IntakeState getNextState(IntakeState currentState) {
3333
@Override
3434
protected void afterTransition(IntakeState newState) {
3535
switch (newState) {
36-
case IDLE:
36+
case IDLE -> {
3737
mainMotor.disable();
3838
centeringMotor.disable();
39-
break;
40-
case INTAKING:
39+
}
40+
41+
case INTAKING -> {
4142
mainMotor.setVoltage(0); // around 10
4243
centeringMotor.setVoltage(0);
43-
case OUTTAKING:
44+
}
45+
46+
case OUTTAKING -> {
4447
mainMotor.setVoltage(0); // around -6
4548
centeringMotor.setVoltage(0);
49+
}
4650
}
4751
}
4852

0 commit comments

Comments
 (0)