Invert Y joystick and right wheel

This commit is contained in:
Olivier Demers 2022-05-02 02:17:17 -04:00
parent e4928925fa
commit 0b53a79d2e
2 changed files with 2 additions and 1 deletions

View File

@ -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() {

View File

@ -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) {