X-Git-Url: http://challenge-bot.com/repos/?a=blobdiff_plain;f=src%2Forg%2Fusfirst%2Ffrc%2Fteam3501%2Frobot%2Fautons%2FDrivePastStep.java;fp=src%2Forg%2Fusfirst%2Ffrc%2Fteam3501%2Frobot%2Fautons%2FDrivePastStep.java;h=f45975064b74726adaf3c195bd902648e1c54b0d;hb=b26407834f93b26caa7617d3cfcdd7a39c732818;hp=d3105f849a0eab994acf68d5682116a8baac07b1;hpb=3cd438bd5b650a27b84ef37224025cd7f6086e7c;p=ozzloy%40gmail.com%2F3501-spark-go diff --git a/src/org/usfirst/frc/team3501/robot/autons/DrivePastStep.java b/src/org/usfirst/frc/team3501/robot/autons/DrivePastStep.java index d3105f8..f459750 100644 --- a/src/org/usfirst/frc/team3501/robot/autons/DrivePastStep.java +++ b/src/org/usfirst/frc/team3501/robot/autons/DrivePastStep.java @@ -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() {