Home › Function Forge › 7 / 7
✍️ Write
Keep it in range
Write clamp(value, low, high): return low if value is below low, high if it is above high, and value otherwise. Motor powers, for example, must stay between -1 and 1.
Loading…
Home › Function Forge › 7 / 7
✍️ Write
Write clamp(value, low, high): return low if value is below low, high if it is above high, and value otherwise. Motor powers, for example, must stay between -1 and 1.
Loading…