Skip to main content

pamoja_odometry_fuse_heading

Function pamoja_odometry_fuse_heading 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pamoja_odometry_fuse_heading( odometry: *mut PamojaOdometry, measured: f32, weight: f32, )
Expand description

Nudges an odometry estimate’s heading toward an absolute measurement.

weight is how strongly to trust measured, from 0 to 1. A measurement that is not a finite number, or a weight that is not a number, leaves the heading as it was.

§Safety

odometry must be a live handle from pamoja_odometry_new, or null.