mv jvn
This commit is contained in:
parent
92d35d19f8
commit
630cdc0069
@ -31,7 +31,7 @@ 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, 0);
|
mecanum.driveCartesian(y, x, rot, getangle());
|
||||||
}
|
}
|
||||||
public void resetgyro(){
|
public void resetgyro(){
|
||||||
try { gyroscope.reset(); } catch( Exception e) {DriverStation.reportError("bye bye", true); }
|
try { gyroscope.reset(); } catch( Exception e) {DriverStation.reportError("bye bye", true); }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user