X-Git-Url: http://challenge-bot.com/repos/?a=blobdiff_plain;f=src%2Forg%2Fusfirst%2Ffrc%2Fteam3501%2Frobot%2Fautons%2FDriveOverStep.java;h=f70b3d280d81aa5acc0b74e853b9ab58540b3118;hb=e81578e3624e61c2a8eb5b5c6b1015a2999784e7;hp=22986611bc8306cea529d00525f0af25b2aa0990;hpb=d24e8611dc96b16cc613a0de54bde4e682a06ba2;p=ozzloy%40gmail.com%2F3501-spark-go diff --git a/src/org/usfirst/frc/team3501/robot/autons/DriveOverStep.java b/src/org/usfirst/frc/team3501/robot/autons/DriveOverStep.java index 2298661..f70b3d2 100644 --- a/src/org/usfirst/frc/team3501/robot/autons/DriveOverStep.java +++ b/src/org/usfirst/frc/team3501/robot/autons/DriveOverStep.java @@ -12,7 +12,13 @@ public class DriveOverStep extends CommandBase { requires(drivetrain); setTimeout(RobotMap.OVER_STEP_TIME); - this.speed = RobotMap.OVER_STEP_SPEED; + speed = RobotMap.OVER_STEP_SPEED; + } + + // TODO: this is an ugly "solution" + public DriveOverStep(int coef) { + this(); + this.speed *= coef; } protected void execute() {