mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2026-11-24 16:17:22 +00:00
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>
This commit is contained in:
1 parent
ec6fc7889b
commit
e60a10bbdc
2 files changed
+6
-1
No files matched your search
@@ -246,6 +246,9 @@ All notable changes to GNSS-SDR will be documented in this file.
|
||||
nothing for `SignalSource.shm_stall_timeout_s` seconds (default 5, 0 waits
|
||||
forever) and, with `SignalSource.shm_stop_on_buffer_overflow=true`, when it
|
||||
reports a buffer overflow. Linux only. Contributed by @joebre.
|
||||
- `EVK1029_Signal_Source` now skips the 16 KiB metadata header that
|
||||
EVK1029_CtrlApp writes at the start of every recording, instead of decoding it
|
||||
as samples. `SignalSource.seconds_to_skip` counts from the end of the header.
|
||||
- The accumulated carrier phase is now stored as a `double` in the tracking
|
||||
dumps (binary and `.mat`) of all tracking implementations, instead of a
|
||||
`float` whose resolution drops to 0.0625 rad at 10^6 rad. Each binary record
|
||||
|
||||
@@ -246,7 +246,9 @@ Evk1029SignalSource::Evk1029SignalSource(
|
||||
}
|
||||
else
|
||||
{
|
||||
reader = std::make_unique<FileStreamReader>(filename, bytes_to_skip);
|
||||
// Recordings start with a metadata header written by EVK1029_CtrlApp
|
||||
constexpr uint64_t record_header_bytes = 16384;
|
||||
reader = std::make_unique<FileStreamReader>(filename, record_header_bytes + bytes_to_skip);
|
||||
}
|
||||
evk1029_source_ = evk1029_make_source(std::move(reader), queue, static_cast<double>(fs), freq_xlating_bands);
|
||||
|
||||
|
||||
Reference in new issue
Block a user