From b4792229866b2418fc18b0dbbf4f69c640b78f4d Mon Sep 17 00:00:00 2001 From: Olivier Demers Date: Tue, 29 Nov 2022 18:48:52 -0500 Subject: [PATCH] changed mecanum --- src/main/java/frc/robot/subsystems/BasePilotable.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/frc/robot/subsystems/BasePilotable.java b/src/main/java/frc/robot/subsystems/BasePilotable.java index 8c63205..03faea4 100644 --- a/src/main/java/frc/robot/subsystems/BasePilotable.java +++ b/src/main/java/frc/robot/subsystems/BasePilotable.java @@ -22,7 +22,7 @@ private WPI_TalonSRX arriereGauche = new WPI_TalonSRX(Constants.MoteurArriereGau private WPI_TalonSRX arriereDroit = new WPI_TalonSRX(Constants.MoteurArriereDroit); -private MecanumDrive mecanum = new MecanumDrive(avantGauche, arriereGauche, avantDroit, arriereDroit); +private MecanumDrive mecanum; private AHRS gyroscope = new AHRS(); public double getangle() { @@ -35,7 +35,7 @@ public void drive(double y, double x, double rot){ public BasePilotable() { avantDroit.setInverted(true); arriereDroit.setInverted(true); - + mecanum = new MecanumDrive(avantGauche, arriereGauche, avantDroit, arriereDroit); } @Override