This commit is contained in:
EdwardFaucher 2022-11-29 18:06:01 -05:00
parent d221d679a1
commit bab3f890fb

View File

@ -29,11 +29,10 @@ public double getangle() {
return gyroscope.getAngle(); return gyroscope.getAngle();
} }
public void drive(double y, double x, double rot){ public void drive(double y, double x, double rot){
mecanum.driveCartesian(y, x, rot, getangle()); mecanum.driveCartesian(y, x, rot, 0);
} }
/** Creates a new BasePilotable. */ /** Creates a new BasePilotable. */
public BasePilotable() { public BasePilotable() {
avantDroit.setInverted(false);
arriereDroit.setInverted(true); arriereDroit.setInverted(true);
avantGauche.setInverted(true); avantGauche.setInverted(true);
} }