mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-02-27 16:54:15 +01:00
The AHRS mainloop was reading the mag data on every loop regardless of whether new data was actually available. Now that the MAG_DRDY signal is monitored, we can read only at the rate (10Hz) new data is actually produced by the sensor. This also enables future improvements that will remove the filtering work that is still being done on the mag data on every iteration. git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1630 ebee16cc-31ac-478f-84a7-5cbb03baadba