big refactor of command/commandbase/commandgroup. also add auton read from file.
[3501/3501-spark-go] / src / org / usfirst / frc / team3501 / robot / autons / DrivePastStep.java
index d3105f849a0eab994acf68d5682116a8baac07b1..f45975064b74726adaf3c195bd902648e1c54b0d 100644 (file)
@@ -1,9 +1,8 @@
 package org.usfirst.frc.team3501.robot.autons;
 
-import org.usfirst.frc.team3501.robot.RobotMap;
-import org.usfirst.frc.team3501.robot.commands.CommandBase;
+import org.usfirst.frc.team3501.robot.commands.Command;
 
-public class DrivePastStep extends CommandBase {
+public class DrivePastStep extends Command {
 
     private double speed;
 
@@ -11,8 +10,8 @@ public class DrivePastStep extends CommandBase {
         super("DrivePastStep");
         requires(drivetrain);
 
-        setTimeout(RobotMap.PAST_STEP_TIME);
-        this.speed = RobotMap.PAST_STEP_SPEED;
+        setTimeout(autonData.getTime("drive_past_step"));
+        speed = autonData.getSpeed("drive_past_step");
     }
 
     protected void execute() {