change location of base files
[ozzloy@gmail.com/3501-spark-go] / src / org / usfirst / frc / team3501 / robot / autons / DriveOverStep.java
index 22986611bc8306cea529d00525f0af25b2aa0990..aa3e752eca405c8d9bdc1a27882a9a179cd31c7d 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.bases.Command;
 
-public class DriveOverStep extends CommandBase {
+public class DriveOverStep extends Command {
 
     private double speed;
 
@@ -11,8 +10,14 @@ public class DriveOverStep extends CommandBase {
         super("DriveOverStep");
         requires(drivetrain);
 
-        setTimeout(RobotMap.OVER_STEP_TIME);
-        this.speed = RobotMap.OVER_STEP_SPEED;
+        setTimeout(autonData.getTime("drive_over_step"));
+        speed = autonData.getSpeed("drive_over_step");
+    }
+
+    // TODO: this is an ugly "solution"
+    public DriveOverStep(int coef) {
+        this();
+        this.speed *= coef;
     }
 
     protected void execute() {