This commit is contained in:
parent
ef19d453f4
commit
eacabafab2
@ -25,12 +25,12 @@ public class Drive extends SubsystemBase {
|
|||||||
File swerveJsonDirectory = new File(Filesystem.getDeployDirectory(),"swerve");
|
File swerveJsonDirectory = new File(Filesystem.getDeployDirectory(),"swerve");
|
||||||
|
|
||||||
public void drive(double x, double y, double zRotation){
|
public void drive(double x, double y, double zRotation){
|
||||||
swerveDrive.drive(new Translation2d(x*3, y*3), zRotation*3, true, false);
|
swerveDrive.drive(new Translation2d(x*5, y*5), zRotation*3, true, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
public Drive() {
|
public Drive() {
|
||||||
try {
|
try {
|
||||||
this.swerveDrive = new SwerveParser(swerveJsonDirectory).createSwerveDrive(3);
|
this.swerveDrive = new SwerveParser(swerveJsonDirectory).createSwerveDrive(5);
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user