From 0b53a79d2e3ef26d29eba4c6fa48cacd321a0888 Mon Sep 17 00:00:00 2001 From: Olivier Demers Date: Mon, 2 May 2022 02:17:17 -0400 Subject: [PATCH] Invert Y joystick and right wheel --- src/main/java/frc/robot/RobotContainer.java | 2 +- src/main/java/frc/robot/subsystems/DriveTrain.java | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/frc/robot/RobotContainer.java b/src/main/java/frc/robot/RobotContainer.java index 8983584..c5a00cb 100644 --- a/src/main/java/frc/robot/RobotContainer.java +++ b/src/main/java/frc/robot/RobotContainer.java @@ -23,7 +23,7 @@ public class RobotContainer { // The robot's subsystems and commands are defined here... private final DriveTrain driveTrain = new DriveTrain(); - private final Drive drive = new Drive(driveTrain, () -> controller.getLeftY(), () -> controller.getLeftX()); + private final Drive drive = new Drive(driveTrain, () -> -controller.getLeftY(), () -> controller.getLeftX()); /** The container for the robot. Contains subsystems, OI devices, and commands. */ public RobotContainer() { diff --git a/src/main/java/frc/robot/subsystems/DriveTrain.java b/src/main/java/frc/robot/subsystems/DriveTrain.java index 7b9c504..bca5e4a 100644 --- a/src/main/java/frc/robot/subsystems/DriveTrain.java +++ b/src/main/java/frc/robot/subsystems/DriveTrain.java @@ -23,6 +23,7 @@ public class DriveTrain extends SubsystemBase { /** Creates a new DriveTrain. */ public DriveTrain() { tab.add("Drive Train", drive); + roueDroite.setInverted(true); } public void arcadeDrive(double spd, double rot) {