This commit is contained in:
@ -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();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user