Commit | Line | Data |
---|---|---|
6bc8d8a0 SC |
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 | ||
a4e2f14a SC |
7 | /*** |
8 | * This command group simultaneously move arm and hand to retracted position. | |
9 | * | |
10 | * @author shaina | |
11 | * | |
12 | */ | |
6bc8d8a0 SC |
13 | public class RetractDefenseArm extends CommandGroup { |
14 | ||
15 | public RetractDefenseArm(double speed, double retractPosition) { | |
16 | requires(Robot.defenseArm); | |
17 | ||
915269db | 18 | addParallel(new SetArmToAngle(speed, retractPosition)); |
0d47db19 | 19 | addParallel(new SetHandToAngle(speed, retractPosition)); |
6bc8d8a0 SC |
20 | } |
21 | } |