package org.usfirst.frc.team3501.robot.commands.auton;
+import org.usfirst.frc.team3501.robot.Constants;
+import org.usfirst.frc.team3501.robot.commands.driving.DriveDistance;
+import org.usfirst.frc.team3501.robot.commands.driving.DriveForTime;
+
import edu.wpi.first.wpilibj.command.CommandGroup;
/***
public PassRampart() {
- final double BEG_TIME = 0;
- final double BEG_SPEED = 0;
- final double MID_TIME = 0;
- final double MID_SPEED = 0;
- final double END_TIME = 0;
- final double END_SPEED = 0;
-
- addSequential(new DriveForTime(BEG_TIME, BEG_SPEED));
- addSequential(new DriveForTime(MID_TIME, MID_SPEED));
- addSequential(new DriveForTime(END_TIME, END_SPEED));
+ if (Constants.Auton.IS_USING_TIME) {
+ addSequential(new DriveForTime(Constants.Auton.PASS_RAMPART_TIME,
+ Constants.Auton.PASS_RAMPART_SPEED));
+ }
+ else {
+ addSequential(new DriveDistance(
+ Constants.Auton.PASS_RAMPART_DIST,
+ Constants.DriveTrain.PASS_DEFENSE_TIMEOUT));
+ }
}