From 262c5fe56dadba256f05f455943c66351bca1c99 Mon Sep 17 00:00:00 2001 From: Paul Riseborough Date: Thu, 9 Jun 2016 09:06:39 +1000 Subject: [PATCH] AP_NavEKF2: Make setter loop through all instances For setters where a success boolean is returned, return false if any instance fails. --- libraries/AP_NavEKF2/AP_NavEKF2.cpp | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/libraries/AP_NavEKF2/AP_NavEKF2.cpp b/libraries/AP_NavEKF2/AP_NavEKF2.cpp index 1043eecaea..91422b0483 100644 --- a/libraries/AP_NavEKF2/AP_NavEKF2.cpp +++ b/libraries/AP_NavEKF2/AP_NavEKF2.cpp @@ -704,7 +704,9 @@ void NavEKF2::getTiltError(int8_t instance, float &ang) void NavEKF2::resetGyroBias(void) { if (core) { - core[primary].resetGyroBias(); + for (uint8_t i=0; i