From 3476969a2f3f8cfdc49e18eabd5ec29f572966b7 Mon Sep 17 00:00:00 2001 From: Carles Fernandez Date: Wed, 1 Jun 2022 17:18:53 +0200 Subject: [PATCH] Fix TOW scale in E6 --- .../gnuradio_blocks/galileo_telemetry_decoder_gs.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/algorithms/telemetry_decoder/gnuradio_blocks/galileo_telemetry_decoder_gs.cc b/src/algorithms/telemetry_decoder/gnuradio_blocks/galileo_telemetry_decoder_gs.cc index e22435dd6..c48ef8d25 100644 --- a/src/algorithms/telemetry_decoder/gnuradio_blocks/galileo_telemetry_decoder_gs.cc +++ b/src/algorithms/telemetry_decoder/gnuradio_blocks/galileo_telemetry_decoder_gs.cc @@ -1119,7 +1119,7 @@ int galileo_telemetry_decoder_gs::general_work(int noutput_items __attribute__(( bool overflowed = (diff < 0) ^ (d_received_sample_counter < current_symbol.Tracking_sample_counter); if (!overflowed && (std::abs(diff) / static_cast(current_symbol.fs) < 1.0)) { - d_TOW_at_Preamble_ms = d_received_tow; + d_TOW_at_Preamble_ms = d_received_tow * 1000; d_TOW_at_current_symbol_ms = d_TOW_at_Preamble_ms + static_cast((d_required_symbols + 1) * GALILEO_CNAV_SYMBOLS_PER_PAGE * GALILEO_CNAV_PAGE_MS); d_E6_TOW_set = true; }