Commit | Line | Data |
---|---|---|
0a179caa KZ |
1 | package org.usfirst.frc.team3501.robot.commands.intakearm; |
2 | ||
3 | import org.usfirst.frc.team3501.robot.Robot; | |
4 | ||
5 | import edu.wpi.first.wpilibj.command.CommandGroup; | |
6 | ||
7 | /*** | |
8 | * This command runs both intake arm motors at a given speed momentarily. | |
9 | * | |
10 | * @author harel, garima | |
11 | * | |
12 | */ | |
13 | public class RunBothIntakeMotors extends CommandGroup { | |
14 | ||
15 | /*** | |
16 | * @param motorSpeed | |
17 | * Speed at which to run intake arm motors. Range is [-1,1] | |
18 | */ | |
19 | public RunBothIntakeMotors(double motorSpeed) { | |
20 | addParallel(new RunIntakeMotor(Robot.intakeArm.getLeftIntakeArmMotor(), | |
21 | motorSpeed)); | |
22 | addParallel(new RunIntakeMotor(Robot.intakeArm.getRightIntakeArmMotor(), | |
23 | motorSpeed)); | |
24 | } | |
25 | ||
26 | } |