This repository was archived by the owner on Sep 14, 2019. It is now read-only.
File tree Expand file tree Collapse file tree
Robot2018/src/org/usfirst/frc/team199/Robot2018/commands Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11package org .usfirst .frc .team199 .Robot2018 .commands ;
22
3- import java .awt .Robot ;
43import java .util .ArrayList ;
54import java .util .Arrays ;
65import java .util .Map ;
76
7+ import org .usfirst .frc .team199 .Robot2018 .Robot ;
8+
89import edu .wpi .first .wpilibj .Timer ;
910import edu .wpi .first .wpilibj .command .CommandGroup ;
1011import edu .wpi .first .wpilibj .command .WaitCommand ;
1516public class RunScript extends CommandGroup implements RunScriptInterface {
1617
1718 public RunScript (String scriptName ) {
18- String [] script = Robot .autoScripts .getOrDefault (scriptName , new String [ 0 ] );
19+ ArrayList < String > script = Robot .autoScripts .getOrDefault (scriptName , new ArrayList < String >() );
1920
2021 outerloop :
2122 for (String cmd : script ) {
@@ -34,13 +35,13 @@ public RunScript(String scriptName) {
3435 addSequential (new AutoMove (cmdArgs [0 ]));
3536 break ;
3637 case "switch" :
37- addSequential (new DeployToSwitch ());
38+ addSequential (new EjectToSwitch ());
3839 break ;
3940 case "scale" :
40- addSequential (new DeployToScale ());
41+ addSequential (new EjectToScale ());
4142 break ;
4243 case "exchange" :
43- addSequential (new DeployToExchange ());
44+ addSequential (new EjectToExchange ());
4445 break ;
4546 case "wait" :
4647 addSequential (new WaitCommand (Double .parseDouble (cmdArgs [0 ])));
You can’t perform that action at this time.
0 commit comments