mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-26 04:43:34 +08:00
EKF: replace unnecessary memcopy
This commit is contained in:
+1
-1
@@ -319,7 +319,7 @@ void Ekf::get_heading_innov_var(float *heading_innov_var)
|
|||||||
// get GPS check status
|
// get GPS check status
|
||||||
void Ekf::get_gps_check_status(uint16_t *val)
|
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
|
// get the state vector at the delayed time horizon
|
||||||
|
|||||||
Reference in New Issue
Block a user