upkie 9.0.0
Open-source wheeled biped robots
|
def clamp_and_warn | ( | float | value, |
float | lower, | ||
float | upper, | ||
str | label | ||
) |
Clamp a value between a lower and an upper bound, warning if the value is changed.
value | Value to clamp. |
lower | Lower bound. |
upper | Upper bound. |
label | Label to describe the value. |