if (fiveSecondsBeforeChange() && allianceIsRed) {
// blink alliance color and rumble if red alliance 5 seconds before hub shifts
led.setStrobeLights(255, 0, 0);
- // controller.setRumble(GenericHID.RumbleType.kBothRumble, 1.0);
+ controller.setRumble(GenericHID.RumbleType.kBothRumble, 1.0);
} else if (fiveSecondsBeforeChange()) {
// blink alliance color and rumble if blue alliance 5 seconds before hub shifts
led.setStrobeLights(0, 0, 255);
- // controller.setRumble(GenericHID.RumbleType.kBothRumble, 1.0);
+ controller.setRumble(GenericHID.RumbleType.kBothRumble, 1.0);
} else
- if (playingDefense) {
+ if (playingDefense()) {
new DefenseLightsCommand(led, 0, 67);
} else
if (DriverStation.isAutonomous() && allianceIsRed){
}
private boolean playingDefense() {
+ // TODO: add automatic defense lights
return false;
}
}
import frc.robot.subsystems.turret.Turret;
import frc.robot.subsystems.hood.Hood;
import frc.robot.subsystems.Intake.Intake;
+import frc.robot.subsystems.LED.LED;
import lib.controllers.PS5Controller;
import lib.controllers.PS5Controller.PS5Axis;
import lib.controllers.PS5Controller.PS5Button;