From 48f980b05473a828559323a5004b8704d5cde63b Mon Sep 17 00:00:00 2001 From: Paul Riseborough Date: Thu, 10 Mar 2016 09:39:45 +1100 Subject: [PATCH] EKF: Fix syntax causing posix build to fail --- EKF/optflow_fusion.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/EKF/optflow_fusion.cpp b/EKF/optflow_fusion.cpp index f4aff85dbc..4d14fa7fbc 100644 --- a/EKF/optflow_fusion.cpp +++ b/EKF/optflow_fusion.cpp @@ -77,8 +77,8 @@ void Ekf::fuseOptFlow() // take the weighted average of the observation noie for the best and wort flow quality float R_LOS = sq(R_LOS_best * weighting + R_LOS_worst * (1.0f - weighting)); - float H_LOS[2][24] = {0}; // Optical flow observation Jacobians - float Kfusion[24][2] = {0}; // Optical flow Kalman gains + float H_LOS[2][24] = {}; // Optical flow observation Jacobians + float Kfusion[24][2] = {}; // Optical flow Kalman gains // constrain height above ground to be above minimum height when sitting on ground float heightAboveGndEst = math::max((_terrain_vpos - _state.pos(2)), gndclearance);