Class SwerveUtils

java.lang.Object
frc.robot.utils.SwerveUtils

public class SwerveUtils extends Object
  • 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 bounded
      lowerBound - the lower limit for the value
      upperBound - the upper limit for the value
      Returns:
      the clamped value of the double