Paparazzi UAS  v5.2.2_stable-0-gd6b9f29
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
geo_mag.c File Reference

Calculation of the Geomagnetic field vector from current GPS fix. More...

#include "modules/geo_mag/geo_mag.h"
#include "math/pprz_geodetic_wmm2010.h"
#include "math/pprz_algebra_double.h"
#include "subsystems/gps.h"
#include "autopilot.h"
#include "subsystems/ahrs.h"
+ Include dependency graph for geo_mag.c:

Go to the source code of this file.

Functions

void geo_mag_init (void)
 
void geo_mag_periodic (void)
 
void geo_mag_event (void)
 

Variables

bool_t geo_mag_calc_flag
 
struct GeoMagVect geo_mag_vect
 

Detailed Description

Calculation of the Geomagnetic field vector from current GPS fix.

This module is based on the WMM2010 model (http://www.ngdc.noaa.gov/geomag/models.shtml).

Definition in file geo_mag.c.

Function Documentation

void geo_mag_init ( void  )

Definition at line 39 of file geo_mag.c.

References FALSE, geo_mag_calc_flag, geo_mag_vect, and GeoMagVect::ready.

void geo_mag_periodic ( void  )

Variable Documentation

bool_t geo_mag_calc_flag

Definition at line 36 of file geo_mag.c.

Referenced by geo_mag_event(), geo_mag_init(), and geo_mag_periodic().

struct GeoMagVect geo_mag_vect

Definition at line 37 of file geo_mag.c.

Referenced by geo_mag_event(), geo_mag_init(), and geo_mag_periodic().