upkie  11.0.0
Open-source wheeled biped robots

◆ clamp_abs_and_warn()

def upkie.utils.clamp.clamp_abs_and_warn ( float  value,
float  bound,
str  label 
)

Clamp a value's absolute value, keeping its sign, warning if the value is changed.

Parameters
valueValue to clamp.
boundAbsolute value bound.
labelLabel to describe the value.