From 87fdee440b19c48aa77639f95d4227500c612690 Mon Sep 17 00:00:00 2001 From: Daniel Agar Date: Thu, 27 Apr 2017 20:15:44 -0400 Subject: [PATCH] EKF estimator_interface coverity fix 139419 --- EKF/estimator_interface.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/EKF/estimator_interface.cpp b/EKF/estimator_interface.cpp index b3075ce4a6..94a51b9cdc 100644 --- a/EKF/estimator_interface.cpp +++ b/EKF/estimator_interface.cpp @@ -180,8 +180,7 @@ void EstimatorInterface::setGpsData(uint64_t time_usec, struct gps_message *gps) _time_last_gps = time_usec; gps_sample_new.time_us = math::max(gps_sample_new.time_us, _imu_sample_delayed.time_us); - - memcpy(&gps_sample_new.vel._data[0], gps->vel_ned, sizeof(gps_sample_new.vel._data)); + gps_sample_new.vel = Vector3f(gps->vel_ned); _gps_speed_valid = gps->vel_ned_valid; gps_sample_new.sacc = gps->sacc;