EKF: replace unnecessary memcopy

This commit is contained in:
Paul Riseborough 2016-04-19 19:07:21 +10:00
parent 82920da232
commit 2fa8a11a29

View File

@ -319,7 +319,7 @@ void Ekf::get_heading_innov_var(float *heading_innov_var)
// get GPS check status
void Ekf::get_gps_check_status(uint16_t *val)
{
memcpy(val, &_gps_check_fail_status, sizeof(uint16_t));
*val = _gps_check_fail_status.value;
}
// get the state vector at the delayed time horizon