Skip to main content

pamoja_imu_tilt_from_accel

Function pamoja_imu_tilt_from_accel 

Source
#[unsafe(no_mangle)]
pub extern "C" fn pamoja_imu_tilt_from_accel( ax: f64, ay: f64, az: f64, ) -> PamojaTilt
Expand description

Computes roll and pitch from a three-axis accelerometer at rest.

§Arguments

  • ax - acceleration along the forward axis, in any unit.
  • ay - acceleration along the right axis, in the same unit.
  • az - acceleration along the up axis, in the same unit.

§Returns

The tilt in degrees.