From a46ec9ff14ab58fe48b174e9bfd961fd5790c713 Mon Sep 17 00:00:00 2001 From: "Keenan D. Buckley" Date: Thu, 30 Jan 2020 22:15:03 -0700 Subject: [PATCH] Update RunIntakeWithTriggers docs and fix potential bug --- .../frc4388/robot/commands/RunIntakeWithTriggers.java | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/main/java/frc4388/robot/commands/RunIntakeWithTriggers.java b/src/main/java/frc4388/robot/commands/RunIntakeWithTriggers.java index 359ea0e..bb7cef2 100644 --- a/src/main/java/frc4388/robot/commands/RunIntakeWithTriggers.java +++ b/src/main/java/frc4388/robot/commands/RunIntakeWithTriggers.java @@ -16,9 +16,12 @@ public class RunIntakeWithTriggers extends CommandBase { private IHandController m_controller; /** - * Uses input from opperator triggers to control intake motor - * @param subsystem the intake subsystem - * @param controller the operator controller + * Uses input from opperator triggers to control intake motor. + * The right trigger will run the intake in and the left trigger will run it out. + * @param subsystem pass the Intake subsystem from {@link frc4388.robot.RobotContainer#RobotContainer() RobotContainer} + * @param controller pass the Operator {@link frc4388.utility.controller.IHandController#getClass() IHandController} using the + * {@link frc4388.robot.RobotContainer#getOperatorJoystick() getOperatorJoystick()} method in + * {@link frc4388.robot.RobotContainer#RobotContainer() RobotContainer} */ public RunIntakeWithTriggers(Intake subsystem, IHandController controller) { // Use addRequirements() here to declare subsystem dependencies. @@ -43,7 +46,7 @@ public class RunIntakeWithTriggers extends CommandBase { output = rightTrigger; } if (leftTrigger > rightTrigger) { - output = leftTrigger; + output = -leftTrigger; } } else { output = rightTrigger;