mirror of
https://github.com/Team4388/2022NoWayHome.git
synced 2026-06-09 00:38:05 -06:00
jkg
This commit is contained in:
@@ -311,11 +311,11 @@ public class RobotContainer {
|
|||||||
new JoystickButton(getDriverController(), XboxController.Button.kRightBumper.value)
|
new JoystickButton(getDriverController(), XboxController.Button.kRightBumper.value)
|
||||||
.whenPressed(() -> m_robotSwerveDrive.highSpeed(true));
|
.whenPressed(() -> m_robotSwerveDrive.highSpeed(true));
|
||||||
|
|
||||||
new JoystickButton(getDriverController(), XboxController.Axis.kLeftTrigger.value)
|
new JoystickButton(getDriverController(), XboxController.Button.kA.value)
|
||||||
.whenPressed(new InstantCommand(() -> switchControlMode()))
|
.whenPressed(new InstantCommand(() -> switchControlMode()))
|
||||||
.whenReleased(new InstantCommand(() -> switchControlMode()));
|
.whenReleased(new InstantCommand(() -> switchControlMode()));
|
||||||
|
|
||||||
new JoystickButton(getDriverController(), XboxController.Axis.kRightTrigger.value)
|
new JoystickButton(getDriverController(), XboxController.Button.kB.value)
|
||||||
.whenPressed(new InstantCommand(() -> switchDriveMode()))
|
.whenPressed(new InstantCommand(() -> switchDriveMode()))
|
||||||
.whenReleased(new InstantCommand(() -> switchDriveMode()));
|
.whenReleased(new InstantCommand(() -> switchDriveMode()));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user