From 277f2f3b27d3b9b5c20752b18131b4abd037ff3b Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 23 Sep 2015 11:51:47 +1000 Subject: [PATCH] Tracker: added EKF2 instance --- AntennaTracker/Tracker.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/AntennaTracker/Tracker.h b/AntennaTracker/Tracker.h index 937cccebcb..feaec24521 100644 --- a/AntennaTracker/Tracker.h +++ b/AntennaTracker/Tracker.h @@ -55,6 +55,7 @@ #include #include // main loop scheduler #include +#include #include #include @@ -119,7 +120,8 @@ private: // Inertial Navigation EKF #if AP_AHRS_NAVEKF_AVAILABLE NavEKF EKF{&ahrs, barometer, rng}; - AP_AHRS_NavEKF ahrs{ins, barometer, gps, rng, EKF}; + NavEKF2 EKF2{&ahrs, barometer, rng}; + AP_AHRS_NavEKF ahrs{ins, barometer, gps, rng, EKF, EKF2}; #else AP_AHRS_DCM ahrs{ins, barometer, gps}; #endif