diff --git a/AntennaTracker/Tracker.h b/AntennaTracker/Tracker.h index c9b16438c8..d881186535 100644 --- a/AntennaTracker/Tracker.h +++ b/AntennaTracker/Tracker.h @@ -116,7 +116,8 @@ private: // Inertial Navigation EKF #if AP_AHRS_NAVEKF_AVAILABLE - AP_AHRS_NavEKF ahrs{ins, barometer, gps, rng}; + NavEKF EKF{&ahrs, barometer, rng}; + AP_AHRS_NavEKF ahrs{ins, barometer, gps, rng, EKF}; #else AP_AHRS_DCM ahrs{ins, barometer, gps}; #endif