mirror of
				https://github.com/gnss-sdr/gnss-sdr
				synced 2025-10-31 15:23:04 +00:00 
			
		
		
		
	Adjusting GPS L2CM TOW in telemetry decoder. Some magic number in TOW symbol has still to be further investigated
This commit is contained in:
		| @@ -149,12 +149,12 @@ int gps_l2c_telemetry_decoder_cc::general_work (int noutput_items __attribute__( | |||||||
|  |  | ||||||
|         //update TOW at the preamble instant |         //update TOW at the preamble instant | ||||||
|         d_TOW_at_Preamble=(int)msg.tow; |         d_TOW_at_Preamble=(int)msg.tow; | ||||||
|         std::cout<<"["<<(int)msg.prn<<"] deco delay: "<<delay<<"[symbols]"<<std::endl; |         //std::cout<<"["<<(int)msg.prn<<"] deco delay: "<<delay<<"[symbols]"<<std::endl; | ||||||
|         //* The time of the last input symbol can be computed from the message ToW and |         //* The time of the last input symbol can be computed from the message ToW and | ||||||
|         //* delay by the formulae: |         //* delay by the formulae: | ||||||
|         //* \code |         //* \code | ||||||
|         //* symbolTime_ms = msg->tow * 6000 + *pdelay * 20 |         //* symbolTime_ms = msg->tow * 6000 + *pdelay * 20 | ||||||
|         d_TOW_at_current_symbol=((double)msg.tow) * 6.0 + ((double)delay) * GPS_L2_M_PERIOD +12*GPS_L2_M_PERIOD; |         d_TOW_at_current_symbol=((double)msg.tow) * 6.0 + ((double)delay) * GPS_L2_M_PERIOD +11.5*GPS_L2_M_PERIOD; | ||||||
|         d_flag_valid_word=true; |         d_flag_valid_word=true; | ||||||
|     } |     } | ||||||
|     else |     else | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Javier Arribas
					Javier Arribas