|
|
@ -1,5 +1,7 @@ |
|
|
|
#pragma once |
|
|
|
#pragma once |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#include <AP_Common/Location.h> |
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
/*
|
|
|
|
magnetic data derived from WMM |
|
|
|
magnetic data derived from WMM |
|
|
|
*/ |
|
|
|
*/ |
|
|
@ -16,6 +18,11 @@ public: |
|
|
|
*/
|
|
|
|
*/
|
|
|
|
static bool get_mag_field_ef(float latitude_deg, float longitude_deg, float &intensity_gauss, float &declination_deg, float &inclination_deg); |
|
|
|
static bool get_mag_field_ef(float latitude_deg, float longitude_deg, float &intensity_gauss, float &declination_deg, float &inclination_deg); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|
|
|
get earth field as a Vector3f in Gauss given a Location |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
static Vector3f get_earth_field_ga(const Location &loc); |
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
/*
|
|
|
|
get declination in degrees for a given latitude_deg and longitude_deg |
|
|
|
get declination in degrees for a given latitude_deg and longitude_deg |
|
|
|
*/ |
|
|
|
*/ |
|
|
|