From bd28fe35c838235927074c4ba87a2f08243e9cfe Mon Sep 17 00:00:00 2001 From: OlivierDubois Date: Mon, 14 Nov 2022 19:56:37 -0500 Subject: [PATCH] base pilotable --- src/main/java/frc/robot/subsystems/BasePilotable.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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