1 package org
.usfirst
.frc
.team3501
.robot
.commands
.intakearm
;
3 import org
.usfirst
.frc
.team3501
.robot
.Robot
;
5 import edu
.wpi
.first
.wpilibj
.command
.CommandGroup
;
8 * This command group uses the intake arm to push down the moving parts of the
9 * cheval de frise so that the robot can drive over it
11 * pre-condition: the robot is flush against the border of the outerworks (flush
14 * post condition: intake arm has pushed the cheval de frise down
17 public class PushDownChevalDeFrise
extends CommandGroup
{
19 public PushDownChevalDeFrise() {
20 requires(Robot
.intakeArm
);
22 * if the arm is high enough - above cheval de frise height (find this from
25 * go forward until arm is over cheval de frise
27 * move arm down to floor level -- or as much as possible
28 * -------------------------------------------------------------------------
30 * if the arm is beneath the cheval de frise
32 * move the arm up so it's high enough
34 * move forward a little