From feb481a7c53e41a4b53f5289bebaf031399ccda2 Mon Sep 17 00:00:00 2001 From: Javier Arribas Date: Tue, 31 Jan 2017 17:56:16 +0100 Subject: [PATCH] Fine adjustment of the telemetry decoder TOW for the GPS L1 CA --- .../gnuradio_blocks/gps_l1_ca_telemetry_decoder_cc.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/algorithms/telemetry_decoder/gnuradio_blocks/gps_l1_ca_telemetry_decoder_cc.cc b/src/algorithms/telemetry_decoder/gnuradio_blocks/gps_l1_ca_telemetry_decoder_cc.cc index aa7322281..c90930ce3 100644 --- a/src/algorithms/telemetry_decoder/gnuradio_blocks/gps_l1_ca_telemetry_decoder_cc.cc +++ b/src/algorithms/telemetry_decoder/gnuradio_blocks/gps_l1_ca_telemetry_decoder_cc.cc @@ -339,7 +339,7 @@ int gps_l1_ca_telemetry_decoder_cc::general_work (int noutput_items __attribute_ if (this->d_flag_preamble == true and d_GPS_FSM.d_nav.d_TOW > 0) { // update TOW at the preamble instant - d_TOW_at_Preamble = d_GPS_FSM.d_nav.d_TOW; + d_TOW_at_Preamble = d_GPS_FSM.d_nav.d_TOW + GPS_L1_CA_CODE_PERIOD; Prn_timestamp_at_preamble_ms = in[0][0].Tracking_timestamp_secs * 1000.0; d_TOW_at_current_symbol = d_TOW_at_Preamble; if (flag_TOW_set == false)