This commit is contained in:
parent
e8252ff382
commit
5af7065542
@ -27,7 +27,7 @@ public class Drive extends SubsystemBase {
|
|||||||
File swerveJsonDirectory = new File(Filesystem.getDeployDirectory(),"swerve");
|
File swerveJsonDirectory = new File(Filesystem.getDeployDirectory(),"swerve");
|
||||||
public AHRS gyroscope = new AHRS();
|
public AHRS gyroscope = new AHRS();
|
||||||
public void drive(double x, double y, double zRotation){
|
public void drive(double x, double y, double zRotation){
|
||||||
swerveDrive.drive(new Translation2d(x*5, y*5), zRotation*3, true, false);
|
swerveDrive.drive(new Translation2d(x*5, y*5), zRotation*4, true, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
public Drive() {
|
public Drive() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user