public static final double OUTPUT_SPEED = -0.7;
}
- public static class Auton {
+ public static class Auton { // TODO: test for all these values
// Defense crossing speeds from -1 to 1
public static final double DEFAULT_SPEED = 0.3;
public static final double MOAT_SPEED = 0.6;
public ChooseStrategy(int position, Defense defense) {
+ // TODO: test for all the "pass defense" command groups
if (defense == Defense.PORTCULLIS)
addSequential(new PassPortcullis());
else if (defense == Defense.LOW_BAR)
addSequential(new PassLowBar());
- // addSequential(new AlignToScore(position));
- // // TODO: test for how long robot should wait
- // addSequential(new WaitCommand(Auton.WAIT_TIME));
- // addSequential(new Shoot());
-
}
}
*
*/
public class PassChivalDeFrise extends CommandGroup {
-
- public PassChivalDeFrise() {
- // Add Commands here:
- // e.g. addSequential(new Command1());
- // addSequential(new Command2());
- // these will run in order.
- // To run multiple commands at the same time,
- // use addParallel()
- // e.g. addParallel(new Command1());
- // addSequential(new Command2());
- // Command1 and Command2 will run in parallel.
-
- // A command group will require all of the subsystems that each member
- // would require.
- // e.g. if Command1 requires chassis, and Command2 requires arm,
- // a CommandGroup containing them would require both the chassis and the
- // arm.
- }
+ public PassChivalDeFrise() {
+ }
}
*
*/
public class PassDrawbridge extends CommandGroup {
-
- public PassDrawbridge() {
- // Add Commands here:
- // e.g. addSequential(new Command1());
- // addSequential(new Command2());
- // these will run in order.
- // To run multiple commands at the same time,
- // use addParallel()
- // e.g. addParallel(new Command1());
- // addSequential(new Command2());
- // Command1 and Command2 will run in parallel.
+ public PassDrawbridge() {
- // A command group will require all of the subsystems that each member
- // would require.
- // e.g. if Command1 requires chassis, and Command2 requires arm,
- // a CommandGroup containing them would require both the chassis and the
- // arm.
- }
+ }
}
*
*/
public class PassPortcullis extends CommandGroup {
-
- public PassPortcullis() {
- // Add Commands here:
- // e.g. addSequential(new Command1());
- // addSequential(new Command2());
- // these will run in order.
- // To run multiple commands at the same time,
- // use addParallel()
- // e.g. addParallel(new Command1());
- // addSequential(new Command2());
- // Command1 and Command2 will run in parallel.
-
- // A command group will require all of the subsystems that each member
- // would require.
- // e.g. if Command1 requires chassis, and Command2 requires arm,
- // a CommandGroup containing them would require both the chassis and the
- // arm.
- }
+ public PassPortcullis() {
+ }
}
*
*/
public class PassSallyPort extends CommandGroup {
-
- public PassSallyPort() {
- // Add Commands here:
- // e.g. addSequential(new Command1());
- // addSequential(new Command2());
- // these will run in order.
- // To run multiple commands at the same time,
- // use addParallel()
- // e.g. addParallel(new Command1());
- // addSequential(new Command2());
- // Command1 and Command2 will run in parallel.
+ public PassSallyPort() {
- // A command group will require all of the subsystems that each member
- // would require.
- // e.g. if Command1 requires chassis, and Command2 requires arm,
- // a CommandGroup containing them would require both the chassis and the
- // arm.
- }
+ }
}