mirror of
				https://github.com/gnss-sdr/gnss-sdr
				synced 2025-10-31 15:23:04 +00:00 
			
		
		
		
	Code cleaning: deleted old dependences with Gregory GPS-SDR files
git-svn-id: https://svn.code.sf.net/p/gnss-sdr/code/trunk@160 64b25241-fba3-4117-9849-534c7e92360d
This commit is contained in:
		| @@ -292,14 +292,14 @@ void Gps_L1_Ca_Dll_Fll_Pll_Tracking_cc::update_local_code() | ||||
| void Gps_L1_Ca_Dll_Fll_Pll_Tracking_cc::update_local_carrier() | ||||
| { | ||||
|     float phase, phase_step; | ||||
|     phase_step = (float)TWO_PI * d_carrier_doppler_hz / (float)d_fs_in; | ||||
|     phase_step = (float)GPS_TWO_PI * d_carrier_doppler_hz / (float)d_fs_in; | ||||
|     phase = d_rem_carr_phase; | ||||
|     for(int i = 0; i < d_current_prn_length_samples; i++) | ||||
|         { | ||||
|             d_carr_sign[i] = gr_complex(cos(phase), sin(phase)); | ||||
|             phase += phase_step; | ||||
|         } | ||||
|     d_rem_carr_phase = fmod(phase, TWO_PI); | ||||
|     d_rem_carr_phase = fmod(phase, GPS_TWO_PI); | ||||
|     d_acc_carrier_phase_rad = d_acc_carrier_phase_rad + phase; | ||||
| } | ||||
|  | ||||
| @@ -425,13 +425,13 @@ int Gps_L1_Ca_Dll_Fll_Pll_Tracking_cc::general_work (int noutput_items, gr_vecto | ||||
|                 } | ||||
|             else | ||||
|                 { | ||||
|                     d_FLL_discriminator_hz = fll_four_quadrant_atan(d_Prompt_prev, *d_Prompt, 0, correlation_time_s) / (float)TWO_PI; | ||||
|                     d_FLL_discriminator_hz = fll_four_quadrant_atan(d_Prompt_prev, *d_Prompt, 0, correlation_time_s) / (float)GPS_TWO_PI; | ||||
|                     d_Prompt_prev = *d_Prompt; | ||||
|                     d_FLL_wait = 1; | ||||
|                 } | ||||
|  | ||||
|             // Compute PLL error | ||||
|             PLL_discriminator_hz = pll_cloop_two_quadrant_atan(*d_Prompt) / (float)TWO_PI; | ||||
|             PLL_discriminator_hz = pll_cloop_two_quadrant_atan(*d_Prompt) / (float)GPS_TWO_PI; | ||||
|  | ||||
|             /* | ||||
|              * \todo Update FLL assistance algorithm! | ||||
|   | ||||
| @@ -308,14 +308,14 @@ void Gps_L1_Ca_Dll_Pll_Tracking_cc::update_local_carrier() | ||||
| { | ||||
|     float phase_rad, phase_step_rad; | ||||
|  | ||||
|     phase_step_rad = (float)TWO_PI*d_carrier_doppler_hz / (float)d_fs_in; | ||||
|     phase_step_rad = (float)GPS_TWO_PI*d_carrier_doppler_hz / (float)d_fs_in; | ||||
|     phase_rad = d_rem_carr_phase_rad; | ||||
|     for(int i = 0; i < d_current_prn_length_samples; i++) | ||||
|         { | ||||
|             d_carr_sign[i] = gr_complex(cos(phase_rad), sin(phase_rad)); | ||||
|             phase_rad += phase_step_rad; | ||||
|         } | ||||
|     d_rem_carr_phase_rad = fmod(phase_rad, TWO_PI); | ||||
|     d_rem_carr_phase_rad = fmod(phase_rad, GPS_TWO_PI); | ||||
|     d_acc_carrier_phase_rad = d_acc_carrier_phase_rad + d_rem_carr_phase_rad; | ||||
| } | ||||
|  | ||||
| @@ -436,7 +436,7 @@ int Gps_L1_Ca_Dll_Pll_Tracking_cc::general_work (int noutput_items, gr_vector_in | ||||
| 			} | ||||
|  | ||||
|             // Compute PLL error and update carrier NCO - | ||||
|             carr_error = pll_cloop_two_quadrant_atan(*d_Prompt) / (float)TWO_PI; | ||||
|             carr_error = pll_cloop_two_quadrant_atan(*d_Prompt) / (float)GPS_TWO_PI; | ||||
|             // Implement carrier loop filter and generate NCO command | ||||
|             carr_nco = d_carrier_loop_filter.get_carrier_nco(carr_error); | ||||
|             // Modify carrier freq based on NCO command | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Javier Arribas
					Javier Arribas