From c2676ec49192e02d9009dded343d55719b666b57 Mon Sep 17 00:00:00 2001 From: Javier Arribas Date: Tue, 12 Jan 2016 18:58:00 +0100 Subject: [PATCH] Added missing includes (to be removed in future versions). Steps towards the integration of new standalone kernels into volk_gnsssdr library. --- conf/gnss-sdr_Hybrid_byte_sim.conf | 4 +-- .../tracking/adapters/CMakeLists.txt | 1 + src/algorithms/tracking/libs/CMakeLists.txt | 3 +- .../tracking/libs/cpu_multicorrelator_16sc.h | 2 +- .../volk_gnsssdr_16ic_xn_dot_prod_16ic_xn.h | 28 ++++++++----------- src/core/receiver/CMakeLists.txt | 1 + 6 files changed, 19 insertions(+), 20 deletions(-) diff --git a/conf/gnss-sdr_Hybrid_byte_sim.conf b/conf/gnss-sdr_Hybrid_byte_sim.conf index 9855dcae0..4e4d558ad 100644 --- a/conf/gnss-sdr_Hybrid_byte_sim.conf +++ b/conf/gnss-sdr_Hybrid_byte_sim.conf @@ -158,7 +158,7 @@ Resampler.sample_freq_out=4000000 ;######### CHANNELS GLOBAL CONFIG ############ ;#count: Number of available GPS satellite channels. -Channels_1C.count=1 +Channels_1C.count=12 ;#count: Number of available Galileo satellite channels. Channels_1B.count=0 ;#in_acquisition: Number of channels simultaneously acquiring for the whole receiver @@ -233,7 +233,7 @@ Acquisition_1B.doppler_step=125 ;######### TRACKING GPS CONFIG ############ ;#implementation: Selected tracking algorithm: [GPS_L1_CA_DLL_PLL_Tracking] or [GPS_L1_CA_DLL_FLL_PLL_Tracking] or [GPS_L1_CA_TCP_CONNECTOR_Tracking] or [Galileo_E1_DLL_PLL_VEML_Tracking] -Tracking_1C.implementation=GPS_L1_CA_DLL_PLL_C_Aid_Tracking +Tracking_1C.implementation=GPS_L1_CA_DLL_PLL_C_Aid_Tracking_16sc ;#item_type: Type and resolution for each of the signal samples. Use only [gr_complex] in this version. Tracking_1C.item_type=gr_complex diff --git a/src/algorithms/tracking/adapters/CMakeLists.txt b/src/algorithms/tracking/adapters/CMakeLists.txt index 8b35e506f..2d4855c8c 100644 --- a/src/algorithms/tracking/adapters/CMakeLists.txt +++ b/src/algorithms/tracking/adapters/CMakeLists.txt @@ -47,6 +47,7 @@ include_directories( ${GLOG_INCLUDE_DIRS} ${GFlags_INCLUDE_DIRS} ${GNURADIO_RUNTIME_INCLUDE_DIRS} + ${VOLK_GNSSSDR_INCLUDE_DIRS} ${OPT_TRACKING_INCLUDE_DIRS} ) diff --git a/src/algorithms/tracking/libs/CMakeLists.txt b/src/algorithms/tracking/libs/CMakeLists.txt index f15b9b914..e0c7d4d69 100644 --- a/src/algorithms/tracking/libs/CMakeLists.txt +++ b/src/algorithms/tracking/libs/CMakeLists.txt @@ -53,6 +53,7 @@ include_directories( ${GLOG_INCLUDE_DIRS} ${GFlags_INCLUDE_DIRS} ${OPT_TRACKING_INCLUDES} + ${VOLK_GNSSSDR_INCLUDE_DIRS} ) if(ENABLE_GENERIC_ARCH) @@ -67,5 +68,5 @@ endif(SSE3_AVAILABLE) file(GLOB TRACKING_LIB_HEADERS "*.h") add_library(tracking_lib ${TRACKING_LIB_SOURCES} ${TRACKING_LIB_HEADERS}) source_group(Headers FILES ${TRACKING_LIB_HEADERS}) -target_link_libraries(tracking_lib ${OPT_TRACKING_LIBRARIES} ${VOLK_LIBRARIES} ${GNURADIO_RUNTIME_LIBRARIES}) +target_link_libraries(tracking_lib ${OPT_TRACKING_LIBRARIES} ${VOLK_LIBRARIES} ${VOLK_GNSSSDR_LIBRARIES} ${GNURADIO_RUNTIME_LIBRARIES}) add_dependencies(tracking_lib glog-${glog_RELEASE}) diff --git a/src/algorithms/tracking/libs/cpu_multicorrelator_16sc.h b/src/algorithms/tracking/libs/cpu_multicorrelator_16sc.h index 2863d1f3a..d3fa69042 100644 --- a/src/algorithms/tracking/libs/cpu_multicorrelator_16sc.h +++ b/src/algorithms/tracking/libs/cpu_multicorrelator_16sc.h @@ -36,7 +36,7 @@ #define GNSS_SDR_CPU_MULTICORRELATOR_16SC_H_ #include //include original volk first! -#include "volk_gnsssdr/volk_gnsssdr.h" +#include /*! diff --git a/src/algorithms/tracking/libs/volk_gnsssdr_16ic_xn_dot_prod_16ic_xn.h b/src/algorithms/tracking/libs/volk_gnsssdr_16ic_xn_dot_prod_16ic_xn.h index 99c456686..f55a1b0b8 100644 --- a/src/algorithms/tracking/libs/volk_gnsssdr_16ic_xn_dot_prod_16ic_xn.h +++ b/src/algorithms/tracking/libs/volk_gnsssdr_16ic_xn_dot_prod_16ic_xn.h @@ -36,10 +36,8 @@ #ifndef INCLUDED_volk_gnsssdr_16ic_xn_dot_prod_16ic_xn_u_H #define INCLUDED_volk_gnsssdr_16ic_xn_dot_prod_16ic_xn_u_H -#include + #include -#include -#include #include "saturated_arithmetic.h" #ifdef LV_HAVE_GENERIC @@ -52,21 +50,16 @@ */ static inline void volk_gnsssdr_16ic_xn_dot_prod_16ic_xn_generic(lv_16sc_t* result, const lv_16sc_t* in_common, const lv_16sc_t** in_a, unsigned int num_points, int num_a_vectors) { - - for (int n_vec=0;n_vec