Function pamoja_pid_update
Source #[unsafe(no_mangle)]
pub unsafe extern "C" fn pamoja_pid_update(
pid: *mut PamojaPid,
setpoint: f32,
measurement: f32,
dt: f32,
) -> f32
Expand description
Advances a PID controller by one step.
§Returns
The control output, or NaN if pid is null.
§Safety
pid must be a live handle from a PID constructor, or null.