1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2025-07-05 03:22:56 +00:00

Fix vtl cmd vector flush

This commit is contained in:
Javier Arribas 2022-12-19 16:05:22 +01:00
parent aa9608b11a
commit 06a0ba3af5
2 changed files with 10 additions and 9 deletions

View File

@ -2158,6 +2158,7 @@ int rtklib_pvt_gs::work(int noutput_items, gr_vector_const_void_star& input_item
std::cout << "VTL Engine problem: " << ex.what() << "\n";
}
}
d_internal_pvt_solver->vtl_engine.trk_cmd_outs.clear();
//Dummy messages for evaluation of msg latency
// std::map<int, Gnss_Synchro>::const_iterator gnss_observables_iter;
// for (gnss_observables_iter = d_gnss_observables_map.cbegin();

View File

@ -246,7 +246,7 @@ bool Vtl_Engine::vtl_loop(Vtl_Data& new_data)
// Notice: keep the same satellite order as in the Vtl_Data matrices
// sample code
trk_cmd.carrier_phase_rads = 0; // difficult of calculation
trk_cmd.carrier_freq_hz = doppler_hz_filt(channel) + kf_x(7)/ Lambda_GPS_L1;//+ kf_x(7)/Lambda_GPS_L1; // this is el doppler WITHOUTH sintony correction
trk_cmd.carrier_freq_hz = doppler_hz_filt(channel) + kf_x(7) / Lambda_GPS_L1; //+ kf_x(7)/Lambda_GPS_L1; // this is el doppler WITHOUTH sintony correction
trk_cmd.carrier_freq_rate_hz_s = 0;
trk_cmd.code_phase_chips = 0;
trk_cmd.enable_carrier_nco_cmd = true;
@ -254,9 +254,9 @@ bool Vtl_Engine::vtl_loop(Vtl_Data& new_data)
trk_cmd.sample_counter = new_data.sample_counter;
trk_cmd.channel_id = 0;
trk_cmd_outs.push_back(trk_cmd);
if(channel==0)
if (channel == 0)
{
std::cout << "CH " << channel
std::cout << "[" << trk_cmd.sample_counter << "] CH " << channel
<< " Doppler vtl commanded: " << doppler_hz_filt(channel) << " [Hz]"
<< " \n";
}