diff --git a/libraries/AP_NavEKF2/AP_NavEKF2.cpp b/libraries/AP_NavEKF2/AP_NavEKF2.cpp index 30aeb7c802..1043eecaea 100644 --- a/libraries/AP_NavEKF2/AP_NavEKF2.cpp +++ b/libraries/AP_NavEKF2/AP_NavEKF2.cpp @@ -938,7 +938,9 @@ void NavEKF2::getFlowDebug(int8_t instance, float &varFlow, float &gndOffset, fl void NavEKF2::setTakeoffExpected(bool val) { if (core) { - core[primary].setTakeoffExpected(val); + for (uint8_t i=0; i