- addSequential(new DriveForDistance(DISTANCE, DEFAULT_SPEED));
- }
-
- public PassLowBar(double speed) {
- addSequential(new DriveForDistance(DISTANCE, speed));
+ if (Constants.Auton.isUsingTime) {
+ addSequential(new DriveForTime(Constants.Auton.passLowBarTime,
+ Constants.Auton.passLowBarSpeed));
+ }
+ else {
+ addSequential(new DriveDistance(
+ Constants.Auton.passLowBarDistance,
+ Constants.DriveTrain.PASS_DEFENSE_TIMEOUT));
+ }