Commit Graph
11343 Commits
Author SHA1 Message Date
Carles Fernandez 369cd625f7 Merge branch 'edmondj-dump_flowgraph' into next 2026-11-17 10:26:46 +01:00
Carles Fernandez f42a0b1a9f Write the flow graph dump with std::ofstream
Replace the C stdio calls in the GNSS-SDR.dump_flowgraph code with
std::ofstream. This removes the reliance on <cstdio>, <cstring> and
<cerrno>, which were only included transitively, and closes the file
on every path.

A failure to open or write the file is now reported with a single
warning, and the success message is logged only if the file was
actually written.
2026-11-17 10:12:50 +01:00
Carles Fernandez 36297344d4 Merge branch 'dump_flowgraph' of https://github.com/edmondj/gnss-sdr into edmondj-dump_flowgraph 2026-11-17 09:06:59 +01:00
dependabot[bot] 1a104e4bc5 Bump uraimo/run-on-arch-action
Bumps the github-actions group with 1 update: [uraimo/run-on-arch-action](https://github.com/uraimo/run-on-arch-action).


Updates `uraimo/run-on-arch-action` from 3.2.1 to 3.3
- [Release notes](https://github.com/uraimo/run-on-arch-action/releases)
- [Commits](https://github.com/uraimo/run-on-arch-action/compare/v3.2.1...v3.3)

---
updated-dependencies:
- dependency-name: uraimo/run-on-arch-action
  dependency-version: '3.3'
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: github-actions
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-11-17 08:22:30 +01:00
Carles Fernandez 5a2bc13001 Merge branch 'MathieuFavreau-bug/override-rinex-files' into next 2026-11-17 08:16:24 +01:00
Mathieu Favreau 5ba69edd6f Override RINEX files on open 2026-11-16 21:41:10 +00:00
Carles Fernandez a3ad179b16 Fix RTCM time in i386 architectures 2026-11-14 19:57:41 +01:00
Carles Fernandez 1b76caebf0 Reorder MsmSignalSpec fields to avoid padding 2026-11-14 14:22:05 +01:00
Carles Fernandez 69ffa7fed9 Add message type 1046 (Galileo I/NAV ephemeris) and fix the TCP/IP server of RTCM messages 2026-11-14 13:33:32 +01:00
Carles Fernandez eadb45a411 Report the tracked data or pilot component in RINEX, RTCM, and Monitor 2026-11-14 12:31:21 +01:00
Carles Fernandez 0b4fa23cdd Merge branch 'MrCry0-fix/beidou-glonass-pll-180-flag-next' into next 2026-11-14 08:36:56 +01:00
Carles Fernandez cf9053d481 Fix half-cycle and quarter-cycle offsets of the carrier phase 2026-11-14 08:36:28 +01:00
Carles Fernandez 94bbf09dd6 Merge branch 'fix/beidou-glonass-pll-180-flag-next' of https://github.com/MrCry0/gnss-sdr into MrCry0-fix/beidou-glonass-pll-180-flag-next 2026-11-13 18:54:41 +01:00
Carles Fernandez 8a142a86fb Merge branch 'BenGant-fix-cnav-preamble-scan' into next 2026-11-13 18:07:36 +01:00
Carles Fernandez 79e8a8392f Keep the CNAV preamble skip flag out of the decoder state
The flag that makes the preamble search skip the head of the buffer
after a CRC failure was set and consumed within the same call to
cnav_add_symbol_(), so it does not need to be stored in
cnav_v27_part_t. Pass it to cnav_rescan_preamble_() as a parameter and
keep it as a local variable. The decoder behaves as before.

Shorten the changelog entry.
2026-11-13 18:02:51 +01:00
Carles Fernandez 8cc4bc2adc Merge branch 'fix-cnav-preamble-scan' of https://github.com/BenGant/gnss-sdr into BenGant-fix-cnav-preamble-scan 2026-11-13 17:23:17 +01:00
Julien Edmond afccf89c9a Added an option to dump the gnuradio's flowgraph to a file
Signed-off-by: Julien Edmond <julien@xonaspace.com>
2026-11-13 15:29:23 +00:00
joebre e60a10bbdc Skip the metadata header of EVK1029 recordings
EVK1029_CtrlApp writes a 16 KiB metadata header at the start of every
recording. In file mode, EVK1029_Signal_Source now starts reading after
it instead of decoding it as samples. seconds_to_skip is counted from
the end of the header.

Signed-off-by: joebre <joel.brenner@saphyrion.ch>
2026-11-13 07:50:39 +01:00
Oleksandr Suvorov 0cd504b5d6 telemetry_decoder: report 180-deg PLL lock for BeiDou DNAV and GLONASS
The BeiDou DNAV and GLONASS GNAV decoders find from the sign of the
preamble (or time mark) correlation that the carrier loop is locked
180 degrees off and invert the symbols they decode, but they never set
Flag_PLL_180_deg_phase_locked, so the flag that reaches the
observables is the one the tracking block set.

Keep the sign of the last frame that passed its CRC check and, as the
GPS and Galileo decoders do, report it in
Flag_PLL_180_deg_phase_locked and add half a cycle to the carrier
phase while it is set.

The new unit tests feed BeiDou D1 subframes and GLONASS strings,
normal and inverted, to the decoders and check the reported flag and
carrier phase, a polarity change, and a GLONASS string that fails its
Hamming check.

Signed-off-by: Oleksandr Suvorov <cryosay@gmail.com>
2026-11-12 16:04:42 +02:00
Ben Gant 14ef39b4ca Test every position in the GPS CNAV preamble search
The preamble search of the CNAV message decoder (libswiftcnav) started
at position 1 of the decoded bits buffer and stopped one window short
of its end, and when it found nothing it kept the last 7 bits, which
became positions 0 to 6 of the next search. The Viterbi decoder
delivers 32 bits at a time, so every search saw 39 bits and tested the
windows starting at 1 to 30. A preamble starting at position 31 was
complete in the buffer but not tested, and lost its first bit in the
shift; one starting at position 32 landed at position 0 of the next
search, which was skipped. For 2 of the 32 positions of the preamble
with respect to the 32-bit blocks, the first message after the start
of tracking was lost although all its symbols were received. With a
short capture this can leave a GPS L2C or L5 satellite without the
MT10, MT11 and clock messages needed for an ephemeris set.

Skipping position 0 is right only when the search follows a CRC
failure, where the buffer starts with the preamble pattern that has
just been rejected. Test every complete 8-bit window, from position 0
to n_decoded - 8, and skip position 0 only in that rescan (new
skip_first flag of cnav_v27_part_t, set where the CRC failure is
handled and cleared by the search).

The new unit tests encode two consecutive CNAV messages (CRC-24Q,
rate 1/2 K=7 convolutional code) and feed them to the decoder with the
first preamble at each of the 32 positions, for both symbol-pair
phases and both polarities, and with a preamble pattern that fails
the CRC check at each distance from 8 to 371 bits ahead of the first
message.

Signed-off-by: Ben Gant <indigma04@gmail.com>
2026-11-12 14:21:55 +02:00
Carles Fernandez ec6fc7889b Merge branch 'daoyyy7777-fix/python-telemetry-plot-seconds' into next 2026-11-12 10:26:40 +01:00
Carles Fernandez bee3c1c55b Merge branch 'fix/python-telemetry-plot-seconds' of https://github.com/daoyyy7777/gnss-sdr into daoyyy7777-fix/python-telemetry-plot-seconds 2026-11-12 10:26:16 +01:00
Carles Fernandez 5de2031dc2 Merge branch 'daoyyy7777-fix/python-telemetry-dump' into next 2026-11-12 10:25:58 +01:00
daoyyy7777 18757ad1b2 Cover signed symbols and incomplete telemetry records
Signed-off-by: daoyyy7777 <354528186+daoyyy7777@users.noreply.github.com>
2026-11-12 09:55:54 +08:00
daoyyy7777 33f3618335 Plot telemetry TOW values in their stored seconds
Signed-off-by: daoyyy7777 <354528186+daoyyy7777@users.noreply.github.com>
2026-11-12 09:55:52 +08:00
daoyyy7777 8fc72279a0 Read signed symbols and complete telemetry dump records in Python
Signed-off-by: daoyyy7777 <354528186+daoyyy7777@users.noreply.github.com>
2026-11-12 09:54:07 +08:00
daoyyy7777 4a851382af Test the units used for both telemetry plot channels
Signed-off-by: daoyyy7777 <354528186+daoyyy7777@users.noreply.github.com>
2026-11-12 09:52:51 +08:00
Carles Fernandez 3132713b88 Merge branch 'daoyyy7777-fix/bancroft-residuals' into next 2026-11-10 14:14:40 +01:00
Carles Fernandez 1019b286d6 Improve the Bancroft initialization input in estpos
Build the Bancroft matrix only from satellites with a valid position,
usable ephemeris (satexclude) and a pseudorange.

Correct the pseudoranges for the satellite clock offset.
2026-11-10 09:51:46 +01:00
daoyyy7777 b07ccece39 Accumulate all observation residuals when choosing the Bancroft solution
Initialize both candidate totals to zero and sum the absolute residuals
from every satellite. Add six-satellite ordering and four-observation
noiseless regression tests to the PVT test suite.

Fixes gnss-sdr/gnss-sdr#1000

Signed-off-by: daoyyy7777 <354528186+daoyyy7777@users.noreply.github.com>
2026-11-10 14:03:28 +08:00
Carles Fernandez 9ad0f549a4 Update trk_test 2026-11-09 15:42:34 +01:00
Carles Fernandez f676953d05 Fix clang-tidy modernize-return-braced-init-list warning
With libc++, clang-tidy suggests replacing std::vector<float>(n, 0.0F)
with {n, 0.0F}, which would select the initializer_list constructor.
Return the zero-initialized LLR vector instead.
2026-11-09 13:51:13 +01:00
Carles Fernandez 04e4b3cbdf The FLL pull-in of the DLL/PLL VEML tracking now always lasts at least
Tracking_XX.pull_in_time_s of tracking. It was counted from the acquisition
sample stamp, so an acquisition that does not block the stream, such as
GPS_L1_CA_PCPS_OpenCl_Acquisition, could leave no pull-in at all when it
delivered its result seconds of signal later, as happens when processing
faster than real time. Tracking then locked onto a drifting frequency and lost
the satellite some seconds later.
2026-11-09 12:39:42 +01:00
Carles Fernandez 4fd6066f39 Modernize OpenCL implementation 2026-11-09 11:39:25 +01:00
Carles Fernandez faa201281a Fix configuration with CMake < 3.6 2026-11-08 09:35:15 +01:00
Carles Fernandez 83055dedec Avoid throwing in destructor 2026-11-08 08:13:05 +01:00
Carles Fernandez 9b98569e55 Do not run clang-tidy on protoc-generated sources 2026-11-07 16:46:40 +01:00
Carles Fernandez 2bf5b6f242 Factor out the CFAR reference separation in pcps_acquisition
Fix FIFO buffer deallocation in the IP packet source
2026-11-07 16:08:10 +01:00
Carles Fernandez c8a7ce26a5 Fix defects detected by Coverity Scan 2026-11-07 14:45:27 +01:00
Carles Fernandez e16346e4e2 Fix Galileo E5a outputs, Iono-Free-LC fallback and RTCM MSM encoding
Since v0.0.22, Galileo observables reached RINEX and RTCM only through
select_galileo_ephemeris(), which rejects the E5 signal that the solver
leaves out. With E5a and E5b enabled, the PVT uses I/NAV and E5b, so the
E5a RINEX fields stayed blank and E5a was missing from MSM. Admit that
signal when its own F/NAV ephemeris is usable and reports it healthy (or
PVT.use_unhealthy_sats is set). The solver still never sees it.

With PVT.iono_model=Iono-Free-LC, prange() drops every satellite that
lacks either band of its system's pair, so receivers such as Galileo
E5a+E5b without E1, or any single-band one, computed no position and
wrote no RINEX. Fall back to the broadcast model, with a log warning,
when no enabled constellation provides a pair, and log the constellations
left out otherwise.

The MSM fine pseudorange, phase-range and phase-range-rate fields (DF400,
DF401, DF404, DF405, DF406) were computed against a rough value rounded
from each signal's own measurement instead of the satellite's DF397 to
DF399, so the other signals of a satellite were occasionally decoded
292.77 m or 1 m/s off. DF401/DF406 also moved the phase-range to within
one cycle of the rough range at every epoch, which broke its integer
continuity. Reference all fine fields to the satellite's rough values and
send the phase-range as is, or as invalid beyond 1171 m.

Keep RTCM lock times per signal instead of per PRN and band group (GPS
L2C/L5 and Galileo E5a/E5b shared one), and restart them on cycle and
half-cycle slips and when the PVT block realigns a channel's carrier
phase.
2026-11-06 16:07:50 +01:00
Carles Fernandez 96bd30f067 Add Galileo BGD and GPS TGD regression tests 2026-11-05 19:02:59 +01:00
Carles Fernandez 9d6f48d113 Fix bugs in signal generator 2026-11-05 16:20:13 +01:00
Carles Fernandez e8750f88a4 Fix (unused) secondary codes in Galileo E5a 2026-11-05 15:42:23 +01:00
Carles Fernandez f89d327e15 Merge branch 'yangli-cnasp-fix/l5-iono-double-scale' into next 2026-11-05 14:36:39 +01:00
Carles Fernandez fbfd0b8eeb Fix iono and BGD band factors when slot 0 does not hold GPS L1
Reference the Galileo E5a/E5b BGD factor to E1 instead of to the wavelength
in slot 0, which holds L5 in GPS L5 + Galileo E5b receivers.
2026-11-05 09:28:17 +01:00
yangli-cnasp dcbdcdb49b Fix double scaling of broadcast iono for single-band L2C/L5
prange() already returns iono_scale=(f_L1/f_band)^2 for single-band measurements on the second slot. The SPP solver then applied the wavelength factor (lambda_band/lambda_L1)^2 again, so L2C/L5 iono corrections were over-scaled by 1.65x/1.79x. For L5 this biases the height solution by about -4 m on an otherwise sub-metre 2D fix.

Only apply the legacy wavelength factor when prange() did not already provide a band factor (iono_scale == 1.0). L1 is unaffected.

Signed-off-by: yangli-cnasp <66191093+yangli-cnasp@users.noreply.github.com>
2026-11-05 09:30:44 +08:00
Carles Fernandez 9e7c783b4c Fix SBAS decode type 6 info 2026-11-02 10:01:45 +01:00
Carles Fernandez 0507d312de Fix defects detected by Coverity Scan 2026-11-01 13:56:58 +01:00
Carles Fernandez 36ce582f1c Merge branch 'gps-l1c' into next 2026-11-01 10:39:41 +01:00
Carles Fernandez 8f0b310ef9 Add L1C signals to utility scripts 2026-11-01 10:12:05 +01:00