Commit | Line | Data |
---|---|---|
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 | public class RetractDefenseArm extends CommandGroup { | |
8 | ||
9 | public RetractDefenseArm(double speed, double retractPosition) { | |
10 | requires(Robot.defenseArm); | |
11 | ||
12 | addParallel(new SetArmToAngle(speed, retractPosition)); | |
13 | addParallel(new SetHandToAngle(speed, retractPosition)); | |
14 | } | |
15 | } |