diff --git a/src/main/java/frc4388/robot/RobotContainer.java b/src/main/java/frc4388/robot/RobotContainer.java index b3f3f3d..d7754ae 100644 --- a/src/main/java/frc4388/robot/RobotContainer.java +++ b/src/main/java/frc4388/robot/RobotContainer.java @@ -146,6 +146,7 @@ public class RobotContainer { true), m_robotSwerveDrive).withName("Swerve driveWithInput defaultCommand")); + // continually sends updates to the Blinkin LED controller to keep the lights on // m_robotLED // .setDefaultCommand(new RunCommand(m_robotLED::updateLED, @@ -194,13 +195,6 @@ public class RobotContainer { .whenPressed(new RunClaw(m_claws, ClawType.LEFT, false)) .whenPressed(new RunClaw(m_claws, ClawType.RIGHT, false)); - // new JoystickButton(getOperatorJoystick(), XboxController.Y_BUTTON) - // .whenPressed(() -> m_claws.setSpeed(0.5)) - // .whenReleased(() -> m_claws.setSpeed(0.0)); - // new JoystickButton(getOperatorJoystick(), XboxController.X_BUTTON) - // .whenPressed(() -> m_claws.setSpeed(-0.5)) - // .whenReleased(() -> m_claws.setSpeed(0.0)); - /* * new JoystickButton(getOperatorController(), XboxController.Button.kB.value) * .whenPressed(() -> m_robotLED.setPattern(LEDPatterns.LAVA_RAINBOW)) diff --git a/src/main/java/frc4388/robot/subsystems/Claws.java b/src/main/java/frc4388/robot/subsystems/Claws.java index 66d84ec..cb1bb93 100644 --- a/src/main/java/frc4388/robot/subsystems/Claws.java +++ b/src/main/java/frc4388/robot/subsystems/Claws.java @@ -74,7 +74,10 @@ public class Claws extends SubsystemBase { m_open = open; } - + /** + * Sets the state of both hooks + * @param open The state of the hooks + */ public void setOpen(boolean open) { if(open) { // m_leftClaw.getEncoder().setPosition(ClawsConstants.OPEN_POSITION + m_leftOffset);