AP_Vehicle: move EKF objects into AP_AHRS_NavEKF

This commit is contained in:
Peter Barker 2019-12-10 20:34:25 +11:00 committed by Andrew Tridgell
parent e289020332
commit 373b8be7ef
1 changed files with 1 additions and 3 deletions

View File

@ -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