mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2024-12-15 04:30:33 +00:00
Merge branch 'next' of github.com:gnss-sdr/gnss-sdr into pps_lime
This commit is contained in:
commit
069c958965
@ -78,6 +78,9 @@ All notable changes to GNSS-SDR will be documented in this file.
|
|||||||
`Osmosdr_Signal_Source` implementation of a `SignalSource`.
|
`Osmosdr_Signal_Source` implementation of a `SignalSource`.
|
||||||
- The `Osmosdr_Signal_Source` implementation learned a new parameter `if_bw` to
|
- The `Osmosdr_Signal_Source` implementation learned a new parameter `if_bw` to
|
||||||
manually set the bandwidth of the bandpass filter on the radio frontend.
|
manually set the bandwidth of the bandpass filter on the radio frontend.
|
||||||
|
- The `UHD_Signal_Source` learned two new optional parameters
|
||||||
|
`device_recv_frame_size` and `device_num_recv_frames` for overriding
|
||||||
|
[transport layer defaults](https://files.ettus.com/manual/page_transport.html).
|
||||||
- The new configuration parameter `Channels_XX.RF_channel_ID` allows to specify
|
- The new configuration parameter `Channels_XX.RF_channel_ID` allows to specify
|
||||||
the signal source per channel group.
|
the signal source per channel group.
|
||||||
- Allowed the CMake project to be a sub-project.
|
- Allowed the CMake project to be a sub-project.
|
||||||
|
@ -32,11 +32,18 @@ target_include_directories(pvt_adapters
|
|||||||
${GNSSSDR_SOURCE_DIR}/src/core/interfaces
|
${GNSSSDR_SOURCE_DIR}/src/core/interfaces
|
||||||
)
|
)
|
||||||
|
|
||||||
if(USE_OLD_BOOST_MATH_COMMON_FACTOR)
|
if((NOT (CMAKE_VERSION VERSION_LESS "3.1")) AND NOT (CMAKE_CXX_STANDARD VERSION_LESS 17))
|
||||||
target_compile_definitions(pvt_adapters
|
target_compile_definitions(pvt_adapters
|
||||||
PRIVATE
|
PRIVATE
|
||||||
-DUSE_OLD_BOOST_MATH_COMMON_FACTOR=1
|
-DUSE_STD_COMMON_FACTOR=1
|
||||||
)
|
)
|
||||||
|
else()
|
||||||
|
if(USE_OLD_BOOST_MATH_COMMON_FACTOR)
|
||||||
|
target_compile_definitions(pvt_adapters
|
||||||
|
PRIVATE
|
||||||
|
-DUSE_OLD_BOOST_MATH_COMMON_FACTOR=1
|
||||||
|
)
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(ENABLE_CLANG_TIDY)
|
if(ENABLE_CLANG_TIDY)
|
||||||
|
@ -28,6 +28,10 @@
|
|||||||
#include "rtklib_rtkpos.h" // for rtkfree, rtkinit
|
#include "rtklib_rtkpos.h" // for rtkfree, rtkinit
|
||||||
#include <glog/logging.h> // for LOG
|
#include <glog/logging.h> // for LOG
|
||||||
#include <iostream> // for std::cout
|
#include <iostream> // for std::cout
|
||||||
|
#if USE_STD_COMMON_FACTOR
|
||||||
|
#include <numeric>
|
||||||
|
namespace bc = std;
|
||||||
|
#else
|
||||||
#if USE_OLD_BOOST_MATH_COMMON_FACTOR
|
#if USE_OLD_BOOST_MATH_COMMON_FACTOR
|
||||||
#include <boost/math/common_factor_rt.hpp>
|
#include <boost/math/common_factor_rt.hpp>
|
||||||
namespace bc = boost::math;
|
namespace bc = boost::math;
|
||||||
@ -35,6 +39,7 @@ namespace bc = boost::math;
|
|||||||
#include <boost/integer/common_factor_rt.hpp>
|
#include <boost/integer/common_factor_rt.hpp>
|
||||||
namespace bc = boost::integer;
|
namespace bc = boost::integer;
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
using namespace std::string_literals;
|
using namespace std::string_literals;
|
||||||
|
|
||||||
|
@ -74,11 +74,18 @@ if(ENABLE_CLANG_TIDY)
|
|||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(USE_OLD_BOOST_MATH_COMMON_FACTOR)
|
if((NOT (CMAKE_VERSION VERSION_LESS "3.1")) AND NOT (CMAKE_CXX_STANDARD VERSION_LESS 17))
|
||||||
target_compile_definitions(pvt_gr_blocks
|
target_compile_definitions(pvt_gr_blocks
|
||||||
PRIVATE
|
PRIVATE
|
||||||
-DUSE_OLD_BOOST_MATH_COMMON_FACTOR=1
|
-DUSE_STD_COMMON_FACTOR=1
|
||||||
)
|
)
|
||||||
|
else()
|
||||||
|
if(USE_OLD_BOOST_MATH_COMMON_FACTOR)
|
||||||
|
target_compile_definitions(pvt_gr_blocks
|
||||||
|
PRIVATE
|
||||||
|
-DUSE_OLD_BOOST_MATH_COMMON_FACTOR=1
|
||||||
|
)
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(USE_BOOST_BIND_PLACEHOLDERS)
|
if(USE_BOOST_BIND_PLACEHOLDERS)
|
||||||
|
@ -86,6 +86,10 @@
|
|||||||
#include <boost/bind/bind.hpp>
|
#include <boost/bind/bind.hpp>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if USE_STD_COMMON_FACTOR
|
||||||
|
#include <numeric>
|
||||||
|
namespace bc = std;
|
||||||
|
#else
|
||||||
#if USE_OLD_BOOST_MATH_COMMON_FACTOR
|
#if USE_OLD_BOOST_MATH_COMMON_FACTOR
|
||||||
#include <boost/math/common_factor_rt.hpp>
|
#include <boost/math/common_factor_rt.hpp>
|
||||||
namespace bc = boost::math;
|
namespace bc = boost::math;
|
||||||
@ -93,6 +97,7 @@ namespace bc = boost::math;
|
|||||||
#include <boost/integer/common_factor_rt.hpp>
|
#include <boost/integer/common_factor_rt.hpp>
|
||||||
namespace bc = boost::integer;
|
namespace bc = boost::integer;
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#if PMT_USES_BOOST_ANY
|
#if PMT_USES_BOOST_ANY
|
||||||
#include <boost/any.hpp>
|
#include <boost/any.hpp>
|
||||||
|
@ -24,6 +24,7 @@
|
|||||||
#include <cstdlib> // for mkstemp
|
#include <cstdlib> // for mkstemp
|
||||||
#include <ctime> // for tm
|
#include <ctime> // for tm
|
||||||
#include <exception> // for exception
|
#include <exception> // for exception
|
||||||
|
#include <iomanip> // for std::setprecision
|
||||||
#include <iostream> // for cout, cerr
|
#include <iostream> // for cout, cerr
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
#include <sys/stat.h> // for S_IXUSR | S_IRWXG | S_IRWXO
|
#include <sys/stat.h> // for S_IXUSR | S_IRWXG | S_IRWXO
|
||||||
|
@ -65,6 +65,20 @@ UhdSignalSource::UhdSignalSource(const ConfigurationInterface* configuration,
|
|||||||
sample_rate_ = configuration->property(role + ".sampling_frequency", 4.0e6);
|
sample_rate_ = configuration->property(role + ".sampling_frequency", 4.0e6);
|
||||||
item_type_ = configuration->property(role + ".item_type", default_item_type);
|
item_type_ = configuration->property(role + ".item_type", default_item_type);
|
||||||
|
|
||||||
|
// UHD TRANSPORT PARAMETERS
|
||||||
|
// option to manually set device "num_recv_frames"
|
||||||
|
std::string device_num_recv_frames = configuration->property(role + ".device_num_recv_frames", empty);
|
||||||
|
if (empty != device_num_recv_frames) // if not empty
|
||||||
|
{
|
||||||
|
dev_addr["num_recv_frames"] = device_num_recv_frames;
|
||||||
|
}
|
||||||
|
// option to manually set device "recv_frame_size"
|
||||||
|
std::string device_recv_frame_size = configuration->property(role + ".device_recv_frame_size", empty);
|
||||||
|
if (empty != device_recv_frame_size) // if not empty
|
||||||
|
{
|
||||||
|
dev_addr["recv_frame_size"] = device_recv_frame_size;
|
||||||
|
}
|
||||||
|
|
||||||
if (RF_channels_ == 1)
|
if (RF_channels_ == 1)
|
||||||
{
|
{
|
||||||
// Single RF channel UHD operation (backward compatible config file format)
|
// Single RF channel UHD operation (backward compatible config file format)
|
||||||
|
@ -46,6 +46,7 @@
|
|||||||
#include <chrono>
|
#include <chrono>
|
||||||
#include <cmath>
|
#include <cmath>
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
|
#include <iomanip>
|
||||||
#include <numeric>
|
#include <numeric>
|
||||||
#include <thread>
|
#include <thread>
|
||||||
|
|
||||||
|
@ -63,6 +63,7 @@
|
|||||||
#include <chrono>
|
#include <chrono>
|
||||||
#include <cmath>
|
#include <cmath>
|
||||||
#include <exception>
|
#include <exception>
|
||||||
|
#include <iomanip>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <utility>
|
#include <utility>
|
||||||
#if GNSSTK_USES_GPSTK_NAMESPACE
|
#if GNSSTK_USES_GPSTK_NAMESPACE
|
||||||
|
@ -62,6 +62,7 @@
|
|||||||
#include <chrono>
|
#include <chrono>
|
||||||
#include <cmath>
|
#include <cmath>
|
||||||
#include <exception>
|
#include <exception>
|
||||||
|
#include <iomanip>
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <utility>
|
#include <utility>
|
||||||
|
@ -22,6 +22,7 @@
|
|||||||
#include <gnuradio/top_block.h>
|
#include <gnuradio/top_block.h>
|
||||||
#include <chrono>
|
#include <chrono>
|
||||||
#include <exception>
|
#include <exception>
|
||||||
|
#include <iomanip>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <utility>
|
#include <utility>
|
||||||
|
@ -39,6 +39,7 @@
|
|||||||
#include <matio.h>
|
#include <matio.h>
|
||||||
#include <pmt/pmt.h>
|
#include <pmt/pmt.h>
|
||||||
#include <chrono>
|
#include <chrono>
|
||||||
|
#include <iomanip>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <utility>
|
#include <utility>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
@ -42,6 +42,7 @@
|
|||||||
#include <chrono>
|
#include <chrono>
|
||||||
#include <cstdio> // FPGA read input file
|
#include <cstdio> // FPGA read input file
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
|
#include <iomanip>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <utility>
|
#include <utility>
|
||||||
|
@ -38,6 +38,7 @@
|
|||||||
#include <gtest/gtest.h>
|
#include <gtest/gtest.h>
|
||||||
#include <pmt/pmt.h>
|
#include <pmt/pmt.h>
|
||||||
#include <chrono>
|
#include <chrono>
|
||||||
|
#include <iomanip>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <utility>
|
#include <utility>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
Loading…
Reference in New Issue
Block a user