Skip to main content

pamoja_pid_new

Function pamoja_pid_new 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pamoja_pid_new( kp: f32, ki: f32, kd: f32, ) -> *mut PamojaPid
Expand description

Creates a PID controller with the given gains and no output limits.

§Returns

A handle the caller must release with pamoja_pid_free.

§Safety

The returned handle must be freed exactly once.