mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-11-20 09:05:25 +00:00
Merge branch 'next' of https://github.com/gnss-sdr/gnss-sdr into glonass
This commit is contained in:
@@ -31,6 +31,13 @@ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wall")
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall")
|
||||
add_definitions(-D_GLIBCXX_USE_CXX11_ABI=1)
|
||||
|
||||
if(CMAKE_VERSION VERSION_GREATER "3.0")
|
||||
cmake_policy(SET CMP0042 NEW)
|
||||
if(CMAKE_VERSION VERSION_GREATER "3.9")
|
||||
cmake_policy(SET CMP0068 NEW)
|
||||
endif(CMAKE_VERSION VERSION_GREATER "3.9")
|
||||
endif(CMAKE_VERSION VERSION_GREATER "3.0")
|
||||
|
||||
option(ENABLE_STRIP "Create a stripped volk_gnsssdr_profile binary (without shared libraries)" OFF)
|
||||
|
||||
set(PROJECT_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}) #allows this to be a sub-project
|
||||
@@ -84,6 +91,7 @@ if(UNIX)
|
||||
)
|
||||
endif(UNIX)
|
||||
|
||||
|
||||
########################################################################
|
||||
# Dependencies setup
|
||||
########################################################################
|
||||
|
||||
@@ -50,6 +50,15 @@ elseif(ORC_FOUND)
|
||||
endif(ORC_FOUND)
|
||||
|
||||
|
||||
# allow 'large' files in 32 bit builds
|
||||
if(UNIX)
|
||||
add_definitions( -D_LARGEFILE_SOURCE
|
||||
-D_FILE_OFFSET_BITS=64
|
||||
-D_LARGE_FILES
|
||||
)
|
||||
endif(UNIX)
|
||||
|
||||
|
||||
# MAKE volk_gnsssdr_profile
|
||||
add_executable(volk_gnsssdr_profile
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/volk_gnsssdr_profile.cc
|
||||
|
||||
@@ -213,7 +213,6 @@ int main(int argc, char *argv[]) {
|
||||
}
|
||||
|
||||
if(!dry_run) {
|
||||
write_results(&results, false);
|
||||
if(vm.count("path")) write_results(&results, false, config_file);
|
||||
else write_results(&results, false);
|
||||
}
|
||||
|
||||
@@ -30,11 +30,8 @@
|
||||
*/
|
||||
|
||||
#include "fmcomms2_signal_source.h"
|
||||
#include <cstdio>
|
||||
#include <iostream>
|
||||
#include <boost/format.hpp>
|
||||
#include <glog/logging.h>
|
||||
#include <gnuradio/blocks/file_sink.h>
|
||||
#include "configuration_interface.h"
|
||||
#include "gnss_sdr_valve.h"
|
||||
#include "GPS_L1_CA.h"
|
||||
@@ -75,8 +72,8 @@ Fmcomms2SignalSource::Fmcomms2SignalSource(ConfigurationInterface* configuration
|
||||
item_size_ = sizeof(gr_complex);
|
||||
|
||||
std::cout << "device address: " << uri_ << std::endl;
|
||||
std::cout << "LO frequency : " << freq_ << "Hz" << std::endl;
|
||||
std::cout << "sample rate: " << sample_rate_ << "Hz" << std::endl;
|
||||
std::cout << "LO frequency : " << freq_ << " Hz" << std::endl;
|
||||
std::cout << "sample rate: " << sample_rate_ << " Hz" << std::endl;
|
||||
|
||||
if(item_type_.compare("gr_complex") == 0)
|
||||
{
|
||||
@@ -92,7 +89,7 @@ Fmcomms2SignalSource::Fmcomms2SignalSource(ConfigurationInterface* configuration
|
||||
}
|
||||
else
|
||||
{
|
||||
LOG(FATAL) << "Exception: item type " << item_type_ << " not supported!";
|
||||
LOG(FATAL) << "Configuration error: item type " << item_type_ << " not supported!";
|
||||
}
|
||||
|
||||
if (samples_ != 0)
|
||||
@@ -153,7 +150,7 @@ void Fmcomms2SignalSource::disconnect(gr::top_block_sptr top_block)
|
||||
{
|
||||
if (dump_)
|
||||
{
|
||||
top_block->disconnect(fmcomms2_source_f32c_, 0, file_sink_, 0);
|
||||
top_block->disconnect(fmcomms2_source_f32c_, 0, file_sink_, 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -57,7 +57,7 @@ public:
|
||||
}
|
||||
|
||||
/*!
|
||||
* \brief Returns "fmcomms2_Signal_Source"
|
||||
* \brief Returns "Fmcomms2_Signal_Source"
|
||||
*/
|
||||
inline std::string implementation() override
|
||||
{
|
||||
|
||||
@@ -30,9 +30,7 @@
|
||||
|
||||
#include "plutosdr_signal_source.h"
|
||||
#include <iostream>
|
||||
#include <boost/format.hpp>
|
||||
#include <glog/logging.h>
|
||||
#include <gnuradio/blocks/file_sink.h>
|
||||
#include "configuration_interface.h"
|
||||
#include "gnss_sdr_valve.h"
|
||||
#include "GPS_L1_CA.h"
|
||||
@@ -70,15 +68,15 @@ PlutosdrSignalSource::PlutosdrSignalSource(ConfigurationInterface* configuration
|
||||
|
||||
if(item_type_.compare("gr_complex") != 0)
|
||||
{
|
||||
std::cout << "bad item_type!!" << std::endl;
|
||||
LOG(FATAL) << "Exception: item type must be gr_complex!";
|
||||
std::cout << "Configuration error: item_type must be gr_complex" << std::endl;
|
||||
LOG(FATAL) << "Configuration error: item_type must be gr_complex!";
|
||||
}
|
||||
|
||||
item_size_ = sizeof(gr_complex);
|
||||
|
||||
std::cout << "device address: " << uri_ << std::endl;
|
||||
std::cout << "frequency : " << freq_ << "Hz" << std::endl;
|
||||
std::cout << "sample rate: " << sample_rate_ << "Hz" << std::endl;
|
||||
std::cout << "frequency : " << freq_ << " Hz" << std::endl;
|
||||
std::cout << "sample rate: " << sample_rate_ << " Hz" << std::endl;
|
||||
std::cout << "gain mode: " << gain_mode_ << std::endl;
|
||||
std::cout << "item type: " << item_type_ << std::endl;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user