@@ -51,9 +51,8 @@ public String getCAN(Cable c1, Cable c2) {
51
51
} else if (getOther (2 ) instanceof PowerDistributionPanel && getOther (3 ) instanceof PowerDistributionPanel ) {
52
52
if ((getNum (2 ) == 9 && getNum (3 ) == 8 ) || (getNum (2 ) == 7 && getNum (3 ) == 6 )) {
53
53
return "PDP" ;
54
- } else {
55
- return "Incorrectly wired to PDP" ;
56
54
}
55
+ return "Incorrectly wired to PDP" ;
57
56
} else if (getOther (2 ) instanceof PneumaticsControlModule && getOther (3 ) instanceof PneumaticsControlModule ) {
58
57
if ((getNum (2 ) == 5 && getNum (3 ) == 4 ) || (getNum (2 ) == 3 && getNum (3 ) == 2 )) {
59
58
return "PCM" ;
@@ -150,7 +149,7 @@ public String check() {
150
149
(getCAN (get (3 ), get (2 )).equals ("RoboRIO" ) && getCAN (get (5 ), get (4 )).equals ("PDP" )))) {
151
150
String ans = "" ;
152
151
153
- if (!getCAN (get (3 ), get (2 )).equals ("PDP" ) && !getCAN (get (3 ), get (2 )).equals ("PCM" )) {
152
+ if (!getCAN (get (3 ), get (2 )).equals ("PDP" ) && !getCAN (get (3 ), get (2 )).equals ("PCM" ) && ! getCAN ( get ( 3 ), get ( 2 )). equals ( "RoboRIO" ) ) {
154
153
ans += getCAN (get (3 ), get (2 ));
155
154
} else {
156
155
if (getCAN (get (3 ), get (2 )).equals ("PDP" )) {
@@ -160,7 +159,7 @@ public String check() {
160
159
}
161
160
}
162
161
163
- if (!getCAN (get (5 ), get (4 )).equals ("PDP" ) && !getCAN (get (5 ), get (4 )).equals ("PCM" )) {
162
+ if (!getCAN (get (5 ), get (4 )).equals ("PDP" ) && !getCAN (get (5 ), get (4 )).equals ("PCM" ) && ! getCAN ( get ( 5 ), get ( 4 )). equals ( "RoboRIO" ) ) {
164
163
if (!getCAN (get (5 ), get (4 )).equals (ans )) {
165
164
if (ans .length () > 0 ) {
166
165
ans += "\n " ;
0 commit comments