add precondition and Timeout to Expel and Intake commands
[3501/stronghold-2016] / src / org / usfirst / frc / team3501 / robot / commands / RetractDefenseArm.java
CommitLineData
6bc8d8a0
SC
1package org.usfirst.frc.team3501.robot.commands;
2
3import org.usfirst.frc.team3501.robot.Robot;
4
5import edu.wpi.first.wpilibj.command.CommandGroup;
6
a4e2f14a
SC
7/***
8 * This command group simultaneously move arm and hand to retracted position.
9 *
10 * @author shaina
11 *
12 */
6bc8d8a0 13public class RetractDefenseArm extends CommandGroup {
ca3f7067
SC
14 static final double ARM_FULLY_RETRACTED_ANGLE = 0; // change value once tested
15 static final double HAND_FULLY_RETRACTED_ANGLE = 0; // change value once
16 // tested
6bc8d8a0 17
ca3f7067 18 public RetractDefenseArm(double speed) {
6bc8d8a0
SC
19 requires(Robot.defenseArm);
20
ca3f7067
SC
21 addParallel(new SetArmToAngle(speed, ARM_FULLY_RETRACTED_ANGLE));
22 addParallel(new SetHandToAngle(speed, HAND_FULLY_RETRACTED_ANGLE));
6bc8d8a0
SC
23 }
24}