Browse Source

AP_Vehicle: move EKF objects into AP_AHRS_NavEKF

zr-v5.1
Peter Barker 5 years ago committed by Andrew Tridgell
parent
commit
373b8be7ef
  1. 4
      libraries/AP_Vehicle/AP_Vehicle.h

4
libraries/AP_Vehicle/AP_Vehicle.h

@ -183,9 +183,7 @@ protected: @@ -183,9 +183,7 @@ protected:
// Inertial Navigation EKF
#if AP_AHRS_NAVEKF_AVAILABLE
NavEKF2 EKF2{&ahrs};
NavEKF3 EKF3{&ahrs};
AP_AHRS_NavEKF ahrs{EKF2, EKF3};
AP_AHRS_NavEKF ahrs;
#else
AP_AHRS_DCM ahrs;
#endif

Loading…
Cancel
Save