MCPcopy Create free account
hub / github.com/RobTillaart/Arduino / lowerConstrainedMap

Method lowerConstrainedMap

libraries/FastMap/FastMap.cpp:52–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50
51
52float FastMap::lowerConstrainedMap(float value)
53{
54 if (value <= _in_min) return _out_min;
55 return this->map(value);
56}
57
58
59float FastMap::upperConstrainedMap(float value)

Callers 1

unittestFunction · 0.80

Calls 2

mapMethod · 0.95
mapMethod · 0.95

Tested by 1

unittestFunction · 0.64