Range

A range is defined by a minimum value and a maximum value. It is often used to limit the sensor or servo range. The blocks in this section allow you to adjust a number to a range.

clip

Clips a number if it is smaller than the min value or larger than the max value. For example, an original value of -5 becomes 0 after clip to a range of [0, 100].

scale

Scales a number in the range of [x1, x2] to the range of [y1, y2]. For example, an original value of 2 in range [0, 10] scales to 20 in the range of [0, 100].