|
Paparazzi UAS v7.1_unstable
Paparazzi is a free software Unmanned Aircraft System.
|
Calculation of the Geomagnetic field vector from current location. More...
#include "modules/geo_mag/geo_mag.h"#include "math/pprz_geodetic_wmm2025.h"#include "math/pprz_algebra_double.h"#include "modules/gps/gps.h"#include "modules/core/abi.h"#include "autopilot.h"Go to the source code of this file.
Macros | |
| #define | GEO_MAG_SENDER_ID 1 |
Functions | |
| void | geo_mag_init (void) |
| void | geo_mag_periodic (void) |
| void | geo_mag_event (void) |
Variables | |
| struct GeoMag | geo_mag |
Calculation of the Geomagnetic field vector from current location.
This module is based on the world magnetic model from (http://www.ngdc.noaa.gov/geomag/WMM/DoDWMM.shtml).
Definition in file geo_mag.c.
| #define GEO_MAG_SENDER_ID 1 |
Definition at line 40 of file geo_mag.c.
Referenced by geo_mag_event().
| void geo_mag_event | ( | void | ) |
Definition at line 59 of file geo_mag.c.
References EXT_COEFF1, EXT_COEFF2, EXT_COEFF3, extrapsh(), float_vect3_normalize(), GEO_EPOCH, geo_mag, GEO_MAG_SENDER_ID, gps, GPS_EPOCH_BEGIN, h(), IEXT, mag_calc(), MAXCOEFF, NMAX_1, NMAX_2, SECS_IN_YEAR, and WEEKS_IN_YEAR.
| void geo_mag_periodic | ( | void | ) |
Definition at line 51 of file geo_mag.c.
References autopilot_throttle_killed(), geo_mag, and GpsFixValid.
| struct GeoMag geo_mag |
Definition at line 43 of file geo_mag.c.
Referenced by geo_mag_event(), geo_mag_init(), and geo_mag_periodic().