Skip to main content

pamoja_skid_steer_body_motion

Function pamoja_skid_steer_body_motion 

Source
#[unsafe(no_mangle)]
pub extern "C" fn pamoja_skid_steer_body_motion( drive: PamojaSkidSteer, left: f32, right: f32, ) -> PamojaBodyMotion
Expand description

Returns the body motion a skid-steer drive makes from measured side speeds.

§Arguments

  • drive - the drive.
  • left - the left side’s speed.
  • right - the right side’s speed.

§Returns

The forward speed and yaw rate; the yaw rate is 0 for a drive with no track.