1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2025-01-10 17:30:33 +00:00

Fix wrong status vector in KF tracking

This commit is contained in:
Javier Arribas 2022-12-12 15:15:55 +01:00
parent 8de42f8885
commit ea15ca0db0

View File

@ -636,13 +636,17 @@ void kf_tracking::msg_handler_pvt_to_trk(const pmt::pmt_t &msg)
{ {
gr::thread::scoped_lock lock(d_setlock); gr::thread::scoped_lock lock(d_setlock);
//To.Do: apply VTL corrections to the KF states //To.Do: apply VTL corrections to the KF states
// code double delta_t_s = static_cast<double>(d_sample_counter - cmd->sample_counter) / d_trk_parameters.fs_in;
// d_code_error_kf_chips; arma::mat F_tmp;
// d_code_freq_kf_chips_s; F_tmp = {{1.0, 0.0, d_beta * delta_t_s, d_beta * (delta_t_s * delta_t_s) / 2.0},
// // carrier {0.0, 1.0, 2.0 * GNSS_PI * delta_t_s, GNSS_PI * (delta_t_s * delta_t_s)},
// d_carrier_phase_kf_rad; {0.0, 0.0, 1.0, delta_t_s},
// d_carrier_doppler_kf_hz; {0.0, 0.0, 0.0, 1.0}};
// d_carrier_doppler_rate_kf_hz_s; arma::vec x_tmp;
// states: code_phase_chips, carrier_phase_rads, carrier_freq_hz, carrier_freq_rate_hz_s
x_tmp = {cmd->code_phase_chips, cmd->carrier_phase_rads, cmd->carrier_freq_hz, cmd->carrier_freq_rate_hz_s};
d_x_old_old = F_tmp * x_tmp;
// set vtl corrections flag to inform VTL from gnss_synchro object // set vtl corrections flag to inform VTL from gnss_synchro object
d_vtl_cmd_applied_now = true; d_vtl_cmd_applied_now = true;
d_vtl_cmd_samplestamp = cmd->sample_counter; d_vtl_cmd_samplestamp = cmd->sample_counter;