Skip to content

Commit de65cad

Browse files
committed
Allow for threads to be executed after main
1 parent f77e47d commit de65cad

File tree

4 files changed

+13
-1
lines changed

4 files changed

+13
-1
lines changed

Diff for: bin/org/usfirst/frc/team834/robot/Robot$1.class

0 Bytes
Binary file not shown.

Diff for: bin/org/usfirst/frc/team834/robot/Robot$2.class

0 Bytes
Binary file not shown.

Diff for: bin/org/usfirst/frc/team834/robot/Robot.class

72 Bytes
Binary file not shown.

Diff for: src/org/usfirst/frc/team834/robot/Robot.java

+13-1
Original file line numberDiff line numberDiff line change
@@ -168,9 +168,21 @@ public void autonomous() {
168168
}
169169

170170
main.get(i).execute();
171-
i++; }
171+
172+
i++;
173+
174+
175+
}
172176
catch(NullPointerException e) {}
173177
}
178+
179+
//Starts any ohter threads
180+
for(int start = 1; start < threadStarts.length; start++) {
181+
if (threadStarts[start] >= i){
182+
threads[i].start();
183+
}
184+
185+
}
174186

175187
}
176188
catch (IOException e) {SmartDashboard.putString("DB/String 0", e.toString());}

0 commit comments

Comments
 (0)