Skip to main content

pamoja_ackermann_curvature

Function pamoja_ackermann_curvature 

Source
#[unsafe(no_mangle)]
pub extern "C" fn pamoja_ackermann_curvature( car: PamojaAckermann, steering: f32, ) -> f32
Expand description

Returns the path curvature of a steering angle, the reciprocal of the turn radius.

§Arguments

  • car - the vehicle.
  • steering - the steering angle in radians.

§Returns

The curvature, or 0 for a vehicle with no wheelbase.