Browse Source

AP_AHRS: expose active EKF type for logging

zr-v5.1
Andrew Tridgell 4 years ago committed by Peter Barker
parent
commit
9dbd2d3eba
  1. 3
      libraries/AP_AHRS/AP_AHRS.h
  2. 5
      libraries/AP_AHRS/AP_AHRS_NavEKF.h

3
libraries/AP_AHRS/AP_AHRS.h

@ -604,6 +604,9 @@ public: @@ -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[];

5
libraries/AP_AHRS/AP_AHRS_NavEKF.h

@ -317,6 +317,11 @@ public: @@ -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;

Loading…
Cancel
Save