Skip to content

Commit

Permalink
Task 4 Completion
Browse files Browse the repository at this point in the history
  • Loading branch information
PriyanshuK-ACL committed Oct 24, 2024
1 parent ac03bd9 commit ade2043
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/main/java/frc/robot/RobotContainer.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,13 @@ public RobotContainer() {
m_xrpDrivetrain.setDefaultCommand(DriveCommands.arcadeDriveCommand(()-> -m_controller.getLeftY(), () -> -m_controller.getRightX()));
//TODO: Task 4-Comment out the above line by adding // to the left of it. Then, set the default command to be your tankDriveCommand.
//HINT: In tank drive, the left wheel is controlled by the y axis of the left joystick and the y axis of the right joystick.
//Priyanshu Kanhere

}
public void RobotContainer1() {
configureButtonBindings();
m_xrpDrivetrain.setDefaultCommand(DriveCommands.tankDriveCommand(()-> -m_controller.getLeftY(), () -> -m_controller.getRightX()));
m_xrpDrivetrain.setDefaultCommand(DriveCommands.tankDriveCommand(()-> -m_controller.getLeftY(), () -> -m_controller.getRightY()));
configureButtonBindings();
m_xrpDrivetrain.setDefaultCommand(DriveCommands.tankDriveCommand(()-> -m_controller.getLeftX(), () -> -m_controller.getRightX()));
}
/**
* Use this method to define your button->command mappings. Buttons can be created by
Expand Down

0 comments on commit ade2043

Please sign in to comment.