mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2024-12-15 20:50:33 +00:00
Add a common shared pointer definition
Makes transition to GNU Radio 3.9 API less verbose
This commit is contained in:
parent
165ae06d7a
commit
f0e1ef6f9a
docs
src
algorithms
PVT/gnuradio_blocks
acquisition
adapters
gnuradio_blocks
channel/libs
data_type_adapter/gnuradio_blocks
CMakeLists.txtinterleaved_byte_to_complex_byte.hinterleaved_byte_to_complex_short.hinterleaved_short_to_complex_short.h
input_filter/gnuradio_blocks
libs
byte_x2_to_complex_byte.hcomplex_byte_to_float_x2.hcomplex_float_to_complex_byte.hconjugate_cc.hconjugate_ic.hconjugate_sc.hcshort_to_float_x2.hshort_x2_to_cshort.h
observables/gnuradio_blocks
resampler/gnuradio_blocks
CMakeLists.txtdirect_resampler_conditioner_cb.hdirect_resampler_conditioner_cc.hdirect_resampler_conditioner_cs.h
signal_generator
signal_source
adapters
custom_udp_signal_source.hfile_signal_source.hfmcomms2_signal_source.hmultichannel_file_signal_source.hnsr_file_signal_source.hosmosdr_signal_source.hplutosdr_signal_source.hrtl_tcp_signal_source.hspir_file_signal_source.hspir_gss6450_file_signal_source.htwo_bit_cpx_file_signal_source.htwo_bit_packed_file_signal_source.huhd_signal_source.h
gnuradio_blocks
gr_complex_ip_packet_source.hlabsat23_source.hrtl_tcp_signal_source_c.hunpack_2bit_samples.hunpack_byte_2bit_cpx_samples.hunpack_byte_2bit_samples.hunpack_intspir_1bit_samples.hunpack_spir_gss6450_samples.h
libs
telemetry_decoder/gnuradio_blocks
CMakeLists.txtbeidou_b1i_telemetry_decoder_gs.hbeidou_b3i_telemetry_decoder_gs.hgalileo_telemetry_decoder_gs.hglonass_l1_ca_telemetry_decoder_gs.hglonass_l2_ca_telemetry_decoder_gs.hgps_l1_ca_telemetry_decoder_gs.hgps_l2c_telemetry_decoder_gs.hgps_l5_telemetry_decoder_gs.hsbas_l1_telemetry_decoder_gs.h
tracking/gnuradio_blocks
CMakeLists.txtdll_pll_veml_tracking.hdll_pll_veml_tracking_fpga.hgalileo_e1_tcp_connector_tracking_cc.hglonass_l1_ca_dll_pll_c_aid_tracking_cc.hglonass_l1_ca_dll_pll_c_aid_tracking_sc.hglonass_l1_ca_dll_pll_tracking_cc.hglonass_l2_ca_dll_pll_c_aid_tracking_cc.hglonass_l2_ca_dll_pll_c_aid_tracking_sc.hglonass_l2_ca_dll_pll_tracking_cc.hgps_l1_ca_dll_pll_tracking_gpu_cc.hgps_l1_ca_kf_tracking_cc.hgps_l1_ca_tcp_connector_tracking_cc.h
core
interfaces
libs
monitor
receiver
tests/unit-tests/signal-processing-blocks/acquisition
@ -23,6 +23,12 @@ SPDX-FileCopyrightText: 2011-2020 Carles Fernandez-Prades <carles.fernandez@cttc
|
||||
- Faster `SignalConditioner` block when its implementation is set to
|
||||
`Pass_Through`.
|
||||
|
||||
### Improvements in Maintainability:
|
||||
|
||||
- Added a common shared pointer definition `gnss_shared_ptr`, which allows to
|
||||
handle the `boost::shared_ptr` to `std::shared_ptr` transition in GNU Radio
|
||||
3.9 API more nicely.
|
||||
|
||||
### Improvements in Portability:
|
||||
|
||||
- Fixed `-DENABLE_OWN_GLOG=ON` building option when gflags is installed and it
|
||||
|
@ -50,6 +50,11 @@ if(GNURADIO_USES_STD_POINTERS)
|
||||
)
|
||||
endif()
|
||||
|
||||
target_include_directories(pvt_gr_blocks
|
||||
PUBLIC
|
||||
${CMAKE_SOURCE_DIR}/src/core/interfaces
|
||||
)
|
||||
|
||||
if(USE_GENERIC_LAMBDAS)
|
||||
set(has_generic_lambdas HAS_GENERIC_LAMBDA=1)
|
||||
set(no_has_generic_lambdas HAS_GENERIC_LAMBDA=0)
|
||||
|
@ -20,6 +20,7 @@
|
||||
#ifndef GNSS_SDR_RTKLIB_PVT_GS_H
|
||||
#define GNSS_SDR_RTKLIB_PVT_GS_H
|
||||
|
||||
#include "gnss_block_interface.h"
|
||||
#include "gnss_synchro.h"
|
||||
#include "rtklib.h"
|
||||
#include <boost/date_time/gregorian/gregorian.hpp>
|
||||
@ -36,10 +37,6 @@
|
||||
#include <string> // for string
|
||||
#include <sys/types.h> // for key_t
|
||||
#include <vector> // for vector
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
#else
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#endif
|
||||
|
||||
/** \addtogroup PVT
|
||||
* \{ */
|
||||
@ -65,11 +62,7 @@ class Rtcm_Printer;
|
||||
class Rtklib_Solver;
|
||||
class rtklib_pvt_gs;
|
||||
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
using rtklib_pvt_gs_sptr = std::shared_ptr<rtklib_pvt_gs>;
|
||||
#else
|
||||
using rtklib_pvt_gs_sptr = boost::shared_ptr<rtklib_pvt_gs>;
|
||||
#endif
|
||||
using rtklib_pvt_gs_sptr = gnss_shared_ptr<rtklib_pvt_gs>;
|
||||
|
||||
rtklib_pvt_gs_sptr rtklib_make_pvt_gs(uint32_t nchannels,
|
||||
const Pvt_Conf& conf_,
|
||||
|
@ -163,8 +163,8 @@ void GpsL1CaPcpsAcquisitionFineDoppler::set_state(int state)
|
||||
acquisition_cc_->set_state(state);
|
||||
}
|
||||
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
void GpsL1CaPcpsAcquisitionFineDoppler::connect(std::shared_ptr<gr::top_block> top_block)
|
||||
|
||||
void GpsL1CaPcpsAcquisitionFineDoppler::connect(gnss_shared_ptr<gr::top_block> top_block)
|
||||
{
|
||||
if (top_block)
|
||||
{ /* top_block is not null */
|
||||
@ -173,26 +173,7 @@ void GpsL1CaPcpsAcquisitionFineDoppler::connect(std::shared_ptr<gr::top_block> t
|
||||
}
|
||||
|
||||
|
||||
void GpsL1CaPcpsAcquisitionFineDoppler::disconnect(std::shared_ptr<gr::top_block> top_block)
|
||||
{
|
||||
if (top_block)
|
||||
{ /* top_block is not null */
|
||||
};
|
||||
// nothing to disconnect, now the tracking uses gr_sync_decimator
|
||||
}
|
||||
|
||||
std::shared_ptr<gr::basic_block> GpsL1CaPcpsAcquisitionFineDoppler::get_left_block()
|
||||
{
|
||||
return acquisition_cc_;
|
||||
}
|
||||
|
||||
|
||||
std::shared_ptr<gr::basic_block> GpsL1CaPcpsAcquisitionFineDoppler::get_right_block()
|
||||
{
|
||||
return acquisition_cc_;
|
||||
}
|
||||
#else
|
||||
void GpsL1CaPcpsAcquisitionFineDoppler::connect(boost::shared_ptr<gr::top_block> top_block)
|
||||
void GpsL1CaPcpsAcquisitionFineDoppler::disconnect(gnss_shared_ptr<gr::top_block> top_block)
|
||||
{
|
||||
if (top_block)
|
||||
{ /* top_block is not null */
|
||||
@ -201,22 +182,13 @@ void GpsL1CaPcpsAcquisitionFineDoppler::connect(boost::shared_ptr<gr::top_block>
|
||||
}
|
||||
|
||||
|
||||
void GpsL1CaPcpsAcquisitionFineDoppler::disconnect(boost::shared_ptr<gr::top_block> top_block)
|
||||
{
|
||||
if (top_block)
|
||||
{ /* top_block is not null */
|
||||
};
|
||||
// nothing to disconnect, now the tracking uses gr_sync_decimator
|
||||
}
|
||||
|
||||
boost::shared_ptr<gr::basic_block> GpsL1CaPcpsAcquisitionFineDoppler::get_left_block()
|
||||
gnss_shared_ptr<gr::basic_block> GpsL1CaPcpsAcquisitionFineDoppler::get_left_block()
|
||||
{
|
||||
return acquisition_cc_;
|
||||
}
|
||||
|
||||
|
||||
boost::shared_ptr<gr::basic_block> GpsL1CaPcpsAcquisitionFineDoppler::get_right_block()
|
||||
gnss_shared_ptr<gr::basic_block> GpsL1CaPcpsAcquisitionFineDoppler::get_right_block()
|
||||
{
|
||||
return acquisition_cc_;
|
||||
}
|
||||
#endif
|
||||
|
@ -29,12 +29,6 @@
|
||||
#include <memory>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
using pcps_acquisition_fine_doppler_cc_sptr = std::shared_ptr<pcps_acquisition_fine_doppler_cc>;
|
||||
#else
|
||||
#include <boost/shared_ptr.hpp>
|
||||
using pcps_acquisition_fine_doppler_cc_sptr = boost::shared_ptr<pcps_acquisition_fine_doppler_cc>;
|
||||
#endif
|
||||
|
||||
/** \addtogroup Acquisition
|
||||
* \{ */
|
||||
@ -42,6 +36,8 @@ using pcps_acquisition_fine_doppler_cc_sptr = boost::shared_ptr<pcps_acquisition
|
||||
* \{ */
|
||||
|
||||
|
||||
using pcps_acquisition_fine_doppler_cc_sptr = gnss_shared_ptr<pcps_acquisition_fine_doppler_cc>;
|
||||
|
||||
class ConfigurationInterface;
|
||||
|
||||
/*!
|
||||
@ -76,17 +72,11 @@ public:
|
||||
return item_size_;
|
||||
}
|
||||
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
void connect(std::shared_ptr<gr::top_block> top_block) override;
|
||||
void disconnect(std::shared_ptr<gr::top_block> top_block) override;
|
||||
std::shared_ptr<gr::basic_block> get_left_block() override;
|
||||
std::shared_ptr<gr::basic_block> get_right_block() override;
|
||||
#else
|
||||
void connect(boost::shared_ptr<gr::top_block> top_block) override;
|
||||
void disconnect(boost::shared_ptr<gr::top_block> top_block) override;
|
||||
boost::shared_ptr<gr::basic_block> get_left_block() override;
|
||||
boost::shared_ptr<gr::basic_block> get_right_block() override;
|
||||
#endif
|
||||
void connect(gnss_shared_ptr<gr::top_block> top_block) override;
|
||||
void disconnect(gnss_shared_ptr<gr::top_block> top_block) override;
|
||||
gnss_shared_ptr<gr::basic_block> get_left_block() override;
|
||||
gnss_shared_ptr<gr::basic_block> get_right_block() override;
|
||||
|
||||
/*!
|
||||
* \brief Set acquisition/tracking common Gnss_Synchro object pointer
|
||||
* to efficiently exchange synchronization data between acquisition and
|
||||
|
@ -37,10 +37,6 @@
|
||||
#include <string>
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
#else
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#endif
|
||||
|
||||
/** \addtogroup Acquisition
|
||||
* \{ */
|
||||
@ -50,11 +46,7 @@
|
||||
|
||||
class galileo_e5a_noncoherentIQ_acquisition_caf_cc;
|
||||
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
using galileo_e5a_noncoherentIQ_acquisition_caf_cc_sptr = std::shared_ptr<galileo_e5a_noncoherentIQ_acquisition_caf_cc>;
|
||||
#else
|
||||
using galileo_e5a_noncoherentIQ_acquisition_caf_cc_sptr = boost::shared_ptr<galileo_e5a_noncoherentIQ_acquisition_caf_cc>;
|
||||
#endif
|
||||
using galileo_e5a_noncoherentIQ_acquisition_caf_cc_sptr = gnss_shared_ptr<galileo_e5a_noncoherentIQ_acquisition_caf_cc>;
|
||||
|
||||
galileo_e5a_noncoherentIQ_acquisition_caf_cc_sptr galileo_e5a_noncoherentIQ_make_acquisition_caf_cc(
|
||||
unsigned int sampled_ms,
|
||||
|
@ -31,10 +31,6 @@
|
||||
#include <string>
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
#else
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#endif
|
||||
|
||||
/** \addtogroup Acquisition
|
||||
* \{ */
|
||||
@ -44,11 +40,7 @@
|
||||
|
||||
class galileo_pcps_8ms_acquisition_cc;
|
||||
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
using galileo_pcps_8ms_acquisition_cc_sptr = std::shared_ptr<galileo_pcps_8ms_acquisition_cc>;
|
||||
#else
|
||||
using galileo_pcps_8ms_acquisition_cc_sptr = boost::shared_ptr<galileo_pcps_8ms_acquisition_cc>;
|
||||
#endif
|
||||
using galileo_pcps_8ms_acquisition_cc_sptr = gnss_shared_ptr<galileo_pcps_8ms_acquisition_cc>;
|
||||
|
||||
galileo_pcps_8ms_acquisition_cc_sptr
|
||||
galileo_pcps_8ms_make_acquisition_cc(uint32_t sampled_ms,
|
||||
|
@ -71,11 +71,6 @@ namespace own = std;
|
||||
namespace own = gsl;
|
||||
#endif
|
||||
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
#else
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#endif
|
||||
|
||||
/** \addtogroup Acquisition
|
||||
* Classes for GNSS signal acquisition
|
||||
* \{ */
|
||||
@ -87,11 +82,7 @@ namespace own = gsl;
|
||||
class Gnss_Synchro;
|
||||
class pcps_acquisition;
|
||||
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
using pcps_acquisition_sptr = std::shared_ptr<pcps_acquisition>;
|
||||
#else
|
||||
using pcps_acquisition_sptr = boost::shared_ptr<pcps_acquisition>;
|
||||
#endif
|
||||
using pcps_acquisition_sptr = gnss_shared_ptr<pcps_acquisition>;
|
||||
|
||||
pcps_acquisition_sptr pcps_make_acquisition(const Acq_Conf& conf_);
|
||||
|
||||
|
@ -55,10 +55,7 @@
|
||||
#include <memory>
|
||||
#include <string>
|
||||
#include <utility>
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
#else
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#endif
|
||||
|
||||
|
||||
/** \addtogroup Acquisition
|
||||
* \{ */
|
||||
@ -68,11 +65,7 @@
|
||||
|
||||
class pcps_acquisition_fine_doppler_cc;
|
||||
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
using pcps_acquisition_fine_doppler_cc_sptr = std::shared_ptr<pcps_acquisition_fine_doppler_cc>;
|
||||
#else
|
||||
using pcps_acquisition_fine_doppler_cc_sptr = boost::shared_ptr<pcps_acquisition_fine_doppler_cc>;
|
||||
#endif
|
||||
using pcps_acquisition_fine_doppler_cc_sptr = gnss_shared_ptr<pcps_acquisition_fine_doppler_cc>;
|
||||
|
||||
pcps_acquisition_fine_doppler_cc_sptr pcps_make_acquisition_fine_doppler_cc(const Acq_Conf& conf_);
|
||||
|
||||
|
@ -47,10 +47,6 @@
|
||||
#include <string>
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
#else
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#endif
|
||||
|
||||
/** \addtogroup Acquisition
|
||||
* \{ */
|
||||
@ -60,11 +56,7 @@
|
||||
|
||||
class pcps_assisted_acquisition_cc;
|
||||
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
using pcps_assisted_acquisition_cc_sptr = std::shared_ptr<pcps_assisted_acquisition_cc>;
|
||||
#else
|
||||
using pcps_assisted_acquisition_cc_sptr = boost::shared_ptr<pcps_assisted_acquisition_cc>;
|
||||
#endif
|
||||
using pcps_assisted_acquisition_cc_sptr = gnss_shared_ptr<pcps_assisted_acquisition_cc>;
|
||||
|
||||
pcps_assisted_acquisition_cc_sptr pcps_make_assisted_acquisition_cc(
|
||||
int32_t max_dwells,
|
||||
|
@ -36,10 +36,6 @@
|
||||
#include <string>
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
#else
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#endif
|
||||
|
||||
/** \addtogroup Acquisition
|
||||
* \{ */
|
||||
@ -49,11 +45,7 @@
|
||||
|
||||
class pcps_cccwsr_acquisition_cc;
|
||||
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
using pcps_cccwsr_acquisition_cc_sptr = std::shared_ptr<pcps_cccwsr_acquisition_cc>;
|
||||
#else
|
||||
using pcps_cccwsr_acquisition_cc_sptr = boost::shared_ptr<pcps_cccwsr_acquisition_cc>;
|
||||
#endif
|
||||
using pcps_cccwsr_acquisition_cc_sptr = gnss_shared_ptr<pcps_cccwsr_acquisition_cc>;
|
||||
|
||||
pcps_cccwsr_acquisition_cc_sptr pcps_cccwsr_make_acquisition_cc(
|
||||
uint32_t sampled_ms,
|
||||
|
@ -53,10 +53,6 @@
|
||||
#include <memory> // for weak_ptr
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
#else
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#endif
|
||||
|
||||
/** \addtogroup Acquisition
|
||||
* \{ */
|
||||
@ -66,11 +62,7 @@
|
||||
|
||||
class pcps_opencl_acquisition_cc;
|
||||
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
typedef std::shared_ptr<pcps_opencl_acquisition_cc> pcps_opencl_acquisition_cc_sptr;
|
||||
#else
|
||||
typedef boost::shared_ptr<pcps_opencl_acquisition_cc> pcps_opencl_acquisition_cc_sptr;
|
||||
#endif
|
||||
using pcps_opencl_acquisition_cc_sptr = gnss_shared_ptr<pcps_opencl_acquisition_cc>;
|
||||
|
||||
pcps_opencl_acquisition_cc_sptr pcps_make_opencl_acquisition_cc(
|
||||
uint32_t sampled_ms,
|
||||
|
@ -53,10 +53,6 @@
|
||||
#include <string>
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
#else
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#endif
|
||||
|
||||
/** \addtogroup Acquisition
|
||||
* \{ */
|
||||
@ -66,11 +62,7 @@
|
||||
|
||||
class pcps_quicksync_acquisition_cc;
|
||||
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
using pcps_quicksync_acquisition_cc_sptr = std::shared_ptr<pcps_quicksync_acquisition_cc>;
|
||||
#else
|
||||
using pcps_quicksync_acquisition_cc_sptr = boost::shared_ptr<pcps_quicksync_acquisition_cc>;
|
||||
#endif
|
||||
using pcps_quicksync_acquisition_cc_sptr = gnss_shared_ptr<pcps_quicksync_acquisition_cc>;
|
||||
|
||||
pcps_quicksync_acquisition_cc_sptr pcps_quicksync_make_acquisition_cc(
|
||||
uint32_t folding_factor,
|
||||
|
@ -50,10 +50,6 @@
|
||||
#include <string>
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
#else
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#endif
|
||||
|
||||
/** \addtogroup Acquisition
|
||||
* \{ */
|
||||
@ -63,11 +59,7 @@
|
||||
|
||||
class pcps_tong_acquisition_cc;
|
||||
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
using pcps_tong_acquisition_cc_sptr = std::shared_ptr<pcps_tong_acquisition_cc>;
|
||||
#else
|
||||
using pcps_tong_acquisition_cc_sptr = boost::shared_ptr<pcps_tong_acquisition_cc>;
|
||||
#endif
|
||||
using pcps_tong_acquisition_cc_sptr = gnss_shared_ptr<pcps_tong_acquisition_cc>;
|
||||
|
||||
pcps_tong_acquisition_cc_sptr pcps_tong_make_acquisition_cc(
|
||||
uint32_t sampled_ms,
|
||||
|
@ -24,10 +24,6 @@
|
||||
#include <gnuradio/block.h>
|
||||
#include <pmt/pmt.h>
|
||||
#include <memory>
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
#else
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#endif
|
||||
|
||||
/** \addtogroup Channel
|
||||
* \{ */
|
||||
@ -37,11 +33,7 @@
|
||||
|
||||
class channel_msg_receiver_cc;
|
||||
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
using channel_msg_receiver_cc_sptr = std::shared_ptr<channel_msg_receiver_cc>;
|
||||
#else
|
||||
using channel_msg_receiver_cc_sptr = boost::shared_ptr<channel_msg_receiver_cc>;
|
||||
#endif
|
||||
using channel_msg_receiver_cc_sptr = gnss_shared_ptr<channel_msg_receiver_cc>;
|
||||
|
||||
channel_msg_receiver_cc_sptr channel_msg_receiver_make_cc(std::shared_ptr<ChannelFsm> channel_fsm, bool repeat);
|
||||
|
||||
|
@ -47,6 +47,11 @@ target_link_libraries(data_type_gr_blocks
|
||||
Volk::volk
|
||||
)
|
||||
|
||||
target_include_directories(data_type_gr_blocks
|
||||
PUBLIC
|
||||
${CMAKE_SOURCE_DIR}/src/core/interfaces
|
||||
)
|
||||
|
||||
if(GNURADIO_USES_STD_POINTERS)
|
||||
target_compile_definitions(data_type_gr_blocks
|
||||
PUBLIC -DGNURADIO_USES_STD_POINTERS=1
|
||||
|
@ -20,12 +20,8 @@
|
||||
#ifndef GNSS_SDR_INTERLEAVED_BYTE_TO_COMPLEX_BYTE_H
|
||||
#define GNSS_SDR_INTERLEAVED_BYTE_TO_COMPLEX_BYTE_H
|
||||
|
||||
#include "gnss_block_interface.h"
|
||||
#include <gnuradio/sync_decimator.h>
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
#include <memory>
|
||||
#else
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#endif
|
||||
|
||||
/** \addtogroup Data_Type
|
||||
* \{ */
|
||||
@ -36,11 +32,7 @@
|
||||
|
||||
class interleaved_byte_to_complex_byte;
|
||||
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
using interleaved_byte_to_complex_byte_sptr = std::shared_ptr<interleaved_byte_to_complex_byte>;
|
||||
#else
|
||||
using interleaved_byte_to_complex_byte_sptr = boost::shared_ptr<interleaved_byte_to_complex_byte>;
|
||||
#endif
|
||||
using interleaved_byte_to_complex_byte_sptr = gnss_shared_ptr<interleaved_byte_to_complex_byte>;
|
||||
|
||||
interleaved_byte_to_complex_byte_sptr make_interleaved_byte_to_complex_byte();
|
||||
|
||||
|
@ -20,12 +20,9 @@
|
||||
#ifndef GNSS_SDR_INTERLEAVED_BYTE_TO_COMPLEX_SHORT_H
|
||||
#define GNSS_SDR_INTERLEAVED_BYTE_TO_COMPLEX_SHORT_H
|
||||
|
||||
#include "gnss_block_interface.h"
|
||||
#include <gnuradio/sync_decimator.h>
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
#include <memory>
|
||||
#else
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#endif
|
||||
|
||||
|
||||
/** \addtogroup Data_Type
|
||||
* \{ */
|
||||
@ -35,11 +32,7 @@
|
||||
|
||||
class interleaved_byte_to_complex_short;
|
||||
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
using interleaved_byte_to_complex_short_sptr = std::shared_ptr<interleaved_byte_to_complex_short>;
|
||||
#else
|
||||
using interleaved_byte_to_complex_short_sptr = boost::shared_ptr<interleaved_byte_to_complex_short>;
|
||||
#endif
|
||||
using interleaved_byte_to_complex_short_sptr = gnss_shared_ptr<interleaved_byte_to_complex_short>;
|
||||
|
||||
interleaved_byte_to_complex_short_sptr make_interleaved_byte_to_complex_short();
|
||||
|
||||
|
@ -20,12 +20,8 @@
|
||||
#ifndef GNSS_SDR_INTERLEAVED_SHORT_TO_COMPLEX_SHORT_H
|
||||
#define GNSS_SDR_INTERLEAVED_SHORT_TO_COMPLEX_SHORT_H
|
||||
|
||||
#include "gnss_block_interface.h"
|
||||
#include <gnuradio/sync_decimator.h>
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
#include <memory>
|
||||
#else
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#endif
|
||||
|
||||
/** \addtogroup Data_Type
|
||||
* \{ */
|
||||
@ -35,11 +31,7 @@
|
||||
|
||||
class interleaved_short_to_complex_short;
|
||||
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
using interleaved_short_to_complex_short_sptr = std::shared_ptr<interleaved_short_to_complex_short>;
|
||||
#else
|
||||
using interleaved_short_to_complex_short_sptr = boost::shared_ptr<interleaved_short_to_complex_short>;
|
||||
#endif
|
||||
using interleaved_short_to_complex_short_sptr = gnss_shared_ptr<interleaved_short_to_complex_short>;
|
||||
|
||||
interleaved_short_to_complex_short_sptr make_interleaved_short_to_complex_short();
|
||||
|
||||
|
@ -52,6 +52,11 @@ target_link_libraries(input_filter_gr_blocks
|
||||
Log4cpp::log4cpp
|
||||
)
|
||||
|
||||
target_include_directories(input_filter_gr_blocks
|
||||
PUBLIC
|
||||
${CMAKE_SOURCE_DIR}/src/core/interfaces
|
||||
)
|
||||
|
||||
if(GNURADIO_USES_STD_POINTERS)
|
||||
target_compile_definitions(input_filter_gr_blocks
|
||||
PUBLIC -DGNURADIO_USES_STD_POINTERS=1
|
||||
|
@ -20,13 +20,9 @@
|
||||
#ifndef GNSS_SDR_BEAMFORMER_H
|
||||
#define GNSS_SDR_BEAMFORMER_H
|
||||
|
||||
#include "gnss_block_interface.h"
|
||||
#include <gnuradio/sync_block.h>
|
||||
#include <vector>
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
#include <memory>
|
||||
#else
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#endif
|
||||
|
||||
/** \addtogroup Input_Filter
|
||||
* \{ */
|
||||
@ -36,11 +32,7 @@
|
||||
|
||||
class beamformer;
|
||||
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
using beamformer_sptr = std::shared_ptr<beamformer>;
|
||||
#else
|
||||
using beamformer_sptr = boost::shared_ptr<beamformer>;
|
||||
#endif
|
||||
using beamformer_sptr = gnss_shared_ptr<beamformer>;
|
||||
|
||||
beamformer_sptr make_beamformer_sptr();
|
||||
|
||||
|
@ -20,10 +20,7 @@
|
||||
#ifndef GNSS_SDR_NOTCH_CC_H
|
||||
#define GNSS_SDR_NOTCH_CC_H
|
||||
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
#else
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#endif
|
||||
#include "gnss_block_interface.h"
|
||||
#include <gnuradio/block.h>
|
||||
#include <gnuradio/fft/fft.h>
|
||||
#include <volk_gnsssdr/volk_gnsssdr_alloc.h> // for volk_gnsssdr::vector
|
||||
@ -38,11 +35,7 @@
|
||||
|
||||
class Notch;
|
||||
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
using notch_sptr = std::shared_ptr<Notch>;
|
||||
#else
|
||||
using notch_sptr = boost::shared_ptr<Notch>;
|
||||
#endif
|
||||
using notch_sptr = gnss_shared_ptr<Notch>;
|
||||
|
||||
notch_sptr make_notch_filter(
|
||||
float pfa,
|
||||
|
@ -20,10 +20,7 @@
|
||||
#ifndef GNSS_SDR_NOTCH_LITE_CC_H
|
||||
#define GNSS_SDR_NOTCH_LITE_CC_H
|
||||
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
#else
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#endif
|
||||
#include "gnss_block_interface.h"
|
||||
#include <gnuradio/block.h>
|
||||
#include <gnuradio/fft/fft.h>
|
||||
#include <volk_gnsssdr/volk_gnsssdr_alloc.h> // for volk_gnsssdr::vector
|
||||
@ -38,11 +35,7 @@
|
||||
|
||||
class NotchLite;
|
||||
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
using notch_lite_sptr = std::shared_ptr<NotchLite>;
|
||||
#else
|
||||
using notch_lite_sptr = boost::shared_ptr<NotchLite>;
|
||||
#endif
|
||||
using notch_lite_sptr = gnss_shared_ptr<NotchLite>;
|
||||
|
||||
notch_lite_sptr make_notch_filter_lite(
|
||||
float p_c_factor,
|
||||
|
@ -20,11 +20,7 @@
|
||||
#ifndef GNSS_SDR_PULSE_BLANKING_CC_H
|
||||
#define GNSS_SDR_PULSE_BLANKING_CC_H
|
||||
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
#include <memory>
|
||||
#else
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#endif
|
||||
#include "gnss_block_interface.h"
|
||||
#include <gnuradio/block.h>
|
||||
#include <volk_gnsssdr/volk_gnsssdr_alloc.h> // for volk_gnsssdr::vector
|
||||
#include <cstdint>
|
||||
@ -38,11 +34,7 @@
|
||||
|
||||
class pulse_blanking_cc;
|
||||
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
using pulse_blanking_cc_sptr = std::shared_ptr<pulse_blanking_cc>;
|
||||
#else
|
||||
using pulse_blanking_cc_sptr = boost::shared_ptr<pulse_blanking_cc>;
|
||||
#endif
|
||||
using pulse_blanking_cc_sptr = gnss_shared_ptr<pulse_blanking_cc>;
|
||||
|
||||
pulse_blanking_cc_sptr make_pulse_blanking_cc(
|
||||
float pfa,
|
||||
|
@ -21,11 +21,7 @@
|
||||
#ifndef GNSS_SDR_BYTE_X2_TO_COMPLEX_BYTE_H
|
||||
#define GNSS_SDR_BYTE_X2_TO_COMPLEX_BYTE_H
|
||||
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
#include <memory>
|
||||
#else
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#endif
|
||||
#include "gnss_block_interface.h"
|
||||
#include <gnuradio/sync_block.h>
|
||||
#include <gnuradio/types.h> // for gr_vector_const_void_star
|
||||
|
||||
@ -34,14 +30,10 @@
|
||||
/** \addtogroup Algorithm_libs algorithms_libs
|
||||
* \{ */
|
||||
|
||||
|
||||
class byte_x2_to_complex_byte;
|
||||
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
using byte_x2_to_complex_byte_sptr = std::shared_ptr<byte_x2_to_complex_byte>;
|
||||
#else
|
||||
using byte_x2_to_complex_byte_sptr = boost::shared_ptr<byte_x2_to_complex_byte>;
|
||||
#endif
|
||||
|
||||
using byte_x2_to_complex_byte_sptr = gnss_shared_ptr<byte_x2_to_complex_byte>;
|
||||
|
||||
byte_x2_to_complex_byte_sptr make_byte_x2_to_complex_byte();
|
||||
|
||||
|
@ -21,12 +21,7 @@
|
||||
#ifndef GNSS_SDR_COMPLEX_BYTE_TO_FLOAT_X2_H
|
||||
#define GNSS_SDR_COMPLEX_BYTE_TO_FLOAT_X2_H
|
||||
|
||||
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
#include <memory>
|
||||
#else
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#endif
|
||||
#include "gnss_block_interface.h"
|
||||
#include <gnuradio/sync_block.h>
|
||||
#include <gnuradio/types.h> // for gr_vector_const_void_star
|
||||
|
||||
@ -38,11 +33,7 @@
|
||||
|
||||
class complex_byte_to_float_x2;
|
||||
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
using complex_byte_to_float_x2_sptr = std::shared_ptr<complex_byte_to_float_x2>;
|
||||
#else
|
||||
using complex_byte_to_float_x2_sptr = boost::shared_ptr<complex_byte_to_float_x2>;
|
||||
#endif
|
||||
using complex_byte_to_float_x2_sptr = gnss_shared_ptr<complex_byte_to_float_x2>;
|
||||
|
||||
complex_byte_to_float_x2_sptr make_complex_byte_to_float_x2();
|
||||
|
||||
|
@ -21,11 +21,7 @@
|
||||
#ifndef GNSS_SDR_COMPLEX_FLOAT_TO_COMPLEX_BYTE_H
|
||||
#define GNSS_SDR_COMPLEX_FLOAT_TO_COMPLEX_BYTE_H
|
||||
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
#include <memory>
|
||||
#else
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#endif
|
||||
#include "gnss_block_interface.h"
|
||||
#include <gnuradio/sync_block.h>
|
||||
#include <gnuradio/types.h> // for gr_vector_const_void_star
|
||||
|
||||
@ -37,11 +33,7 @@
|
||||
|
||||
class complex_float_to_complex_byte;
|
||||
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
using complex_float_to_complex_byte_sptr = std::shared_ptr<complex_float_to_complex_byte>;
|
||||
#else
|
||||
using complex_float_to_complex_byte_sptr = boost::shared_ptr<complex_float_to_complex_byte>;
|
||||
#endif
|
||||
using complex_float_to_complex_byte_sptr = gnss_shared_ptr<complex_float_to_complex_byte>;
|
||||
|
||||
complex_float_to_complex_byte_sptr make_complex_float_to_complex_byte();
|
||||
|
||||
|
@ -21,11 +21,7 @@
|
||||
#ifndef GNSS_SDR_CONJUGATE_CC_H
|
||||
#define GNSS_SDR_CONJUGATE_CC_H
|
||||
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
#include <memory>
|
||||
#else
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#endif
|
||||
#include "gnss_block_interface.h"
|
||||
#include <gnuradio/sync_block.h>
|
||||
#include <gnuradio/types.h> // for gr_vector_const_void_star
|
||||
|
||||
@ -37,11 +33,7 @@
|
||||
|
||||
class conjugate_cc;
|
||||
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
using conjugate_cc_sptr = std::shared_ptr<conjugate_cc>;
|
||||
#else
|
||||
using conjugate_cc_sptr = boost::shared_ptr<conjugate_cc>;
|
||||
#endif
|
||||
using conjugate_cc_sptr = gnss_shared_ptr<conjugate_cc>;
|
||||
|
||||
conjugate_cc_sptr make_conjugate_cc();
|
||||
|
||||
|
@ -21,13 +21,9 @@
|
||||
#ifndef GNSS_SDR_CONJUGATE_IC_H
|
||||
#define GNSS_SDR_CONJUGATE_IC_H
|
||||
|
||||
#include "gnss_block_interface.h"
|
||||
#include <gnuradio/sync_block.h>
|
||||
#include <gnuradio/types.h> // for gr_vector_const_void_star
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
#include <memory>
|
||||
#else
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#endif
|
||||
|
||||
/** \addtogroup Algorithms_Library
|
||||
* \{ */
|
||||
@ -37,11 +33,7 @@
|
||||
|
||||
class conjugate_ic;
|
||||
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
using conjugate_ic_sptr = std::shared_ptr<conjugate_ic>;
|
||||
#else
|
||||
using conjugate_ic_sptr = boost::shared_ptr<conjugate_ic>;
|
||||
#endif
|
||||
using conjugate_ic_sptr = gnss_shared_ptr<conjugate_ic>;
|
||||
|
||||
conjugate_ic_sptr make_conjugate_ic();
|
||||
|
||||
|
@ -21,11 +21,7 @@
|
||||
#ifndef GNSS_SDR_CONJUGATE_SC_H
|
||||
#define GNSS_SDR_CONJUGATE_SC_H
|
||||
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
#include <memory>
|
||||
#else
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#endif
|
||||
#include "gnss_block_interface.h"
|
||||
#include <gnuradio/sync_block.h>
|
||||
#include <gnuradio/types.h> // for gr_vector_const_void_star
|
||||
|
||||
@ -37,11 +33,7 @@
|
||||
|
||||
class conjugate_sc;
|
||||
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
using conjugate_sc_sptr = std::shared_ptr<conjugate_sc>;
|
||||
#else
|
||||
using conjugate_sc_sptr = boost::shared_ptr<conjugate_sc>;
|
||||
#endif
|
||||
using conjugate_sc_sptr = gnss_shared_ptr<conjugate_sc>;
|
||||
|
||||
conjugate_sc_sptr make_conjugate_sc();
|
||||
|
||||
|
@ -21,12 +21,7 @@
|
||||
#ifndef GNSS_SDR_CSHORT_TO_FLOAT_X2_H
|
||||
#define GNSS_SDR_CSHORT_TO_FLOAT_X2_H
|
||||
|
||||
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
#include <memory>
|
||||
#else
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#endif
|
||||
#include "gnss_block_interface.h"
|
||||
#include <gnuradio/sync_block.h>
|
||||
#include <gnuradio/types.h> // for gr_vector_const_void_star
|
||||
|
||||
@ -38,11 +33,7 @@
|
||||
|
||||
class cshort_to_float_x2;
|
||||
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
using cshort_to_float_x2_sptr = std::shared_ptr<cshort_to_float_x2>;
|
||||
#else
|
||||
using cshort_to_float_x2_sptr = boost::shared_ptr<cshort_to_float_x2>;
|
||||
#endif
|
||||
using cshort_to_float_x2_sptr = gnss_shared_ptr<cshort_to_float_x2>;
|
||||
|
||||
cshort_to_float_x2_sptr make_cshort_to_float_x2();
|
||||
|
||||
|
@ -21,11 +21,7 @@
|
||||
#define GNSS_SDR_SHORT_X2_TO_CSHORT_H
|
||||
|
||||
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
#include <memory>
|
||||
#else
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#endif
|
||||
#include "gnss_block_interface.h"
|
||||
#include <gnuradio/sync_block.h>
|
||||
#include <gnuradio/types.h> // for gr_vector_const_void_star
|
||||
|
||||
@ -37,11 +33,7 @@
|
||||
|
||||
class short_x2_to_cshort;
|
||||
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
using short_x2_to_cshort_sptr = std::shared_ptr<short_x2_to_cshort>;
|
||||
#else
|
||||
using short_x2_to_cshort_sptr = boost::shared_ptr<short_x2_to_cshort>;
|
||||
#endif
|
||||
using short_x2_to_cshort_sptr = gnss_shared_ptr<short_x2_to_cshort>;
|
||||
|
||||
short_x2_to_cshort_sptr make_short_x2_to_cshort();
|
||||
|
||||
|
@ -48,6 +48,11 @@ target_link_libraries(obs_gr_blocks
|
||||
Matio::matio
|
||||
)
|
||||
|
||||
target_include_directories(obs_gr_blocks
|
||||
PUBLIC
|
||||
${CMAKE_SOURCE_DIR}/src/core/interfaces
|
||||
)
|
||||
|
||||
if(GNURADIO_USES_STD_POINTERS)
|
||||
target_compile_definitions(obs_gr_blocks
|
||||
PUBLIC -DGNURADIO_USES_STD_POINTERS=1
|
||||
|
@ -23,6 +23,7 @@
|
||||
#ifndef GNSS_SDR_HYBRID_OBSERVABLES_GS_H
|
||||
#define GNSS_SDR_HYBRID_OBSERVABLES_GS_H
|
||||
|
||||
#include "gnss_block_interface.h"
|
||||
#include "obs_conf.h"
|
||||
#include <boost/circular_buffer.hpp> // for boost::circular_buffer
|
||||
#include <gnuradio/block.h> // for block
|
||||
@ -35,10 +36,6 @@
|
||||
#include <string> // for std::string
|
||||
#include <typeinfo> // for typeid
|
||||
#include <vector> // for std::vector
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
#else
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#endif
|
||||
|
||||
/** \addtogroup Observables
|
||||
* \{ */
|
||||
@ -46,17 +43,14 @@
|
||||
* GNU Radio blocks for the computation of GNSS observables
|
||||
* \{ */
|
||||
|
||||
|
||||
class Gnss_Synchro;
|
||||
class hybrid_observables_gs;
|
||||
|
||||
template <class T>
|
||||
class Gnss_circular_deque;
|
||||
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
using hybrid_observables_gs_sptr = std::shared_ptr<hybrid_observables_gs>;
|
||||
#else
|
||||
using hybrid_observables_gs_sptr = boost::shared_ptr<hybrid_observables_gs>;
|
||||
#endif
|
||||
using hybrid_observables_gs_sptr = gnss_shared_ptr<hybrid_observables_gs>;
|
||||
|
||||
hybrid_observables_gs_sptr hybrid_observables_gs_make(const Obs_Conf& conf_);
|
||||
|
||||
|
@ -53,6 +53,11 @@ if(GNURADIO_USES_STD_POINTERS)
|
||||
)
|
||||
endif()
|
||||
|
||||
target_include_directories(resampler_gr_blocks
|
||||
PUBLIC
|
||||
${CMAKE_SOURCE_DIR}/src/core/interfaces
|
||||
)
|
||||
|
||||
if(ENABLE_CLANG_TIDY)
|
||||
if(CLANG_TIDY_EXE)
|
||||
set_target_properties(resampler_gr_blocks
|
||||
|
@ -22,13 +22,9 @@
|
||||
#ifndef GNSS_SDR_DIRECT_RESAMPLER_CONDITIONER_CB_H
|
||||
#define GNSS_SDR_DIRECT_RESAMPLER_CONDITIONER_CB_H
|
||||
|
||||
#include "gnss_block_interface.h"
|
||||
#include <gnuradio/block.h>
|
||||
#include <cstdint>
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
#include <memory>
|
||||
#else
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#endif
|
||||
|
||||
/** \addtogroup Resampler
|
||||
* \{ */
|
||||
@ -39,11 +35,7 @@
|
||||
|
||||
class direct_resampler_conditioner_cb;
|
||||
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
using direct_resampler_conditioner_cb_sptr = std::shared_ptr<direct_resampler_conditioner_cb>;
|
||||
#else
|
||||
using direct_resampler_conditioner_cb_sptr = boost::shared_ptr<direct_resampler_conditioner_cb>;
|
||||
#endif
|
||||
using direct_resampler_conditioner_cb_sptr = gnss_shared_ptr<direct_resampler_conditioner_cb>;
|
||||
|
||||
direct_resampler_conditioner_cb_sptr direct_resampler_make_conditioner_cb(
|
||||
double sample_freq_in,
|
||||
|
@ -28,13 +28,9 @@
|
||||
#ifndef GNSS_SDR_DIRECT_RESAMPLER_CONDITIONER_CC_H
|
||||
#define GNSS_SDR_DIRECT_RESAMPLER_CONDITIONER_CC_H
|
||||
|
||||
#include "gnss_block_interface.h"
|
||||
#include <gnuradio/block.h>
|
||||
#include <cstdint>
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
#include <memory>
|
||||
#else
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#endif
|
||||
|
||||
/** \addtogroup Resampler
|
||||
* \{ */
|
||||
@ -44,11 +40,7 @@
|
||||
|
||||
class direct_resampler_conditioner_cc;
|
||||
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
using direct_resampler_conditioner_cc_sptr = std::shared_ptr<direct_resampler_conditioner_cc>;
|
||||
#else
|
||||
using direct_resampler_conditioner_cc_sptr = boost::shared_ptr<direct_resampler_conditioner_cc>;
|
||||
#endif
|
||||
using direct_resampler_conditioner_cc_sptr = gnss_shared_ptr<direct_resampler_conditioner_cc>;
|
||||
|
||||
direct_resampler_conditioner_cc_sptr direct_resampler_make_conditioner_cc(
|
||||
double sample_freq_in,
|
||||
|
@ -22,13 +22,9 @@
|
||||
#ifndef GNSS_SDR_DIRECT_RESAMPLER_CONDITIONER_CS_H
|
||||
#define GNSS_SDR_DIRECT_RESAMPLER_CONDITIONER_CS_H
|
||||
|
||||
#include "gnss_block_interface.h"
|
||||
#include <gnuradio/block.h>
|
||||
#include <cstdint>
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
#include <memory>
|
||||
#else
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#endif
|
||||
|
||||
/** \addtogroup Resampler
|
||||
* \{ */
|
||||
@ -37,11 +33,8 @@
|
||||
|
||||
|
||||
class direct_resampler_conditioner_cs;
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
using direct_resampler_conditioner_cs_sptr = std::shared_ptr<direct_resampler_conditioner_cs>;
|
||||
#else
|
||||
using direct_resampler_conditioner_cs_sptr = boost::shared_ptr<direct_resampler_conditioner_cs>;
|
||||
#endif
|
||||
|
||||
using direct_resampler_conditioner_cs_sptr = gnss_shared_ptr<direct_resampler_conditioner_cs>;
|
||||
|
||||
direct_resampler_conditioner_cs_sptr direct_resampler_make_conditioner_cs(
|
||||
double sample_freq_in,
|
||||
|
@ -72,11 +72,7 @@ public:
|
||||
gr::basic_block_sptr get_right_block() override;
|
||||
|
||||
private:
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
std::shared_ptr<gr::block> gen_source_;
|
||||
#else
|
||||
boost::shared_ptr<gr::block> gen_source_;
|
||||
#endif
|
||||
gnss_shared_ptr<gr::block> gen_source_;
|
||||
gr::blocks::vector_to_stream::sptr vector_to_stream_;
|
||||
gr::blocks::file_sink::sptr file_sink_;
|
||||
std::string role_;
|
||||
|
@ -38,6 +38,11 @@ if(GNURADIO_USES_STD_POINTERS)
|
||||
)
|
||||
endif()
|
||||
|
||||
target_include_directories(signal_generator_gr_blocks
|
||||
PUBLIC
|
||||
${CMAKE_SOURCE_DIR}/src/core/interfaces
|
||||
)
|
||||
|
||||
# Workaround for CentOS 7
|
||||
if((CMAKE_CXX_COMPILER_ID STREQUAL "GNU") AND
|
||||
(CMAKE_CXX_COMPILER_VERSION VERSION_LESS "5.0"))
|
||||
|
@ -20,34 +20,16 @@
|
||||
#ifndef GNSS_SDR_SIGNAL_GENERATOR_C_H
|
||||
#define GNSS_SDR_SIGNAL_GENERATOR_C_H
|
||||
|
||||
#include "gnss_block_interface.h"
|
||||
#include <gnuradio/block.h>
|
||||
#include <random>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
#include <memory>
|
||||
#else
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#endif
|
||||
|
||||
|
||||
class signal_generator_c;
|
||||
|
||||
/*
|
||||
* We use std::shared_ptr's instead of raw pointers for all access
|
||||
* to gr_blocks (and many other data structures). The shared_ptr gets
|
||||
* us transparent reference counting, which greatly simplifies storage
|
||||
* management issues.
|
||||
*
|
||||
* See https://www.boost.org/doc/libs/release/libs/smart_ptr/doc/html/smart_ptr.html
|
||||
*
|
||||
* As a convention, the _sptr suffix indicates a std::shared_ptr
|
||||
*/
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
using signal_generator_c_sptr = std::shared_ptr<signal_generator_c>;
|
||||
#else
|
||||
using signal_generator_c_sptr = boost::shared_ptr<signal_generator_c>;
|
||||
#endif
|
||||
using signal_generator_c_sptr = gnss_shared_ptr<signal_generator_c>;
|
||||
|
||||
/*!
|
||||
* \brief Return a shared_ptr to a new instance of gen_source.
|
||||
|
@ -27,14 +27,9 @@
|
||||
#include <gnuradio/blocks/file_sink.h>
|
||||
#include <gnuradio/blocks/null_sink.h>
|
||||
#include <pmt/pmt.h>
|
||||
#include <memory>
|
||||
#include <stdexcept>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
#else
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#endif
|
||||
|
||||
/** \addtogroup Signal_Source
|
||||
* \{ */
|
||||
@ -83,13 +78,8 @@ public:
|
||||
|
||||
private:
|
||||
Gr_Complex_Ip_Packet_Source::sptr udp_gnss_rx_source_;
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
std::vector<std::shared_ptr<gr::block>> null_sinks_;
|
||||
std::vector<std::shared_ptr<gr::block>> file_sink_;
|
||||
#else
|
||||
std::vector<boost::shared_ptr<gr::block>> null_sinks_;
|
||||
std::vector<boost::shared_ptr<gr::block>> file_sink_;
|
||||
#endif
|
||||
std::vector<gnss_shared_ptr<gr::block>> null_sinks_;
|
||||
std::vector<gnss_shared_ptr<gr::block>> file_sink_;
|
||||
|
||||
std::string role_;
|
||||
std::string item_type_;
|
||||
|
@ -32,12 +32,7 @@
|
||||
#include <gnuradio/hier_block2.h>
|
||||
#include <pmt/pmt.h>
|
||||
#include <cstdint>
|
||||
#include <memory>
|
||||
#include <string>
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
#else
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#endif
|
||||
|
||||
/** \addtogroup Signal_Source Signal Source
|
||||
* Classes for Signal Source management.
|
||||
@ -112,11 +107,7 @@ public:
|
||||
|
||||
private:
|
||||
gr::blocks::file_source::sptr file_source_;
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
std::shared_ptr<gr::block> valve_;
|
||||
#else
|
||||
boost::shared_ptr<gr::block> valve_;
|
||||
#endif
|
||||
gnss_shared_ptr<gr::block> valve_;
|
||||
gr::blocks::file_sink::sptr sink_;
|
||||
gr::blocks::throttle::sptr throttle_;
|
||||
|
||||
|
@ -33,12 +33,8 @@
|
||||
#include "concurrent_queue.h"
|
||||
#include <pmt/pmt.h>
|
||||
#include <cstdint>
|
||||
#include <memory>
|
||||
#include <string>
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
#else
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#endif
|
||||
|
||||
|
||||
/** \addtogroup Signal_Source
|
||||
* \{ */
|
||||
@ -82,12 +78,7 @@ public:
|
||||
|
||||
private:
|
||||
gr::iio::fmcomms2_source_f32c::sptr fmcomms2_source_f32c_;
|
||||
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
std::shared_ptr<gr::block> valve_;
|
||||
#else
|
||||
boost::shared_ptr<gr::block> valve_;
|
||||
#endif
|
||||
gnss_shared_ptr<gr::block> valve_;
|
||||
gr::blocks::file_sink::sptr file_sink_;
|
||||
|
||||
std::string role_;
|
||||
|
@ -32,13 +32,8 @@
|
||||
#include <gnuradio/hier_block2.h>
|
||||
#include <pmt/pmt.h>
|
||||
#include <cstdint>
|
||||
#include <memory>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
#else
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#endif
|
||||
|
||||
|
||||
/** \addtogroup Signal_Source
|
||||
@ -112,11 +107,7 @@ public:
|
||||
|
||||
private:
|
||||
std::vector<gr::blocks::file_source::sptr> file_source_vec_;
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
std::shared_ptr<gr::block> valve_;
|
||||
#else
|
||||
boost::shared_ptr<gr::block> valve_;
|
||||
#endif
|
||||
gnss_shared_ptr<gr::block> valve_;
|
||||
gr::blocks::file_sink::sptr sink_;
|
||||
std::vector<gr::blocks::throttle::sptr> throttle_vec_;
|
||||
std::vector<std::string> filename_vec_;
|
||||
|
@ -32,12 +32,7 @@
|
||||
#include <gnuradio/blocks/throttle.h>
|
||||
#include <gnuradio/hier_block2.h>
|
||||
#include <pmt/pmt.h>
|
||||
#include <memory>
|
||||
#include <string>
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
#else
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#endif
|
||||
|
||||
/** \addtogroup Signal_Source
|
||||
* \{ */
|
||||
@ -109,11 +104,7 @@ public:
|
||||
private:
|
||||
gr::blocks::file_source::sptr file_source_;
|
||||
unpack_byte_2bit_samples_sptr unpack_byte_;
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
std::shared_ptr<gr::block> valve_;
|
||||
#else
|
||||
boost::shared_ptr<gr::block> valve_;
|
||||
#endif
|
||||
gnss_shared_ptr<gr::block> valve_;
|
||||
gr::blocks::file_sink::sptr sink_;
|
||||
gr::blocks::throttle::sptr throttle_;
|
||||
uint64_t samples_;
|
||||
|
@ -31,16 +31,13 @@
|
||||
#include <osmosdr/source.h>
|
||||
#include <stdexcept>
|
||||
#include <string>
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
#else
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#endif
|
||||
|
||||
/** \addtogroup Signal_Source
|
||||
* \{ */
|
||||
/** \addtogroup Signal_Source_adapters
|
||||
* \{ */
|
||||
|
||||
|
||||
class ConfigurationInterface;
|
||||
|
||||
/*!
|
||||
@ -84,11 +81,7 @@ private:
|
||||
void driver_instance();
|
||||
|
||||
osmosdr::source::sptr osmosdr_source_;
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
std::shared_ptr<gr::block> valve_;
|
||||
#else
|
||||
boost::shared_ptr<gr::block> valve_;
|
||||
#endif
|
||||
gnss_shared_ptr<gr::block> valve_;
|
||||
gr::blocks::file_sink::sptr file_sink_;
|
||||
|
||||
std::string role_;
|
||||
|
@ -32,12 +32,8 @@
|
||||
#include "concurrent_queue.h"
|
||||
#include <pmt/pmt.h>
|
||||
#include <cstdint>
|
||||
#include <memory>
|
||||
#include <string>
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
#else
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#endif
|
||||
|
||||
|
||||
/** \addtogroup Signal_Source
|
||||
* \{ */
|
||||
@ -83,11 +79,7 @@ public:
|
||||
private:
|
||||
gr::iio::pluto_source::sptr plutosdr_source_;
|
||||
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
std::shared_ptr<gr::block> valve_;
|
||||
#else
|
||||
boost::shared_ptr<gr::block> valve_;
|
||||
#endif
|
||||
gnss_shared_ptr<gr::block> valve_;
|
||||
gr::blocks::file_sink::sptr file_sink_;
|
||||
|
||||
std::string role_;
|
||||
|
@ -28,13 +28,8 @@
|
||||
#include <gnuradio/blocks/file_sink.h>
|
||||
#include <gnuradio/blocks/float_to_complex.h>
|
||||
#include <pmt/pmt.h>
|
||||
#include <memory>
|
||||
#include <stdexcept>
|
||||
#include <string>
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
#else
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#endif
|
||||
|
||||
|
||||
/** \addtogroup Signal_Source
|
||||
@ -89,11 +84,7 @@ private:
|
||||
|
||||
rtl_tcp_signal_source_c_sptr signal_source_;
|
||||
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
std::shared_ptr<gr::block> valve_;
|
||||
#else
|
||||
boost::shared_ptr<gr::block> valve_;
|
||||
#endif
|
||||
gnss_shared_ptr<gr::block> valve_;
|
||||
gr::blocks::file_sink::sptr file_sink_;
|
||||
|
||||
std::string role_;
|
||||
|
@ -30,12 +30,7 @@
|
||||
#include <gnuradio/hier_block2.h>
|
||||
#include <pmt/pmt.h>
|
||||
#include <cstdint>
|
||||
#include <memory>
|
||||
#include <string>
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
#else
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#endif
|
||||
|
||||
|
||||
/** \addtogroup Signal_Source
|
||||
@ -110,11 +105,7 @@ public:
|
||||
private:
|
||||
gr::blocks::file_source::sptr file_source_;
|
||||
unpack_intspir_1bit_samples_sptr unpack_intspir_;
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
std::shared_ptr<gr::block> valve_;
|
||||
#else
|
||||
boost::shared_ptr<gr::block> valve_;
|
||||
#endif
|
||||
gnss_shared_ptr<gr::block> valve_;
|
||||
gr::blocks::file_sink::sptr sink_;
|
||||
gr::blocks::throttle::sptr throttle_;
|
||||
std::string filename_;
|
||||
|
@ -34,13 +34,8 @@
|
||||
#include <gnuradio/hier_block2.h>
|
||||
#include <pmt/pmt.h>
|
||||
#include <cstdint>
|
||||
#include <memory>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
#else
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#endif
|
||||
|
||||
|
||||
/** \addtogroup Signal_Source
|
||||
@ -111,11 +106,7 @@ public:
|
||||
private:
|
||||
gr::blocks::file_source::sptr file_source_;
|
||||
gr::blocks::deinterleave::sptr deint_;
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
std::vector<std::shared_ptr<gr::block>> valve_vec_;
|
||||
#else
|
||||
std::vector<boost::shared_ptr<gr::block>> valve_vec_;
|
||||
#endif
|
||||
std::vector<gnss_shared_ptr<gr::block>> valve_vec_;
|
||||
std::vector<gr::blocks::endian_swap::sptr> endian_vec_;
|
||||
std::vector<gr::blocks::null_sink::sptr> null_sinks_;
|
||||
std::vector<unpack_spir_gss6450_samples_sptr> unpack_spir_vec_;
|
||||
|
@ -33,12 +33,7 @@
|
||||
#include <gnuradio/hier_block2.h>
|
||||
#include <pmt/pmt.h>
|
||||
#include <cstdint>
|
||||
#include <memory>
|
||||
#include <string>
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
#else
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#endif
|
||||
|
||||
/** \addtogroup Signal_Source
|
||||
* \{ */
|
||||
@ -114,11 +109,7 @@ private:
|
||||
gr::blocks::file_source::sptr file_source_;
|
||||
gr::blocks::interleaved_short_to_complex::sptr inter_shorts_to_cpx_;
|
||||
unpack_byte_2bit_cpx_samples_sptr unpack_byte_;
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
std::shared_ptr<gr::block> valve_;
|
||||
#else
|
||||
boost::shared_ptr<gr::block> valve_;
|
||||
#endif
|
||||
gnss_shared_ptr<gr::block> valve_;
|
||||
gr::blocks::file_sink::sptr sink_;
|
||||
gr::blocks::throttle::sptr throttle_;
|
||||
std::string filename_;
|
||||
|
@ -34,12 +34,7 @@
|
||||
#include <gnuradio/hier_block2.h>
|
||||
#include <pmt/pmt.h>
|
||||
#include <cstdint>
|
||||
#include <memory>
|
||||
#include <string>
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
#else
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#endif
|
||||
|
||||
|
||||
/** \addtogroup Signal_Source
|
||||
@ -134,11 +129,7 @@ private:
|
||||
gr::blocks::file_source::sptr file_source_;
|
||||
unpack_2bit_samples_sptr unpack_samples_;
|
||||
gr::basic_block_sptr char_to_float_;
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
std::shared_ptr<gr::block> valve_;
|
||||
#else
|
||||
boost::shared_ptr<gr::block> valve_;
|
||||
#endif
|
||||
gnss_shared_ptr<gr::block> valve_;
|
||||
gr::blocks::file_sink::sptr sink_;
|
||||
gr::blocks::throttle::sptr throttle_;
|
||||
std::string filename_;
|
||||
|
@ -27,13 +27,8 @@
|
||||
#include <gnuradio/uhd/usrp_source.h>
|
||||
#include <pmt/pmt.h>
|
||||
#include <cstdint>
|
||||
#include <memory>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
#else
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#endif
|
||||
|
||||
|
||||
/** \addtogroup Signal_Source
|
||||
@ -81,11 +76,8 @@ public:
|
||||
|
||||
private:
|
||||
gr::uhd::usrp_source::sptr uhd_source_;
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
std::vector<std::shared_ptr<gr::block>> valve_;
|
||||
#else
|
||||
std::vector<boost::shared_ptr<gr::block>> valve_;
|
||||
#endif
|
||||
|
||||
std::vector<gnss_shared_ptr<gr::block>> valve_;
|
||||
std::vector<gr::blocks::file_sink::sptr> file_sink_;
|
||||
std::vector<double> freq_;
|
||||
std::vector<double> gain_;
|
||||
|
@ -22,6 +22,7 @@
|
||||
#ifndef GNSS_SDR_GR_COMPLEX_IP_PACKET_SOURCE_H
|
||||
#define GNSS_SDR_GR_COMPLEX_IP_PACKET_SOURCE_H
|
||||
|
||||
#include "gnss_block_interface.h"
|
||||
#include <boost/thread.hpp>
|
||||
#include <gnuradio/sync_block.h>
|
||||
#include <arpa/inet.h>
|
||||
@ -31,11 +32,6 @@
|
||||
#include <pcap.h>
|
||||
#include <string>
|
||||
#include <sys/ioctl.h>
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
#include <memory>
|
||||
#else
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#endif
|
||||
|
||||
/** \addtogroup Signal_Source
|
||||
* \{ */
|
||||
@ -47,11 +43,7 @@
|
||||
class Gr_Complex_Ip_Packet_Source : virtual public gr::sync_block
|
||||
{
|
||||
public:
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
typedef std::shared_ptr<Gr_Complex_Ip_Packet_Source> sptr;
|
||||
#else
|
||||
typedef boost::shared_ptr<Gr_Complex_Ip_Packet_Source> sptr;
|
||||
#endif
|
||||
using sptr = gnss_shared_ptr<Gr_Complex_Ip_Packet_Source>;
|
||||
static sptr make(std::string src_device,
|
||||
const std::string &origin_address,
|
||||
int udp_port,
|
||||
|
@ -21,16 +21,12 @@
|
||||
#define GNSS_SDR_LABSAT23_SOURCE_H
|
||||
|
||||
#include "concurrent_queue.h"
|
||||
#include "gnss_block_interface.h"
|
||||
#include <gnuradio/block.h>
|
||||
#include <pmt/pmt.h>
|
||||
#include <cstdint>
|
||||
#include <fstream>
|
||||
#include <string>
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
#include <memory>
|
||||
#else
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#endif
|
||||
|
||||
/** \addtogroup Signal_Source
|
||||
* \{ */
|
||||
@ -40,11 +36,7 @@
|
||||
|
||||
class labsat23_source;
|
||||
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
using labsat23_source_sptr = std::shared_ptr<labsat23_source>;
|
||||
#else
|
||||
using labsat23_source_sptr = boost::shared_ptr<labsat23_source>;
|
||||
#endif
|
||||
using labsat23_source_sptr = gnss_shared_ptr<labsat23_source>;
|
||||
|
||||
labsat23_source_sptr labsat23_make_source_sptr(
|
||||
const char *signal_file_basename,
|
||||
|
@ -27,6 +27,7 @@
|
||||
#ifndef GNSS_SDR_RTL_TCP_SIGNAL_SOURCE_C_H
|
||||
#define GNSS_SDR_RTL_TCP_SIGNAL_SOURCE_C_H
|
||||
|
||||
#include "gnss_block_interface.h"
|
||||
#include "rtl_tcp_dongle_info.h"
|
||||
#include <boost/array.hpp>
|
||||
#include <boost/asio.hpp>
|
||||
@ -37,11 +38,6 @@
|
||||
#include <cstdint>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
#include <memory>
|
||||
#else
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#endif
|
||||
|
||||
|
||||
/** \addtogroup Signal_Source
|
||||
@ -52,11 +48,7 @@
|
||||
|
||||
class rtl_tcp_signal_source_c;
|
||||
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
using rtl_tcp_signal_source_c_sptr = std::shared_ptr<rtl_tcp_signal_source_c>;
|
||||
#else
|
||||
using rtl_tcp_signal_source_c_sptr = boost::shared_ptr<rtl_tcp_signal_source_c>;
|
||||
#endif
|
||||
using rtl_tcp_signal_source_c_sptr = gnss_shared_ptr<rtl_tcp_signal_source_c>;
|
||||
|
||||
#if USE_BOOST_ASIO_IO_CONTEXT
|
||||
using b_io_context = boost::asio::io_context;
|
||||
|
@ -57,14 +57,10 @@
|
||||
#ifndef GNSS_SDR_UNPACK_2BIT_SAMPLES_H
|
||||
#define GNSS_SDR_UNPACK_2BIT_SAMPLES_H
|
||||
|
||||
#include "gnss_block_interface.h"
|
||||
#include <gnuradio/sync_interpolator.h>
|
||||
#include <cstdint>
|
||||
#include <vector>
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
#include <memory>
|
||||
#else
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#endif
|
||||
|
||||
/** \addtogroup Signal_Source
|
||||
* \{ */
|
||||
@ -74,11 +70,7 @@
|
||||
|
||||
class unpack_2bit_samples;
|
||||
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
using unpack_2bit_samples_sptr = std::shared_ptr<unpack_2bit_samples>;
|
||||
#else
|
||||
using unpack_2bit_samples_sptr = boost::shared_ptr<unpack_2bit_samples>;
|
||||
#endif
|
||||
using unpack_2bit_samples_sptr = gnss_shared_ptr<unpack_2bit_samples>;
|
||||
|
||||
unpack_2bit_samples_sptr make_unpack_2bit_samples(
|
||||
bool big_endian_bytes,
|
||||
|
@ -24,12 +24,8 @@
|
||||
#ifndef GNSS_SDR_UNPACK_BYTE_2BIT_CPX_SAMPLES_H
|
||||
#define GNSS_SDR_UNPACK_BYTE_2BIT_CPX_SAMPLES_H
|
||||
|
||||
#include "gnss_block_interface.h"
|
||||
#include <gnuradio/sync_interpolator.h>
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
#include <memory>
|
||||
#else
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#endif
|
||||
|
||||
/** \addtogroup Signal_Source
|
||||
* \{ */
|
||||
@ -39,11 +35,7 @@
|
||||
|
||||
class unpack_byte_2bit_cpx_samples;
|
||||
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
using unpack_byte_2bit_cpx_samples_sptr = std::shared_ptr<unpack_byte_2bit_cpx_samples>;
|
||||
#else
|
||||
using unpack_byte_2bit_cpx_samples_sptr = boost::shared_ptr<unpack_byte_2bit_cpx_samples>;
|
||||
#endif
|
||||
using unpack_byte_2bit_cpx_samples_sptr = gnss_shared_ptr<unpack_byte_2bit_cpx_samples>;
|
||||
|
||||
unpack_byte_2bit_cpx_samples_sptr make_unpack_byte_2bit_cpx_samples();
|
||||
|
||||
|
@ -20,12 +20,9 @@
|
||||
#ifndef GNSS_SDR_UNPACK_BYTE_2BIT_SAMPLES_H
|
||||
#define GNSS_SDR_UNPACK_BYTE_2BIT_SAMPLES_H
|
||||
|
||||
#include "gnss_block_interface.h"
|
||||
#include <gnuradio/sync_interpolator.h>
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
#include <memory>
|
||||
#else
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#endif
|
||||
|
||||
|
||||
/** \addtogroup Signal_Source
|
||||
* \{ */
|
||||
@ -34,11 +31,7 @@
|
||||
|
||||
class unpack_byte_2bit_samples;
|
||||
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
using unpack_byte_2bit_samples_sptr = std::shared_ptr<unpack_byte_2bit_samples>;
|
||||
#else
|
||||
using unpack_byte_2bit_samples_sptr = boost::shared_ptr<unpack_byte_2bit_samples>;
|
||||
#endif
|
||||
using unpack_byte_2bit_samples_sptr = gnss_shared_ptr<unpack_byte_2bit_samples>;
|
||||
|
||||
unpack_byte_2bit_samples_sptr make_unpack_byte_2bit_samples();
|
||||
|
||||
|
@ -20,12 +20,8 @@
|
||||
#ifndef GNSS_SDR_UNPACK_INTSPIR_1BIT_SAMPLES_H
|
||||
#define GNSS_SDR_UNPACK_INTSPIR_1BIT_SAMPLES_H
|
||||
|
||||
#include "gnss_block_interface.h"
|
||||
#include <gnuradio/sync_interpolator.h>
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
#include <memory>
|
||||
#else
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#endif
|
||||
|
||||
|
||||
/** \addtogroup Signal_Source
|
||||
@ -36,11 +32,7 @@
|
||||
|
||||
class unpack_intspir_1bit_samples;
|
||||
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
using unpack_intspir_1bit_samples_sptr = std::shared_ptr<unpack_intspir_1bit_samples>;
|
||||
#else
|
||||
using unpack_intspir_1bit_samples_sptr = boost::shared_ptr<unpack_intspir_1bit_samples>;
|
||||
#endif
|
||||
using unpack_intspir_1bit_samples_sptr = gnss_shared_ptr<unpack_intspir_1bit_samples>;
|
||||
|
||||
unpack_intspir_1bit_samples_sptr make_unpack_intspir_1bit_samples();
|
||||
|
||||
|
@ -21,12 +21,8 @@
|
||||
#ifndef GNSS_SDR_UNPACK_SPIR_GSS6450_SAMPLES_H
|
||||
#define GNSS_SDR_UNPACK_SPIR_GSS6450_SAMPLES_H
|
||||
|
||||
#include "gnss_block_interface.h"
|
||||
#include <gnuradio/sync_interpolator.h>
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
#include <memory>
|
||||
#else
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#endif
|
||||
|
||||
/** \addtogroup Signal_Source
|
||||
* \{ */
|
||||
@ -36,11 +32,7 @@
|
||||
|
||||
class unpack_spir_gss6450_samples;
|
||||
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
using unpack_spir_gss6450_samples_sptr = std::shared_ptr<unpack_spir_gss6450_samples>;
|
||||
#else
|
||||
using unpack_spir_gss6450_samples_sptr = boost::shared_ptr<unpack_spir_gss6450_samples>;
|
||||
#endif
|
||||
using unpack_spir_gss6450_samples_sptr = gnss_shared_ptr<unpack_spir_gss6450_samples>;
|
||||
|
||||
unpack_spir_gss6450_samples_sptr make_unpack_spir_gss6450_samples(int adc_nbit_);
|
||||
|
||||
|
@ -67,6 +67,7 @@ target_link_libraries(signal_source_libs
|
||||
target_include_directories(signal_source_libs
|
||||
PUBLIC
|
||||
${CMAKE_SOURCE_DIR}/src/core/receiver
|
||||
${CMAKE_SOURCE_DIR}/src/core/interfaces
|
||||
)
|
||||
|
||||
if(GNURADIO_USES_STD_POINTERS)
|
||||
|
@ -42,33 +42,18 @@ Gnss_Sdr_Valve::Gnss_Sdr_Valve(size_t sizeof_stream_item,
|
||||
}
|
||||
|
||||
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
std::shared_ptr<Gnss_Sdr_Valve> gnss_sdr_make_valve(size_t sizeof_stream_item, uint64_t nitems, Concurrent_Queue<pmt::pmt_t>* queue, bool stop_flowgraph)
|
||||
gnss_shared_ptr<Gnss_Sdr_Valve> gnss_sdr_make_valve(size_t sizeof_stream_item, uint64_t nitems, Concurrent_Queue<pmt::pmt_t>* queue, bool stop_flowgraph)
|
||||
{
|
||||
std::shared_ptr<Gnss_Sdr_Valve> valve_(new Gnss_Sdr_Valve(sizeof_stream_item, nitems, queue, stop_flowgraph));
|
||||
gnss_shared_ptr<Gnss_Sdr_Valve> valve_(new Gnss_Sdr_Valve(sizeof_stream_item, nitems, queue, stop_flowgraph));
|
||||
return valve_;
|
||||
}
|
||||
|
||||
|
||||
std::shared_ptr<Gnss_Sdr_Valve> gnss_sdr_make_valve(size_t sizeof_stream_item, uint64_t nitems, Concurrent_Queue<pmt::pmt_t>* queue)
|
||||
gnss_shared_ptr<Gnss_Sdr_Valve> gnss_sdr_make_valve(size_t sizeof_stream_item, uint64_t nitems, Concurrent_Queue<pmt::pmt_t>* queue)
|
||||
{
|
||||
std::shared_ptr<Gnss_Sdr_Valve> valve_(new Gnss_Sdr_Valve(sizeof_stream_item, nitems, queue, true));
|
||||
gnss_shared_ptr<Gnss_Sdr_Valve> valve_(new Gnss_Sdr_Valve(sizeof_stream_item, nitems, queue, true));
|
||||
return valve_;
|
||||
}
|
||||
#else
|
||||
boost::shared_ptr<Gnss_Sdr_Valve> gnss_sdr_make_valve(size_t sizeof_stream_item, uint64_t nitems, Concurrent_Queue<pmt::pmt_t>* queue, bool stop_flowgraph)
|
||||
{
|
||||
boost::shared_ptr<Gnss_Sdr_Valve> valve_(new Gnss_Sdr_Valve(sizeof_stream_item, nitems, queue, stop_flowgraph));
|
||||
return valve_;
|
||||
}
|
||||
|
||||
|
||||
boost::shared_ptr<Gnss_Sdr_Valve> gnss_sdr_make_valve(size_t sizeof_stream_item, uint64_t nitems, Concurrent_Queue<pmt::pmt_t>* queue)
|
||||
{
|
||||
boost::shared_ptr<Gnss_Sdr_Valve> valve_(new Gnss_Sdr_Valve(sizeof_stream_item, nitems, queue, true));
|
||||
return valve_;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
void Gnss_Sdr_Valve::open_valve()
|
||||
|
@ -24,16 +24,12 @@
|
||||
#define GNSS_SDR_GNSS_SDR_VALVE_H
|
||||
|
||||
#include "concurrent_queue.h"
|
||||
#include "gnss_block_interface.h"
|
||||
#include <gnuradio/sync_block.h> // for sync_block
|
||||
#include <gnuradio/types.h> // for gr_vector_const_void_star
|
||||
#include <pmt/pmt.h>
|
||||
#include <cstddef> // for size_t
|
||||
#include <cstdint>
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
#include <memory>
|
||||
#else
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#endif
|
||||
|
||||
/** \addtogroup Signal_Source
|
||||
* \{ */
|
||||
@ -43,29 +39,16 @@
|
||||
|
||||
class Gnss_Sdr_Valve;
|
||||
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
std::shared_ptr<Gnss_Sdr_Valve> gnss_sdr_make_valve(
|
||||
gnss_shared_ptr<Gnss_Sdr_Valve> gnss_sdr_make_valve(
|
||||
size_t sizeof_stream_item,
|
||||
uint64_t nitems,
|
||||
Concurrent_Queue<pmt::pmt_t>* queue);
|
||||
|
||||
std::shared_ptr<Gnss_Sdr_Valve> gnss_sdr_make_valve(
|
||||
gnss_shared_ptr<Gnss_Sdr_Valve> gnss_sdr_make_valve(
|
||||
size_t sizeof_stream_item,
|
||||
uint64_t nitems,
|
||||
Concurrent_Queue<pmt::pmt_t>* queue,
|
||||
bool stop_flowgraph);
|
||||
#else
|
||||
boost::shared_ptr<Gnss_Sdr_Valve> gnss_sdr_make_valve(
|
||||
size_t sizeof_stream_item,
|
||||
uint64_t nitems,
|
||||
Concurrent_Queue<pmt::pmt_t>* queue);
|
||||
|
||||
boost::shared_ptr<Gnss_Sdr_Valve> gnss_sdr_make_valve(
|
||||
size_t sizeof_stream_item,
|
||||
uint64_t nitems,
|
||||
Concurrent_Queue<pmt::pmt_t>* queue,
|
||||
bool stop_flowgraph);
|
||||
#endif
|
||||
|
||||
/*!
|
||||
* \brief Implementation of a GNU Radio block that sends a STOP message to the
|
||||
@ -81,29 +64,17 @@ public:
|
||||
gr_vector_void_star& output_items);
|
||||
|
||||
private:
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
friend std::shared_ptr<Gnss_Sdr_Valve> gnss_sdr_make_valve(
|
||||
friend gnss_shared_ptr<Gnss_Sdr_Valve> gnss_sdr_make_valve(
|
||||
size_t sizeof_stream_item,
|
||||
uint64_t nitems,
|
||||
Concurrent_Queue<pmt::pmt_t>* queue);
|
||||
|
||||
friend std::shared_ptr<Gnss_Sdr_Valve> gnss_sdr_make_valve(
|
||||
friend gnss_shared_ptr<Gnss_Sdr_Valve> gnss_sdr_make_valve(
|
||||
size_t sizeof_stream_item,
|
||||
uint64_t nitems,
|
||||
Concurrent_Queue<pmt::pmt_t>* queue,
|
||||
bool stop_flowgraph);
|
||||
#else
|
||||
friend boost::shared_ptr<Gnss_Sdr_Valve> gnss_sdr_make_valve(
|
||||
size_t sizeof_stream_item,
|
||||
uint64_t nitems,
|
||||
Concurrent_Queue<pmt::pmt_t>* queue);
|
||||
|
||||
friend boost::shared_ptr<Gnss_Sdr_Valve> gnss_sdr_make_valve(
|
||||
size_t sizeof_stream_item,
|
||||
uint64_t nitems,
|
||||
Concurrent_Queue<pmt::pmt_t>* queue,
|
||||
bool stop_flowgraph);
|
||||
#endif
|
||||
Gnss_Sdr_Valve(size_t sizeof_stream_item,
|
||||
uint64_t nitems,
|
||||
Concurrent_Queue<pmt::pmt_t>* queue, bool stop_flowgraph);
|
||||
|
@ -68,6 +68,11 @@ if(GNURADIO_USES_STD_POINTERS)
|
||||
)
|
||||
endif()
|
||||
|
||||
target_include_directories(telemetry_decoder_gr_blocks
|
||||
PUBLIC
|
||||
${CMAKE_SOURCE_DIR}/src/core/interfaces
|
||||
)
|
||||
|
||||
if(has_rotl)
|
||||
target_compile_definitions(telemetry_decoder_gr_blocks
|
||||
PRIVATE -DCOMPILER_HAS_ROTL=1
|
||||
|
@ -24,6 +24,7 @@
|
||||
|
||||
|
||||
#include "beidou_dnav_navigation_message.h"
|
||||
#include "gnss_block_interface.h"
|
||||
#include "gnss_satellite.h"
|
||||
#include <boost/circular_buffer.hpp>
|
||||
#include <gnuradio/block.h> // for block
|
||||
@ -32,12 +33,6 @@
|
||||
#include <cstdint>
|
||||
#include <fstream>
|
||||
#include <string>
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
#include <memory>
|
||||
#else
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#endif
|
||||
|
||||
|
||||
/** \addtogroup Telemetry_Decoder
|
||||
* \{ */
|
||||
@ -47,11 +42,7 @@
|
||||
|
||||
class beidou_b1i_telemetry_decoder_gs;
|
||||
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
using beidou_b1i_telemetry_decoder_gs_sptr = std::shared_ptr<beidou_b1i_telemetry_decoder_gs>;
|
||||
#else
|
||||
using beidou_b1i_telemetry_decoder_gs_sptr = boost::shared_ptr<beidou_b1i_telemetry_decoder_gs>;
|
||||
#endif
|
||||
using beidou_b1i_telemetry_decoder_gs_sptr = gnss_shared_ptr<beidou_b1i_telemetry_decoder_gs>;
|
||||
|
||||
beidou_b1i_telemetry_decoder_gs_sptr beidou_b1i_make_telemetry_decoder_gs(
|
||||
const Gnss_Satellite &satellite,
|
||||
|
@ -21,6 +21,7 @@
|
||||
#define GNSS_SDR_BEIDOU_B3I_TELEMETRY_DECODER_GS_H
|
||||
|
||||
#include "beidou_dnav_navigation_message.h"
|
||||
#include "gnss_block_interface.h"
|
||||
#include "gnss_satellite.h"
|
||||
#include <boost/circular_buffer.hpp>
|
||||
#include <gnuradio/block.h> // for block
|
||||
@ -29,11 +30,6 @@
|
||||
#include <cstdint>
|
||||
#include <fstream>
|
||||
#include <string>
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
#include <memory>
|
||||
#else
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#endif
|
||||
|
||||
|
||||
/** \addtogroup Telemetry_Decoder
|
||||
@ -44,13 +40,8 @@
|
||||
|
||||
class beidou_b3i_telemetry_decoder_gs;
|
||||
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
using beidou_b3i_telemetry_decoder_gs_sptr =
|
||||
std::shared_ptr<beidou_b3i_telemetry_decoder_gs>;
|
||||
#else
|
||||
using beidou_b3i_telemetry_decoder_gs_sptr =
|
||||
boost::shared_ptr<beidou_b3i_telemetry_decoder_gs>;
|
||||
#endif
|
||||
gnss_shared_ptr<beidou_b3i_telemetry_decoder_gs>;
|
||||
|
||||
beidou_b3i_telemetry_decoder_gs_sptr beidou_b3i_make_telemetry_decoder_gs(
|
||||
const Gnss_Satellite &satellite,
|
||||
|
@ -26,6 +26,7 @@
|
||||
|
||||
#include "galileo_fnav_message.h"
|
||||
#include "galileo_inav_message.h"
|
||||
#include "gnss_block_interface.h"
|
||||
#include "gnss_satellite.h"
|
||||
#include <boost/circular_buffer.hpp>
|
||||
#include <gnuradio/block.h> // for block
|
||||
@ -35,11 +36,6 @@
|
||||
#include <fstream>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
#include <memory> // for std::shared_ptr
|
||||
#else
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#endif
|
||||
|
||||
/** \addtogroup Telemetry_Decoder
|
||||
* \{ */
|
||||
@ -49,11 +45,7 @@
|
||||
|
||||
class galileo_telemetry_decoder_gs;
|
||||
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
using galileo_telemetry_decoder_gs_sptr = std::shared_ptr<galileo_telemetry_decoder_gs>;
|
||||
#else
|
||||
using galileo_telemetry_decoder_gs_sptr = boost::shared_ptr<galileo_telemetry_decoder_gs>;
|
||||
#endif
|
||||
using galileo_telemetry_decoder_gs_sptr = gnss_shared_ptr<galileo_telemetry_decoder_gs>;
|
||||
|
||||
galileo_telemetry_decoder_gs_sptr galileo_make_telemetry_decoder_gs(
|
||||
const Gnss_Satellite &satellite,
|
||||
|
@ -24,6 +24,7 @@
|
||||
|
||||
#include "GLONASS_L1_L2_CA.h"
|
||||
#include "glonass_gnav_navigation_message.h"
|
||||
#include "gnss_block_interface.h"
|
||||
#include "gnss_satellite.h"
|
||||
#include "gnss_synchro.h"
|
||||
#include <boost/circular_buffer.hpp>
|
||||
@ -33,11 +34,6 @@
|
||||
#include <cstdint>
|
||||
#include <fstream> // for ofstream
|
||||
#include <string>
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
#include <memory> // for std::shared_ptr
|
||||
#else
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#endif
|
||||
|
||||
/** \addtogroup Telemetry_Decoder
|
||||
* \{ */
|
||||
@ -47,11 +43,7 @@
|
||||
|
||||
class glonass_l1_ca_telemetry_decoder_gs;
|
||||
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
using glonass_l1_ca_telemetry_decoder_gs_sptr = std::shared_ptr<glonass_l1_ca_telemetry_decoder_gs>;
|
||||
#else
|
||||
using glonass_l1_ca_telemetry_decoder_gs_sptr = boost::shared_ptr<glonass_l1_ca_telemetry_decoder_gs>;
|
||||
#endif
|
||||
using glonass_l1_ca_telemetry_decoder_gs_sptr = gnss_shared_ptr<glonass_l1_ca_telemetry_decoder_gs>;
|
||||
|
||||
glonass_l1_ca_telemetry_decoder_gs_sptr glonass_l1_ca_make_telemetry_decoder_gs(
|
||||
const Gnss_Satellite &satellite,
|
||||
|
@ -23,6 +23,7 @@
|
||||
|
||||
#include "GLONASS_L1_L2_CA.h"
|
||||
#include "glonass_gnav_navigation_message.h"
|
||||
#include "gnss_block_interface.h"
|
||||
#include "gnss_satellite.h"
|
||||
#include "gnss_synchro.h"
|
||||
#include <boost/circular_buffer.hpp>
|
||||
@ -32,11 +33,6 @@
|
||||
#include <cstdint>
|
||||
#include <fstream>
|
||||
#include <string>
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
#include <memory> // for std::shared_ptr
|
||||
#else
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#endif
|
||||
|
||||
/** \addtogroup Telemetry_Decoder
|
||||
* \{ */
|
||||
@ -46,11 +42,7 @@
|
||||
|
||||
class glonass_l2_ca_telemetry_decoder_gs;
|
||||
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
using glonass_l2_ca_telemetry_decoder_gs_sptr = std::shared_ptr<glonass_l2_ca_telemetry_decoder_gs>;
|
||||
#else
|
||||
using glonass_l2_ca_telemetry_decoder_gs_sptr = boost::shared_ptr<glonass_l2_ca_telemetry_decoder_gs>;
|
||||
#endif
|
||||
using glonass_l2_ca_telemetry_decoder_gs_sptr = gnss_shared_ptr<glonass_l2_ca_telemetry_decoder_gs>;
|
||||
|
||||
glonass_l2_ca_telemetry_decoder_gs_sptr glonass_l2_ca_make_telemetry_decoder_gs(
|
||||
const Gnss_Satellite &satellite,
|
||||
|
@ -21,6 +21,7 @@
|
||||
#define GNSS_SDR_GPS_L1_CA_TELEMETRY_DECODER_GS_H
|
||||
|
||||
#include "GPS_L1_CA.h"
|
||||
#include "gnss_block_interface.h"
|
||||
#include "gnss_satellite.h"
|
||||
#include "gnss_synchro.h"
|
||||
#include "gps_navigation_message.h"
|
||||
@ -31,11 +32,6 @@
|
||||
#include <cstdint> // for int32_t
|
||||
#include <fstream> // for ofstream
|
||||
#include <string> // for string
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
#include <memory> // for std::shared_ptr
|
||||
#else
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#endif
|
||||
|
||||
/** \addtogroup Telemetry_Decoder
|
||||
* \{ */
|
||||
@ -46,11 +42,7 @@
|
||||
|
||||
class gps_l1_ca_telemetry_decoder_gs;
|
||||
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
using gps_l1_ca_telemetry_decoder_gs_sptr = std::shared_ptr<gps_l1_ca_telemetry_decoder_gs>;
|
||||
#else
|
||||
using gps_l1_ca_telemetry_decoder_gs_sptr = boost::shared_ptr<gps_l1_ca_telemetry_decoder_gs>;
|
||||
#endif
|
||||
using gps_l1_ca_telemetry_decoder_gs_sptr = gnss_shared_ptr<gps_l1_ca_telemetry_decoder_gs>;
|
||||
|
||||
gps_l1_ca_telemetry_decoder_gs_sptr gps_l1_ca_make_telemetry_decoder_gs(
|
||||
const Gnss_Satellite &satellite,
|
||||
|
@ -20,6 +20,7 @@
|
||||
#define GNSS_SDR_GPS_L2C_TELEMETRY_DECODER_GS_H
|
||||
|
||||
|
||||
#include "gnss_block_interface.h"
|
||||
#include "gnss_satellite.h"
|
||||
#include "gps_cnav_navigation_message.h"
|
||||
#include <gnuradio/block.h>
|
||||
@ -27,11 +28,6 @@
|
||||
#include <cstdint>
|
||||
#include <fstream>
|
||||
#include <string>
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
#include <memory> // for std::shared_ptr
|
||||
#else
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#endif
|
||||
|
||||
extern "C"
|
||||
{
|
||||
@ -43,13 +39,10 @@ extern "C"
|
||||
/** \addtogroup Telemetry_Decoder_gnuradio_blocks
|
||||
* \{ */
|
||||
|
||||
|
||||
class gps_l2c_telemetry_decoder_gs;
|
||||
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
using gps_l2c_telemetry_decoder_gs_sptr = std::shared_ptr<gps_l2c_telemetry_decoder_gs>;
|
||||
#else
|
||||
using gps_l2c_telemetry_decoder_gs_sptr = boost::shared_ptr<gps_l2c_telemetry_decoder_gs>;
|
||||
#endif
|
||||
using gps_l2c_telemetry_decoder_gs_sptr = gnss_shared_ptr<gps_l2c_telemetry_decoder_gs>;
|
||||
|
||||
gps_l2c_telemetry_decoder_gs_sptr gps_l2c_make_telemetry_decoder_gs(
|
||||
const Gnss_Satellite &satellite,
|
||||
|
@ -20,7 +20,8 @@
|
||||
#define GNSS_SDR_GPS_L5_TELEMETRY_DECODER_GS_H
|
||||
|
||||
|
||||
#include "GPS_L5.h" // for GPS_L5I_NH_CODE_LENGTH
|
||||
#include "GPS_L5.h" // for GPS_L5I_NH_CODE_LENGTH
|
||||
#include "gnss_block_interface.h"
|
||||
#include "gnss_satellite.h" // for Gnss_Satellite
|
||||
#include "gps_cnav_navigation_message.h" // for Gps_CNAV_Navigation_Message
|
||||
#include <boost/circular_buffer.hpp>
|
||||
@ -29,30 +30,21 @@
|
||||
#include <cstdint>
|
||||
#include <fstream>
|
||||
#include <string>
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
#include <memory> // for std::shared_ptr
|
||||
#else
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#endif
|
||||
|
||||
extern "C"
|
||||
{
|
||||
#include "cnav_msg.h"
|
||||
}
|
||||
|
||||
|
||||
/** \addtogroup Telemetry_Decoder
|
||||
* \{ */
|
||||
/** \addtogroup Telemetry_Decoder_gnuradio_blocks
|
||||
* \{ */
|
||||
|
||||
|
||||
class gps_l5_telemetry_decoder_gs;
|
||||
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
using gps_l5_telemetry_decoder_gs_sptr = std::shared_ptr<gps_l5_telemetry_decoder_gs>;
|
||||
#else
|
||||
using gps_l5_telemetry_decoder_gs_sptr = boost::shared_ptr<gps_l5_telemetry_decoder_gs>;
|
||||
#endif
|
||||
using gps_l5_telemetry_decoder_gs_sptr = gnss_shared_ptr<gps_l5_telemetry_decoder_gs>;
|
||||
|
||||
gps_l5_telemetry_decoder_gs_sptr gps_l5_make_telemetry_decoder_gs(
|
||||
const Gnss_Satellite &satellite,
|
||||
|
@ -20,6 +20,7 @@
|
||||
#ifndef GNSS_SDR_SBAS_L1_TELEMETRY_DECODER_GS_H
|
||||
#define GNSS_SDR_SBAS_L1_TELEMETRY_DECODER_GS_H
|
||||
|
||||
#include "gnss_block_interface.h"
|
||||
#include "gnss_satellite.h"
|
||||
#include <boost/crc.hpp> // for crc_optimal
|
||||
#include <gnuradio/block.h>
|
||||
@ -32,11 +33,6 @@
|
||||
#include <string>
|
||||
#include <utility> // for pair
|
||||
#include <vector>
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
#include <memory> // for std::shared_ptr
|
||||
#else
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#endif
|
||||
|
||||
/** \addtogroup Telemetry_Decoder
|
||||
* \{ */
|
||||
@ -48,11 +44,7 @@ class Viterbi_Decoder;
|
||||
|
||||
class sbas_l1_telemetry_decoder_gs;
|
||||
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
using sbas_l1_telemetry_decoder_gs_sptr = std::shared_ptr<sbas_l1_telemetry_decoder_gs>;
|
||||
#else
|
||||
using sbas_l1_telemetry_decoder_gs_sptr = boost::shared_ptr<sbas_l1_telemetry_decoder_gs>;
|
||||
#endif
|
||||
using sbas_l1_telemetry_decoder_gs_sptr = gnss_shared_ptr<sbas_l1_telemetry_decoder_gs>;
|
||||
|
||||
sbas_l1_telemetry_decoder_gs_sptr sbas_l1_make_telemetry_decoder_gs(
|
||||
const Gnss_Satellite &satellite,
|
||||
|
@ -103,6 +103,11 @@ if(GNURADIO_USES_STD_POINTERS)
|
||||
)
|
||||
endif()
|
||||
|
||||
target_include_directories(tracking_gr_blocks
|
||||
PUBLIC
|
||||
${CMAKE_SOURCE_DIR}/src/core/interfaces
|
||||
)
|
||||
|
||||
if(ENABLE_CUDA)
|
||||
if(CMAKE_VERSION VERSION_GREATER 3.11)
|
||||
target_include_directories(tracking_gr_blocks
|
||||
|
@ -24,6 +24,7 @@
|
||||
#include "cpu_multicorrelator_real_codes.h"
|
||||
#include "dll_pll_conf.h"
|
||||
#include "exponential_smoother.h"
|
||||
#include "gnss_block_interface.h"
|
||||
#include "tracking_FLL_PLL_filter.h" // for PLL/FLL filter
|
||||
#include "tracking_loop_filter.h" // for DLL filter
|
||||
#include <boost/circular_buffer.hpp>
|
||||
@ -38,11 +39,6 @@
|
||||
#include <string> // for string
|
||||
#include <typeinfo> // for typeid
|
||||
#include <utility> // for pair
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
#include <memory>
|
||||
#else
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#endif
|
||||
|
||||
/** \addtogroup Tracking
|
||||
* \{ */
|
||||
@ -54,12 +50,7 @@
|
||||
class Gnss_Synchro;
|
||||
class dll_pll_veml_tracking;
|
||||
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
using dll_pll_veml_tracking_sptr = std::shared_ptr<dll_pll_veml_tracking>;
|
||||
#else
|
||||
using dll_pll_veml_tracking_sptr = boost::shared_ptr<dll_pll_veml_tracking>;
|
||||
#endif
|
||||
|
||||
using dll_pll_veml_tracking_sptr = gnss_shared_ptr<dll_pll_veml_tracking>;
|
||||
|
||||
dll_pll_veml_tracking_sptr dll_pll_veml_make_tracking(const Dll_Pll_Conf &conf_);
|
||||
|
||||
|
@ -23,6 +23,7 @@
|
||||
|
||||
#include "dll_pll_conf_fpga.h"
|
||||
#include "exponential_smoother.h"
|
||||
#include "gnss_block_interface.h"
|
||||
#include "tracking_FLL_PLL_filter.h" // for PLL/FLL filter
|
||||
#include "tracking_loop_filter.h" // for DLL filter
|
||||
#include <boost/circular_buffer.hpp>
|
||||
@ -38,10 +39,6 @@
|
||||
#include <string> // for string
|
||||
#include <typeinfo> // for typeid
|
||||
#include <utility> // for pair
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
#else
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#endif
|
||||
|
||||
/** \addtogroup Tracking
|
||||
* \{ */
|
||||
@ -53,11 +50,7 @@ class Fpga_Multicorrelator_8sc;
|
||||
class Gnss_Synchro;
|
||||
class dll_pll_veml_tracking_fpga;
|
||||
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
using dll_pll_veml_tracking_fpga_sptr = std::shared_ptr<dll_pll_veml_tracking_fpga>;
|
||||
#else
|
||||
using dll_pll_veml_tracking_fpga_sptr = boost::shared_ptr<dll_pll_veml_tracking_fpga>;
|
||||
#endif
|
||||
using dll_pll_veml_tracking_fpga_sptr = gnss_shared_ptr<dll_pll_veml_tracking_fpga>;
|
||||
|
||||
dll_pll_veml_tracking_fpga_sptr dll_pll_veml_make_tracking_fpga(const Dll_Pll_Conf_Fpga &conf_);
|
||||
|
||||
|
@ -29,6 +29,7 @@
|
||||
#define GNSS_SDR_GALILEO_E1_TCP_CONNECTOR_TRACKING_CC_H
|
||||
|
||||
#include "cpu_multicorrelator.h"
|
||||
#include "gnss_block_interface.h"
|
||||
#include "gnss_synchro.h"
|
||||
#include "tcp_communication.h"
|
||||
#include <gnuradio/block.h>
|
||||
@ -36,11 +37,6 @@
|
||||
#include <fstream>
|
||||
#include <map>
|
||||
#include <string>
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
#include <memory>
|
||||
#else
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#endif
|
||||
|
||||
/** \addtogroup Tracking
|
||||
* \{ */
|
||||
@ -50,11 +46,7 @@
|
||||
|
||||
class Galileo_E1_Tcp_Connector_Tracking_cc;
|
||||
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
using galileo_e1_tcp_connector_tracking_cc_sptr = std::shared_ptr<Galileo_E1_Tcp_Connector_Tracking_cc>;
|
||||
#else
|
||||
using galileo_e1_tcp_connector_tracking_cc_sptr = boost::shared_ptr<Galileo_E1_Tcp_Connector_Tracking_cc>;
|
||||
#endif
|
||||
using galileo_e1_tcp_connector_tracking_cc_sptr = gnss_shared_ptr<Galileo_E1_Tcp_Connector_Tracking_cc>;
|
||||
|
||||
galileo_e1_tcp_connector_tracking_cc_sptr
|
||||
galileo_e1_tcp_connector_make_tracking_cc(
|
||||
|
@ -33,6 +33,7 @@
|
||||
#include "tracking_FLL_PLL_filter.h"
|
||||
// #include "tracking_loop_filter.h"
|
||||
#include "cpu_multicorrelator.h"
|
||||
#include "gnss_block_interface.h"
|
||||
#include <gnuradio/block.h>
|
||||
#include <pmt/pmt.h>
|
||||
#include <volk_gnsssdr/volk_gnsssdr_alloc.h> // for volk_gnsssdr::vector
|
||||
@ -40,11 +41,6 @@
|
||||
#include <fstream>
|
||||
#include <map>
|
||||
#include <string>
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
#include <memory>
|
||||
#else
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#endif
|
||||
|
||||
/** \addtogroup Tracking
|
||||
* \{ */
|
||||
@ -54,11 +50,7 @@
|
||||
|
||||
class glonass_l1_ca_dll_pll_c_aid_tracking_cc;
|
||||
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
using glonass_l1_ca_dll_pll_c_aid_tracking_cc_sptr = std::shared_ptr<glonass_l1_ca_dll_pll_c_aid_tracking_cc>;
|
||||
#else
|
||||
using glonass_l1_ca_dll_pll_c_aid_tracking_cc_sptr = boost::shared_ptr<glonass_l1_ca_dll_pll_c_aid_tracking_cc>;
|
||||
#endif
|
||||
using glonass_l1_ca_dll_pll_c_aid_tracking_cc_sptr = gnss_shared_ptr<glonass_l1_ca_dll_pll_c_aid_tracking_cc>;
|
||||
|
||||
glonass_l1_ca_dll_pll_c_aid_tracking_cc_sptr
|
||||
glonass_l1_ca_dll_pll_c_aid_make_tracking_cc(
|
||||
|
@ -30,6 +30,7 @@
|
||||
|
||||
#include "cpu_multicorrelator_16sc.h"
|
||||
#include "glonass_l1_signal_processing.h"
|
||||
#include "gnss_block_interface.h"
|
||||
#include "gnss_synchro.h"
|
||||
#include "tracking_2nd_DLL_filter.h"
|
||||
#include "tracking_FLL_PLL_filter.h"
|
||||
@ -40,11 +41,6 @@
|
||||
#include <fstream>
|
||||
#include <map>
|
||||
#include <string>
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
#include <memory>
|
||||
#else
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#endif
|
||||
|
||||
|
||||
/** \addtogroup Tracking
|
||||
@ -55,11 +51,7 @@
|
||||
|
||||
class glonass_l1_ca_dll_pll_c_aid_tracking_sc;
|
||||
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
using glonass_l1_ca_dll_pll_c_aid_tracking_sc_sptr = std::shared_ptr<glonass_l1_ca_dll_pll_c_aid_tracking_sc>;
|
||||
#else
|
||||
using glonass_l1_ca_dll_pll_c_aid_tracking_sc_sptr = boost::shared_ptr<glonass_l1_ca_dll_pll_c_aid_tracking_sc>;
|
||||
#endif
|
||||
using glonass_l1_ca_dll_pll_c_aid_tracking_sc_sptr = gnss_shared_ptr<glonass_l1_ca_dll_pll_c_aid_tracking_sc>;
|
||||
|
||||
glonass_l1_ca_dll_pll_c_aid_tracking_sc_sptr
|
||||
glonass_l1_ca_dll_pll_c_aid_make_tracking_sc(
|
||||
|
@ -29,6 +29,7 @@
|
||||
#define GNSS_SDR_GLONASS_L1_CA_DLL_PLL_TRACKING_CC_H
|
||||
|
||||
#include "cpu_multicorrelator.h"
|
||||
#include "gnss_block_interface.h"
|
||||
#include "gnss_synchro.h"
|
||||
#include "tracking_2nd_DLL_filter.h"
|
||||
#include "tracking_2nd_PLL_filter.h"
|
||||
@ -37,11 +38,6 @@
|
||||
#include <fstream>
|
||||
#include <map>
|
||||
#include <string>
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
#include <memory>
|
||||
#else
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#endif
|
||||
|
||||
|
||||
/** \addtogroup Tracking
|
||||
@ -52,11 +48,7 @@
|
||||
|
||||
class Glonass_L1_Ca_Dll_Pll_Tracking_cc;
|
||||
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
using glonass_l1_ca_dll_pll_tracking_cc_sptr = std::shared_ptr<Glonass_L1_Ca_Dll_Pll_Tracking_cc>;
|
||||
#else
|
||||
using glonass_l1_ca_dll_pll_tracking_cc_sptr = boost::shared_ptr<Glonass_L1_Ca_Dll_Pll_Tracking_cc>;
|
||||
#endif
|
||||
using glonass_l1_ca_dll_pll_tracking_cc_sptr = gnss_shared_ptr<Glonass_L1_Ca_Dll_Pll_Tracking_cc>;
|
||||
|
||||
glonass_l1_ca_dll_pll_tracking_cc_sptr
|
||||
glonass_l1_ca_dll_pll_make_tracking_cc(
|
||||
|
@ -27,6 +27,7 @@
|
||||
#define GNSS_SDR_GLONASS_L2_CA_DLL_PLL_C_AID_TRACKING_CC_H
|
||||
|
||||
#include "cpu_multicorrelator.h"
|
||||
#include "gnss_block_interface.h"
|
||||
#include "gnss_synchro.h"
|
||||
#include "tracking_2nd_DLL_filter.h"
|
||||
#include "tracking_FLL_PLL_filter.h"
|
||||
@ -37,11 +38,6 @@
|
||||
#include <fstream>
|
||||
#include <map>
|
||||
#include <string>
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
#include <memory>
|
||||
#else
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#endif
|
||||
|
||||
/** \addtogroup Tracking
|
||||
* \{ */
|
||||
@ -51,11 +47,7 @@
|
||||
|
||||
class glonass_l2_ca_dll_pll_c_aid_tracking_cc;
|
||||
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
using glonass_l2_ca_dll_pll_c_aid_tracking_cc_sptr = std::shared_ptr<glonass_l2_ca_dll_pll_c_aid_tracking_cc>;
|
||||
#else
|
||||
using glonass_l2_ca_dll_pll_c_aid_tracking_cc_sptr = boost::shared_ptr<glonass_l2_ca_dll_pll_c_aid_tracking_cc>;
|
||||
#endif
|
||||
using glonass_l2_ca_dll_pll_c_aid_tracking_cc_sptr = gnss_shared_ptr<glonass_l2_ca_dll_pll_c_aid_tracking_cc>;
|
||||
|
||||
glonass_l2_ca_dll_pll_c_aid_tracking_cc_sptr
|
||||
glonass_l2_ca_dll_pll_c_aid_make_tracking_cc(
|
||||
|
@ -28,6 +28,7 @@
|
||||
|
||||
#include "cpu_multicorrelator_16sc.h"
|
||||
#include "glonass_l2_signal_processing.h"
|
||||
#include "gnss_block_interface.h"
|
||||
#include "gnss_synchro.h"
|
||||
#include "tracking_2nd_DLL_filter.h"
|
||||
#include "tracking_FLL_PLL_filter.h"
|
||||
@ -37,11 +38,6 @@
|
||||
#include <fstream>
|
||||
#include <map>
|
||||
#include <string>
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
#include <memory>
|
||||
#else
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#endif
|
||||
|
||||
/** \addtogroup Tracking
|
||||
* \{ */
|
||||
@ -51,12 +47,7 @@
|
||||
|
||||
class glonass_l2_ca_dll_pll_c_aid_tracking_sc;
|
||||
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
using glonass_l2_ca_dll_pll_c_aid_tracking_sc_sptr = std::shared_ptr<glonass_l2_ca_dll_pll_c_aid_tracking_sc>;
|
||||
#else
|
||||
using glonass_l2_ca_dll_pll_c_aid_tracking_sc_sptr = boost::shared_ptr<glonass_l2_ca_dll_pll_c_aid_tracking_sc>;
|
||||
#endif
|
||||
|
||||
using glonass_l2_ca_dll_pll_c_aid_tracking_sc_sptr = gnss_shared_ptr<glonass_l2_ca_dll_pll_c_aid_tracking_sc>;
|
||||
|
||||
glonass_l2_ca_dll_pll_c_aid_tracking_sc_sptr
|
||||
glonass_l2_ca_dll_pll_c_aid_make_tracking_sc(
|
||||
|
@ -27,6 +27,7 @@
|
||||
#define GNSS_SDR_GLONASS_L2_CA_DLL_PLL_TRACKING_CC_H
|
||||
|
||||
#include "cpu_multicorrelator.h"
|
||||
#include "gnss_block_interface.h"
|
||||
#include "gnss_synchro.h"
|
||||
#include "tracking_2nd_DLL_filter.h"
|
||||
#include "tracking_2nd_PLL_filter.h"
|
||||
@ -35,11 +36,6 @@
|
||||
#include <fstream>
|
||||
#include <map>
|
||||
#include <string>
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
#include <memory>
|
||||
#else
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#endif
|
||||
|
||||
/** \addtogroup Tracking
|
||||
* \{ */
|
||||
@ -49,11 +45,7 @@
|
||||
|
||||
class Glonass_L2_Ca_Dll_Pll_Tracking_cc;
|
||||
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
using glonass_l2_ca_dll_pll_tracking_cc_sptr = std::shared_ptr<Glonass_L2_Ca_Dll_Pll_Tracking_cc>;
|
||||
#else
|
||||
using glonass_l2_ca_dll_pll_tracking_cc_sptr = boost::shared_ptr<Glonass_L2_Ca_Dll_Pll_Tracking_cc>;
|
||||
#endif
|
||||
using glonass_l2_ca_dll_pll_tracking_cc_sptr = gnss_shared_ptr<Glonass_L2_Ca_Dll_Pll_Tracking_cc>;
|
||||
|
||||
glonass_l2_ca_dll_pll_tracking_cc_sptr
|
||||
glonass_l2_ca_dll_pll_make_tracking_cc(
|
||||
|
@ -26,6 +26,7 @@
|
||||
#define GNSS_SDR_GPS_L1_CA_DLL_PLL_TRACKING_GPU_CC_H
|
||||
|
||||
#include "cuda_multicorrelator.h"
|
||||
#include "gnss_block_interface.h"
|
||||
#include "gnss_synchro.h"
|
||||
#include "tracking_2nd_DLL_filter.h"
|
||||
#include "tracking_FLL_PLL_filter.h"
|
||||
@ -34,11 +35,6 @@
|
||||
#include <map>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
#include <memory>
|
||||
#else
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#endif
|
||||
|
||||
/** \addtogroup Tracking
|
||||
* \{ */
|
||||
@ -48,13 +44,7 @@
|
||||
|
||||
class Gps_L1_Ca_Dll_Pll_Tracking_GPU_cc;
|
||||
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
typedef std::shared_ptr<Gps_L1_Ca_Dll_Pll_Tracking_GPU_cc>
|
||||
gps_l1_ca_dll_pll_tracking_gpu_cc_sptr;
|
||||
#else
|
||||
typedef boost::shared_ptr<Gps_L1_Ca_Dll_Pll_Tracking_GPU_cc>
|
||||
gps_l1_ca_dll_pll_tracking_gpu_cc_sptr;
|
||||
#endif
|
||||
using gps_l1_ca_dll_pll_tracking_gpu_cc_sptr = gnss_shared_ptr<Gps_L1_Ca_Dll_Pll_Tracking_GPU_cc>;
|
||||
|
||||
gps_l1_ca_dll_pll_tracking_gpu_cc_sptr
|
||||
gps_l1_ca_dll_pll_make_tracking_gpu_cc(
|
||||
|
@ -35,6 +35,7 @@
|
||||
|
||||
#include "bayesian_estimation.h"
|
||||
#include "cpu_multicorrelator_real_codes.h"
|
||||
#include "gnss_block_interface.h"
|
||||
#include "gnss_synchro.h"
|
||||
#include "tracking_2nd_DLL_filter.h"
|
||||
#include "tracking_2nd_PLL_filter.h"
|
||||
@ -44,11 +45,6 @@
|
||||
#include <fstream>
|
||||
#include <map>
|
||||
#include <string>
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
#include <memory>
|
||||
#else
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#endif
|
||||
|
||||
/** \addtogroup Tracking
|
||||
* \{ */
|
||||
@ -58,11 +54,7 @@
|
||||
|
||||
class Gps_L1_Ca_Kf_Tracking_cc;
|
||||
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
using gps_l1_ca_kf_tracking_cc_sptr = std::shared_ptr<Gps_L1_Ca_Kf_Tracking_cc>;
|
||||
#else
|
||||
using gps_l1_ca_kf_tracking_cc_sptr = boost::shared_ptr<Gps_L1_Ca_Kf_Tracking_cc>;
|
||||
#endif
|
||||
using gps_l1_ca_kf_tracking_cc_sptr = gnss_shared_ptr<Gps_L1_Ca_Kf_Tracking_cc>;
|
||||
|
||||
gps_l1_ca_kf_tracking_cc_sptr
|
||||
gps_l1_ca_kf_make_tracking_cc(uint32_t order,
|
||||
|
@ -27,6 +27,7 @@
|
||||
#define GNSS_SDR_GPS_L1_CA_TCP_CONNECTOR_TRACKING_CC_H
|
||||
|
||||
#include "cpu_multicorrelator.h"
|
||||
#include "gnss_block_interface.h"
|
||||
#include "gnss_synchro.h"
|
||||
#include "tcp_communication.h"
|
||||
#include <gnuradio/block.h>
|
||||
@ -34,11 +35,6 @@
|
||||
#include <fstream>
|
||||
#include <map>
|
||||
#include <string>
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
#include <memory>
|
||||
#else
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#endif
|
||||
|
||||
/** \addtogroup Tracking
|
||||
* \{ */
|
||||
@ -48,11 +44,7 @@
|
||||
|
||||
class Gps_L1_Ca_Tcp_Connector_Tracking_cc;
|
||||
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
using gps_l1_ca_tcp_connector_tracking_cc_sptr = std::shared_ptr<Gps_L1_Ca_Tcp_Connector_Tracking_cc>;
|
||||
#else
|
||||
using gps_l1_ca_tcp_connector_tracking_cc_sptr = boost::shared_ptr<Gps_L1_Ca_Tcp_Connector_Tracking_cc>;
|
||||
#endif
|
||||
using gps_l1_ca_tcp_connector_tracking_cc_sptr = gnss_shared_ptr<Gps_L1_Ca_Tcp_Connector_Tracking_cc>;
|
||||
|
||||
gps_l1_ca_tcp_connector_tracking_cc_sptr
|
||||
gps_l1_ca_tcp_connector_make_tracking_cc(
|
||||
|
@ -29,6 +29,7 @@
|
||||
#include <gnuradio/top_block.h>
|
||||
#include <cassert>
|
||||
#include <string>
|
||||
#include <utility> // for std::forward
|
||||
|
||||
/** \addtogroup Core
|
||||
* \{ */
|
||||
@ -36,6 +37,27 @@
|
||||
* \{ */
|
||||
|
||||
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
#include <memory>
|
||||
template <typename T>
|
||||
using gnss_shared_ptr = std::shared_ptr<T>;
|
||||
template <typename C, typename... Args>
|
||||
gnss_shared_ptr<C> gnss_make_shared(Args &&... args)
|
||||
{
|
||||
return std::make_shared<C>(std::forward<Args>(args)...);
|
||||
}
|
||||
#else
|
||||
#include <boost/make_shared.hpp>
|
||||
#include <boost/shared_ptr.hpp>
|
||||
template <typename T>
|
||||
using gnss_shared_ptr = boost::shared_ptr<T>;
|
||||
template <typename C, typename... Args>
|
||||
gnss_shared_ptr<C> gnss_make_shared(Args &&... args)
|
||||
{
|
||||
return boost::make_shared<C>(std::forward<Args>(args)...);
|
||||
}
|
||||
#endif
|
||||
|
||||
/*!
|
||||
* \brief This abstract class represents an interface to GNSS blocks.
|
||||
*
|
||||
|
@ -87,6 +87,11 @@ if(GNURADIO_USES_STD_POINTERS)
|
||||
)
|
||||
endif()
|
||||
|
||||
target_include_directories(core_libs
|
||||
PUBLIC
|
||||
${CMAKE_SOURCE_DIR}/src/core/interfaces
|
||||
)
|
||||
|
||||
if(USE_GENERIC_LAMBDAS)
|
||||
set(has_generic_lambdas HAS_GENERIC_LAMBDA=1)
|
||||
set(no_has_generic_lambdas HAS_GENERIC_LAMBDA=0)
|
||||
|
@ -21,16 +21,13 @@
|
||||
#ifndef GNSS_SDR_CHANNEL_STATUS_MSG_RECEIVER_CC_H
|
||||
#define GNSS_SDR_CHANNEL_STATUS_MSG_RECEIVER_CC_H
|
||||
|
||||
#include "gnss_block_interface.h"
|
||||
#include "gnss_synchro.h"
|
||||
#include "monitor_pvt.h"
|
||||
#include <gnuradio/block.h>
|
||||
#include <pmt/pmt.h>
|
||||
#include <map>
|
||||
#include <memory>
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
#else
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#endif
|
||||
|
||||
/** \addtogroup Core
|
||||
* \{ */
|
||||
@ -40,11 +37,7 @@
|
||||
|
||||
class channel_status_msg_receiver;
|
||||
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
using channel_status_msg_receiver_sptr = std::shared_ptr<channel_status_msg_receiver>;
|
||||
#else
|
||||
using channel_status_msg_receiver_sptr = boost::shared_ptr<channel_status_msg_receiver>;
|
||||
#endif
|
||||
using channel_status_msg_receiver_sptr = gnss_shared_ptr<channel_status_msg_receiver>;
|
||||
|
||||
channel_status_msg_receiver_sptr channel_status_msg_receiver_make();
|
||||
|
||||
|
@ -22,15 +22,11 @@
|
||||
#ifndef GNSS_SDR_GNSS_SDR_FPGA_SAMPLE_COUNTER_H
|
||||
#define GNSS_SDR_GNSS_SDR_FPGA_SAMPLE_COUNTER_H
|
||||
|
||||
#include "gnss_block_interface.h"
|
||||
#include <gnuradio/block.h>
|
||||
#include <gnuradio/types.h> // for gr_vector_const_void_star
|
||||
#include <cstdint>
|
||||
#include <string>
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
#include <memory>
|
||||
#else
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#endif
|
||||
|
||||
/** \addtogroup Core
|
||||
* \{ */
|
||||
@ -40,11 +36,7 @@
|
||||
|
||||
class gnss_sdr_fpga_sample_counter;
|
||||
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
using gnss_sdr_fpga_sample_counter_sptr = std::shared_ptr<gnss_sdr_fpga_sample_counter>;
|
||||
#else
|
||||
using gnss_sdr_fpga_sample_counter_sptr = boost::shared_ptr<gnss_sdr_fpga_sample_counter>;
|
||||
#endif
|
||||
using gnss_sdr_fpga_sample_counter_sptr = gnss_shared_ptr<gnss_sdr_fpga_sample_counter>;
|
||||
|
||||
gnss_sdr_fpga_sample_counter_sptr gnss_sdr_make_fpga_sample_counter(double _fs, int32_t _interval_ms);
|
||||
|
||||
|
@ -21,15 +21,11 @@
|
||||
#ifndef GNSS_SDR_GNSS_SDR_SAMPLE_COUNTER_H
|
||||
#define GNSS_SDR_GNSS_SDR_SAMPLE_COUNTER_H
|
||||
|
||||
#include "gnss_block_interface.h"
|
||||
#include <gnuradio/sync_decimator.h>
|
||||
#include <gnuradio/types.h> // for gr_vector_const_void_star
|
||||
#include <cstddef> // for size_t
|
||||
#include <cstdint>
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
#include <memory>
|
||||
#else
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#endif
|
||||
|
||||
/** \addtogroup Core
|
||||
* \{ */
|
||||
@ -40,11 +36,7 @@
|
||||
|
||||
class gnss_sdr_sample_counter;
|
||||
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
using gnss_sdr_sample_counter_sptr = std::shared_ptr<gnss_sdr_sample_counter>;
|
||||
#else
|
||||
using gnss_sdr_sample_counter_sptr = boost::shared_ptr<gnss_sdr_sample_counter>;
|
||||
#endif
|
||||
using gnss_sdr_sample_counter_sptr = gnss_shared_ptr<gnss_sdr_sample_counter>;
|
||||
|
||||
gnss_sdr_sample_counter_sptr gnss_sdr_make_sample_counter(
|
||||
double _fs,
|
||||
|
@ -60,6 +60,7 @@ get_filename_component(PROTO_INCLUDE_HEADERS ${PROTO_HDRS} DIRECTORY)
|
||||
target_include_directories(core_monitor
|
||||
PUBLIC
|
||||
SYSTEM ${PROTO_INCLUDE_HEADERS}
|
||||
${CMAKE_SOURCE_DIR}/src/core/interfaces
|
||||
PRIVATE
|
||||
${CMAKE_SOURCE_DIR}/src/algorithms/libs # for gnss_sdr_make_unique
|
||||
)
|
||||
|
@ -23,17 +23,13 @@
|
||||
#ifndef GNSS_SDR_GNSS_SYNCHRO_MONITOR_H
|
||||
#define GNSS_SDR_GNSS_SYNCHRO_MONITOR_H
|
||||
|
||||
#include "gnss_block_interface.h"
|
||||
#include "gnss_synchro_udp_sink.h"
|
||||
#include <gnuradio/block.h>
|
||||
#include <gnuradio/runtime_types.h> // for gr_vector_void_star
|
||||
#include <memory>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
#include <memory>
|
||||
#else
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#endif
|
||||
|
||||
/** \addtogroup Core
|
||||
* \{ */
|
||||
@ -44,11 +40,7 @@
|
||||
|
||||
class gnss_synchro_monitor;
|
||||
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
using gnss_synchro_monitor_sptr = std::shared_ptr<gnss_synchro_monitor>;
|
||||
#else
|
||||
using gnss_synchro_monitor_sptr = boost::shared_ptr<gnss_synchro_monitor>;
|
||||
#endif
|
||||
using gnss_synchro_monitor_sptr = gnss_shared_ptr<gnss_synchro_monitor>;
|
||||
|
||||
gnss_synchro_monitor_sptr gnss_synchro_make_monitor(int n_channels,
|
||||
int decimation_factor,
|
||||
|
@ -69,6 +69,10 @@ if(ENABLE_FPGA)
|
||||
target_compile_definitions(core_receiver PUBLIC -DENABLE_FPGA=1)
|
||||
endif()
|
||||
|
||||
if(GNURADIO_USES_STD_POINTERS)
|
||||
target_compile_definitions(core_receiver PUBLIC -DGNURADIO_USES_STD_POINTERS=1)
|
||||
endif()
|
||||
|
||||
if(ENABLE_RAW_UDP)
|
||||
target_compile_definitions(core_receiver PRIVATE -DRAW_UDP=1)
|
||||
endif()
|
||||
|
@ -26,6 +26,7 @@
|
||||
#include "galileo_e5a_pcps_acquisition.h"
|
||||
#include "glonass_l1_ca_pcps_acquisition.h"
|
||||
#include "glonass_l2_ca_pcps_acquisition.h"
|
||||
#include "gnss_block_interface.h"
|
||||
#include "gnss_sdr_valve.h"
|
||||
#include "gnuplot_i.h"
|
||||
#include "gps_l1_ca_pcps_acquisition.h"
|
||||
@ -44,11 +45,6 @@
|
||||
#include <pmt/pmt.h>
|
||||
#include <thread>
|
||||
#include <utility>
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
#include <memory>
|
||||
#else
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#endif
|
||||
|
||||
#if HAS_GENERIC_LAMBDA
|
||||
#else
|
||||
@ -110,11 +106,7 @@ DEFINE_bool(acq_test_dump, false, "Dump the results of an acquisition block into
|
||||
// ######## GNURADIO BLOCK MESSAGE RECEVER #########
|
||||
class AcqPerfTest_msg_rx;
|
||||
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
using AcqPerfTest_msg_rx_sptr = std::shared_ptr<AcqPerfTest_msg_rx>;
|
||||
#else
|
||||
using AcqPerfTest_msg_rx_sptr = boost::shared_ptr<AcqPerfTest_msg_rx>;
|
||||
#endif
|
||||
using AcqPerfTest_msg_rx_sptr = gnss_shared_ptr<AcqPerfTest_msg_rx>;
|
||||
|
||||
AcqPerfTest_msg_rx_sptr AcqPerfTest_msg_rx_make(Concurrent_Queue<int>& queue);
|
||||
|
||||
|
@ -47,19 +47,12 @@
|
||||
#else
|
||||
#include <gnuradio/analog/sig_source_c.h>
|
||||
#endif
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
#else
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#endif
|
||||
|
||||
|
||||
// ######## GNURADIO BLOCK MESSAGE RECEVER #########
|
||||
class GalileoE1Pcps8msAmbiguousAcquisitionGSoC2013Test_msg_rx;
|
||||
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
using GalileoE1Pcps8msAmbiguousAcquisitionGSoC2013Test_msg_rx_sptr = std::shared_ptr<GalileoE1Pcps8msAmbiguousAcquisitionGSoC2013Test_msg_rx>;
|
||||
#else
|
||||
using GalileoE1Pcps8msAmbiguousAcquisitionGSoC2013Test_msg_rx_sptr = boost::shared_ptr<GalileoE1Pcps8msAmbiguousAcquisitionGSoC2013Test_msg_rx>;
|
||||
#endif
|
||||
using GalileoE1Pcps8msAmbiguousAcquisitionGSoC2013Test_msg_rx_sptr = gnss_shared_ptr<GalileoE1Pcps8msAmbiguousAcquisitionGSoC2013Test_msg_rx>;
|
||||
|
||||
GalileoE1Pcps8msAmbiguousAcquisitionGSoC2013Test_msg_rx_sptr GalileoE1Pcps8msAmbiguousAcquisitionGSoC2013Test_msg_rx_make(Concurrent_Queue<int>& queue);
|
||||
|
||||
|
@ -45,19 +45,11 @@
|
||||
#else
|
||||
#include <gnuradio/analog/sig_source_c.h>
|
||||
#endif
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
#else
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#endif
|
||||
|
||||
// ######## GNURADIO BLOCK MESSAGE RECEVER #########
|
||||
class GalileoE1PcpsAmbiguousAcquisitionGSoC2013Test_msg_rx;
|
||||
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
using GalileoE1PcpsAmbiguousAcquisitionGSoC2013Test_msg_rx_sptr = std::shared_ptr<GalileoE1PcpsAmbiguousAcquisitionGSoC2013Test_msg_rx>;
|
||||
#else
|
||||
using GalileoE1PcpsAmbiguousAcquisitionGSoC2013Test_msg_rx_sptr = boost::shared_ptr<GalileoE1PcpsAmbiguousAcquisitionGSoC2013Test_msg_rx>;
|
||||
#endif
|
||||
using GalileoE1PcpsAmbiguousAcquisitionGSoC2013Test_msg_rx_sptr = gnss_shared_ptr<GalileoE1PcpsAmbiguousAcquisitionGSoC2013Test_msg_rx>;
|
||||
|
||||
GalileoE1PcpsAmbiguousAcquisitionGSoC2013Test_msg_rx_sptr GalileoE1PcpsAmbiguousAcquisitionGSoC2013Test_msg_rx_make(Concurrent_Queue<int>& queue);
|
||||
|
||||
|
@ -55,18 +55,11 @@
|
||||
#else
|
||||
#include <gnuradio/analog/sig_source_c.h>
|
||||
#endif
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
#else
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#endif
|
||||
|
||||
// ######## GNURADIO BLOCK MESSAGE RECEVER #########
|
||||
class GalileoE1PcpsAmbiguousAcquisitionGSoCTest_msg_rx;
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
using GalileoE1PcpsAmbiguousAcquisitionGSoCTest_msg_rx_sptr = std::shared_ptr<GalileoE1PcpsAmbiguousAcquisitionGSoCTest_msg_rx>;
|
||||
#else
|
||||
using GalileoE1PcpsAmbiguousAcquisitionGSoCTest_msg_rx_sptr = boost::shared_ptr<GalileoE1PcpsAmbiguousAcquisitionGSoCTest_msg_rx>;
|
||||
#endif
|
||||
|
||||
using GalileoE1PcpsAmbiguousAcquisitionGSoCTest_msg_rx_sptr = gnss_shared_ptr<GalileoE1PcpsAmbiguousAcquisitionGSoCTest_msg_rx>;
|
||||
|
||||
GalileoE1PcpsAmbiguousAcquisitionGSoCTest_msg_rx_sptr GalileoE1PcpsAmbiguousAcquisitionGSoCTest_msg_rx_make(Concurrent_Queue<int>& queue);
|
||||
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user