mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2024-11-19 16:24:58 +00:00
9d34147e0f
- Updated all available trackings to generate the tracking_timestamp_secs taking into account the remainder code phase. - Updated the telemetry decoder to track the number of symbol shifted from the preamble start symbol (to be used in observables). - Updated observables to align the reference channel symbol with the corresponding symbols in the other channels and compute pseudorranges using the common transmission time algorithm. - Updated PVT to independize the display output rate from the RINEX and KML log files. New options available in config file! - Some minor improvements and code cleaning. git-svn-id: https://svn.code.sf.net/p/gnss-sdr/code/trunk@193 64b25241-fba3-4117-9849-534c7e92360d
33 lines
1.1 KiB
Matlab
33 lines
1.1 KiB
Matlab
%help script to compare GNSS-SDR Preambles starts
|
|
channel=3;
|
|
% From GNSS_SDR telemetry decoder
|
|
|
|
% 1 find preambles indexes
|
|
preambles_index=find(GNSS_telemetry(channel).Preamble_symbol_counter==0);
|
|
|
|
% 2 Get associated timestamp ms
|
|
|
|
preambles_timestamp_sdr_ms=GNSS_telemetry(channel).prn_delay_ms(preambles_index);
|
|
|
|
|
|
% From Matlab receiver
|
|
|
|
[firstSubFrame, activeChnList, javi_subFrameStart_sample] = findPreambles(trackResults_sdr,settings);
|
|
|
|
preambles_timestamp_matlab_ms=trackResults_sdr(channel).prn_delay_ms(javi_subFrameStart_sample(channel,1:6));
|
|
|
|
|
|
%Compare
|
|
|
|
common_start_index=max(find(abs(preambles_timestamp_sdr_ms-preambles_timestamp_matlab_ms(1))<2000));
|
|
|
|
error_ms=preambles_timestamp_sdr_ms(common_start_index:(common_start_index+length(preambles_timestamp_matlab_ms)-1))-preambles_timestamp_matlab_ms.'
|
|
|
|
% figure
|
|
% stem(tracking_loop_start+javi_subFrameStart_sample(channel,:),1000*trackResults_sdr(channel).absoluteSample(javi_subFrameStart_sample(channel,:))/settings.samplingFreq);
|
|
%
|
|
% hold on;
|
|
%
|
|
% plot(GNSS_observables.preamble_delay_ms(channel,:));
|
|
%
|
|
% plot(GNSS_observables.prn_delay_ms(channel,:),'r') |