uint64_ttime_us;// timestamp in microseconds of the integration period mid-point
uint64_ttime_us;// timestamp in microseconds of the integration period mid-point
};
};
enumvdist_sensor_type_t{
// Integer definitions for vdist_sensor_type
VDIST_SENSOR_RANGE,
#define VDIST_SENSOR_BARO 0 // Use baro height
VDIST_SENSOR_BARO,
#define VDIST_SENSOR_GPS 1 // Use GPS height
VDIST_SENSOR_GPS,
#define VDIST_SENSOR_RANGE 2 // Use range finder height
VDIST_SENSOR_NONE
};
// Bit locations for mag_declination_source
// Bit locations for mag_declination_source
#define MASK_USE_GEO_DECL (1<<0) // set to true to use the declination from the geo library when the GPS position becomes available, set to false to always use the EKF2_MAG_DECL value
#define MASK_USE_GEO_DECL (1<<0) // set to true to use the declination from the geo library when the GPS position becomes available, set to false to always use the EKF2_MAG_DECL value
@ -146,8 +144,8 @@ enum vdist_sensor_type_t {
structparameters{
structparameters{
// measurement source control
// measurement source control
intfusion_mode;
intfusion_mode;// bitmasked integer that selects which of the GPS and optical flow aiding sources will be used
intvdist_sensor_type;
intvdist_sensor_type;// selects the primary source for height data
// measurement time delays
// measurement time delays
floatmag_delay_ms;// magnetometer measurement delay relative to the IMU (msec)
floatmag_delay_ms;// magnetometer measurement delay relative to the IMU (msec)