This commit is contained in:
ryan123rudder
2022-03-05 23:47:24 -07:00
parent 9fe5dfd086
commit 92a453517e
2 changed files with 5 additions and 8 deletions
@@ -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))
@@ -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);