<!DOCTYPE module SYSTEM "module.dtd">

<module name="geo_mag" dir="geo_mag">
  <doc>
    <description>
      GeoMagnetic field vector.
      Calculation of the normalized geomagnetic field vector (saved to ahrs_impl.mag_h) at startup using GPS fix.
      Based on the WMM2010 model (http://www.ngdc.noaa.gov/geomag/models.shtml).
    </description>
  </doc>
  <header>
    <file name="geo_mag.h"/>
  </header>
  <init fun="geo_mag_init()"/>
  <periodic fun="geo_mag_periodic()" freq="1"/>
  <event fun="geo_mag_event()"/>
  <makefile target="ap|nps">
    <file name="geo_mag.c"/>
    <file name="pprz_geodetic_wmm2010.c" dir="math"/>
  </makefile>
  <makefile target="nps">
    <define name="NPS_CALC_GEO_MAG"/>
  </makefile>
</module>
