diff --git a/src/main/java/frc/robot/subsystems/BasePilotable.java b/src/main/java/frc/robot/subsystems/BasePilotable.java index 739b312..156cc09 100644 --- a/src/main/java/frc/robot/subsystems/BasePilotable.java +++ b/src/main/java/frc/robot/subsystems/BasePilotable.java @@ -23,12 +23,15 @@ private WPI_TalonSRX arriereDroit = new WPI_TalonSRX(Constants.MoteurArriereDroi private MecanumDrive mecanum = new MecanumDrive(avantGauche, arriereGauche, avantDroit, arriereDroit); -private void Drive(double y, double x, double rot){ +private void drive(double y, double x, double rot){ mecanum.driveCartesian(y, x, rot, 0); } /** Creates a new BasePilotable. */ - public BasePilotable() {} - + public BasePilotable() { + avantDroit.setInverted(true); + arriereDroit.setInverted(true); + } + @Override public void periodic() { // This method will be called once per scheduler run