X-Git-Url: http://challenge-bot.com/repos/?p=3501%2Fstronghold-2016;a=blobdiff_plain;f=src%2Forg%2Fusfirst%2Ffrc%2Fteam3501%2Frobot%2Fcommands%2Fintakearm%2FRunBothIntakeMotors.java;fp=src%2Forg%2Fusfirst%2Ffrc%2Fteam3501%2Frobot%2Fcommands%2Fintakearm%2FRunBothIntakeMotors.java;h=a2d4f4c380b52a00e8a8c09f0153476188e0ad33;hp=0000000000000000000000000000000000000000;hb=0a179caa3cb1017af9fc7dab08c7123c3407e84f;hpb=03926b5fa23be90ab6c5ad77c3204a8b94fc02ed diff --git a/src/org/usfirst/frc/team3501/robot/commands/intakearm/RunBothIntakeMotors.java b/src/org/usfirst/frc/team3501/robot/commands/intakearm/RunBothIntakeMotors.java new file mode 100644 index 00000000..a2d4f4c3 --- /dev/null +++ b/src/org/usfirst/frc/team3501/robot/commands/intakearm/RunBothIntakeMotors.java @@ -0,0 +1,26 @@ +package org.usfirst.frc.team3501.robot.commands.intakearm; + +import org.usfirst.frc.team3501.robot.Robot; + +import edu.wpi.first.wpilibj.command.CommandGroup; + +/*** + * This command runs both intake arm motors at a given speed momentarily. + * + * @author harel, garima + * + */ +public class RunBothIntakeMotors extends CommandGroup { + + /*** + * @param motorSpeed + * Speed at which to run intake arm motors. Range is [-1,1] + */ + public RunBothIntakeMotors(double motorSpeed) { + addParallel(new RunIntakeMotor(Robot.intakeArm.getLeftIntakeArmMotor(), + motorSpeed)); + addParallel(new RunIntakeMotor(Robot.intakeArm.getRightIntakeArmMotor(), + motorSpeed)); + } + +}