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