From a4d9673f390cd84abbd1aef8c68777a51b5f7aa9 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Tue, 10 Dec 2019 21:46:56 +1100 Subject: [PATCH] AP_OpticalFlow: EKF objects have moved into AP_AHRS_NavEKF --- .../examples/AP_OpticalFlow_test/AP_OpticalFlow_test.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/libraries/AP_OpticalFlow/examples/AP_OpticalFlow_test/AP_OpticalFlow_test.cpp b/libraries/AP_OpticalFlow/examples/AP_OpticalFlow_test/AP_OpticalFlow_test.cpp index d0c9010404..fb7e4d97a0 100644 --- a/libraries/AP_OpticalFlow/examples/AP_OpticalFlow_test/AP_OpticalFlow_test.cpp +++ b/libraries/AP_OpticalFlow/examples/AP_OpticalFlow_test/AP_OpticalFlow_test.cpp @@ -27,9 +27,7 @@ public: AP_InertialSensor ins; AP_SerialManager serial_manager; RangeFinder sonar; - AP_AHRS_NavEKF ahrs{EKF2, EKF3, AP_AHRS_NavEKF::FLAG_ALWAYS_USE_EKF}; - NavEKF2 EKF2{&ahrs}; - NavEKF3 EKF3{&ahrs}; + AP_AHRS_NavEKF ahrs{AP_AHRS_NavEKF::FLAG_ALWAYS_USE_EKF}; }; static DummyVehicle vehicle;