forked from Team254/FRC-2019-Public
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTestControlFlowMode.java
29 lines (20 loc) · 998 Bytes
/
TestControlFlowMode.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
package com.team254.frc2019.auto.modes;
import com.team254.frc2019.auto.AutoModeEndedException;
import com.team254.frc2019.auto.actions.WaitAction;
public class TestControlFlowMode extends AutoModeBase {
@Override
protected void routine() throws AutoModeEndedException {
System.out.println("***** Starting test control flow mode");
System.out.println("***** starting - first wait action");
runAction(new WaitAction(10));
System.out.println("***** done - first wait action ");
waitForDriverConfirm(); // drivers do some manual stuff
System.out.println("***** starting - second wait action");
runAction(new WaitAction(10));
System.out.println("***** done - second wait action ");
waitForDriverConfirm(); // drivers do some manual stuff
System.out.println("***** starting - third wait action");
runAction(new WaitAction(10));
System.out.println("***** done - third wait action ");
}
}