This commit is contained in:
parent
96c4845cfa
commit
78e9cf412a
@ -36,6 +36,7 @@ public class Drive extends SubsystemBase {
|
|||||||
public Drive() {
|
public Drive() {
|
||||||
try {
|
try {
|
||||||
this.swerveDrive = new SwerveParser(swerveJsonDirectory).createSwerveDrive(5);
|
this.swerveDrive = new SwerveParser(swerveJsonDirectory).createSwerveDrive(5);
|
||||||
|
swerveDrive.setHeadingCorrection(true);
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user