package org.usfirst.frc.team3501.robot.commands.auton;
-import edu.wpi.first.wpilibj.command.Command;
+import edu.wpi.first.wpilibj.command.CommandGroup;
/***
* This command will drive the robot through the low bar.
* @author Meryem and Avi
*
*/
-public class PassLowBar extends Command {
- public PassLowBar() {
+public class PassLowBar extends CommandGroup {
- }
+ private final double DISTANCE = 4.0;
+ private final double DEFAULT_SPEED = 0.5;
- @Override
- protected void initialize() {
- }
-
- @Override
- protected void execute() {
- }
-
- @Override
- protected boolean isFinished() {
- return false;
- }
-
- @Override
- protected void end() {
+ public PassLowBar() {
+ addSequential(new DriveForDistance(DISTANCE, DEFAULT_SPEED));
}
- @Override
- protected void interrupted() {
+ public PassLowBar(double speed) {
+ addSequential(new DriveForDistance(DISTANCE, speed));
}
}