mirror of
				https://github.com/gnss-sdr/gnss-sdr
				synced 2025-10-31 15:23:04 +00:00 
			
		
		
		
	Adding some lines to notch_filter.h
Coding the class NotchFilter
This commit is contained in:
		| @@ -33,5 +33,45 @@ | |||||||
| #ifndef GNSS_SDR_NOTCH_FILTER_H_ | #ifndef GNSS_SDR_NOTCH_FILTER_H_ | ||||||
| #define GNSS_SDR_NOTCH_FILTER_H_ | #define GNSS_SDR_NOTCH_FILTER_H_ | ||||||
|  |  | ||||||
|  | #include <string> | ||||||
|  | #include <vector> | ||||||
|  | #include <gnuradio/blocks/file_sink.h> | ||||||
|  | #include "gnss_block_interface.h" | ||||||
|  | #include "notch_cc.h" | ||||||
|  |  | ||||||
| #endif | class ConfigurationInterface; | ||||||
|  |  | ||||||
|  | class NotchFilter: public GNSSBlockInterface | ||||||
|  | { | ||||||
|  | public: | ||||||
|  |     NotchFilter(ConfigurationInterface* configuration, | ||||||
|  |             std::string role, unsigned int in_streams, | ||||||
|  |             unsigned int out_streams); | ||||||
|  |  | ||||||
|  |     virtual ~NotchFilter(); | ||||||
|  |     std::string role() | ||||||
|  |     { | ||||||
|  |         return role_; | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     //! Returns "Notch_Filter" | ||||||
|  |     std::string implementation() | ||||||
|  |     { | ||||||
|  |         return "Notch_Filter"; | ||||||
|  |     } | ||||||
|  |     size_t item_size() | ||||||
|  |     { | ||||||
|  |         return 0; | ||||||
|  |     } | ||||||
|  |     void connect(gr::top_block_sptr top_block); | ||||||
|  |     void disconnect(gr::top_block_sptr top_block); | ||||||
|  |     gr::basic_block_sptr get_left_block(); | ||||||
|  |     gr::basic_block_sptr get_right_block(); | ||||||
|  |      | ||||||
|  | private: | ||||||
|  |     ConfigurationInterface* config_; | ||||||
|  |      | ||||||
|  |          | ||||||
|  | }; | ||||||
|  |  | ||||||
|  | #endif //GNSS_SDR_NOTCH_FILTER_H_ | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Antonio Ramos
					Antonio Ramos