mirror of
https://github.com/BroncBotz3481/YAGSL
synced 2026-06-19 06:21:40 +00:00
Updating to 2024.6.0.0
This commit is contained in:
@@ -136,7 +136,7 @@ public class SwerveMath
|
||||
public static double calculateMaxAngularVelocity(
|
||||
double maxSpeed, double furthestModuleX, double furthestModuleY)
|
||||
{
|
||||
return maxSpeed / new Rotation2d(furthestModuleX, furthestModuleY).getRadians();
|
||||
return maxSpeed / Math.hypot(furthestModuleX, furthestModuleY);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user