AP_AHRS: expose active EKF type for logging

This commit is contained in:
Andrew Tridgell 2020-12-31 08:40:24 +11:00 committed by Peter Barker
parent 7cc71dc573
commit 9dbd2d3eba
2 changed files with 8 additions and 0 deletions

View File

@ -604,6 +604,9 @@ public:
return _rsem;
}
// active EKF type for logging
virtual uint8_t get_active_EKF_type(void) const { return 0; }
// for holding parameters
static const struct AP_Param::GroupInfo var_info[];

View File

@ -317,6 +317,11 @@ public:
// set and save the ALT_M_NSE parameter value
void set_alt_measurement_noise(float noise) override;
// active EKF type for logging
uint8_t get_active_EKF_type(void) const override {
return uint8_t(active_EKF_type());
}
// these are only out here so vehicles can reference them for parameters
#if HAL_NAVEKF2_AVAILABLE
NavEKF2 EKF2;