mirror of
				https://github.com/gnss-sdr/gnss-sdr
				synced 2025-10-30 23:03:05 +00:00 
			
		
		
		
	Apply formatting
This commit is contained in:
		| @@ -53,16 +53,18 @@ static inline float32x4_t vsqrtq_f32(float32x4_t q_x) | ||||
|     return vmulq_f32(q_x, q_step_2); | ||||
| } | ||||
|  | ||||
|  | ||||
| /* Magnitude squared for float32x4x2_t */ | ||||
| static inline float32x4_t _vmagnitudesquaredq_f32(float32x4x2_t cmplxValue) | ||||
| { | ||||
|     float32x4_t iValue, qValue, result; | ||||
|     iValue = vmulq_f32(cmplxValue.val[0], cmplxValue.val[0]); // Square the values | ||||
|     qValue = vmulq_f32(cmplxValue.val[1], cmplxValue.val[1]); // Square the values | ||||
|     result = vaddq_f32(iValue, qValue); // Add the I2 and Q2 values | ||||
|     iValue = vmulq_f32(cmplxValue.val[0], cmplxValue.val[0]);  // Square the values | ||||
|     qValue = vmulq_f32(cmplxValue.val[1], cmplxValue.val[1]);  // Square the values | ||||
|     result = vaddq_f32(iValue, qValue);                        // Add the I2 and Q2 values | ||||
|     return result; | ||||
| } | ||||
|  | ||||
|  | ||||
| /* Inverse square root for float32x4_t */ | ||||
| static inline float32x4_t _vinvsqrtq_f32(float32x4_t x) | ||||
| { | ||||
| @@ -73,6 +75,7 @@ static inline float32x4_t _vinvsqrtq_f32(float32x4_t x) | ||||
|     return sqrt_reciprocal; | ||||
| } | ||||
|  | ||||
|  | ||||
| /* Complex multiplication for float32x4x2_t */ | ||||
| static inline float32x4x2_t _vmultiply_complexq_f32(float32x4x2_t a_val, float32x4x2_t b_val) | ||||
| { | ||||
|   | ||||
| @@ -171,13 +171,12 @@ GalileoE1DllPllVemlTracking::GalileoE1DllPllVemlTracking( | ||||
|     trk_param.max_carrier_lock_fail = configuration->property(role + ".max_carrier_lock_fail", trk_param.max_carrier_lock_fail); | ||||
|     trk_param.carrier_lock_th = configuration->property(role + ".carrier_lock_th", trk_param.carrier_lock_th); | ||||
|  | ||||
|     //tracking lock tests smoother parameters | ||||
|     // tracking lock tests smoother parameters | ||||
|     trk_param.cn0_smoother_samples = configuration->property(role + ".cn0_smoother_samples", trk_param.cn0_smoother_samples); | ||||
|     trk_param.cn0_smoother_alpha = configuration->property(role + ".cn0_smoother_alpha", trk_param.cn0_smoother_alpha); | ||||
|     trk_param.carrier_lock_test_smoother_samples = configuration->property(role + ".carrier_lock_test_smoother_samples", trk_param.carrier_lock_test_smoother_samples); | ||||
|     trk_param.carrier_lock_test_smoother_alpha = configuration->property(role + ".carrier_lock_test_smoother_alpha", trk_param.carrier_lock_test_smoother_alpha); | ||||
|  | ||||
|  | ||||
|     // ################# MAKE TRACKING GNURadio object ################### | ||||
|     if (item_type == "gr_complex") | ||||
|         { | ||||
|   | ||||
| @@ -255,13 +255,12 @@ GalileoE1DllPllVemlTrackingFpga::GalileoE1DllPllVemlTrackingFpga( | ||||
|     trk_param_fpga.extend_fpga_integration_periods = 1;  // (number of FPGA integrations that are combined in the SW) | ||||
|     trk_param_fpga.fpga_integration_period = 1;          // (number of symbols that are effectively integrated in the FPGA) | ||||
|  | ||||
|     //tracking lock tests smoother parameters | ||||
|     // tracking lock tests smoother parameters | ||||
|     trk_param_fpga.cn0_smoother_samples = configuration->property(role + ".cn0_smoother_samples", trk_param_fpga.cn0_smoother_samples); | ||||
|     trk_param_fpga.cn0_smoother_alpha = configuration->property(role + ".cn0_smoother_alpha", trk_param_fpga.cn0_smoother_alpha); | ||||
|     trk_param_fpga.carrier_lock_test_smoother_samples = configuration->property(role + ".carrier_lock_test_smoother_samples", trk_param_fpga.carrier_lock_test_smoother_samples); | ||||
|     trk_param_fpga.carrier_lock_test_smoother_alpha = configuration->property(role + ".carrier_lock_test_smoother_alpha", trk_param_fpga.carrier_lock_test_smoother_alpha); | ||||
|  | ||||
|  | ||||
|     //################# MAKE TRACKING GNURadio object ################### | ||||
|     tracking_fpga_sc = dll_pll_veml_make_tracking_fpga(trk_param_fpga); | ||||
|     channel_ = 0; | ||||
|   | ||||
| @@ -166,13 +166,12 @@ GalileoE5aDllPllTracking::GalileoE5aDllPllTracking( | ||||
|     trk_param.max_carrier_lock_fail = configuration->property(role + ".max_carrier_lock_fail", trk_param.max_carrier_lock_fail); | ||||
|     trk_param.carrier_lock_th = configuration->property(role + ".carrier_lock_th", trk_param.carrier_lock_th); | ||||
|  | ||||
|     //tracking lock tests smoother parameters | ||||
|     // tracking lock tests smoother parameters | ||||
|     trk_param.cn0_smoother_samples = configuration->property(role + ".cn0_smoother_samples", trk_param.cn0_smoother_samples); | ||||
|     trk_param.cn0_smoother_alpha = configuration->property(role + ".cn0_smoother_alpha", trk_param.cn0_smoother_alpha); | ||||
|     trk_param.carrier_lock_test_smoother_samples = configuration->property(role + ".carrier_lock_test_smoother_samples", trk_param.carrier_lock_test_smoother_samples); | ||||
|     trk_param.carrier_lock_test_smoother_alpha = configuration->property(role + ".carrier_lock_test_smoother_alpha", trk_param.carrier_lock_test_smoother_alpha); | ||||
|  | ||||
|  | ||||
|     // ################# MAKE TRACKING GNURadio object ################### | ||||
|     if (item_type == "gr_complex") | ||||
|         { | ||||
|   | ||||
| @@ -262,13 +262,12 @@ GalileoE5aDllPllTrackingFpga::GalileoE5aDllPllTrackingFpga( | ||||
|                 } | ||||
|         } | ||||
|  | ||||
|     //tracking lock tests smoother parameters | ||||
|     // tracking lock tests smoother parameters | ||||
|     trk_param_fpga.cn0_smoother_samples = configuration->property(role + ".cn0_smoother_samples", trk_param_fpga.cn0_smoother_samples); | ||||
|     trk_param_fpga.cn0_smoother_alpha = configuration->property(role + ".cn0_smoother_alpha", trk_param_fpga.cn0_smoother_alpha); | ||||
|     trk_param_fpga.carrier_lock_test_smoother_samples = configuration->property(role + ".carrier_lock_test_smoother_samples", trk_param_fpga.carrier_lock_test_smoother_samples); | ||||
|     trk_param_fpga.carrier_lock_test_smoother_alpha = configuration->property(role + ".carrier_lock_test_smoother_alpha", trk_param_fpga.carrier_lock_test_smoother_alpha); | ||||
|  | ||||
|  | ||||
|     // ################# MAKE TRACKING GNURadio object ################### | ||||
|     tracking_fpga_sc = dll_pll_veml_make_tracking_fpga(trk_param_fpga); | ||||
|     channel_ = 0; | ||||
|   | ||||
| @@ -172,7 +172,7 @@ GpsL1CaDllPllTracking::GpsL1CaDllPllTracking( | ||||
|     trk_param.max_carrier_lock_fail = configuration->property(role + ".max_carrier_lock_fail", trk_param.max_carrier_lock_fail); | ||||
|     trk_param.carrier_lock_th = configuration->property(role + ".carrier_lock_th", trk_param.carrier_lock_th); | ||||
|  | ||||
|     //tracking lock tests smoother parameters | ||||
|     // tracking lock tests smoother parameters | ||||
|     trk_param.cn0_smoother_samples = configuration->property(role + ".cn0_smoother_samples", trk_param.cn0_smoother_samples); | ||||
|     trk_param.cn0_smoother_alpha = configuration->property(role + ".cn0_smoother_alpha", trk_param.cn0_smoother_alpha); | ||||
|     trk_param.carrier_lock_test_smoother_samples = configuration->property(role + ".carrier_lock_test_smoother_samples", trk_param.carrier_lock_test_smoother_samples); | ||||
|   | ||||
| @@ -216,13 +216,12 @@ GpsL1CaDllPllTrackingFpga::GpsL1CaDllPllTrackingFpga( | ||||
|                 } | ||||
|         } | ||||
|  | ||||
|     //tracking lock tests smoother parameters | ||||
|     // tracking lock tests smoother parameters | ||||
|     trk_param_fpga.cn0_smoother_samples = configuration->property(role + ".cn0_smoother_samples", trk_param_fpga.cn0_smoother_samples); | ||||
|     trk_param_fpga.cn0_smoother_alpha = configuration->property(role + ".cn0_smoother_alpha", trk_param_fpga.cn0_smoother_alpha); | ||||
|     trk_param_fpga.carrier_lock_test_smoother_samples = configuration->property(role + ".carrier_lock_test_smoother_samples", trk_param_fpga.carrier_lock_test_smoother_samples); | ||||
|     trk_param_fpga.carrier_lock_test_smoother_alpha = configuration->property(role + ".carrier_lock_test_smoother_alpha", trk_param_fpga.carrier_lock_test_smoother_alpha); | ||||
|  | ||||
|  | ||||
|     // ################# MAKE TRACKING GNURadio object ################### | ||||
|     tracking_fpga_sc = dll_pll_veml_make_tracking_fpga(trk_param_fpga); | ||||
|     channel_ = 0; | ||||
|   | ||||
| @@ -148,13 +148,12 @@ GpsL2MDllPllTracking::GpsL2MDllPllTracking( | ||||
|     trk_param.max_carrier_lock_fail = configuration->property(role + ".max_carrier_lock_fail", trk_param.max_carrier_lock_fail); | ||||
|     trk_param.carrier_lock_th = configuration->property(role + ".carrier_lock_th", trk_param.carrier_lock_th); | ||||
|  | ||||
|     //tracking lock tests smoother parameters | ||||
|     // tracking lock tests smoother parameters | ||||
|     trk_param.cn0_smoother_samples = configuration->property(role + ".cn0_smoother_samples", trk_param.cn0_smoother_samples); | ||||
|     trk_param.cn0_smoother_alpha = configuration->property(role + ".cn0_smoother_alpha", trk_param.cn0_smoother_alpha); | ||||
|     trk_param.carrier_lock_test_smoother_samples = configuration->property(role + ".carrier_lock_test_smoother_samples", trk_param.carrier_lock_test_smoother_samples); | ||||
|     trk_param.carrier_lock_test_smoother_alpha = configuration->property(role + ".carrier_lock_test_smoother_alpha", trk_param.carrier_lock_test_smoother_alpha); | ||||
|  | ||||
|  | ||||
|     // ################# MAKE TRACKING GNURadio object ################### | ||||
|     if (item_type == "gr_complex") | ||||
|         { | ||||
|   | ||||
| @@ -102,6 +102,10 @@ GpsL2MDllPllTrackingFpga::GpsL2MDllPllTrackingFpga( | ||||
|     trk_param_fpga.max_code_lock_fail = configuration->property(role + ".max_lock_fail", trk_param_fpga.max_code_lock_fail); | ||||
|     trk_param_fpga.max_carrier_lock_fail = configuration->property(role + ".max_carrier_lock_fail", trk_param_fpga.max_carrier_lock_fail); | ||||
|     trk_param_fpga.carrier_lock_th = configuration->property(role + ".carrier_lock_th", trk_param_fpga.carrier_lock_th); | ||||
|     trk_param_fpga.cn0_smoother_samples = configuration->property(role + ".cn0_smoother_samples", trk_param_fpga.cn0_smoother_samples); | ||||
|     trk_param_fpga.cn0_smoother_alpha = configuration->property(role + ".cn0_smoother_alpha", trk_param_fpga.cn0_smoother_alpha); | ||||
|     trk_param_fpga.carrier_lock_test_smoother_samples = configuration->property(role + ".carrier_lock_test_smoother_samples", trk_param_fpga.carrier_lock_test_smoother_samples); | ||||
|     trk_param_fpga.carrier_lock_test_smoother_alpha = configuration->property(role + ".carrier_lock_test_smoother_alpha", trk_param_fpga.carrier_lock_test_smoother_alpha); | ||||
|  | ||||
|     //    int32_t max_lock_fail = configuration->property(role + ".max_lock_fail", 50); | ||||
|     //    if (FLAGS_max_lock_fail != 50) | ||||
|   | ||||
| @@ -168,7 +168,7 @@ GpsL5DllPllTracking::GpsL5DllPllTracking( | ||||
|     trk_param.max_carrier_lock_fail = configuration->property(role + ".max_carrier_lock_fail", trk_param.max_carrier_lock_fail); | ||||
|     trk_param.carrier_lock_th = configuration->property(role + ".carrier_lock_th", trk_param.carrier_lock_th); | ||||
|  | ||||
|     //tracking lock tests smoother parameters | ||||
|     // tracking lock tests smoother parameters | ||||
|     trk_param.cn0_smoother_samples = configuration->property(role + ".cn0_smoother_samples", trk_param.cn0_smoother_samples); | ||||
|     trk_param.cn0_smoother_alpha = configuration->property(role + ".cn0_smoother_alpha", trk_param.cn0_smoother_alpha); | ||||
|     trk_param.carrier_lock_test_smoother_samples = configuration->property(role + ".carrier_lock_test_smoother_samples", trk_param.carrier_lock_test_smoother_samples); | ||||
|   | ||||
| @@ -286,7 +286,7 @@ GpsL5DllPllTrackingFpga::GpsL5DllPllTrackingFpga( | ||||
|                 } | ||||
|         } | ||||
|  | ||||
|     //tracking lock tests smoother parameters | ||||
|     // tracking lock tests smoother parameters | ||||
|     trk_param_fpga.cn0_smoother_samples = configuration->property(role + ".cn0_smoother_samples", trk_param_fpga.cn0_smoother_samples); | ||||
|     trk_param_fpga.cn0_smoother_alpha = configuration->property(role + ".cn0_smoother_alpha", trk_param_fpga.cn0_smoother_alpha); | ||||
|     trk_param_fpga.carrier_lock_test_smoother_samples = configuration->property(role + ".carrier_lock_test_smoother_samples", trk_param_fpga.carrier_lock_test_smoother_samples); | ||||
|   | ||||
| @@ -40,7 +40,6 @@ class Dll_Pll_Conf | ||||
| { | ||||
| public: | ||||
|     /* DLL/PLL tracking configuration */ | ||||
|  | ||||
|     int fll_filter_order; | ||||
|     bool enable_fll_pull_in; | ||||
|     bool enable_fll_steady_state; | ||||
| @@ -48,7 +47,6 @@ public: | ||||
|     unsigned int bit_synchronization_time_limit_s; | ||||
|     int pll_filter_order; | ||||
|     int dll_filter_order; | ||||
|  | ||||
|     double fs_in; | ||||
|     uint32_t vector_length; | ||||
|     bool dump; | ||||
| @@ -72,7 +70,6 @@ public: | ||||
|     float cn0_smoother_alpha; | ||||
|     int32_t carrier_lock_test_smoother_samples; | ||||
|     float carrier_lock_test_smoother_alpha; | ||||
|     //int32_t carrier_lock_det_mav_samples; | ||||
|     int32_t cn0_min; | ||||
|     int32_t max_code_lock_fail; | ||||
|     int32_t max_carrier_lock_fail; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Carles Fernandez
					Carles Fernandez