From ade20436d154a1ba997133d26a0126cf542d1803 Mon Sep 17 00:00:00 2001 From: PriyanshuK-ACL <1021693@lcps.org> Date: Thu, 24 Oct 2024 17:25:15 -0400 Subject: [PATCH] Task 4 Completion --- src/main/java/frc/robot/RobotContainer.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/frc/robot/RobotContainer.java b/src/main/java/frc/robot/RobotContainer.java index 2c8e3fc..f477043 100644 --- a/src/main/java/frc/robot/RobotContainer.java +++ b/src/main/java/frc/robot/RobotContainer.java @@ -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