Add buttons to move intake arm.
[3501/stronghold-2016] / src / org / usfirst / frc / team3501 / robot / commands / intakearm / RunBothIntakeMotors.java
CommitLineData
0a179caa
KZ
1package org.usfirst.frc.team3501.robot.commands.intakearm;
2
3import org.usfirst.frc.team3501.robot.Robot;
4
5import 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 */
13public 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}