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

Calculation of the Geomagnetic field vector from current location. More...

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

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
 

Detailed Description

Calculation of the Geomagnetic field vector from current location.

This module is based on the WMM2015 model (http://www.ngdc.noaa.gov/geomag/WMM/DoDWMM.shtml).

Definition in file geo_mag.c.

Macro Definition Documentation

#define GEO_MAG_SENDER_ID   1

Definition at line 40 of file geo_mag.c.

Referenced by geo_mag_event().

Function Documentation

void geo_mag_init ( void  )

Definition at line 45 of file geo_mag.c.

References GeoMag::calc_once, FALSE, geo_mag, and GeoMag::ready.

void geo_mag_periodic ( void  )

Definition at line 51 of file geo_mag.c.

References GeoMag::calc_once, geo_mag, GpsFixValid, kill_throttle, GeoMag::ready, and TRUE.

Variable Documentation

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().