39 #ifndef GEO_MAG_SENDER_ID
40 #define GEO_MAG_SENDER_ID 1
78 mag_calc(1, latitude, longitude, alt, nmax, gha,
WMM2015 Geomagnetic field model.
bool autopilot_throttle_killed(void)
get kill status
int16_t extrapsh(double date, double dte1, int16_t nmax1, int16_t nmax2, double *gh)
Main include for ABI (AirBorneInterface).
int32_t alt
in millimeters above WGS84 reference ellipsoid
static void float_vect3_normalize(struct FloatVect3 *v)
normalize 3D vector in place
uint32_t tow
GPS time of week in ms.
Device independent GPS code (interface)
int32_t lon
in degrees*1e7
Core autopilot interface common to all firmwares.
int16_t mag_calc(int16_t igdgc, double flat, double flon, double elev, int16_t nmax, double *gh, double *geo_mag_x, double *geo_mag_y, double *geo_mag_z, int16_t iext, double ext1, double ext2, double ext3)
Calculation of the Geomagnetic field vector from current location.
Paparazzi double precision floating point algebra.
struct LlaCoor_i lla_pos
position in LLA (lat,lon: deg*1e7; alt: mm over ellipsoid)
int32_t lat
in degrees*1e7
#define GPS_EPOCH_BEGIN
Begin of the GPS epoch.
#define GEO_MAG_SENDER_ID
struct GpsState gps
global GPS state
void geo_mag_periodic(void)