PX4 Firmware
PX4 Autopilot Software http://px4.io
|
Calculation / lookup table for Earth's magnetic field declination, inclination and strength. More...
Go to the source code of this file.
Functions | |
float | get_mag_declination (float lat, float lon) |
float | get_mag_inclination (float lat, float lon) |
float | get_mag_strength (float lat, float lon) |
Calculation / lookup table for Earth's magnetic field declination, inclination and strength.
Data generated by https://www.ngdc.noaa.gov/geomag-web/#igrfgrid IGRF calculator on 22 Jan 2018
Definition in file geo_mag_declination.h.
float get_mag_declination | ( | float | lat, |
float | lon | ||
) |
Definition at line 165 of file geo_mag_declination.cpp.
References declination_table, and get_table_data().
Referenced by AutoDeclinationTest::autodeclination_check(), Ekf::collect_gps(), and AttitudeEstimatorQ::Run().
float get_mag_inclination | ( | float | lat, |
float | lon | ||
) |
Definition at line 170 of file geo_mag_declination.cpp.
References get_table_data(), and inclination_table.
Referenced by Ekf::collect_gps().
float get_mag_strength | ( | float | lat, |
float | lon | ||
) |
Definition at line 175 of file geo_mag_declination.cpp.
References get_table_data(), and strength_table.
Referenced by Ekf::collect_gps().