Class Conversions

java.lang.Object
frc.spectrumLib.util.Conversions

public class Conversions extends Object
  • Constructor Details

    • Conversions

      public Conversions()
  • Method Details

    • RPMtoRPS

      public static double RPMtoRPS(double rpm)
      Converts revolutions per minute (RPM) to revolutions per second (RPS).
      Parameters:
      rpm - the value in RPM to be converted
      Returns:
      the converted value in RPS
    • RPMtoRPS

      public static Double RPMtoRPS(DoubleSupplier rpm)
      Converts revolutions per minute (RPM) to revolutions per second (RPS).
      Parameters:
      rpm - the value in RPM to be converted
      Returns:
      the converted value in RPS
    • RPStoRPM

      public static double RPStoRPM(double rps)
      Converts revolutions per second (RPS) to revolutions per minute (RPM).
      Parameters:
      rps - the value in RPS to be converted
      Returns:
      the converted value in RPM