mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2026-10-15 04:01:49 +00:00
The dll_pll_veml_read_tracking_dump.py file was failing as it didn't read last
two fields (TOW_ms and WN). Probably because this file was written at a time when these fields were not present in the tracking dump. This commit fixes that, and plot_tracking_quality_indicator.py is operational now. This script now also lays out a _RECORD_FORMAT such that it is easily maintainable if the structure changes again in future in the dll_pll_veml_tracking.cc Thanks! Signed-off-by: minhaj <minhaj.sixbyte@gmail.com>
This commit is contained in:
@@ -1,16 +1,15 @@
|
||||
"""
|
||||
plot_tracking_quality_indicators.py
|
||||
|
||||
|
||||
|
||||
Irene Pérez Riega, 2023. iperrie@inta.es
|
||||
Minhaj Uddin Ahmad, 2026. mahmad12@crimson.ua.edu
|
||||
|
||||
Modifiable in the file:
|
||||
channels - Number of channels
|
||||
firs_channel - Number of the first channel
|
||||
first_channel - Number of the first channel
|
||||
path - Path to folder which contains raw files
|
||||
fig_path - Path where doppler plots will be save
|
||||
'trk_dump_ch' - Fixed part of the tracking dump files names
|
||||
file_prefix - Fixed part of the tracking dump files names
|
||||
|
||||
-----------------------------------------------------------------------------
|
||||
|
||||
@@ -35,12 +34,13 @@ plot_names = []
|
||||
# ---------- CHANGE HERE:
|
||||
channels = 5
|
||||
first_channel = 0
|
||||
path = '/home/labnav/Desktop/TEST_IRENE/tracking'
|
||||
fig_path = '/home/labnav/Desktop/TEST_IRENE/PLOTS/TrackingQualityIndicator'
|
||||
path = '../../../out/'
|
||||
fig_path = '../../../PLOTS/TrackingQualityIndicator'
|
||||
file_prefix = "track_ch"
|
||||
|
||||
for N in range(1, channels + 1):
|
||||
tracking_log_path = os.path.join(path,
|
||||
f'trk_dump_ch{N-1+first_channel}.dat')
|
||||
f'{file_prefix}{N-1+first_channel}.dat')
|
||||
GNSS_tracking.append(dll_pll_veml_read_tracking_dump(tracking_log_path))
|
||||
|
||||
if not os.path.exists(fig_path):
|
||||
@@ -59,7 +59,7 @@ plt.legend(plot_names)
|
||||
plt.savefig(os.path.join(fig_path,
|
||||
f'carrier_lock_test '
|
||||
f'{str(round(np.mean(GNSS_tracking[n]["PRN"])))}'))
|
||||
plt.show()
|
||||
# plt.show()
|
||||
|
||||
# Second plot
|
||||
plt.figure()
|
||||
@@ -73,4 +73,4 @@ for n in range(len(GNSS_tracking)):
|
||||
plt.legend(plot_names)
|
||||
plt.savefig(os.path.join(
|
||||
fig_path, f'SV {str(round(np.mean(GNSS_tracking[n]["PRN"])))}'))
|
||||
plt.show()
|
||||
# plt.show()
|
||||
|
||||
Reference in New Issue
Block a user