Struct madgwick::Marg [] [src]

pub struct Marg { /* fields omitted */ }

MARG orientation filter

Methods

impl Marg
[src]

[src]

Creates a new MARG filter

  • beta, filter gain. See section 3.6 of the report for details.
  • sample_period, period at which the sensors are being sampled (unit: s)

[src]

Updates the MARG filter and returns the current estimate of the 3D orientation

  • m, magnetic north / magnetometer readings
  • ar, angular rate / gyroscope readings (unit: rad / s)
  • g, gravity vector / accelerometer readings

Trait Implementations

Auto Trait Implementations

impl Send for Marg

impl Sync for Marg