mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-14 20:50:35 +08:00
mavlink_receiver: reduce s_variance_m_s for HIL GPS message from 1 to 0.1
1 was too high to pass the EKF2 test (EKF2_REQ_SACC which is 0.5 by default) and thus switching into position mode in HIL was not possible.
This commit is contained in:
@@ -2176,7 +2176,7 @@ MavlinkReceiver::handle_message_hil_gps(mavlink_message_t *msg)
|
||||
hil_gps.eph = (float)gps.eph * 1e-2f; // from cm to m
|
||||
hil_gps.epv = (float)gps.epv * 1e-2f; // from cm to m
|
||||
|
||||
hil_gps.s_variance_m_s = 1.0f;
|
||||
hil_gps.s_variance_m_s = 0.1f;
|
||||
|
||||
hil_gps.vel_m_s = (float)gps.vel * 1e-2f; // from cm/s to m/s
|
||||
hil_gps.vel_n_m_s = gps.vn * 1e-2f; // from cm to m
|
||||
|
||||
Reference in New Issue
Block a user