mirror of
				https://github.com/gnss-sdr/gnss-sdr
				synced 2025-10-31 07:13:03 +00:00 
			
		
		
		
	adding a pass_through for all data types
This commit is contained in:
		| @@ -50,6 +50,7 @@ include_directories( | ||||
|      ${GLOG_INCLUDE_DIRS} | ||||
|      ${GFlags_INCLUDE_DIRS} | ||||
|      ${GNURADIO_RUNTIME_INCLUDE_DIRS} | ||||
|      ${VOLK_INCLUDE_DIRS} | ||||
| ) | ||||
|  | ||||
| if(OPENCL_FOUND) | ||||
|   | ||||
| @@ -34,6 +34,7 @@ | ||||
| #include <iostream> | ||||
| #include <complex> | ||||
| #include <glog/logging.h> | ||||
| #include <volk/volk.h> | ||||
| #include "configuration_interface.h" | ||||
|  | ||||
| using google::LogMessage; | ||||
| @@ -58,15 +59,19 @@ Pass_Through::Pass_Through(ConfigurationInterface* configuration, std::string ro | ||||
|         } | ||||
|     else if(item_type_.compare("short") == 0) | ||||
|         { | ||||
|             item_size_ = sizeof(short); | ||||
|             item_size_ = sizeof(int16_t); | ||||
|         } | ||||
|     else if(item_type_.compare("cshort") == 0) | ||||
|         { | ||||
|             item_size_ = sizeof(lv_16sc_t); | ||||
|         } | ||||
|     else if(item_type_.compare("byte") == 0) | ||||
|         { | ||||
|             item_size_ = sizeof(char); | ||||
|             item_size_ = sizeof(int8_t); | ||||
|         } | ||||
|     else if(item_type_.compare("cbyte") == 0) | ||||
|         { | ||||
|             item_size_ = sizeof(std::complex<unsigned char>); | ||||
|             item_size_ = sizeof(lv_8sc_t); | ||||
|         } | ||||
|     else | ||||
|         { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Carles Fernandez
					Carles Fernandez