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

Method upperConstrainedMap

libraries/FastMap/FastMap.cpp:59–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57
58
59float FastMap::upperConstrainedMap(float value)
60{
61 if (value >= _in_max) return _out_max;
62 return this->map(value);
63}
64
65
66///////////////////////////////////////////////////////////////

Callers 1

unittestFunction · 0.80

Calls 2

mapMethod · 0.95
mapMethod · 0.95

Tested by 1

unittestFunction · 0.64