mirror of
				https://github.com/gnss-sdr/gnss-sdr
				synced 2025-10-31 15:23:04 +00:00 
			
		
		
		
	refactoring code
This commit is contained in:
		| @@ -63,6 +63,9 @@ GpsL1CaDllPllCAidTrackingFpga::GpsL1CaDllPllCAidTrackingFpga( | ||||
|     float dll_bw_hz; | ||||
|     float dll_bw_narrow_hz; | ||||
|     float early_late_space_chips; | ||||
|     std::string device_name; | ||||
|     unsigned int device_base; | ||||
|     unsigned int device_range; | ||||
|     item_type_ = configuration->property(role + ".item_type", default_item_type); | ||||
|     fs_in = configuration->property("GNSS-SDR.internal_fs_hz", 2048000); | ||||
|     f_if = configuration->property(role + ".if", 0); | ||||
| @@ -77,7 +80,11 @@ GpsL1CaDllPllCAidTrackingFpga::GpsL1CaDllPllCAidTrackingFpga( | ||||
|     early_late_space_chips = configuration->property(role + ".early_late_space_chips", 0.5); | ||||
|     std::string default_dump_filename = "./track_ch"; | ||||
|     dump_filename = configuration->property(role + ".dump_filename", | ||||
|             default_dump_filename); //unused! | ||||
|             default_dump_filename); | ||||
|     std::string default_device_name = "/dev/uio"; | ||||
|     device_name = configuration->property(role + ".devicename", default_device_name); | ||||
|     device_base = configuration->property(role + ".device_base", 1); | ||||
|     device_range = configuration->property(role + ".device_range", 1); | ||||
|     vector_length = std::round(fs_in / (GPS_L1_CA_CODE_RATE_HZ / GPS_L1_CA_CODE_LENGTH_CHIPS)); | ||||
|  | ||||
|     //################# MAKE TRACKING GNURadio object ################### | ||||
| @@ -96,7 +103,11 @@ GpsL1CaDllPllCAidTrackingFpga::GpsL1CaDllPllCAidTrackingFpga( | ||||
|                     pll_bw_narrow_hz, | ||||
|                     dll_bw_narrow_hz, | ||||
|                     extend_correlation_ms, | ||||
|                     early_late_space_chips); | ||||
|                     early_late_space_chips, | ||||
|                     device_name, | ||||
|                     device_base, | ||||
|                     device_range | ||||
|                     ); | ||||
|             DLOG(INFO) << "tracking(" << tracking_fpga_sc->unique_id() << ")"; | ||||
|         } | ||||
|     else | ||||
| @@ -207,3 +218,11 @@ gr::basic_block_sptr GpsL1CaDllPllCAidTrackingFpga::get_right_block() | ||||
|             return nullptr; | ||||
|         } | ||||
| } | ||||
|  | ||||
| void GpsL1CaDllPllCAidTrackingFpga::reset(void) | ||||
| { | ||||
|  | ||||
| 	tracking_fpga_sc->reset(); | ||||
|  | ||||
| } | ||||
|  | ||||
|   | ||||
| @@ -95,6 +95,8 @@ public: | ||||
|  | ||||
|     void start_tracking(); | ||||
|  | ||||
|     void reset(void); | ||||
|  | ||||
| private: | ||||
|     gps_l1_ca_dll_pll_c_aid_tracking_fpga_sc_sptr tracking_fpga_sc; | ||||
|     size_t item_size_; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 mmajoral
					mmajoral