Upgrading to 2025.1.2

This commit is contained in:
thenetworkgrinch
2025-01-06 15:44:15 +00:00
parent 8050f43fa5
commit 62f8236678
27 changed files with 1083 additions and 305 deletions

View File

@@ -399,6 +399,10 @@ public class SwerveMath
*/
public static Translation2d cubeTranslation(Translation2d translation)
{
if (Math.hypot(translation.getX(), translation.getY()) <= 1.0E-6)
{
return translation;
}
return new Translation2d(Math.pow(translation.getNorm(), 3), translation.getAngle());
}