Skip to content
This repository was archived by the owner on Sep 14, 2019. It is now read-only.

Commit 3bff2b9

Browse files
committed
temporarily fix RunScript
remove call to Robot.autoScripts to prevent compilation errors until autoScripts is written and pushed to main branch
1 parent 5cb2329 commit 3bff2b9

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

  • Robot2018/src/org/usfirst/frc/team199/Robot2018/commands

Robot2018/src/org/usfirst/frc/team199/Robot2018/commands/RunScript.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
import org.usfirst.frc.team199.Robot2018.Robot;
88

9-
import edu.wpi.first.wpilibj.Timer;
109
import edu.wpi.first.wpilibj.command.CommandGroup;
1110
import edu.wpi.first.wpilibj.command.WaitCommand;
1211

@@ -16,7 +15,8 @@
1615
public class RunScript extends CommandGroup implements RunScriptInterface {
1716

1817
public RunScript(String scriptName) {
19-
ArrayList<String> script = Robot.autoScripts.getOrDefault(scriptName, new ArrayList<String>());
18+
// make sure to uncomment this when autoScripts is written
19+
ArrayList<String> script = null; // Robot.autoScripts.getOrDefault(scriptName, new ArrayList<String>());
2020

2121
outerloop:
2222
for(String cmd : script) {
@@ -55,7 +55,7 @@ public RunScript(String scriptName) {
5555
case "end":
5656
break outerloop;
5757
default:
58-
throw new Exception();
58+
System.out.println("`" + cmdParts[0] + "`" + " is not a valid command name. Check AAA Reference.");
5959
}
6060
}
6161
}

0 commit comments

Comments
 (0)