We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e77aad3 commit ca26712Copy full SHA for ca26712
1 file changed
Robot2019/src/main/java/frc/robot/subsystems/Lights.java
@@ -9,6 +9,7 @@
9
10
import edu.wpi.first.wpilibj.VictorSP;
11
import edu.wpi.first.wpilibj.command.Subsystem;
12
+import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard;
13
import frc.robot.commands.SetLight;
14
15
/**
@@ -30,6 +31,15 @@ public Lights(VictorSP lights) {
30
31
32
public void setLights() {
33
lights.set(lightsValue);
34
+ String color;
35
+ if (lightsValue == 0) {
36
+ color = "None";
37
+ } else if (lightsValue == 0.5) {
38
+ color = "Yellow";
39
+ } else {
40
+ color = "Orange";
41
+ }
42
+ SmartDashboard.putString("Lights Current Color", color);
43
}
44
45
public void toggleLights() {
0 commit comments