From c19e3d60854d66faec3222df603e0eae24f3173d Mon Sep 17 00:00:00 2001 From: Peter <85247098+RedFox86@users.noreply.github.com> Date: Tue, 21 Jan 2025 17:33:26 -0500 Subject: [PATCH] Add instructions for swapping driving methods --- src/main/java/frc/robot/Robot.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/main/java/frc/robot/Robot.java b/src/main/java/frc/robot/Robot.java index 074bdd1..fa15f7b 100644 --- a/src/main/java/frc/robot/Robot.java +++ b/src/main/java/frc/robot/Robot.java @@ -56,6 +56,13 @@ public Robot() { configureAutomaticBindings(); // Configure default commands + /* + * Use driveWithFlightSticks() to use flight stick driving + * Use driveWithXbox() to drive solely with the xbox controller + * Note: Right joystick drives, left joystick turns for both + * xbox and flight sticks. Refer to Constants.java (OIConstants) + * for the correct Driver Station inputs. + */ drive.setDefaultCommand(driveWithFlightSticks()); // Start data logging @@ -72,7 +79,8 @@ public Robot() { } private Command driveWithXbox() { - return drive.driveWithJoysticks(driverController::getLeftY, driverController::getLeftX, driverController::getRightX); + return drive.driveWithJoysticks( + driverController::getLeftY, driverController::getLeftX, driverController::getRightX); } private Command driveWithFlightSticks() {