Revert "Revert "better files and data structures""

This reverts commit 79114c64de.
This commit is contained in:
aarav18
2023-02-11 12:44:51 -07:00
parent 79114c64de
commit 3259182ea4
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.