mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2026-10-21 15:02:37 +00:00
apply_conf_defaults() picked the plotted signal-type label as signals[0].signal whenever --first-channel/--channels was passed explicitly to override the conf-derived channel range. signals[0] is just the first enabled signal in SIGNAL_ORDER for the given conf, so it is only correct when the manually requested range happens to start at channel 0 of that same signal; for any other range it mislabels every plot with the wrong signal type, even though the correct .dat files are read (since --file-prefix is typically also given explicitly in that case). For example, running --conf EVK1029_Galileo_E1_E5a.conf --file-prefix trk_GalileoE5a_ch \ --first-channel 10 --channels 10 correctly reads the Galileo E5a tracking dumps but titled every plot "Galileo E1B", the conf's first enabled signal. Resolve each requested channel's signal type from the conf's own per-signal channel ranges (SignalConfig.channels) instead, falling back to the previous behavior only when no conf is available at all. Signed-off-by: joebre <joel.brenner@saphyrion.ch>