Package frc.robot.utils
Class SwerveUtils
java.lang.Object
frc.robot.utils.SwerveUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic double
clamp
(double value, double lowerBound, double upperBound) Clamps a double between two values.
-
Constructor Details
-
SwerveUtils
public SwerveUtils()
-
-
Method Details
-
clamp
public static double clamp(double value, double lowerBound, double upperBound) Clamps a double between two values.- Parameters:
value
- the value wished to be boundedlowerBound
- the lower limit for the valueupperBound
- the upper limit for the value- Returns:
- the clamped value of the double
-