From edc8a88c2413ded5bc6de1d962576d010495280d Mon Sep 17 00:00:00 2001 From: bresch Date: Fri, 8 May 2020 15:28:55 +0200 Subject: [PATCH] yaw_fusion: remove useless initialization --- EKF/gps_yaw_fusion.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/EKF/gps_yaw_fusion.cpp b/EKF/gps_yaw_fusion.cpp index f7c2d3ef4a..506527e407 100644 --- a/EKF/gps_yaw_fusion.cpp +++ b/EKF/gps_yaw_fusion.cpp @@ -313,7 +313,7 @@ bool Ekf::resetGpsAntYaw() // save a copy of the quaternion state for later use in calculating the amount of reset change const Quatf quat_before_reset = _state.quat_nominal; - Quatf quat_after_reset = _state.quat_nominal; + Quatf quat_after_reset; // obtain the yaw angle using the best conditioned from either a Tait-Bryan 321 or 312 sequence // to avoid gimbal lock