Skip to main content

pamoja_limits_apply

Function pamoja_limits_apply 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pamoja_limits_apply( limits: *mut PamojaLimits, desired: PamojaTwist, dt: f32, ) -> PamojaTwist
Expand description

Bounds a command in speed and acceleration.

A command part that is not a finite number is taken as 0, and a time step that is not finite allows no change.

§Returns

The bounded command, or a zero twist if limits is null.

§Safety

limits must be a live handle from pamoja_limits_new, or null.