Update add function

This commit is contained in:
thenetworkgrinch
2023-03-30 23:28:07 -05:00
parent 3a65fdfc24
commit b1689f3ec2
112 changed files with 291 additions and 247 deletions

View File

@@ -311,9 +311,9 @@ public class SwerveMath
}
/**
* Optimize the angle of the {@link SwerveModuleState2} to be the closest angle to the current angle. Taken from <a
* href="https://github.com/pittsfordrobotics/REVSwerve2023/blob/master/src/main/java/com/team3181/lib/swerve
* /SwerveOptimizer.java">Team 3181.</a>
* Optimize the angle of the {@link SwerveModuleState2} to be the closest angle to the current angle. Taken from Team
* 3181 at
* https://github.com/pittsfordrobotics/REVSwerve2023/blob/master/src/main/java/com/team3181/lib/swerve/SwerveOptimizer.java
*
* @param desiredState Desired {@link SwerveModuleState2} to achieve.
* @param currentAngle Current angle as a {@link Rotation2d}.