From e9d51bb0c768126f1ce4762e33c5770ca2b03577 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 27 Jul 2019 15:29:15 +1000 Subject: [PATCH] AP_NavEKF2: set origin on all cores when EKF origin is set, make sure it is set on all cores --- libraries/AP_NavEKF2/AP_NavEKF2.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/libraries/AP_NavEKF2/AP_NavEKF2.cpp b/libraries/AP_NavEKF2/AP_NavEKF2.cpp index 2358e5baa2..d58a0941b2 100644 --- a/libraries/AP_NavEKF2/AP_NavEKF2.cpp +++ b/libraries/AP_NavEKF2/AP_NavEKF2.cpp @@ -1034,7 +1034,12 @@ bool NavEKF2::setOriginLLH(const Location &loc) if (!core) { return false; } - return core[primary].setOriginLLH(loc); + bool ret = false; + for (uint8_t i=0; i