mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-06-27 15:42:53 +00:00
Replacing the fxp_nco by the sincos kernel
This commit is contained in:
parent
703de227a2
commit
b888573c3d
@ -27,6 +27,7 @@ include_directories(
|
|||||||
${GLOG_INCLUDE_DIRS}
|
${GLOG_INCLUDE_DIRS}
|
||||||
${GFlags_INCLUDE_DIRS}
|
${GFlags_INCLUDE_DIRS}
|
||||||
${GNURADIO_RUNTIME_INCLUDE_DIRS}
|
${GNURADIO_RUNTIME_INCLUDE_DIRS}
|
||||||
|
${VOLK_GNSSSDR_INCLUDE_DIRS}
|
||||||
)
|
)
|
||||||
|
|
||||||
file(GLOB SIGNAL_GENERATOR_BLOCK_HEADERS "*.h")
|
file(GLOB SIGNAL_GENERATOR_BLOCK_HEADERS "*.h")
|
||||||
@ -35,5 +36,11 @@ source_group(Headers FILES ${SIGNAL_GENERATOR_BLOCK_HEADERS})
|
|||||||
target_link_libraries(signal_generator_blocks gnss_system_parameters gnss_sp_libs
|
target_link_libraries(signal_generator_blocks gnss_system_parameters gnss_sp_libs
|
||||||
${GNURADIO_RUNTIME_LIBRARIES}
|
${GNURADIO_RUNTIME_LIBRARIES}
|
||||||
${GNURADIO_FFT_LIBRARIES}
|
${GNURADIO_FFT_LIBRARIES}
|
||||||
${VOLK_LIBRARIES} ${ORC_LIBRARIES}
|
${VOLK_LIBRARIES} ${VOLK_GNSSSDR_LIBRARIES} ${ORC_LIBRARIES}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if(VOLK_GNSSSDR_FOUND)
|
||||||
|
# add_dependencies(signal_generator_blocks glog-${glog_RELEASE})
|
||||||
|
else(VOLK_GNSSSDR_FOUND)
|
||||||
|
add_dependencies(signal_generator_blocks volk_gnsssdr_module)
|
||||||
|
endif()
|
@ -34,9 +34,9 @@
|
|||||||
#include <fstream>
|
#include <fstream>
|
||||||
#include <gnuradio/io_signature.h>
|
#include <gnuradio/io_signature.h>
|
||||||
#include <volk/volk.h>
|
#include <volk/volk.h>
|
||||||
|
#include <volk_gnsssdr/volk_gnsssdr.h>
|
||||||
#include "gps_sdr_signal_processing.h"
|
#include "gps_sdr_signal_processing.h"
|
||||||
#include "galileo_e1_signal_processing.h"
|
#include "galileo_e1_signal_processing.h"
|
||||||
#include "nco_lib.h"
|
|
||||||
#include "galileo_e5_signal_processing.h"
|
#include "galileo_e5_signal_processing.h"
|
||||||
#include "Galileo_E1.h"
|
#include "Galileo_E1.h"
|
||||||
#include "Galileo_E5a.h"
|
#include "Galileo_E5a.h"
|
||||||
@ -271,7 +271,9 @@ gr_vector_void_star &output_items)
|
|||||||
for (unsigned int sat = 0; sat < num_sats_; sat++)
|
for (unsigned int sat = 0; sat < num_sats_; sat++)
|
||||||
{
|
{
|
||||||
float phase_step_rad = -static_cast<float>(GPS_TWO_PI) * doppler_Hz_[sat] / static_cast<float>(fs_in_);
|
float phase_step_rad = -static_cast<float>(GPS_TWO_PI) * doppler_Hz_[sat] / static_cast<float>(fs_in_);
|
||||||
fxp_nco(complex_phase_, vector_length_, start_phase_rad_[sat], phase_step_rad);
|
float _phase[1];
|
||||||
|
_phase[0] = -start_phase_rad_[sat];
|
||||||
|
volk_gnsssdr_s32f_sincos_32fc(complex_phase_, -phase_step_rad, _phase, vector_length_);
|
||||||
start_phase_rad_[sat] += vector_length_ * phase_step_rad;
|
start_phase_rad_[sat] += vector_length_ * phase_step_rad;
|
||||||
|
|
||||||
out_idx = 0;
|
out_idx = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user