4dcd209e09f7f152359304413939f187f6948941
[3501/stronghold-2016] / src / org / usfirst / frc / team3501 / robot / commands / RetractDefenseArm.java
1 package org.usfirst.frc.team3501.robot.commands;
2
3 import org.usfirst.frc.team3501.robot.Robot;
4
5 import edu.wpi.first.wpilibj.command.CommandGroup;
6
7 /***
8 * This command group simultaneously move arm and hand to retracted position.
9 *
10 * @author shaina
11 *
12 */
13 public class RetractDefenseArm extends CommandGroup {
14
15 public RetractDefenseArm(double speed, double retractPosition) {
16 requires(Robot.defenseArm);
17
18 addParallel(new SetArmToAngle(speed, retractPosition));
19 addParallel(new SetHandToAngle(speed, retractPosition));
20 }
21 }