From f999729d70066911b2d23daaa88336077e0c84f9 Mon Sep 17 00:00:00 2001 From: Paul Riseborough Date: Wed, 4 Jan 2017 10:43:09 +0100 Subject: [PATCH] EKF: fix incorrect use of memcpy --- EKF/estimator_interface.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/EKF/estimator_interface.cpp b/EKF/estimator_interface.cpp index 51a5b78e08..56393a2806 100644 --- a/EKF/estimator_interface.cpp +++ b/EKF/estimator_interface.cpp @@ -183,7 +183,7 @@ void EstimatorInterface::setGpsData(uint64_t time_usec, struct gps_message *gps) 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)); + memcpy(&gps_sample_new.vel._data[0], gps->vel_ned, sizeof(gps_sample_new.vel._data)); _gps_speed_valid = gps->vel_ned_valid; gps_sample_new.sacc = gps->sacc;