Skip to main content

pamoja_kit_deadband

Function pamoja_kit_deadband 

Source
#[unsafe(no_mangle)]
pub extern "C" fn pamoja_kit_deadband( value: f32, center: f32, width: f32, ) -> f32
Expand description

Holds a reading at center while it stays within width either side, so small wiggle around a setpoint does not act.

ยงReturns

center while value is within width of it, and otherwise value unchanged.