39 #ifndef GEO_MAG_SENDER_ID
40 #define GEO_MAG_SENDER_ID 1
78 mag_calc(1, latitude, longitude, alt, nmax, gha,
static void h(const real32_T x[7], const real32_T q[4], real32_T y[6])
Main include for ABI (AirBorneInterface).
bool autopilot_throttle_killed(void)
get kill status
Core autopilot interface common to all firmwares.
void geo_mag_periodic(void)
#define GEO_MAG_SENDER_ID
Calculation of the Geomagnetic field vector from current location.
struct GpsState gps
global GPS state
Device independent GPS code (interface)
uint32_t tow
GPS time of week in ms.
struct LlaCoor_i lla_pos
position in LLA (lat,lon: deg*1e7; alt: mm over ellipsoid)
static void float_vect3_normalize(struct FloatVect3 *v)
normalize 3D vector in place
int32_t lat
in degrees*1e7
int32_t alt
in millimeters above WGS84 reference ellipsoid
int32_t lon
in degrees*1e7
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)
int16_t extrapsh(double date, double dte1, int16_t nmax1, int16_t nmax2, double *gh)
#define GPS_EPOCH_BEGIN
Begin of the GPS epoch.
Paparazzi double precision floating point algebra.
WMM2020 Geomagnetic field model.
int int32_t
Typedef defining 32 bit int type.