Skip to content

Commit

Permalink
Add instructions for swapping driving methods
Browse files Browse the repository at this point in the history
  • Loading branch information
RedFox86 committed Jan 21, 2025
1 parent 279ac2c commit c19e3d6
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/main/java/frc/robot/Robot.java
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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() {
Expand Down

0 comments on commit c19e3d6

Please sign in to comment.