#[unsafe(no_mangle)]pub extern "C" fn pamoja_controller_setpoint(
setpoint: f32,
hysteresis: f32,
cooling: bool,
safe_band: f32,
) -> *mut PamojaControllerExpand description
Creates a controller that holds a reading near a setpoint.
§Arguments
setpoint- the target reading.hysteresis- half the deadband width, which stops the output chattering.cooling- whether the output cools rather than heats.safe_band- how far the reading may stray before an alert.
§Returns
A handle the caller must release with pamoja_controller_free.