jmagnuson / ahrs-rs

A Rust port of Madgwick's AHRS algorithm
MIT License
34 stars 19 forks source link

How to update ahrs if I only have accel&gyro but mag sensor? #36

Closed overheat closed 1 year ago

overheat commented 1 year ago

give ahrs a fake (fix) magnetometer data, like (0, 0, 0)?

jmagnuson commented 1 year ago

Ahrs::update_imu requires only accelerometer and gyroscope values (removing the need for magnetometer). Is that what you are looking for?

overheat commented 1 year ago

Yes, it is. Thanks!