Placement of where a value was set was wrong

This commit is contained in:
2026-03-01 16:36:06 -05:00
parent 80ef3a3431
commit cbcfc9cab0
3 changed files with 12 additions and 12 deletions

View File

@@ -80,9 +80,9 @@ public class Shooter extends SubsystemBase {
}
public Command maintainSpeed(ShooterSpeeds speeds) {
targetSpeeds = speeds;
return run(() -> {
targetSpeeds = speeds;
if(targetSpeeds == null) {
leftMotor.disable();
rightMotor.disable();
@@ -101,9 +101,9 @@ public class Shooter extends SubsystemBase {
}
public Command manualSpeed(DoubleSupplier speed) {
targetSpeeds = null;
return run(() -> {
targetSpeeds = null;
leftMotor.set(speed.getAsDouble() * ShooterConstants.kMaxManualSpeedMultiplier);
rightMotor.set(speed.getAsDouble() * ShooterConstants.kMaxManualSpeedMultiplier);
});