mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-02 05:04:08 +08:00
EKF: replace unnecessary memcopy
This commit is contained in:
parent
82920da232
commit
2fa8a11a29
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user