- @Override
- protected void initialize() {
- }
-
- @Override
- protected void execute() {
- }
-
- @Override
- protected boolean isFinished() {
- return false;
- }
-
- @Override
- protected void end() {
- }
+ public PassMoat() {
+ if (Constants.Auton.isUsingTime) {
+ addSequential(new DriveForTime(Constants.Auton.passMoatTime,
+ Constants.Auton.passMoatSpeed));
+ }
+ else {
+ addSequential(new DriveDistance(Constants.Auton.passMoatDistance,
+ Constants.DriveTrain.PASS_DEFENSE_TIMEOUT));
+ }