-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathUnusedJunk
47 lines (45 loc) · 1.91 KB
/
UnusedJunk
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
37
38
39
40
41
42
43
44
45
46
47
The checkGoal method which we prob won't use anymore
public void checkGoal() {
for (int i = 0; i < 4; i++) {
for (int j = 0; j < 2; j++) {
if (massCenter[i][j] <= massCenter[0][0]
&& massCenter[i][j] <= massCenter[1][0]
&& massCenter[i][j] <= massCenter[2][0]
&& massCenter[i][j] <= massCenter[3][0]
&& massCenter[i][j] <= massCenter[0][1]
&& massCenter[i][j] <= massCenter[1][1]
&& massCenter[i][j] <= massCenter[2][1]
&& massCenter[i][j] <= massCenter[3][1]) {
massCenter[i][j] = [0][0];
//bottom left
}
else if (massCenter[i][j] >= massCenter[0][0]
&& massCenter[i][j] >= massCenter[1][0]
&& massCenter[i][j] >= massCenter[2][0]
&& massCenter[i][j] >= massCenter[3][0]
&& massCenter[i][j] >= massCenter[0][1]
&& massCenter[i][j] >= massCenter[1][1]
&& massCenter[i][j] >= massCenter[2][1]
&& massCenter[i][j] >= massCenter[3][1]) {
massCenter[i][j] = [0][0];
//top right
}
else if (massCenter[i][j] >= massCenter[0][0]
&& massCenter[i][j] >= massCenter[1][0]
&& massCenter[i][j] >= massCenter[2][0]
&& massCenter[i][j] >= massCenter[3][0]) {
//bottom right
} else {
//top left
}
}
}
}
Old way to check firelim
for (; fireLim.get();) {
long theTime = System.currentTimeMillis();
if (theTime - secondaryTriggerStart > 4000L) {
debug[2] = "WTFBBQ";
break;
}
}