Skip to main content

pamoja_complementary_update

Function pamoja_complementary_update 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pamoja_complementary_update( filter: *mut PamojaComplementary, rate: f32, absolute: f32, dt: f32, ) -> f32
Expand description

Fuses a rate and an absolute reading over a time step.

If the rate, the absolute reading, or the time step is not a finite number, the update is ignored.

§Returns

The fused estimate, or NaN if filter is null.

§Safety

filter must be a live handle from pamoja_complementary_new, or null.