Class InputUtils


  • public class InputUtils
    extends java.lang.Object
    Utils for working with drive inputs
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  InputUtils.ScalingMode
      Scale type / mode
    • Constructor Summary

      Constructors 
      Constructor Description
      InputUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static double scale​(double val, InputUtils.ScalingMode mode)
      Scale a value
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • InputUtils

        public InputUtils()
    • Method Detail

      • scale

        public static double scale​(double val,
                                   InputUtils.ScalingMode mode)
        Scale a value
        Parameters:
        val - Value
        mode - Type of scale
        Returns:
        Scaled value