mirror of
https://github.com/Team4388/2023WayOfTheRobot.git
synced 2026-06-09 00:37:59 -06:00
(I am not sponsored by the russian government)
This commit is contained in:
@@ -140,11 +140,11 @@ public class RobotContainer {
|
||||
// * Operator Buttons
|
||||
|
||||
// TODO: use the claw subsystem
|
||||
new JoystickButton(getDeadbandedOperatorController(), XboxController.X_BUTTON)
|
||||
.onTrue(new InstantCommand(() -> {
|
||||
servo.setRaw(servo_open ? 1000 : 2000);
|
||||
servo_open = !servo_open;
|
||||
}));
|
||||
// new JoystickButton(getDeadbandedOperatorController(), XboxController.X_BUTTON)
|
||||
// .onTrue(new InstantCommand(() -> {
|
||||
// servo.setRaw(servo_open ? 1000 : 2000);
|
||||
// servo_open = !servo_open;
|
||||
// }));
|
||||
|
||||
new JoystickButton(getDeadbandedOperatorController(), XboxController.X_BUTTON)
|
||||
.onTrue(new InstantCommand(() -> m_robotClaw.toggle()));
|
||||
|
||||
Reference in New Issue
Block a user