a2d4f4c380b52a00e8a8c09f0153476188e0ad33
[3501/stronghold-2016] / src / org / usfirst / frc / team3501 / robot / commands / intakearm / RunBothIntakeMotors.java
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 }