Skip to content

Commit 384127b

Browse files
committed
Bloop
1 parent b61378a commit 384127b

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

src/main/java/frc/robot/RobotContainer.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131

3232
import edu.wpi.first.wpilibj.DigitalInput;
3333
import edu.wpi.first.wpilibj.Joystick;
34+
import edu.wpi.first.wpilibj2.command.button.Button;
3435
import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard;
3536
import edu.wpi.first.wpilibj.util.Color;
3637
import edu.wpi.first.wpilibj2.command.Command;
@@ -350,6 +351,13 @@ public void configureButtonBindings() {
350351
new JoystickButton(operator,9).and(new JoystickButton(operator,10))
351352
.whenActive(new ResetHood(mShooter));
352353

354+
new Button() {
355+
@Override
356+
public boolean get() {
357+
return (operator.getPOV() == 0);
358+
}
359+
}.whenPressed(new PresetFlywheelController(mShooter, "BLP"));
360+
353361
// .and(new JoystickButton(operator, X_BOX_LOGO_LEFT))
354362
// .whenActive(new ToggleClimber(mClimber));
355363
}

src/main/java/frc/robot/shooter/commands/PresetFlywheelController.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ public void initialize() {
3232
this.rpm = Preferences.getInt("TUR.Velocity", 1625);
3333
this.hoodAngle = Preferences.getDouble("TUR.Angle", 65.0); // tarmac, upper goal, rear shot
3434
break;
35+
case "BLP":
36+
this.rpm = Preferences.getInt("BLP.Velocity", 500);
37+
this.hoodAngle = Preferences.getDouble("BLP.Angle", 60.0); // tarmac, upper goal, rear shot
38+
break;
3539
default:
3640
this.rpm = 500;
3741
this.hoodAngle = 80.0;

0 commit comments

Comments
 (0)