This commit is contained in:
Antoine PerreaultE
2023-12-05 19:17:47 -05:00
parent 92325aebca
commit 56d9774135
2 changed files with 5 additions and 4 deletions

View File

@@ -22,6 +22,7 @@ public class Drive extends SubsystemBase {
swerveDrive.drive(new Translation2d(x, y), zRotation, false, false);
}
/** Creates a new Drive. */
public Drive() {
@@ -31,7 +32,8 @@ public class Drive extends SubsystemBase {
e.printStackTrace();
}
}
public SwerveModulePosition[] distance(){
public SwerveModulePosition[] distance(){
return swerveDrive.getModulePositions();
}
@Override