mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-29 12:24:06 +08:00
ekf2: add missing GPS status data to ekf2 replay
This commit is contained in:
parent
016bfad507
commit
c037b30aeb
@ -678,8 +678,10 @@ void Ekf2::task_main()
|
||||
replay.lon = gps.lon;
|
||||
replay.alt = gps.alt;
|
||||
replay.fix_type = gps.fix_type;
|
||||
replay.nsats = gps.satellites_used;
|
||||
replay.eph = gps.eph;
|
||||
replay.epv = gps.epv;
|
||||
replay.sacc = gps.s_variance_m_s;
|
||||
replay.vel_m_s = gps.vel_m_s;
|
||||
replay.vel_n_m_s = gps.vel_n_m_s;
|
||||
replay.vel_e_m_s = gps.vel_e_m_s;
|
||||
|
||||
@ -353,8 +353,10 @@ void Ekf2Replay::setEstimatorInput(uint8_t *data, uint8_t type)
|
||||
_gps.lat = replay_part2.lat;
|
||||
_gps.lon = replay_part2.lon;
|
||||
_gps.fix_type = replay_part2.fix_type;
|
||||
_gps.satellites_used = replay_part2.nsats;
|
||||
_gps.eph = replay_part2.eph;
|
||||
_gps.epv = replay_part2.epv;
|
||||
_gps.s_variance_m_s = replay_part2.sacc;
|
||||
_gps.vel_m_s = replay_part2.vel_m_s;
|
||||
_gps.vel_n_m_s = replay_part2.vel_n_m_s;
|
||||
_gps.vel_e_m_s = replay_part2.vel_e_m_s;
|
||||
@ -867,4 +869,4 @@ int ekf2_replay_main(int argc, char *argv[])
|
||||
|
||||
PX4_WARN("unrecognized command");
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user