dtfycg
This commit is contained in:
parent
d221d679a1
commit
bab3f890fb
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user