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

Commit 0270364

Browse files
committed
change Deploy to Eject for consistency
the subsystem is called IntakeEject, so it should be Eject instead of Deploy
1 parent b73ca89 commit 0270364

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

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

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

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
package org.usfirst.frc.team199.Robot2018.commands;
22

3-
import java.awt.Robot;
43
import java.util.ArrayList;
54
import java.util.Arrays;
65
import java.util.Map;
76

7+
import org.usfirst.frc.team199.Robot2018.Robot;
8+
89
import edu.wpi.first.wpilibj.Timer;
910
import edu.wpi.first.wpilibj.command.CommandGroup;
1011
import edu.wpi.first.wpilibj.command.WaitCommand;
@@ -15,7 +16,7 @@
1516
public 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])));

0 commit comments

Comments
 (0)