big refactor of command/commandbase/commandgroup. also add auton read from file.
[3501/3501-spark-go] / src / org / usfirst / frc / team3501 / robot / autons / DriveOverStep.java
index f70b3d280d81aa5acc0b74e853b9ab58540b3118..224bc9ca5eac3c0a2a644cfbf4e0915c34c5dce6 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 DriveOverStep extends CommandBase {
+public class DriveOverStep extends Command {
 
     private double speed;
 
@@ -11,8 +10,8 @@ public class DriveOverStep extends CommandBase {
         super("DriveOverStep");
         requires(drivetrain);
 
-        setTimeout(RobotMap.OVER_STEP_TIME);
-        speed = RobotMap.OVER_STEP_SPEED;
+        setTimeout(autonData.getTime("drive_over_step"));
+        speed = autonData.getSpeed("drive_over_step");
     }
 
     // TODO: this is an ugly "solution"