Class UnitBuilder.MappingBuilder

java.lang.Object
edu.wpi.first.units.UnitBuilder.MappingBuilder
Enclosing class:
UnitBuilder<U extends Unit<U>>

public class UnitBuilder.MappingBuilder
extends Object
Helper class used for safely chaining mapping builder calls.
  • Method Details

    • toOutputRange

      public UnitBuilder<U> toOutputRange​(double minOutput, double maxOutput)
      Finalizes the mapping by defining the output range.
      Parameters:
      minOutput - the minimum output value (does not have to be absolute)
      maxOutput - the maximum output value (does not have to be absolute)
      Returns:
      the unit builder, for continued chaining