Invert Y joystick and right wheel
This commit is contained in:
parent
e4928925fa
commit
0b53a79d2e
@ -23,7 +23,7 @@ public class RobotContainer {
|
|||||||
// The robot's subsystems and commands are defined here...
|
// The robot's subsystems and commands are defined here...
|
||||||
private final DriveTrain driveTrain = new DriveTrain();
|
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. */
|
/** The container for the robot. Contains subsystems, OI devices, and commands. */
|
||||||
public RobotContainer() {
|
public RobotContainer() {
|
||||||
|
@ -23,6 +23,7 @@ public class DriveTrain extends SubsystemBase {
|
|||||||
/** Creates a new DriveTrain. */
|
/** Creates a new DriveTrain. */
|
||||||
public DriveTrain() {
|
public DriveTrain() {
|
||||||
tab.add("Drive Train", drive);
|
tab.add("Drive Train", drive);
|
||||||
|
roueDroite.setInverted(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void arcadeDrive(double spd, double rot) {
|
public void arcadeDrive(double spd, double rot) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user