EKF estimator_interface coverity fix 139419

This commit is contained in:
Daniel Agar 2017-04-27 20:15:44 -04:00 committed by Lorenz Meier
parent b3f8fd19e0
commit 87fdee440b
1 changed files with 1 additions and 2 deletions

View File

@ -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;