mirror of
https://github.com/BroncBotz3481/YAGSL
synced 2026-06-19 06:21:40 +00:00
Update add function
This commit is contained in:
@@ -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}.
|
||||
|
||||
Reference in New Issue
Block a user