-
Notifications
You must be signed in to change notification settings - Fork 35
/
Copy pathLEDState.java
36 lines (27 loc) · 1.18 KB
/
LEDState.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
package com.team254.frc2019.states;
public class LEDState {
public static final LEDState kOff = new LEDState(0.0, 0.0, 0.0);
public static final LEDState kIntakeIntakingDisk = new LEDState(0.0, 1.0, 0.0);
public static final LEDState kIntakeIntakingCargo = new LEDState(1.0, 1.0, 1.0);
public static final LEDState kIntakeExhuasting = new LEDState(1.0, 0.0, 0.0);
public static final LEDState kRobotZeroed = new LEDState(0.0, 1.0, 0.0);
public static final LEDState kFault = new LEDState(0.0, 0.0, 1.0);
public static final LEDState kFaultElevator = new LEDState(1.0, 0.0, 1.0);
public static final LEDState kHanging = new LEDState(0.0, 0.3, 1.0);
public static final LEDState kMinimalPressure = new LEDState(0.0, 1.0, 1.0);
public static final LEDState kOptimalPressure = new LEDState(1.0, 0.0, 0.0);
public LEDState() {}
public LEDState(double b, double g, double r) {
blue = b;
green = g;
red = r;
}
public void copyFrom(LEDState other) {
this.blue = other.blue;
this.green = other.green;
this.red = other.red;
}
public double blue;
public double green;
public double red;
}