Paparazzi UAS v7.1_unstable
Paparazzi is a free software Unmanned Aircraft System.
Loading...
Searching...
No Matches
geo_mag.h File Reference

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

#include "std.h"
#include "math/pprz_algebra_double.h"
Include dependency graph for geo_mag.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  GeoMag

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 world magnetic model from (http://www.ngdc.noaa.gov/geomag/WMM/DoDWMM.shtml).

Definition in file geo_mag.h.


Data Structure Documentation

◆ GeoMag

struct GeoMag

Definition at line 35 of file geo_mag.h.

Collaboration diagram for GeoMag:
Data Fields
bool calc_once
bool ready
struct DoubleVect3 vect

Function Documentation

◆ geo_mag_event()

void geo_mag_event ( void )
extern

◆ geo_mag_init()

void geo_mag_init ( void )
extern

Definition at line 45 of file geo_mag.c.

References geo_mag.

◆ geo_mag_periodic()

void geo_mag_periodic ( void )
extern

Definition at line 51 of file geo_mag.c.

References autopilot_throttle_killed(), geo_mag, and GpsFixValid.

Here is the call graph for this function:

Variable Documentation

◆ geo_mag

struct GeoMag geo_mag
extern

Definition at line 43 of file geo_mag.c.

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