var alliance = DriverStation.getAlliance();
if (alliance.isEmpty()) {
- color = Color.kWhite;
+ color = Color.kOrange;
} else if (alliance.get() == Alliance.Red) {
color = Color.kRed;
} else if (alliance.get() == Alliance.Blue) {
- color = Color.kBlue;
+ color = Color.kOrange;
} else {
color = Color.kWhite;
}
System.out.println("CANdle features: " + featureConf + ", LED config: " + ledConf);
- SmartDashboard.putData("LED Off", new InstantCommand(() -> lightsOff()));
- SmartDashboard.putData("LED Strobe", new InstantCommand(() -> setStrobe()));
- SmartDashboard.putData("LED Static", new InstantCommand(() -> setStatic()));
+ SmartDashboard.putData("LED Off", new InstantCommand(() -> lightsOff()).ignoringDisable(true));
+ SmartDashboard.putData("LED Strobe", new InstantCommand(() -> setStrobe()).ignoringDisable(true));
+ SmartDashboard.putData("LED Static", new InstantCommand(() -> setStatic()).ignoringDisable(true));
SmartDashboard.putData("LED Color/Team Reset", new InstantCommand(() -> {
var allianceeee = DriverStation.getAlliance();
if (allianceeee.isEmpty()) {
} else {
color = Color.kWhite;
}
- }));
+ }).ignoringDisable(true));
}
private boolean flippy = true;