mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-01 02:55:07 +08:00
scale epv and eph correctly
This commit is contained in:
@@ -272,8 +272,8 @@ GPSSIM::receive(int timeout) {
|
||||
_report_gps_pos.lon = gps.lon;
|
||||
_report_gps_pos.alt = gps.alt;
|
||||
_report_gps_pos.timestamp_variance = hrt_absolute_time();
|
||||
_report_gps_pos.eph = (float)gps.eph;
|
||||
_report_gps_pos.epv = (float)gps.epv;
|
||||
_report_gps_pos.eph = (float)gps.eph * 1e-2f;
|
||||
_report_gps_pos.epv = (float)gps.epv * 1e-2f;
|
||||
_report_gps_pos.vel_m_s = (float)(gps.vel)/100.0f;
|
||||
_report_gps_pos.vel_n_m_s = (float)(gps.vn)/100.0f;
|
||||
_report_gps_pos.vel_e_m_s = (float)(gps.ve)/100.0f;
|
||||
|
||||
Reference in New Issue
Block a user