1 package org
.usfirst
.frc
.team3501
.robot
.commands
;
3 import org
.usfirst
.frc
.team3501
.robot
.Constants
.Defense
;
5 import edu
.wpi
.first
.wpilibj
.command
.CommandGroup
;
8 * The default autonomous strategy involves passing the defense that is in front
9 * of it, aiming the robot/ shooter towards the goal, and shooting.
11 public class DefaultAutonStrategy
extends CommandGroup
{
13 public DefaultAutonStrategy(int position
, Defense defense
) {
15 * pass defense drive forward do what has to be done to pass the defense
16 * drive forward aim face tower aim shooter toward goal shoot
19 // TODO: any variable that is not declared/instantiated are vars that need
20 // to be tested for their value
24 // we are assuming that the robot is also driving forward as the
25 // portcullis is being lifted
26 addSequential(new LiftPortcullis());
31 addSequential(new DriveForDistance(distance
, speed
));
35 addSequential(new DriveForDistance(distance
, speed
));
39 addSequential(new LowerChevalDeFrise());
43 addSequential(new LowerDrawBridge());
47 addSequential(new DriveForDistance(distance
, speed
));
51 addSequential(new DriveForDistance(distance
, speed
));
55 addSequential(new DriveForDistance(distance
, speed
));