lhrhost.util.math module¶
Various functions to simplify math calculations.
Summary¶
Functions
Maps a value from an input range to a target range. |
map_value¶
- lhrhost.util.math.map_value(x, in_min, in_max, out_min, out_max)[source]¶
Maps a value from an input range to a target range.
Equivalent to Arduino’s map function.
- Parameters
- Return type
- Returns
The mapped value in the target range.