Skip to main content

pamoja_diff_drive_wheel_speeds

Function pamoja_diff_drive_wheel_speeds 

Source
#[unsafe(no_mangle)]
pub extern "C" fn pamoja_diff_drive_wheel_speeds( drive: PamojaDiffDrive, linear: f32, angular: f32, ) -> PamojaSideSpeeds
Expand description

Returns the wheel speeds a differential drive needs for a body motion.

§Arguments

  • drive - the drive.
  • linear - the forward speed.
  • angular - the turn rate, positive turning left.

§Returns

The left and right wheel speeds.