Revert "Revert "better files and data structures""

This reverts commit bdf97a0768.
This commit is contained in:
aarav18
2023-02-11 12:44:51 -07:00
parent bdf97a0768
commit b1506e0113
2 changed files with 68 additions and 23 deletions
@@ -156,6 +156,12 @@ public class SwerveDrive extends SubsystemBase {
);
}
public void stopModules() {
for (SwerveModule module : this.modules) {
module.stop();
}
}
/**
* Resets the odometry of the SwerveDrive to 0.
* *NOTE: If you reset your gyro, this method MUST be called with the new gyro angle and wheel encoder positions.