mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2024-12-15 12:40:35 +00:00
Merge branch 'next' of https://github.com/carlesfernandez/gnss-sdr into next
This commit is contained in:
commit
0f0c8428f2
@ -877,12 +877,10 @@ bool rtklib_pvt_cc::save_gnss_synchro_map_xml(const std::string& file_name)
|
|||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
LOG(WARNING) << "Failed to save gnss_synchro, map is empty";
|
LOG(WARNING) << "Failed to save gnss_synchro, map is empty";
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
bool rtklib_pvt_cc::load_gnss_synchro_map_xml(const std::string& file_name)
|
bool rtklib_pvt_cc::load_gnss_synchro_map_xml(const std::string& file_name)
|
||||||
@ -925,11 +923,9 @@ bool rtklib_pvt_cc::get_latest_PVT(double* longitude_deg,
|
|||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
int rtklib_pvt_cc::work(int noutput_items, gr_vector_const_void_star& input_items,
|
int rtklib_pvt_cc::work(int noutput_items, gr_vector_const_void_star& input_items,
|
||||||
|
@ -80,8 +80,7 @@ else()
|
|||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
target_link_libraries(
|
target_link_libraries(pvt_lib
|
||||||
pvt_lib
|
|
||||||
rtklib_lib
|
rtklib_lib
|
||||||
gnss_sdr_flags
|
gnss_sdr_flags
|
||||||
gnss_sp_libs
|
gnss_sp_libs
|
||||||
|
@ -149,20 +149,16 @@ bool GeoJSON_Printer::set_headers(const std::string& filename, bool time_tag_nam
|
|||||||
geojson_file << " \"properties\": {" << std::endl;
|
geojson_file << " \"properties\": {" << std::endl;
|
||||||
geojson_file << R"( "name": "Locations generated by GNSS-SDR" )" << std::endl;
|
geojson_file << R"( "name": "Locations generated by GNSS-SDR" )" << std::endl;
|
||||||
geojson_file << " }," << std::endl;
|
geojson_file << " }," << std::endl;
|
||||||
|
|
||||||
|
|
||||||
geojson_file << " \"geometry\": {" << std::endl;
|
geojson_file << " \"geometry\": {" << std::endl;
|
||||||
geojson_file << R"( "type": "MultiPoint",)" << std::endl;
|
geojson_file << R"( "type": "MultiPoint",)" << std::endl;
|
||||||
geojson_file << " \"coordinates\": [" << std::endl;
|
geojson_file << " \"coordinates\": [" << std::endl;
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
std::cout << "File " << filename_ << " cannot be saved. Wrong permissions?" << std::endl;
|
std::cout << "File " << filename_ << " cannot be saved. Wrong permissions?" << std::endl;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
bool GeoJSON_Printer::print_position(const std::shared_ptr<Pvt_Solution>& position, bool print_average_values)
|
bool GeoJSON_Printer::print_position(const std::shared_ptr<Pvt_Solution>& position, bool print_average_values)
|
||||||
@ -200,11 +196,8 @@ bool GeoJSON_Printer::print_position(const std::shared_ptr<Pvt_Solution>& positi
|
|||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
bool GeoJSON_Printer::close_file()
|
bool GeoJSON_Printer::close_file()
|
||||||
@ -222,11 +215,7 @@ bool GeoJSON_Printer::close_file()
|
|||||||
{
|
{
|
||||||
if (remove(filename_.c_str()) != 0) LOG(INFO) << "Error deleting temporary file";
|
if (remove(filename_.c_str()) != 0) LOG(INFO) << "Error deleting temporary file";
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
@ -149,12 +149,9 @@ bool Gpx_Printer::set_headers(const std::string& filename, bool time_tag_name)
|
|||||||
<< indent << indent << "<trkseg>" << std::endl;
|
<< indent << indent << "<trkseg>" << std::endl;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
std::cout << "File " << gpx_filename << " cannot be saved. Wrong permissions?" << std::endl;
|
std::cout << "File " << gpx_filename << " cannot be saved. Wrong permissions?" << std::endl;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
bool Gpx_Printer::print_position(const std::shared_ptr<rtklib_solver>& position, bool print_average_values)
|
bool Gpx_Printer::print_position(const std::shared_ptr<rtklib_solver>& position, bool print_average_values)
|
||||||
@ -201,11 +198,8 @@ bool Gpx_Printer::print_position(const std::shared_ptr<rtklib_solver>& position,
|
|||||||
<< "</gpxtpx:TrackPointExtension></extensions></trkpt>" << std::endl;
|
<< "</gpxtpx:TrackPointExtension></extensions></trkpt>" << std::endl;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
bool Gpx_Printer::close_file()
|
bool Gpx_Printer::close_file()
|
||||||
@ -218,11 +212,8 @@ bool Gpx_Printer::close_file()
|
|||||||
gpx_file.close();
|
gpx_file.close();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
Gpx_Printer::~Gpx_Printer()
|
Gpx_Printer::~Gpx_Printer()
|
||||||
|
@ -206,12 +206,9 @@ bool Kml_Printer::set_headers(const std::string& filename, bool time_tag_name)
|
|||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
std::cout << "File " << kml_filename << " cannot be saved. Wrong permissions?" << std::endl;
|
std::cout << "File " << kml_filename << " cannot be saved. Wrong permissions?" << std::endl;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
bool Kml_Printer::print_position(const std::shared_ptr<rtklib_solver>& position, bool print_average_values)
|
bool Kml_Printer::print_position(const std::shared_ptr<rtklib_solver>& position, bool print_average_values)
|
||||||
@ -282,11 +279,8 @@ bool Kml_Printer::print_position(const std::shared_ptr<rtklib_solver>& position,
|
|||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
bool Kml_Printer::close_file()
|
bool Kml_Printer::close_file()
|
||||||
@ -319,11 +313,8 @@ bool Kml_Printer::close_file()
|
|||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
Kml_Printer::~Kml_Printer()
|
Kml_Printer::~Kml_Printer()
|
||||||
|
@ -46,7 +46,7 @@
|
|||||||
using google::LogMessage;
|
using google::LogMessage;
|
||||||
|
|
||||||
|
|
||||||
Rtcm_Printer::Rtcm_Printer(const std::string& filename, bool flag_rtcm_file_dump, bool flag_rtcm_server, bool flag_rtcm_tty_port, uint16_t rtcm_tcp_port, uint16_t rtcm_station_id, std::string rtcm_dump_devname, bool time_tag_name, const std::string& base_path)
|
Rtcm_Printer::Rtcm_Printer(const std::string& filename, bool flag_rtcm_file_dump, bool flag_rtcm_server, bool flag_rtcm_tty_port, uint16_t rtcm_tcp_port, uint16_t rtcm_station_id, const std::string& rtcm_dump_devname, bool time_tag_name, const std::string& base_path)
|
||||||
{
|
{
|
||||||
boost::posix_time::ptime pt = boost::posix_time::second_clock::local_time();
|
boost::posix_time::ptime pt = boost::posix_time::second_clock::local_time();
|
||||||
tm timeinfo = boost::posix_time::to_tm(pt);
|
tm timeinfo = boost::posix_time::to_tm(pt);
|
||||||
|
@ -48,7 +48,7 @@ public:
|
|||||||
/*!
|
/*!
|
||||||
* \brief Default constructor.
|
* \brief Default constructor.
|
||||||
*/
|
*/
|
||||||
Rtcm_Printer(const std::string& filename, bool flag_rtcm_file_dump, bool flag_rtcm_server, bool flag_rtcm_tty_port, uint16_t rtcm_tcp_port, uint16_t rtcm_station_id, std::string rtcm_dump_filename, bool time_tag_name = true, const std::string& base_path = ".");
|
Rtcm_Printer(const std::string& filename, bool flag_rtcm_file_dump, bool flag_rtcm_server, bool flag_rtcm_tty_port, uint16_t rtcm_tcp_port, uint16_t rtcm_station_id, const std::string& rtcm_dump_filename, bool time_tag_name = true, const std::string& base_path = ".");
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* \brief Default destructor.
|
* \brief Default destructor.
|
||||||
|
@ -203,11 +203,8 @@ signed int GalileoE1Pcps8msAmbiguousAcquisition::mag()
|
|||||||
{
|
{
|
||||||
return acquisition_cc_->mag();
|
return acquisition_cc_->mag();
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
void GalileoE1Pcps8msAmbiguousAcquisition::init()
|
void GalileoE1Pcps8msAmbiguousAcquisition::init()
|
||||||
|
@ -334,7 +334,7 @@ gr::basic_block_sptr GalileoE1PcpsAmbiguousAcquisition::get_left_block()
|
|||||||
{
|
{
|
||||||
return acquisition_;
|
return acquisition_;
|
||||||
}
|
}
|
||||||
else if (item_type_ == "cshort")
|
if (item_type_ == "cshort")
|
||||||
{
|
{
|
||||||
return acquisition_;
|
return acquisition_;
|
||||||
}
|
}
|
||||||
|
@ -206,11 +206,8 @@ signed int GalileoE1PcpsCccwsrAmbiguousAcquisition::mag()
|
|||||||
{
|
{
|
||||||
return acquisition_cc_->mag();
|
return acquisition_cc_->mag();
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
void GalileoE1PcpsCccwsrAmbiguousAcquisition::init()
|
void GalileoE1PcpsCccwsrAmbiguousAcquisition::init()
|
||||||
|
@ -237,11 +237,8 @@ GalileoE1PcpsQuickSyncAmbiguousAcquisition::mag()
|
|||||||
{
|
{
|
||||||
return acquisition_cc_->mag();
|
return acquisition_cc_->mag();
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
void GalileoE1PcpsQuickSyncAmbiguousAcquisition::init()
|
void GalileoE1PcpsQuickSyncAmbiguousAcquisition::init()
|
||||||
|
@ -207,11 +207,8 @@ signed int GalileoE1PcpsTongAmbiguousAcquisition::mag()
|
|||||||
{
|
{
|
||||||
return acquisition_cc_->mag();
|
return acquisition_cc_->mag();
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
void GalileoE1PcpsTongAmbiguousAcquisition::init()
|
void GalileoE1PcpsTongAmbiguousAcquisition::init()
|
||||||
|
@ -213,11 +213,8 @@ signed int GalileoE5aNoncoherentIQAcquisitionCaf::mag()
|
|||||||
{
|
{
|
||||||
return acquisition_cc_->mag();
|
return acquisition_cc_->mag();
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
void GalileoE5aNoncoherentIQAcquisitionCaf::init()
|
void GalileoE5aNoncoherentIQAcquisitionCaf::init()
|
||||||
|
@ -319,7 +319,7 @@ gr::basic_block_sptr GlonassL1CaPcpsAcquisition::get_left_block()
|
|||||||
{
|
{
|
||||||
return acquisition_;
|
return acquisition_;
|
||||||
}
|
}
|
||||||
else if (item_type_ == "cshort")
|
if (item_type_ == "cshort")
|
||||||
{
|
{
|
||||||
return acquisition_;
|
return acquisition_;
|
||||||
}
|
}
|
||||||
|
@ -318,7 +318,7 @@ gr::basic_block_sptr GlonassL2CaPcpsAcquisition::get_left_block()
|
|||||||
{
|
{
|
||||||
return acquisition_;
|
return acquisition_;
|
||||||
}
|
}
|
||||||
else if (item_type_ == "cshort")
|
if (item_type_ == "cshort")
|
||||||
{
|
{
|
||||||
return acquisition_;
|
return acquisition_;
|
||||||
}
|
}
|
||||||
|
@ -307,7 +307,7 @@ gr::basic_block_sptr GpsL1CaPcpsAcquisition::get_left_block()
|
|||||||
{
|
{
|
||||||
return acquisition_;
|
return acquisition_;
|
||||||
}
|
}
|
||||||
else if (item_type_ == "cshort")
|
if (item_type_ == "cshort")
|
||||||
{
|
{
|
||||||
return acquisition_;
|
return acquisition_;
|
||||||
}
|
}
|
||||||
|
@ -231,11 +231,8 @@ signed int GpsL1CaPcpsQuickSyncAcquisition::mag()
|
|||||||
{
|
{
|
||||||
return acquisition_cc_->mag();
|
return acquisition_cc_->mag();
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
void GpsL1CaPcpsQuickSyncAcquisition::init()
|
void GpsL1CaPcpsQuickSyncAcquisition::init()
|
||||||
|
@ -193,11 +193,8 @@ signed int GpsL1CaPcpsTongAcquisition::mag()
|
|||||||
{
|
{
|
||||||
return acquisition_cc_->mag();
|
return acquisition_cc_->mag();
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
void GpsL1CaPcpsTongAcquisition::init()
|
void GpsL1CaPcpsTongAcquisition::init()
|
||||||
|
@ -321,7 +321,7 @@ gr::basic_block_sptr GpsL2MPcpsAcquisition::get_left_block()
|
|||||||
{
|
{
|
||||||
return acquisition_;
|
return acquisition_;
|
||||||
}
|
}
|
||||||
else if (item_type_ == "cshort")
|
if (item_type_ == "cshort")
|
||||||
{
|
{
|
||||||
return acquisition_;
|
return acquisition_;
|
||||||
}
|
}
|
||||||
|
@ -309,7 +309,7 @@ gr::basic_block_sptr GpsL5iPcpsAcquisition::get_left_block()
|
|||||||
{
|
{
|
||||||
return acquisition_;
|
return acquisition_;
|
||||||
}
|
}
|
||||||
else if (item_type_ == "cshort")
|
if (item_type_ == "cshort")
|
||||||
{
|
{
|
||||||
return acquisition_;
|
return acquisition_;
|
||||||
}
|
}
|
||||||
|
@ -268,7 +268,7 @@ bool pcps_acquisition::is_fdma()
|
|||||||
LOG(INFO) << "Trying to acquire SV PRN " << d_gnss_synchro->PRN << " with freq " << d_old_freq << " in Glonass Channel " << GLONASS_PRN.at(d_gnss_synchro->PRN) << std::endl;
|
LOG(INFO) << "Trying to acquire SV PRN " << d_gnss_synchro->PRN << " with freq " << d_old_freq << " in Glonass Channel " << GLONASS_PRN.at(d_gnss_synchro->PRN) << std::endl;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
else if (strcmp(d_gnss_synchro->Signal, "2G") == 0)
|
if (strcmp(d_gnss_synchro->Signal, "2G") == 0)
|
||||||
{
|
{
|
||||||
d_old_freq += DFRQ2_GLO * GLONASS_PRN.at(d_gnss_synchro->PRN);
|
d_old_freq += DFRQ2_GLO * GLONASS_PRN.at(d_gnss_synchro->PRN);
|
||||||
LOG(INFO) << "Trying to acquire SV PRN " << d_gnss_synchro->PRN << " with freq " << d_old_freq << " in Glonass Channel " << GLONASS_PRN.at(d_gnss_synchro->PRN) << std::endl;
|
LOG(INFO) << "Trying to acquire SV PRN " << d_gnss_synchro->PRN << " with freq " << d_old_freq << " in Glonass Channel " << GLONASS_PRN.at(d_gnss_synchro->PRN) << std::endl;
|
||||||
|
@ -81,14 +81,11 @@ bool ChannelFsm::Event_start_acquisition()
|
|||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
d_state = 1;
|
d_state = 1;
|
||||||
start_acquisition();
|
start_acquisition();
|
||||||
DLOG(INFO) << "CH = " << channel_ << ". Ev start acquisition";
|
DLOG(INFO) << "CH = " << channel_ << ". Ev start acquisition";
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
bool ChannelFsm::Event_valid_acquisition()
|
bool ChannelFsm::Event_valid_acquisition()
|
||||||
@ -98,14 +95,11 @@ bool ChannelFsm::Event_valid_acquisition()
|
|||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
d_state = 2;
|
d_state = 2;
|
||||||
start_tracking();
|
start_tracking();
|
||||||
DLOG(INFO) << "CH = " << channel_ << ". Ev valid acquisition";
|
DLOG(INFO) << "CH = " << channel_ << ". Ev valid acquisition";
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
bool ChannelFsm::Event_failed_acquisition_repeat()
|
bool ChannelFsm::Event_failed_acquisition_repeat()
|
||||||
@ -115,14 +109,11 @@ bool ChannelFsm::Event_failed_acquisition_repeat()
|
|||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
d_state = 1;
|
d_state = 1;
|
||||||
start_acquisition();
|
start_acquisition();
|
||||||
DLOG(INFO) << "CH = " << channel_ << ". Ev failed acquisition repeat";
|
DLOG(INFO) << "CH = " << channel_ << ". Ev failed acquisition repeat";
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
bool ChannelFsm::Event_failed_acquisition_no_repeat()
|
bool ChannelFsm::Event_failed_acquisition_no_repeat()
|
||||||
@ -132,14 +123,11 @@ bool ChannelFsm::Event_failed_acquisition_no_repeat()
|
|||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
d_state = 3;
|
d_state = 3;
|
||||||
request_satellite();
|
request_satellite();
|
||||||
DLOG(INFO) << "CH = " << channel_ << ". Ev failed acquisition no repeat";
|
DLOG(INFO) << "CH = " << channel_ << ". Ev failed acquisition no repeat";
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
bool ChannelFsm::Event_failed_tracking_standby()
|
bool ChannelFsm::Event_failed_tracking_standby()
|
||||||
@ -149,14 +137,11 @@ bool ChannelFsm::Event_failed_tracking_standby()
|
|||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
d_state = 0U;
|
d_state = 0U;
|
||||||
notify_stop_tracking();
|
notify_stop_tracking();
|
||||||
DLOG(INFO) << "CH = " << channel_ << ". Ev failed tracking standby";
|
DLOG(INFO) << "CH = " << channel_ << ". Ev failed tracking standby";
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
void ChannelFsm::set_acquisition(std::shared_ptr<AcquisitionInterface> acquisition)
|
void ChannelFsm::set_acquisition(std::shared_ptr<AcquisitionInterface> acquisition)
|
||||||
|
@ -144,8 +144,5 @@ gr::basic_block_sptr IbyteToCbyte::get_right_block()
|
|||||||
{
|
{
|
||||||
return conjugate_ic_;
|
return conjugate_ic_;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
return ibyte_to_cbyte_;
|
return ibyte_to_cbyte_;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
@ -142,8 +142,5 @@ gr::basic_block_sptr IbyteToComplex::get_right_block()
|
|||||||
{
|
{
|
||||||
return conjugate_cc_;
|
return conjugate_cc_;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
return gr_interleaved_char_to_complex_;
|
return gr_interleaved_char_to_complex_;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
@ -141,8 +141,5 @@ gr::basic_block_sptr IbyteToCshort::get_right_block()
|
|||||||
{
|
{
|
||||||
return conjugate_sc_;
|
return conjugate_sc_;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
return interleaved_byte_to_complex_short_;
|
return interleaved_byte_to_complex_short_;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
@ -142,8 +142,5 @@ gr::basic_block_sptr IshortToComplex::get_right_block()
|
|||||||
{
|
{
|
||||||
return conjugate_cc_;
|
return conjugate_cc_;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
return gr_interleaved_short_to_complex_;
|
return gr_interleaved_short_to_complex_;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
@ -144,8 +144,5 @@ gr::basic_block_sptr IshortToCshort::get_right_block()
|
|||||||
{
|
{
|
||||||
return conjugate_sc_;
|
return conjugate_sc_;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
return interleaved_short_to_complex_short_;
|
return interleaved_short_to_complex_short_;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
@ -31,7 +31,6 @@
|
|||||||
|
|
||||||
#include "fir_filter.h"
|
#include "fir_filter.h"
|
||||||
#include "configuration_interface.h"
|
#include "configuration_interface.h"
|
||||||
#include <boost/lexical_cast.hpp>
|
|
||||||
#include <utility>
|
#include <utility>
|
||||||
#include <gnuradio/filter/pm_remez.h>
|
#include <gnuradio/filter/pm_remez.h>
|
||||||
#include <glog/logging.h>
|
#include <glog/logging.h>
|
||||||
@ -284,7 +283,7 @@ gr::basic_block_sptr FirFilter::get_left_block()
|
|||||||
{
|
{
|
||||||
return fir_filter_ccf_;
|
return fir_filter_ccf_;
|
||||||
}
|
}
|
||||||
else if ((taps_item_type_ == "float") && (input_item_type_ == "cshort") && (output_item_type_ == "cshort"))
|
if ((taps_item_type_ == "float") && (input_item_type_ == "cshort") && (output_item_type_ == "cshort"))
|
||||||
{
|
{
|
||||||
return cshort_to_float_x2_;
|
return cshort_to_float_x2_;
|
||||||
}
|
}
|
||||||
@ -314,7 +313,7 @@ gr::basic_block_sptr FirFilter::get_right_block()
|
|||||||
{
|
{
|
||||||
return fir_filter_ccf_;
|
return fir_filter_ccf_;
|
||||||
}
|
}
|
||||||
else if ((taps_item_type_ == "float") && (input_item_type_ == "cshort") && (output_item_type_ == "cshort"))
|
if ((taps_item_type_ == "float") && (input_item_type_ == "cshort") && (output_item_type_ == "cshort"))
|
||||||
{
|
{
|
||||||
return short_x2_to_cshort_;
|
return short_x2_to_cshort_;
|
||||||
}
|
}
|
||||||
@ -369,23 +368,23 @@ void FirFilter::init()
|
|||||||
double option_value;
|
double option_value;
|
||||||
for (unsigned int i = 0; i < number_of_bands; i++)
|
for (unsigned int i = 0; i < number_of_bands; i++)
|
||||||
{
|
{
|
||||||
option = ".band" + boost::lexical_cast<std::string>(i + 1) + "_begin";
|
option = ".band" + std::to_string(i + 1) + "_begin";
|
||||||
option_value = config_->property(role_ + option, default_bands[i]);
|
option_value = config_->property(role_ + option, default_bands[i]);
|
||||||
bands.push_back(option_value);
|
bands.push_back(option_value);
|
||||||
|
|
||||||
option = ".band" + boost::lexical_cast<std::string>(i + 1) + "_end";
|
option = ".band" + std::to_string(i + 1) + "_end";
|
||||||
option_value = config_->property(role_ + option, default_bands[i]);
|
option_value = config_->property(role_ + option, default_bands[i]);
|
||||||
bands.push_back(option_value);
|
bands.push_back(option_value);
|
||||||
|
|
||||||
option = ".ampl" + boost::lexical_cast<std::string>(i + 1) + "_begin";
|
option = ".ampl" + std::to_string(i + 1) + "_begin";
|
||||||
option_value = config_->property(role_ + option, default_bands[i]);
|
option_value = config_->property(role_ + option, default_bands[i]);
|
||||||
ampl.push_back(option_value);
|
ampl.push_back(option_value);
|
||||||
|
|
||||||
option = ".ampl" + boost::lexical_cast<std::string>(i + 1) + "_end";
|
option = ".ampl" + std::to_string(i + 1) + "_end";
|
||||||
option_value = config_->property(role_ + option, default_bands[i]);
|
option_value = config_->property(role_ + option, default_bands[i]);
|
||||||
ampl.push_back(option_value);
|
ampl.push_back(option_value);
|
||||||
|
|
||||||
option = ".band" + boost::lexical_cast<std::string>(i + 1) + "_error";
|
option = ".band" + std::to_string(i + 1) + "_error";
|
||||||
option_value = config_->property(role_ + option, default_bands[i]);
|
option_value = config_->property(role_ + option, default_bands[i]);
|
||||||
error_w.push_back(option_value);
|
error_w.push_back(option_value);
|
||||||
}
|
}
|
||||||
|
@ -31,7 +31,6 @@
|
|||||||
|
|
||||||
#include "freq_xlating_fir_filter.h"
|
#include "freq_xlating_fir_filter.h"
|
||||||
#include "configuration_interface.h"
|
#include "configuration_interface.h"
|
||||||
#include <boost/lexical_cast.hpp>
|
|
||||||
#include <utility>
|
#include <utility>
|
||||||
#include <gnuradio/blocks/file_sink.h>
|
#include <gnuradio/blocks/file_sink.h>
|
||||||
#include <gnuradio/filter/pm_remez.h>
|
#include <gnuradio/filter/pm_remez.h>
|
||||||
@ -84,23 +83,23 @@ FreqXlatingFirFilter::FreqXlatingFirFilter(ConfigurationInterface* configuration
|
|||||||
|
|
||||||
for (unsigned int i = 0; i < number_of_bands; i++)
|
for (unsigned int i = 0; i < number_of_bands; i++)
|
||||||
{
|
{
|
||||||
option = ".band" + boost::lexical_cast<std::string>(i + 1) + "_begin";
|
option = ".band" + std::to_string(i + 1) + "_begin";
|
||||||
option_value = config_->property(role_ + option, default_bands[i]);
|
option_value = config_->property(role_ + option, default_bands[i]);
|
||||||
bands.push_back(option_value);
|
bands.push_back(option_value);
|
||||||
|
|
||||||
option = ".band" + boost::lexical_cast<std::string>(i + 1) + "_end";
|
option = ".band" + std::to_string(i + 1) + "_end";
|
||||||
option_value = config_->property(role_ + option, default_bands[i]);
|
option_value = config_->property(role_ + option, default_bands[i]);
|
||||||
bands.push_back(option_value);
|
bands.push_back(option_value);
|
||||||
|
|
||||||
option = ".ampl" + boost::lexical_cast<std::string>(i + 1) + "_begin";
|
option = ".ampl" + std::to_string(i + 1) + "_begin";
|
||||||
option_value = config_->property(role_ + option, default_bands[i]);
|
option_value = config_->property(role_ + option, default_bands[i]);
|
||||||
ampl.push_back(option_value);
|
ampl.push_back(option_value);
|
||||||
|
|
||||||
option = ".ampl" + boost::lexical_cast<std::string>(i + 1) + "_end";
|
option = ".ampl" + std::to_string(i + 1) + "_end";
|
||||||
option_value = config_->property(role_ + option, default_bands[i]);
|
option_value = config_->property(role_ + option, default_bands[i]);
|
||||||
ampl.push_back(option_value);
|
ampl.push_back(option_value);
|
||||||
|
|
||||||
option = ".band" + boost::lexical_cast<std::string>(i + 1) + "_error";
|
option = ".band" + std::to_string(i + 1) + "_error";
|
||||||
option_value = config_->property(role_ + option, default_bands[i]);
|
option_value = config_->property(role_ + option, default_bands[i]);
|
||||||
error_w.push_back(option_value);
|
error_w.push_back(option_value);
|
||||||
}
|
}
|
||||||
@ -324,7 +323,7 @@ gr::basic_block_sptr FreqXlatingFirFilter::get_left_block()
|
|||||||
{
|
{
|
||||||
return freq_xlating_fir_filter_ccf_;
|
return freq_xlating_fir_filter_ccf_;
|
||||||
}
|
}
|
||||||
else if ((taps_item_type_ == "float") && (input_item_type_ == "float") && (output_item_type_ == "gr_complex"))
|
if ((taps_item_type_ == "float") && (input_item_type_ == "float") && (output_item_type_ == "gr_complex"))
|
||||||
{
|
{
|
||||||
return freq_xlating_fir_filter_fcf_;
|
return freq_xlating_fir_filter_fcf_;
|
||||||
}
|
}
|
||||||
@ -358,7 +357,7 @@ gr::basic_block_sptr FreqXlatingFirFilter::get_right_block()
|
|||||||
{
|
{
|
||||||
return freq_xlating_fir_filter_ccf_;
|
return freq_xlating_fir_filter_ccf_;
|
||||||
}
|
}
|
||||||
else if ((taps_item_type_ == "float") && (input_item_type_ == "float") && (output_item_type_ == "gr_complex"))
|
if ((taps_item_type_ == "float") && (input_item_type_ == "float") && (output_item_type_ == "gr_complex"))
|
||||||
{
|
{
|
||||||
return freq_xlating_fir_filter_fcf_;
|
return freq_xlating_fir_filter_fcf_;
|
||||||
}
|
}
|
||||||
|
@ -158,15 +158,12 @@ gr::basic_block_sptr PulseBlankingFilter::get_left_block()
|
|||||||
{
|
{
|
||||||
return freq_xlating_;
|
return freq_xlating_;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
return pulse_blanking_cc_;
|
return pulse_blanking_cc_;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
return nullptr;
|
|
||||||
LOG(ERROR) << " Unknown input filter input/output item type conversion";
|
LOG(ERROR) << " Unknown input filter input/output item type conversion";
|
||||||
|
return nullptr;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -177,9 +174,6 @@ gr::basic_block_sptr PulseBlankingFilter::get_right_block()
|
|||||||
{
|
{
|
||||||
return pulse_blanking_cc_;
|
return pulse_blanking_cc_;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
return nullptr;
|
|
||||||
LOG(ERROR) << " Unknown input filter input/output item type conversion";
|
LOG(ERROR) << " Unknown input filter input/output item type conversion";
|
||||||
}
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
@ -79,9 +79,7 @@ bool gnss_sdr_create_directory(const std::string& foldername)
|
|||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
os_test_file.close();
|
os_test_file.close();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
@ -90,21 +90,16 @@ int gnss_sdr_valve::work(int noutput_items,
|
|||||||
{
|
{
|
||||||
return -1; // Done!
|
return -1; // Done!
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
usleep(1000000);
|
usleep(1000000);
|
||||||
return 0; // do not produce or consume
|
return 0; // do not produce or consume
|
||||||
}
|
}
|
||||||
}
|
|
||||||
unsigned long long n = std::min(d_nitems - d_ncopied_items, static_cast<long long unsigned int>(noutput_items));
|
unsigned long long n = std::min(d_nitems - d_ncopied_items, static_cast<long long unsigned int>(noutput_items));
|
||||||
if (n == 0) return 0;
|
if (n == 0) return 0;
|
||||||
memcpy(output_items[0], input_items[0], n * input_signature()->sizeof_stream_item(0));
|
memcpy(output_items[0], input_items[0], n * input_signature()->sizeof_stream_item(0));
|
||||||
d_ncopied_items += n;
|
d_ncopied_items += n;
|
||||||
return n;
|
return n;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
memcpy(output_items[0], input_items[0], noutput_items * input_signature()->sizeof_stream_item(0));
|
memcpy(output_items[0], input_items[0], noutput_items * input_signature()->sizeof_stream_item(0));
|
||||||
return noutput_items;
|
return noutput_items;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
@ -44,13 +44,10 @@ std::deque<bool> l5i_xa_shift(std::deque<bool> xa)
|
|||||||
{
|
{
|
||||||
return std::deque<bool>{1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1};
|
return std::deque<bool>{1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1};
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
std::deque<bool> out(xa.begin(), xa.end() - 1);
|
std::deque<bool> out(xa.begin(), xa.end() - 1);
|
||||||
out.push_front(xa[12] xor xa[11] xor xa[9] xor xa[8]);
|
out.push_front(xa[12] xor xa[11] xor xa[9] xor xa[8]);
|
||||||
return out;
|
return out;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
std::deque<bool> l5q_xa_shift(std::deque<bool> xa)
|
std::deque<bool> l5q_xa_shift(std::deque<bool> xa)
|
||||||
@ -59,13 +56,10 @@ std::deque<bool> l5q_xa_shift(std::deque<bool> xa)
|
|||||||
{
|
{
|
||||||
return std::deque<bool>{1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1};
|
return std::deque<bool>{1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1};
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
std::deque<bool> out(xa.begin(), xa.end() - 1);
|
std::deque<bool> out(xa.begin(), xa.end() - 1);
|
||||||
out.push_front(xa[12] xor xa[11] xor xa[9] xor xa[8]);
|
out.push_front(xa[12] xor xa[11] xor xa[9] xor xa[8]);
|
||||||
return out;
|
return out;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
std::deque<bool> l5i_xb_shift(std::deque<bool> xb)
|
std::deque<bool> l5i_xb_shift(std::deque<bool> xb)
|
||||||
|
@ -149,7 +149,7 @@ gr::basic_block_sptr Pass_Through::get_left_block()
|
|||||||
{
|
{
|
||||||
return conjugate_cc_;
|
return conjugate_cc_;
|
||||||
}
|
}
|
||||||
else if (item_type_ == "cshort")
|
if (item_type_ == "cshort")
|
||||||
{
|
{
|
||||||
return conjugate_sc_;
|
return conjugate_sc_;
|
||||||
}
|
}
|
||||||
@ -176,7 +176,7 @@ gr::basic_block_sptr Pass_Through::get_right_block()
|
|||||||
{
|
{
|
||||||
return conjugate_cc_;
|
return conjugate_cc_;
|
||||||
}
|
}
|
||||||
else if (item_type_ == "cshort")
|
if (item_type_ == "cshort")
|
||||||
{
|
{
|
||||||
return conjugate_sc_;
|
return conjugate_sc_;
|
||||||
}
|
}
|
||||||
|
@ -400,8 +400,7 @@ void readtec(const char *file, nav_t *nav, int opt)
|
|||||||
trace(2, "ionex file open error %s\n", efiles[i]);
|
trace(2, "ionex file open error %s\n", efiles[i]);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
/* read ionex header */
|
/* read ionex header */
|
||||||
if (readionexh(fp, lats, lons, hgts, &rb, &nexp, dcb, rms) <= 0.0)
|
if (readionexh(fp, lats, lons, hgts, &rb, &nexp, dcb, rms) <= 0.0)
|
||||||
{
|
{
|
||||||
@ -409,9 +408,9 @@ void readtec(const char *file, nav_t *nav, int opt)
|
|||||||
fclose(fp);
|
fclose(fp);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* read ionex body */
|
/* read ionex body */
|
||||||
readionexb(fp, lats, lons, hgts, rb, nexp, nav);
|
readionexb(fp, lats, lons, hgts, rb, nexp, nav);
|
||||||
}
|
|
||||||
fclose(fp);
|
fclose(fp);
|
||||||
}
|
}
|
||||||
for (i = 0; i < MAXEXFILE; i++) free(efiles[i]);
|
for (i = 0; i < MAXEXFILE; i++) free(efiles[i]);
|
||||||
|
@ -197,15 +197,13 @@ int search(int n, int m, const double *L, const double *D,
|
|||||||
{
|
{
|
||||||
if (k == n - 1)
|
if (k == n - 1)
|
||||||
break;
|
break;
|
||||||
else
|
|
||||||
{
|
|
||||||
k++;
|
k++;
|
||||||
z[k] += step[k];
|
z[k] += step[k];
|
||||||
y = zb[k] - z[k];
|
y = zb[k] - z[k];
|
||||||
step[k] = -step[k] - SGN_LAMBDA(step[k]);
|
step[k] = -step[k] - SGN_LAMBDA(step[k]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
for (i = 0; i < m - 1; i++)
|
for (i = 0; i < m - 1; i++)
|
||||||
{ /* sort by s */
|
{ /* sort by s */
|
||||||
for (j = i + 1; j < m; j++)
|
for (j = i + 1; j < m; j++)
|
||||||
|
@ -243,7 +243,7 @@ double prange(const obsd_t *obs, const nav_t *nav, const double *azel,
|
|||||||
return 0.0;
|
return 0.0;
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (obs->code[i] != CODE_NONE and obs->code[j] == CODE_NONE)
|
if (obs->code[i] != CODE_NONE and obs->code[j] == CODE_NONE)
|
||||||
{
|
{
|
||||||
P1 += P1_C1; /* C1->P1 */
|
P1 += P1_C1; /* C1->P1 */
|
||||||
PC = P1 - P1_P2;
|
PC = P1 - P1_P2;
|
||||||
|
@ -194,7 +194,7 @@ int input_rtcm2(rtcm_t *rtcm, unsigned char data)
|
|||||||
}
|
}
|
||||||
if (++rtcm->nbit < 30)
|
if (++rtcm->nbit < 30)
|
||||||
continue;
|
continue;
|
||||||
else
|
|
||||||
rtcm->nbit = 0;
|
rtcm->nbit = 0;
|
||||||
|
|
||||||
/* check parity */
|
/* check parity */
|
||||||
|
@ -1775,11 +1775,9 @@ unsigned int tickget(void)
|
|||||||
{
|
{
|
||||||
return tp.tv_sec * 1000u + tp.tv_nsec / 1000000u;
|
return tp.tv_sec * 1000u + tp.tv_nsec / 1000000u;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
gettimeofday(&tv, nullptr);
|
gettimeofday(&tv, nullptr);
|
||||||
return tv.tv_sec * 1000u + tv.tv_usec / 1000u;
|
return tv.tv_sec * 1000u + tv.tv_usec / 1000u;
|
||||||
}
|
|
||||||
#else
|
#else
|
||||||
gettimeofday(&tv, NULL);
|
gettimeofday(&tv, NULL);
|
||||||
return tv.tv_sec * 1000u + tv.tv_usec / 1000u;
|
return tv.tv_sec * 1000u + tv.tv_usec / 1000u;
|
||||||
@ -3635,7 +3633,7 @@ double satwavelen(int sat, int frq, const nav_t *nav)
|
|||||||
{
|
{
|
||||||
if (frq == 0)
|
if (frq == 0)
|
||||||
return SPEED_OF_LIGHT / FREQ1_BDS; /* B1 */
|
return SPEED_OF_LIGHT / FREQ1_BDS; /* B1 */
|
||||||
else if (frq == 1)
|
if (frq == 1)
|
||||||
return SPEED_OF_LIGHT / FREQ2_BDS; /* B2 */
|
return SPEED_OF_LIGHT / FREQ2_BDS; /* B2 */
|
||||||
else if (frq == 2)
|
else if (frq == 2)
|
||||||
return SPEED_OF_LIGHT / FREQ3_BDS; /* B3 */
|
return SPEED_OF_LIGHT / FREQ3_BDS; /* B3 */
|
||||||
@ -3644,7 +3642,7 @@ double satwavelen(int sat, int frq, const nav_t *nav)
|
|||||||
{
|
{
|
||||||
if (frq == 0)
|
if (frq == 0)
|
||||||
return SPEED_OF_LIGHT / FREQ1; /* L1/E1 */
|
return SPEED_OF_LIGHT / FREQ1; /* L1/E1 */
|
||||||
else if (frq == 1)
|
if (frq == 1)
|
||||||
return SPEED_OF_LIGHT / FREQ2; /* L2 */
|
return SPEED_OF_LIGHT / FREQ2; /* L2 */
|
||||||
else if (frq == 2)
|
else if (frq == 2)
|
||||||
return SPEED_OF_LIGHT / FREQ5; /* L5/E5a */
|
return SPEED_OF_LIGHT / FREQ5; /* L5/E5a */
|
||||||
@ -3886,7 +3884,7 @@ double interpc(const double coef[], double lat)
|
|||||||
int i = (int)(lat / 15.0);
|
int i = (int)(lat / 15.0);
|
||||||
if (i < 1)
|
if (i < 1)
|
||||||
return coef[0];
|
return coef[0];
|
||||||
else if (i > 4)
|
if (i > 4)
|
||||||
return coef[4];
|
return coef[4];
|
||||||
return coef[i - 1] * (1.0 - lat / 15.0 + i) + coef[i] * (lat / 15.0 - i);
|
return coef[i - 1] * (1.0 - lat / 15.0 + i) + coef[i] * (lat / 15.0 - i);
|
||||||
}
|
}
|
||||||
@ -3999,7 +3997,7 @@ double interpvar(double ang, const double *var)
|
|||||||
int i = (int)a;
|
int i = (int)a;
|
||||||
if (i < 0)
|
if (i < 0)
|
||||||
return var[0];
|
return var[0];
|
||||||
else if (i >= 18)
|
if (i >= 18)
|
||||||
return var[18];
|
return var[18];
|
||||||
return var[i] * (1.0 - a + i) + var[i + 1] * (a - i);
|
return var[i] * (1.0 - a + i) + var[i + 1] * (a - i);
|
||||||
}
|
}
|
||||||
|
@ -1616,7 +1616,6 @@ int ddmat(rtk_t *rtk, double *D)
|
|||||||
rtk->ssat[i - k].fix[f] = 2; /* fix */
|
rtk->ssat[i - k].fix[f] = 2; /* fix */
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
rtk->ssat[i - k].fix[f] = 1;
|
rtk->ssat[i - k].fix[f] = 1;
|
||||||
}
|
}
|
||||||
for (j = k; j < k + MAXSAT; j++)
|
for (j = k; j < k + MAXSAT; j++)
|
||||||
|
@ -79,7 +79,7 @@ const char *opt2sep(const solopt_t *opt)
|
|||||||
{
|
{
|
||||||
if (!*opt->sep)
|
if (!*opt->sep)
|
||||||
return " ";
|
return " ";
|
||||||
else if (!strcmp(opt->sep, "\\t"))
|
if (!strcmp(opt->sep, "\\t"))
|
||||||
return "\t";
|
return "\t";
|
||||||
return opt->sep;
|
return opt->sep;
|
||||||
}
|
}
|
||||||
@ -343,7 +343,7 @@ int decode_nmea(char *buff, sol_t *sol)
|
|||||||
{
|
{
|
||||||
return decode_nmearmc(val + 1, n - 1, sol);
|
return decode_nmearmc(val + 1, n - 1, sol);
|
||||||
}
|
}
|
||||||
else if (!strcmp(val[0], "$GPGGA"))
|
if (!strcmp(val[0], "$GPGGA"))
|
||||||
{
|
{
|
||||||
return decode_nmeagga(val + 1, n - 1, sol);
|
return decode_nmeagga(val + 1, n - 1, sol);
|
||||||
}
|
}
|
||||||
|
@ -1227,7 +1227,7 @@ int rspntrip_s(ntrip_t *ntrip, char *msg)
|
|||||||
tracet(2, "rspntrip_s: response ok nb=%d\n", ntrip->nb);
|
tracet(2, "rspntrip_s: response ok nb=%d\n", ntrip->nb);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
else if ((p = strstr((char *)ntrip->buff, NTRIP_RSP_ERROR)))
|
if ((p = strstr((char *)ntrip->buff, NTRIP_RSP_ERROR)))
|
||||||
{ /* error */
|
{ /* error */
|
||||||
nb = ntrip->nb < MAXSTATMSG ? ntrip->nb : MAXSTATMSG;
|
nb = ntrip->nb < MAXSTATMSG ? ntrip->nb : MAXSTATMSG;
|
||||||
// strncpy(msg, (char *)ntrip->buff, nb); This line triggers a warning. Replaced by;
|
// strncpy(msg, (char *)ntrip->buff, nb); This line triggers a warning. Replaced by;
|
||||||
@ -2362,7 +2362,7 @@ void strsendcmd(stream_t *str, const char *cmd)
|
|||||||
}
|
}
|
||||||
if (*q == '\0')
|
if (*q == '\0')
|
||||||
break;
|
break;
|
||||||
else
|
|
||||||
p = q + 1;
|
p = q + 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -409,11 +409,8 @@ bool hybrid_observables_cc::interp_trk_obs(Gnss_Synchro &interpolated_obs, const
|
|||||||
// << " ,diff: " << old_abs_diff << " samples (" << static_cast<double>(old_abs_diff) / static_cast<double>(d_gnss_synchro_history->at(ch, nearest_element).fs) << " s)\n";
|
// << " ,diff: " << old_abs_diff << " samples (" << static_cast<double>(old_abs_diff) / static_cast<double>(d_gnss_synchro_history->at(ch, nearest_element).fs) << " s)\n";
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// std::cout << "ALERT: Channel " << ch << " interp buff idx " << nearest_element
|
// std::cout << "ALERT: Channel " << ch << " interp buff idx " << nearest_element
|
||||||
@ -616,8 +613,5 @@ int hybrid_observables_cc::general_work(int noutput_items __attribute__((unused)
|
|||||||
}
|
}
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
@ -105,7 +105,7 @@ void signal_generator_c::init()
|
|||||||
{
|
{
|
||||||
start_phase_rad_.push_back(0);
|
start_phase_rad_.push_back(0);
|
||||||
current_data_bit_int_.push_back(1);
|
current_data_bit_int_.push_back(1);
|
||||||
current_data_bits_.push_back(gr_complex(1, 0));
|
current_data_bits_.emplace_back(1, 0);
|
||||||
ms_counter_.push_back(0);
|
ms_counter_.push_back(0);
|
||||||
data_modulation_.push_back((Galileo_E5a_I_SECONDARY_CODE.at(0) == '0' ? 1 : -1));
|
data_modulation_.push_back((Galileo_E5a_I_SECONDARY_CODE.at(0) == '0' ? 1 : -1));
|
||||||
pilot_modulation_.push_back((Galileo_E5a_Q_SECONDARY_CODE[PRN_[sat]].at(0) == '0' ? 1 : -1));
|
pilot_modulation_.push_back((Galileo_E5a_Q_SECONDARY_CODE[PRN_[sat]].at(0) == '0' ? 1 : -1));
|
||||||
|
@ -370,15 +370,9 @@ gr::basic_block_sptr FileSignalSource::get_right_block()
|
|||||||
{
|
{
|
||||||
return valve_;
|
return valve_;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
if (enable_throttle_control_ == true)
|
if (enable_throttle_control_ == true)
|
||||||
{
|
{
|
||||||
return throttle_;
|
return throttle_;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
return file_source_;
|
return file_source_;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
|
@ -309,15 +309,9 @@ gr::basic_block_sptr NsrFileSignalSource::get_right_block()
|
|||||||
{
|
{
|
||||||
return valve_;
|
return valve_;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
if (enable_throttle_control_ == true)
|
if (enable_throttle_control_ == true)
|
||||||
{
|
{
|
||||||
return throttle_;
|
return throttle_;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
return unpack_byte_;
|
return unpack_byte_;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
|
@ -308,15 +308,9 @@ gr::basic_block_sptr SpirFileSignalSource::get_right_block()
|
|||||||
{
|
{
|
||||||
return valve_;
|
return valve_;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
if (enable_throttle_control_ == true)
|
if (enable_throttle_control_ == true)
|
||||||
{
|
{
|
||||||
return throttle_;
|
return throttle_;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
return unpack_intspir_;
|
return unpack_intspir_;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
|
@ -318,15 +318,9 @@ gr::basic_block_sptr TwoBitCpxFileSignalSource::get_right_block()
|
|||||||
{
|
{
|
||||||
return valve_;
|
return valve_;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
if (enable_throttle_control_ == true)
|
if (enable_throttle_control_ == true)
|
||||||
{
|
{
|
||||||
return throttle_;
|
return throttle_;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
return unpack_byte_;
|
return unpack_byte_;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
|
@ -92,14 +92,14 @@ UhdSignalSource::UhdSignalSource(ConfigurationInterface* configuration,
|
|||||||
for (int i = 0; i < RF_channels_; i++)
|
for (int i = 0; i < RF_channels_; i++)
|
||||||
{
|
{
|
||||||
// Single RF channel UHD operation (backward compatible config file format)
|
// Single RF channel UHD operation (backward compatible config file format)
|
||||||
samples_.push_back(configuration->property(role + ".samples" + boost::lexical_cast<std::string>(i), 0));
|
samples_.push_back(configuration->property(role + ".samples" + std::to_string(i), 0));
|
||||||
dump_.push_back(configuration->property(role + ".dump" + boost::lexical_cast<std::string>(i), false));
|
dump_.push_back(configuration->property(role + ".dump" + std::to_string(i), false));
|
||||||
dump_filename_.push_back(configuration->property(role + ".dump_filename" + boost::lexical_cast<std::string>(i), default_dump_file));
|
dump_filename_.push_back(configuration->property(role + ".dump_filename" + std::to_string(i), default_dump_file));
|
||||||
|
|
||||||
freq_.push_back(configuration->property(role + ".freq" + boost::lexical_cast<std::string>(i), GPS_L1_FREQ_HZ));
|
freq_.push_back(configuration->property(role + ".freq" + std::to_string(i), GPS_L1_FREQ_HZ));
|
||||||
gain_.push_back(configuration->property(role + ".gain" + boost::lexical_cast<std::string>(i), 50.0));
|
gain_.push_back(configuration->property(role + ".gain" + std::to_string(i), 50.0));
|
||||||
|
|
||||||
IF_bandwidth_hz_.push_back(configuration->property(role + ".IF_bandwidth_hz" + boost::lexical_cast<std::string>(i), sample_rate_ / 2));
|
IF_bandwidth_hz_.push_back(configuration->property(role + ".IF_bandwidth_hz" + std::to_string(i), sample_rate_ / 2));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// 1. Make the uhd driver instance
|
// 1. Make the uhd driver instance
|
||||||
@ -314,8 +314,5 @@ gr::basic_block_sptr UhdSignalSource::get_right_block(int RF_channel)
|
|||||||
{
|
{
|
||||||
return valve_.at(RF_channel);
|
return valve_.at(RF_channel);
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
return uhd_source_;
|
return uhd_source_;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
@ -366,12 +366,9 @@ int labsat23_source::general_work(int noutput_items,
|
|||||||
binary_input_file->seekg(header_bytes, binary_input_file->beg);
|
binary_input_file->seekg(header_bytes, binary_input_file->beg);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
std::cout << "Labsat file header error: section 2 is not available." << std::endl;
|
std::cout << "Labsat file header error: section 2 is not available." << std::endl;
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
std::cout << "Labsat file read error: file is empty." << std::endl;
|
std::cout << "Labsat file read error: file is empty." << std::endl;
|
||||||
@ -408,8 +405,7 @@ int labsat23_source::general_work(int noutput_items,
|
|||||||
}
|
}
|
||||||
return output_pointer;
|
return output_pointer;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
// trigger the read of the next file in the sequence
|
// trigger the read of the next file in the sequence
|
||||||
std::cout << "End of current file, reading the next Labsat file in sequence: " << generate_filename() << std::endl;
|
std::cout << "End of current file, reading the next Labsat file in sequence: " << generate_filename() << std::endl;
|
||||||
|
|
||||||
@ -426,7 +422,6 @@ int labsat23_source::general_work(int noutput_items,
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
@ -459,8 +454,7 @@ int labsat23_source::general_work(int noutput_items,
|
|||||||
}
|
}
|
||||||
return output_pointer;
|
return output_pointer;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
// trigger the read of the next file in the sequence
|
// trigger the read of the next file in the sequence
|
||||||
std::cout << "End of current file, reading the next Labsat file in sequence: " << generate_filename() << std::endl;
|
std::cout << "End of current file, reading the next Labsat file in sequence: " << generate_filename() << std::endl;
|
||||||
|
|
||||||
@ -477,7 +471,6 @@ int labsat23_source::general_work(int noutput_items,
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -66,7 +66,7 @@ bool systemBytesAreBigEndian()
|
|||||||
b.byte = static_cast<int8_t>(0x01);
|
b.byte = static_cast<int8_t>(0x01);
|
||||||
if (*(char *)&b.byte == 1)
|
if (*(char *)&b.byte == 1)
|
||||||
return false;
|
return false;
|
||||||
else
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -126,8 +126,7 @@ double rtl_tcp_dongle_info::clip_gain(int gain) const
|
|||||||
// no defined gains to clip to
|
// no defined gains to clip to
|
||||||
return gain;
|
return gain;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
double last_stop = gains.front();
|
double last_stop = gains.front();
|
||||||
BOOST_FOREACH (double g, gains)
|
BOOST_FOREACH (double g, gains)
|
||||||
{
|
{
|
||||||
@ -148,7 +147,6 @@ double rtl_tcp_dongle_info::clip_gain(int gain) const
|
|||||||
}
|
}
|
||||||
return last_stop;
|
return last_stop;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
bool rtl_tcp_dongle_info::is_valid() const
|
bool rtl_tcp_dongle_info::is_valid() const
|
||||||
|
@ -439,7 +439,7 @@ void galileo_telemetry_decoder_cc::set_channel(int32_t channel)
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
d_dump_filename = "telemetry";
|
d_dump_filename = "telemetry";
|
||||||
d_dump_filename.append(boost::lexical_cast<std::string>(d_channel));
|
d_dump_filename.append(std::to_string(d_channel));
|
||||||
d_dump_filename.append(".dat");
|
d_dump_filename.append(".dat");
|
||||||
d_dump_file.exceptions(std::ifstream::failbit | std::ifstream::badbit);
|
d_dump_file.exceptions(std::ifstream::failbit | std::ifstream::badbit);
|
||||||
d_dump_file.open(d_dump_filename.c_str(), std::ios::out | std::ios::binary);
|
d_dump_file.open(d_dump_filename.c_str(), std::ios::out | std::ios::binary);
|
||||||
@ -780,8 +780,5 @@ int galileo_telemetry_decoder_cc::general_work(int noutput_items __attribute__((
|
|||||||
*out[0] = current_symbol;
|
*out[0] = current_symbol;
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
@ -244,7 +244,7 @@ void glonass_l1_ca_telemetry_decoder_cc::set_channel(int32_t channel)
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
d_dump_filename = "telemetry";
|
d_dump_filename = "telemetry";
|
||||||
d_dump_filename.append(boost::lexical_cast<std::string>(d_channel));
|
d_dump_filename.append(std::to_string(d_channel));
|
||||||
d_dump_filename.append(".dat");
|
d_dump_filename.append(".dat");
|
||||||
d_dump_file.exceptions(std::ifstream::failbit | std::ifstream::badbit);
|
d_dump_file.exceptions(std::ifstream::failbit | std::ifstream::badbit);
|
||||||
d_dump_file.open(d_dump_filename.c_str(), std::ios::out | std::ios::binary);
|
d_dump_file.open(d_dump_filename.c_str(), std::ios::out | std::ios::binary);
|
||||||
|
@ -244,7 +244,7 @@ void glonass_l2_ca_telemetry_decoder_cc::set_channel(int32_t channel)
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
d_dump_filename = "telemetry";
|
d_dump_filename = "telemetry";
|
||||||
d_dump_filename.append(boost::lexical_cast<std::string>(d_channel));
|
d_dump_filename.append(std::to_string(d_channel));
|
||||||
d_dump_filename.append(".dat");
|
d_dump_filename.append(".dat");
|
||||||
d_dump_file.exceptions(std::ifstream::failbit | std::ifstream::badbit);
|
d_dump_file.exceptions(std::ifstream::failbit | std::ifstream::badbit);
|
||||||
d_dump_file.open(d_dump_filename.c_str(), std::ios::out | std::ios::binary);
|
d_dump_file.open(d_dump_filename.c_str(), std::ios::out | std::ios::binary);
|
||||||
|
@ -136,8 +136,10 @@ bool gps_l1_ca_telemetry_decoder_cc::gps_word_parityCheck(uint32_t gpsword)
|
|||||||
parity = t ^ _rotl(t, 6) ^ _rotl(t, 12) ^ _rotl(t, 18) ^ _rotl(t, 24);
|
parity = t ^ _rotl(t, 6) ^ _rotl(t, 12) ^ _rotl(t, 18) ^ _rotl(t, 24);
|
||||||
parity = parity & 0x3F;
|
parity = parity & 0x3F;
|
||||||
if (parity == (gpsword & 0x3F))
|
if (parity == (gpsword & 0x3F))
|
||||||
|
{
|
||||||
return (true);
|
return (true);
|
||||||
else
|
}
|
||||||
|
|
||||||
return (false);
|
return (false);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -165,7 +167,7 @@ void gps_l1_ca_telemetry_decoder_cc::set_channel(int32_t channel)
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
d_dump_filename = "telemetry";
|
d_dump_filename = "telemetry";
|
||||||
d_dump_filename.append(boost::lexical_cast<std::string>(d_channel));
|
d_dump_filename.append(std::to_string(d_channel));
|
||||||
d_dump_filename.append(".dat");
|
d_dump_filename.append(".dat");
|
||||||
d_dump_file.exceptions(std::ifstream::failbit | std::ifstream::badbit);
|
d_dump_file.exceptions(std::ifstream::failbit | std::ifstream::badbit);
|
||||||
d_dump_file.open(d_dump_filename.c_str(), std::ios::out | std::ios::binary);
|
d_dump_file.open(d_dump_filename.c_str(), std::ios::out | std::ios::binary);
|
||||||
@ -474,8 +476,7 @@ int gps_l1_ca_telemetry_decoder_cc::general_work(int noutput_items __attribute__
|
|||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
@ -109,7 +109,7 @@ void gps_l2c_telemetry_decoder_cc::set_channel(int channel)
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
d_dump_filename = "telemetry_L2CM_";
|
d_dump_filename = "telemetry_L2CM_";
|
||||||
d_dump_filename.append(boost::lexical_cast<std::string>(d_channel));
|
d_dump_filename.append(std::to_string(d_channel));
|
||||||
d_dump_filename.append(".dat");
|
d_dump_filename.append(".dat");
|
||||||
d_dump_file.exceptions(std::ifstream::failbit | std::ifstream::badbit);
|
d_dump_file.exceptions(std::ifstream::failbit | std::ifstream::badbit);
|
||||||
d_dump_file.open(d_dump_filename.c_str(), std::ios::out | std::ios::binary);
|
d_dump_file.open(d_dump_filename.c_str(), std::ios::out | std::ios::binary);
|
||||||
|
@ -121,7 +121,7 @@ void gps_l5_telemetry_decoder_cc::set_channel(int32_t channel)
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
d_dump_filename = "telemetry_L5_";
|
d_dump_filename = "telemetry_L5_";
|
||||||
d_dump_filename.append(boost::lexical_cast<std::string>(d_channel));
|
d_dump_filename.append(std::to_string(d_channel));
|
||||||
d_dump_filename.append(".dat");
|
d_dump_filename.append(".dat");
|
||||||
d_dump_file.exceptions(std::ifstream::failbit | std::ifstream::badbit);
|
d_dump_file.exceptions(std::ifstream::failbit | std::ifstream::badbit);
|
||||||
d_dump_file.open(d_dump_filename.c_str(), std::ios::out | std::ios::binary);
|
d_dump_file.open(d_dump_filename.c_str(), std::ios::out | std::ios::binary);
|
||||||
@ -282,8 +282,5 @@ int gps_l5_telemetry_decoder_cc::general_work(int noutput_items __attribute__((u
|
|||||||
out[0] = current_synchro_data;
|
out[0] = current_synchro_data;
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
@ -302,7 +302,7 @@ void sbas_l1_telemetry_decoder_cc::frame_detector::get_frame_candidates(const st
|
|||||||
for (int & candidate_bit_it : candidate)
|
for (int & candidate_bit_it : candidate)
|
||||||
candidate_bit_it = candidate_bit_it == 0 ? 1 : 0;
|
candidate_bit_it = candidate_bit_it == 0 ? 1 : 0;
|
||||||
}
|
}
|
||||||
msg_candidates.push_back(std::pair<int32_t, std::vector<int32_t>>(relative_preamble_start, candidate));
|
msg_candidates.emplace_back(relative_preamble_start, candidate);
|
||||||
ss.str("");
|
ss.str("");
|
||||||
ss << "preamble " << preample_it - preambles.begin() << (inv_preamble_detected ? " inverted" : " normal") << " detected! candidate=";
|
ss << "preamble " << preample_it - preambles.begin() << (inv_preamble_detected ? " inverted" : " normal") << " detected! candidate=";
|
||||||
for (auto bit_it = candidate.begin(); bit_it < candidate.end(); ++bit_it)
|
for (auto bit_it = candidate.begin(); bit_it < candidate.end(); ++bit_it)
|
||||||
@ -344,7 +344,7 @@ void sbas_l1_telemetry_decoder_cc::crc_verifier::get_valid_frames(const std::vec
|
|||||||
// the final remainder must be zero for a valid message, because the CRC is done over the received CRC value
|
// the final remainder must be zero for a valid message, because the CRC is done over the received CRC value
|
||||||
if (crc == 0)
|
if (crc == 0)
|
||||||
{
|
{
|
||||||
valid_msgs.push_back(msg_candiate_char_t(candidate_it->first, candidate_bytes));
|
valid_msgs.emplace_back(candidate_it->first, candidate_bytes);
|
||||||
ss << "Valid message found!";
|
ss << "Valid message found!";
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -559,13 +559,10 @@ int Viterbi_Decoder::Prev::get_anchestor_state_of_current_state(int current_stat
|
|||||||
{
|
{
|
||||||
return state[current_state];
|
return state[current_state];
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
//std::cout<<"alarm "<<"num_states="<<num_states<<" current_state="<<current_state<<std::endl;
|
//std::cout<<"alarm "<<"num_states="<<num_states<<" current_state="<<current_state<<std::endl;
|
||||||
//return state[current_state];
|
//return state[current_state];
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
int Viterbi_Decoder::Prev::get_bit_of_current_state(int current_state)
|
int Viterbi_Decoder::Prev::get_bit_of_current_state(int current_state)
|
||||||
@ -575,11 +572,8 @@ int Viterbi_Decoder::Prev::get_bit_of_current_state(int current_state)
|
|||||||
{
|
{
|
||||||
return bit[current_state];
|
return bit[current_state];
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
float Viterbi_Decoder::Prev::get_metric_of_current_state(int current_state)
|
float Viterbi_Decoder::Prev::get_metric_of_current_state(int current_state)
|
||||||
@ -588,11 +582,8 @@ float Viterbi_Decoder::Prev::get_metric_of_current_state(int current_state)
|
|||||||
{
|
{
|
||||||
return metric[current_state];
|
return metric[current_state];
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
int Viterbi_Decoder::Prev::get_t()
|
int Viterbi_Decoder::Prev::get_t()
|
||||||
|
@ -220,7 +220,7 @@ gr::basic_block_sptr GlonassL1CaDllPllCAidTracking::get_left_block()
|
|||||||
{
|
{
|
||||||
return tracking_cc;
|
return tracking_cc;
|
||||||
}
|
}
|
||||||
else if (item_type_ == "cshort")
|
if (item_type_ == "cshort")
|
||||||
{
|
{
|
||||||
return tracking_sc;
|
return tracking_sc;
|
||||||
}
|
}
|
||||||
@ -238,7 +238,7 @@ gr::basic_block_sptr GlonassL1CaDllPllCAidTracking::get_right_block()
|
|||||||
{
|
{
|
||||||
return tracking_cc;
|
return tracking_cc;
|
||||||
}
|
}
|
||||||
else if (item_type_ == "cshort")
|
if (item_type_ == "cshort")
|
||||||
{
|
{
|
||||||
return tracking_sc;
|
return tracking_sc;
|
||||||
}
|
}
|
||||||
|
@ -218,7 +218,7 @@ gr::basic_block_sptr GlonassL2CaDllPllCAidTracking::get_left_block()
|
|||||||
{
|
{
|
||||||
return tracking_cc;
|
return tracking_cc;
|
||||||
}
|
}
|
||||||
else if (item_type_ == "cshort")
|
if (item_type_ == "cshort")
|
||||||
{
|
{
|
||||||
return tracking_sc;
|
return tracking_sc;
|
||||||
}
|
}
|
||||||
@ -236,7 +236,7 @@ gr::basic_block_sptr GlonassL2CaDllPllCAidTracking::get_right_block()
|
|||||||
{
|
{
|
||||||
return tracking_cc;
|
return tracking_cc;
|
||||||
}
|
}
|
||||||
else if (item_type_ == "cshort")
|
if (item_type_ == "cshort")
|
||||||
{
|
{
|
||||||
return tracking_sc;
|
return tracking_sc;
|
||||||
}
|
}
|
||||||
|
@ -214,7 +214,7 @@ gr::basic_block_sptr GpsL1CaDllPllCAidTracking::get_left_block()
|
|||||||
{
|
{
|
||||||
return tracking_cc;
|
return tracking_cc;
|
||||||
}
|
}
|
||||||
else if (item_type_ == "cshort")
|
if (item_type_ == "cshort")
|
||||||
{
|
{
|
||||||
return tracking_sc;
|
return tracking_sc;
|
||||||
}
|
}
|
||||||
@ -231,7 +231,7 @@ gr::basic_block_sptr GpsL1CaDllPllCAidTracking::get_right_block()
|
|||||||
{
|
{
|
||||||
return tracking_cc;
|
return tracking_cc;
|
||||||
}
|
}
|
||||||
else if (item_type_ == "cshort")
|
if (item_type_ == "cshort")
|
||||||
{
|
{
|
||||||
return tracking_sc;
|
return tracking_sc;
|
||||||
}
|
}
|
||||||
|
@ -653,17 +653,14 @@ bool dll_pll_veml_tracking::acquire_secondary()
|
|||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
bool dll_pll_veml_tracking::cn0_and_tracking_lock_status(double coh_integration_time_s)
|
bool dll_pll_veml_tracking::cn0_and_tracking_lock_status(double coh_integration_time_s)
|
||||||
{
|
{
|
||||||
// ####### CN0 ESTIMATION AND LOCK DETECTORS ######
|
// ####### CN0 ESTIMATION AND LOCK DETECTORS ######
|
||||||
|
|
||||||
if (d_cn0_estimation_counter < trk_parameters.cn0_samples)
|
if (d_cn0_estimation_counter < trk_parameters.cn0_samples)
|
||||||
{
|
{
|
||||||
// fill buffer with prompt correlator output values
|
// fill buffer with prompt correlator output values
|
||||||
@ -671,8 +668,6 @@ bool dll_pll_veml_tracking::cn0_and_tracking_lock_status(double coh_integration_
|
|||||||
d_cn0_estimation_counter++;
|
d_cn0_estimation_counter++;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
d_cn0_estimation_counter = 0;
|
d_cn0_estimation_counter = 0;
|
||||||
// Code lock indicator
|
// Code lock indicator
|
||||||
d_CN0_SNV_dB_Hz = cn0_svn_estimator(d_Prompt_buffer, trk_parameters.cn0_samples, coh_integration_time_s);
|
d_CN0_SNV_dB_Hz = cn0_svn_estimator(d_Prompt_buffer, trk_parameters.cn0_samples, coh_integration_time_s);
|
||||||
@ -695,12 +690,8 @@ bool dll_pll_veml_tracking::cn0_and_tracking_lock_status(double coh_integration_
|
|||||||
d_carrier_lock_fail_counter = 0;
|
d_carrier_lock_fail_counter = 0;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// correlation requires:
|
// correlation requires:
|
||||||
|
@ -90,7 +90,7 @@ Galileo_E1_Tcp_Connector_Tracking_cc::Galileo_E1_Tcp_Connector_Tracking_cc(
|
|||||||
int64_t fs_in,
|
int64_t fs_in,
|
||||||
uint32_t vector_length,
|
uint32_t vector_length,
|
||||||
bool dump,
|
bool dump,
|
||||||
std::string dump_filename,
|
const std::string& dump_filename,
|
||||||
float pll_bw_hz __attribute__((unused)),
|
float pll_bw_hz __attribute__((unused)),
|
||||||
float dll_bw_hz __attribute__((unused)),
|
float dll_bw_hz __attribute__((unused)),
|
||||||
float early_late_space_chips,
|
float early_late_space_chips,
|
||||||
@ -544,8 +544,6 @@ int Galileo_E1_Tcp_Connector_Tracking_cc::general_work(int noutput_items __attri
|
|||||||
{
|
{
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
@ -97,7 +97,7 @@ private:
|
|||||||
Galileo_E1_Tcp_Connector_Tracking_cc(
|
Galileo_E1_Tcp_Connector_Tracking_cc(
|
||||||
int64_t fs_in, uint32_t vector_length,
|
int64_t fs_in, uint32_t vector_length,
|
||||||
bool dump,
|
bool dump,
|
||||||
std::string dump_filename,
|
const std::string& dump_filename,
|
||||||
float pll_bw_hz,
|
float pll_bw_hz,
|
||||||
float dll_bw_hz,
|
float dll_bw_hz,
|
||||||
float early_late_space_chips,
|
float early_late_space_chips,
|
||||||
|
@ -43,7 +43,6 @@
|
|||||||
#include "lock_detectors.h"
|
#include "lock_detectors.h"
|
||||||
#include "gnss_sdr_flags.h"
|
#include "gnss_sdr_flags.h"
|
||||||
#include "control_message_factory.h"
|
#include "control_message_factory.h"
|
||||||
#include <boost/lexical_cast.hpp>
|
|
||||||
#include <boost/bind.hpp>
|
#include <boost/bind.hpp>
|
||||||
#include <gnuradio/io_signature.h>
|
#include <gnuradio/io_signature.h>
|
||||||
#include <matio.h>
|
#include <matio.h>
|
||||||
@ -567,7 +566,7 @@ void glonass_l1_ca_dll_pll_c_aid_tracking_cc::set_channel(uint32_t channel)
|
|||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
d_dump_filename.append(boost::lexical_cast<std::string>(d_channel));
|
d_dump_filename.append(std::to_string(d_channel));
|
||||||
d_dump_filename.append(".dat");
|
d_dump_filename.append(".dat");
|
||||||
d_dump_file.exceptions(std::ifstream::failbit | std::ifstream::badbit);
|
d_dump_file.exceptions(std::ifstream::failbit | std::ifstream::badbit);
|
||||||
d_dump_file.open(d_dump_filename.c_str(), std::ios::out | std::ios::binary);
|
d_dump_file.open(d_dump_filename.c_str(), std::ios::out | std::ios::binary);
|
||||||
|
@ -44,7 +44,6 @@
|
|||||||
#include "gnss_sdr_flags.h"
|
#include "gnss_sdr_flags.h"
|
||||||
#include "control_message_factory.h"
|
#include "control_message_factory.h"
|
||||||
#include <boost/bind.hpp>
|
#include <boost/bind.hpp>
|
||||||
#include <boost/lexical_cast.hpp>
|
|
||||||
#include <gnuradio/io_signature.h>
|
#include <gnuradio/io_signature.h>
|
||||||
#include <matio.h>
|
#include <matio.h>
|
||||||
#include <pmt/pmt.h>
|
#include <pmt/pmt.h>
|
||||||
@ -558,7 +557,7 @@ void glonass_l1_ca_dll_pll_c_aid_tracking_sc::set_channel(uint32_t channel)
|
|||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
d_dump_filename.append(boost::lexical_cast<std::string>(d_channel));
|
d_dump_filename.append(std::to_string(d_channel));
|
||||||
d_dump_filename.append(".dat");
|
d_dump_filename.append(".dat");
|
||||||
d_dump_file.exceptions(std::ifstream::failbit | std::ifstream::badbit);
|
d_dump_file.exceptions(std::ifstream::failbit | std::ifstream::badbit);
|
||||||
d_dump_file.open(d_dump_filename.c_str(), std::ios::out | std::ios::binary);
|
d_dump_file.open(d_dump_filename.c_str(), std::ios::out | std::ios::binary);
|
||||||
|
@ -43,7 +43,6 @@
|
|||||||
#include "lock_detectors.h"
|
#include "lock_detectors.h"
|
||||||
#include "gnss_sdr_flags.h"
|
#include "gnss_sdr_flags.h"
|
||||||
#include "control_message_factory.h"
|
#include "control_message_factory.h"
|
||||||
#include <boost/lexical_cast.hpp>
|
|
||||||
#include <gnuradio/io_signature.h>
|
#include <gnuradio/io_signature.h>
|
||||||
#include <glog/logging.h>
|
#include <glog/logging.h>
|
||||||
#include <matio.h>
|
#include <matio.h>
|
||||||
@ -519,7 +518,7 @@ void Glonass_L1_Ca_Dll_Pll_Tracking_cc::set_channel(uint32_t channel)
|
|||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
d_dump_filename.append(boost::lexical_cast<std::string>(d_channel));
|
d_dump_filename.append(std::to_string(d_channel));
|
||||||
d_dump_filename.append(".dat");
|
d_dump_filename.append(".dat");
|
||||||
d_dump_file.exceptions(std::ifstream::failbit | std::ifstream::badbit);
|
d_dump_file.exceptions(std::ifstream::failbit | std::ifstream::badbit);
|
||||||
d_dump_file.open(d_dump_filename.c_str(), std::ios::out | std::ios::binary);
|
d_dump_file.open(d_dump_filename.c_str(), std::ios::out | std::ios::binary);
|
||||||
|
@ -41,7 +41,6 @@
|
|||||||
#include "GLONASS_L1_L2_CA.h"
|
#include "GLONASS_L1_L2_CA.h"
|
||||||
#include "gnss_sdr_flags.h"
|
#include "gnss_sdr_flags.h"
|
||||||
#include "control_message_factory.h"
|
#include "control_message_factory.h"
|
||||||
#include <boost/lexical_cast.hpp>
|
|
||||||
#include <boost/bind.hpp>
|
#include <boost/bind.hpp>
|
||||||
#include <gnuradio/io_signature.h>
|
#include <gnuradio/io_signature.h>
|
||||||
#include <matio.h>
|
#include <matio.h>
|
||||||
@ -564,7 +563,7 @@ void glonass_l2_ca_dll_pll_c_aid_tracking_cc::set_channel(uint32_t channel)
|
|||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
d_dump_filename.append(boost::lexical_cast<std::string>(d_channel));
|
d_dump_filename.append(std::to_string(d_channel));
|
||||||
d_dump_filename.append(".dat");
|
d_dump_filename.append(".dat");
|
||||||
d_dump_file.exceptions(std::ifstream::failbit | std::ifstream::badbit);
|
d_dump_file.exceptions(std::ifstream::failbit | std::ifstream::badbit);
|
||||||
d_dump_file.open(d_dump_filename.c_str(), std::ios::out | std::ios::binary);
|
d_dump_file.open(d_dump_filename.c_str(), std::ios::out | std::ios::binary);
|
||||||
|
@ -42,7 +42,6 @@
|
|||||||
#include "gnss_sdr_flags.h"
|
#include "gnss_sdr_flags.h"
|
||||||
#include "control_message_factory.h"
|
#include "control_message_factory.h"
|
||||||
#include <boost/bind.hpp>
|
#include <boost/bind.hpp>
|
||||||
#include <boost/lexical_cast.hpp>
|
|
||||||
#include <gnuradio/io_signature.h>
|
#include <gnuradio/io_signature.h>
|
||||||
#include <matio.h>
|
#include <matio.h>
|
||||||
#include <pmt/pmt.h>
|
#include <pmt/pmt.h>
|
||||||
@ -557,7 +556,7 @@ void glonass_l2_ca_dll_pll_c_aid_tracking_sc::set_channel(uint32_t channel)
|
|||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
d_dump_filename.append(boost::lexical_cast<std::string>(d_channel));
|
d_dump_filename.append(std::to_string(d_channel));
|
||||||
d_dump_filename.append(".dat");
|
d_dump_filename.append(".dat");
|
||||||
d_dump_file.exceptions(std::ifstream::failbit | std::ifstream::badbit);
|
d_dump_file.exceptions(std::ifstream::failbit | std::ifstream::badbit);
|
||||||
d_dump_file.open(d_dump_filename.c_str(), std::ios::out | std::ios::binary);
|
d_dump_file.open(d_dump_filename.c_str(), std::ios::out | std::ios::binary);
|
||||||
|
@ -43,7 +43,6 @@
|
|||||||
#include "GLONASS_L1_L2_CA.h"
|
#include "GLONASS_L1_L2_CA.h"
|
||||||
#include "gnss_sdr_flags.h"
|
#include "gnss_sdr_flags.h"
|
||||||
#include "control_message_factory.h"
|
#include "control_message_factory.h"
|
||||||
#include <boost/lexical_cast.hpp>
|
|
||||||
#include <gnuradio/io_signature.h>
|
#include <gnuradio/io_signature.h>
|
||||||
#include <glog/logging.h>
|
#include <glog/logging.h>
|
||||||
#include <matio.h>
|
#include <matio.h>
|
||||||
@ -519,7 +518,7 @@ void Glonass_L2_Ca_Dll_Pll_Tracking_cc::set_channel(uint32_t channel)
|
|||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
d_dump_filename.append(boost::lexical_cast<std::string>(d_channel));
|
d_dump_filename.append(std::to_string(d_channel));
|
||||||
d_dump_filename.append(".dat");
|
d_dump_filename.append(".dat");
|
||||||
d_dump_file.exceptions(std::ifstream::failbit | std::ifstream::badbit);
|
d_dump_file.exceptions(std::ifstream::failbit | std::ifstream::badbit);
|
||||||
d_dump_file.open(d_dump_filename.c_str(), std::ios::out | std::ios::binary);
|
d_dump_file.open(d_dump_filename.c_str(), std::ios::out | std::ios::binary);
|
||||||
|
@ -35,7 +35,6 @@
|
|||||||
#include "gnss_sdr_flags.h"
|
#include "gnss_sdr_flags.h"
|
||||||
#include "GPS_L1_CA.h"
|
#include "GPS_L1_CA.h"
|
||||||
#include "control_message_factory.h"
|
#include "control_message_factory.h"
|
||||||
#include <boost/lexical_cast.hpp>
|
|
||||||
#include <boost/bind.hpp>
|
#include <boost/bind.hpp>
|
||||||
#include <gnuradio/io_signature.h>
|
#include <gnuradio/io_signature.h>
|
||||||
#include <matio.h>
|
#include <matio.h>
|
||||||
@ -546,7 +545,7 @@ void gps_l1_ca_dll_pll_c_aid_tracking_cc::set_channel(uint32_t channel)
|
|||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
d_dump_filename.append(boost::lexical_cast<std::string>(d_channel));
|
d_dump_filename.append(std::to_string(d_channel));
|
||||||
d_dump_filename.append(".dat");
|
d_dump_filename.append(".dat");
|
||||||
d_dump_file.exceptions(std::ifstream::failbit | std::ifstream::badbit);
|
d_dump_file.exceptions(std::ifstream::failbit | std::ifstream::badbit);
|
||||||
d_dump_file.open(d_dump_filename.c_str(), std::ios::out | std::ios::binary);
|
d_dump_file.open(d_dump_filename.c_str(), std::ios::out | std::ios::binary);
|
||||||
@ -905,8 +904,6 @@ int gps_l1_ca_dll_pll_c_aid_tracking_cc::general_work(int noutput_items __attrib
|
|||||||
{
|
{
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
@ -36,7 +36,6 @@
|
|||||||
#include "gnss_sdr_flags.h"
|
#include "gnss_sdr_flags.h"
|
||||||
#include "control_message_factory.h"
|
#include "control_message_factory.h"
|
||||||
#include <boost/bind.hpp>
|
#include <boost/bind.hpp>
|
||||||
#include <boost/lexical_cast.hpp>
|
|
||||||
#include <gnuradio/io_signature.h>
|
#include <gnuradio/io_signature.h>
|
||||||
#include <pmt/pmt.h>
|
#include <pmt/pmt.h>
|
||||||
#include <glog/logging.h>
|
#include <glog/logging.h>
|
||||||
@ -548,7 +547,7 @@ void gps_l1_ca_dll_pll_c_aid_tracking_sc::set_channel(uint32_t channel)
|
|||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
d_dump_filename.append(boost::lexical_cast<std::string>(d_channel));
|
d_dump_filename.append(std::to_string(d_channel));
|
||||||
d_dump_filename.append(".dat");
|
d_dump_filename.append(".dat");
|
||||||
d_dump_file.exceptions(std::ifstream::failbit | std::ifstream::badbit);
|
d_dump_file.exceptions(std::ifstream::failbit | std::ifstream::badbit);
|
||||||
d_dump_file.open(d_dump_filename.c_str(), std::ios::out | std::ios::binary);
|
d_dump_file.open(d_dump_filename.c_str(), std::ios::out | std::ios::binary);
|
||||||
@ -906,8 +905,6 @@ int gps_l1_ca_dll_pll_c_aid_tracking_sc::general_work(int noutput_items __attrib
|
|||||||
{
|
{
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
@ -44,7 +44,6 @@
|
|||||||
#include "gnss_sdr_flags.h"
|
#include "gnss_sdr_flags.h"
|
||||||
#include "GPS_L1_CA.h"
|
#include "GPS_L1_CA.h"
|
||||||
#include "control_message_factory.h"
|
#include "control_message_factory.h"
|
||||||
#include <boost/lexical_cast.hpp>
|
|
||||||
#include <gnuradio/io_signature.h>
|
#include <gnuradio/io_signature.h>
|
||||||
#include <glog/logging.h>
|
#include <glog/logging.h>
|
||||||
#include <volk_gnsssdr/volk_gnsssdr.h>
|
#include <volk_gnsssdr/volk_gnsssdr.h>
|
||||||
@ -648,7 +647,7 @@ void Gps_L1_Ca_Kf_Tracking_cc::set_channel(uint32_t channel)
|
|||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
d_dump_filename.append(boost::lexical_cast<std::string>(d_channel));
|
d_dump_filename.append(std::to_string(d_channel));
|
||||||
d_dump_filename.append(".dat");
|
d_dump_filename.append(".dat");
|
||||||
d_dump_file.exceptions(std::ifstream::failbit | std::ifstream::badbit);
|
d_dump_file.exceptions(std::ifstream::failbit | std::ifstream::badbit);
|
||||||
d_dump_file.open(d_dump_filename.c_str(), std::ios::out | std::ios::binary);
|
d_dump_file.open(d_dump_filename.c_str(), std::ios::out | std::ios::binary);
|
||||||
|
@ -85,7 +85,7 @@ Gps_L1_Ca_Tcp_Connector_Tracking_cc::Gps_L1_Ca_Tcp_Connector_Tracking_cc(
|
|||||||
int64_t fs_in,
|
int64_t fs_in,
|
||||||
uint32_t vector_length,
|
uint32_t vector_length,
|
||||||
bool dump,
|
bool dump,
|
||||||
std::string dump_filename,
|
const std::string& dump_filename,
|
||||||
float early_late_space_chips,
|
float early_late_space_chips,
|
||||||
size_t port_ch0) : gr::block("Gps_L1_Ca_Tcp_Connector_Tracking_cc", gr::io_signature::make(1, 1, sizeof(gr_complex)),
|
size_t port_ch0) : gr::block("Gps_L1_Ca_Tcp_Connector_Tracking_cc", gr::io_signature::make(1, 1, sizeof(gr_complex)),
|
||||||
gr::io_signature::make(1, 1, sizeof(Gnss_Synchro)))
|
gr::io_signature::make(1, 1, sizeof(Gnss_Synchro)))
|
||||||
@ -583,8 +583,6 @@ int Gps_L1_Ca_Tcp_Connector_Tracking_cc::general_work(int noutput_items __attrib
|
|||||||
{
|
{
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
@ -93,7 +93,7 @@ private:
|
|||||||
Gps_L1_Ca_Tcp_Connector_Tracking_cc(
|
Gps_L1_Ca_Tcp_Connector_Tracking_cc(
|
||||||
int64_t fs_in, uint32_t vector_length,
|
int64_t fs_in, uint32_t vector_length,
|
||||||
bool dump,
|
bool dump,
|
||||||
std::string dump_filename,
|
const std::string& dump_filename,
|
||||||
float early_late_space_chips,
|
float early_late_space_chips,
|
||||||
size_t port_ch0);
|
size_t port_ch0);
|
||||||
|
|
||||||
|
@ -40,9 +40,7 @@ tcp_communication::tcp_communication() : tcp_socket_(io_service_)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
tcp_communication::~tcp_communication()
|
tcp_communication::~tcp_communication() = default;
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
int tcp_communication::listen_tcp_connection(size_t d_port_, size_t d_port_ch0_)
|
int tcp_communication::listen_tcp_connection(size_t d_port_, size_t d_port_ch0_)
|
||||||
|
@ -81,11 +81,8 @@ double pll_cloop_two_quadrant_atan(gr_complex prompt_s1)
|
|||||||
{
|
{
|
||||||
return atan(prompt_s1.imag() / prompt_s1.real());
|
return atan(prompt_s1.imag() / prompt_s1.real());
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
return 0.0;
|
return 0.0;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -105,11 +102,8 @@ double dll_nc_e_minus_l_normalized(gr_complex early_s1, gr_complex late_s1)
|
|||||||
{
|
{
|
||||||
return 0.0;
|
return 0.0;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
return 0.5 * (P_early - P_late) / (P_early + P_late);
|
return 0.5 * (P_early - P_late) / (P_early + P_late);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* DLL Noncoherent Very Early Minus Late Power (VEMLP) normalized discriminator, using the outputs
|
* DLL Noncoherent Very Early Minus Late Power (VEMLP) normalized discriminator, using the outputs
|
||||||
@ -129,8 +123,5 @@ double dll_nc_vemlp_normalized(gr_complex very_early_s1, gr_complex early_s1, gr
|
|||||||
{
|
{
|
||||||
return 0.0;
|
return 0.0;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
return (P_early - P_late) / (P_early + P_late);
|
return (P_early - P_late) / (P_early + P_late);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
@ -46,7 +46,7 @@ bool StringConverter::convert(const std::string& value, bool default_value)
|
|||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
else if (value == "false")
|
if (value == "false")
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -68,11 +68,9 @@ int64_t StringConverter::convert(const std::string& value, int64_t default_value
|
|||||||
{
|
{
|
||||||
return default_value;
|
return default_value;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
uint64_t StringConverter::convert(const std::string& value, uint64_t default_value)
|
uint64_t StringConverter::convert(const std::string& value, uint64_t default_value)
|
||||||
@ -86,11 +84,9 @@ uint64_t StringConverter::convert(const std::string& value, uint64_t default_val
|
|||||||
{
|
{
|
||||||
return default_value;
|
return default_value;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
int32_t StringConverter::convert(const std::string& value, int32_t default_value)
|
int32_t StringConverter::convert(const std::string& value, int32_t default_value)
|
||||||
@ -104,11 +100,9 @@ int32_t StringConverter::convert(const std::string& value, int32_t default_value
|
|||||||
{
|
{
|
||||||
return default_value;
|
return default_value;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
uint32_t StringConverter::convert(const std::string& value, uint32_t default_value)
|
uint32_t StringConverter::convert(const std::string& value, uint32_t default_value)
|
||||||
@ -122,11 +116,9 @@ uint32_t StringConverter::convert(const std::string& value, uint32_t default_val
|
|||||||
{
|
{
|
||||||
return default_value;
|
return default_value;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
uint16_t StringConverter::convert(const std::string& value, uint16_t default_value)
|
uint16_t StringConverter::convert(const std::string& value, uint16_t default_value)
|
||||||
@ -140,11 +132,9 @@ uint16_t StringConverter::convert(const std::string& value, uint16_t default_val
|
|||||||
{
|
{
|
||||||
return default_value;
|
return default_value;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
int16_t StringConverter::convert(const std::string& value, int16_t default_value)
|
int16_t StringConverter::convert(const std::string& value, int16_t default_value)
|
||||||
@ -158,11 +148,9 @@ int16_t StringConverter::convert(const std::string& value, int16_t default_value
|
|||||||
{
|
{
|
||||||
return default_value;
|
return default_value;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
float StringConverter::convert(const std::string& value, float default_value)
|
float StringConverter::convert(const std::string& value, float default_value)
|
||||||
@ -176,11 +164,9 @@ float StringConverter::convert(const std::string& value, float default_value)
|
|||||||
{
|
{
|
||||||
return default_value;
|
return default_value;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
double StringConverter::convert(const std::string& value, double default_value)
|
double StringConverter::convert(const std::string& value, double default_value)
|
||||||
@ -194,8 +180,6 @@ double StringConverter::convert(const std::string& value, double default_value)
|
|||||||
{
|
{
|
||||||
return default_value;
|
return default_value;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
@ -94,12 +94,9 @@ public:
|
|||||||
lock.unlock();
|
lock.unlock();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
lock.unlock();
|
lock.unlock();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -289,11 +289,9 @@ int ControlThread::run()
|
|||||||
{
|
{
|
||||||
return 42; // signal the gnss-sdr-harness.sh to restart the receiver program
|
return 42; // signal the gnss-sdr-harness.sh to restart the receiver program
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
return 0; // normal shutdown
|
return 0; // normal shutdown
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
void ControlThread::set_control_queue(gr::msg_queue::sptr control_queue)
|
void ControlThread::set_control_queue(gr::msg_queue::sptr control_queue)
|
||||||
|
@ -69,11 +69,8 @@ std::string FileConfiguration::property(std::string property_name, std::string d
|
|||||||
{
|
{
|
||||||
return overrided_->property(property_name, default_value);
|
return overrided_->property(property_name, default_value);
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
return ini_reader_->Get("GNSS-SDR", property_name, default_value);
|
return ini_reader_->Get("GNSS-SDR", property_name, default_value);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
bool FileConfiguration::property(std::string property_name, bool default_value)
|
bool FileConfiguration::property(std::string property_name, bool default_value)
|
||||||
@ -82,12 +79,9 @@ bool FileConfiguration::property(std::string property_name, bool default_value)
|
|||||||
{
|
{
|
||||||
return overrided_->property(property_name, default_value);
|
return overrided_->property(property_name, default_value);
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
std::string empty;
|
std::string empty;
|
||||||
return converter_->convert(property(property_name, empty), default_value);
|
return converter_->convert(property(property_name, empty), default_value);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
int64_t FileConfiguration::property(std::string property_name, int64_t default_value)
|
int64_t FileConfiguration::property(std::string property_name, int64_t default_value)
|
||||||
@ -96,12 +90,9 @@ int64_t FileConfiguration::property(std::string property_name, int64_t default_v
|
|||||||
{
|
{
|
||||||
return overrided_->property(property_name, default_value);
|
return overrided_->property(property_name, default_value);
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
std::string empty;
|
std::string empty;
|
||||||
return converter_->convert(property(property_name, empty), default_value);
|
return converter_->convert(property(property_name, empty), default_value);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
uint64_t FileConfiguration::property(std::string property_name, uint64_t default_value)
|
uint64_t FileConfiguration::property(std::string property_name, uint64_t default_value)
|
||||||
@ -110,12 +101,9 @@ uint64_t FileConfiguration::property(std::string property_name, uint64_t default
|
|||||||
{
|
{
|
||||||
return overrided_->property(property_name, default_value);
|
return overrided_->property(property_name, default_value);
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
std::string empty;
|
std::string empty;
|
||||||
return converter_->convert(property(property_name, empty), default_value);
|
return converter_->convert(property(property_name, empty), default_value);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
int FileConfiguration::property(std::string property_name, int default_value)
|
int FileConfiguration::property(std::string property_name, int default_value)
|
||||||
@ -124,12 +112,9 @@ int FileConfiguration::property(std::string property_name, int default_value)
|
|||||||
{
|
{
|
||||||
return overrided_->property(property_name, default_value);
|
return overrided_->property(property_name, default_value);
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
std::string empty;
|
std::string empty;
|
||||||
return converter_->convert(property(property_name, empty), default_value);
|
return converter_->convert(property(property_name, empty), default_value);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
unsigned int FileConfiguration::property(std::string property_name, unsigned int default_value)
|
unsigned int FileConfiguration::property(std::string property_name, unsigned int default_value)
|
||||||
@ -138,12 +123,9 @@ unsigned int FileConfiguration::property(std::string property_name, unsigned int
|
|||||||
{
|
{
|
||||||
return overrided_->property(property_name, default_value);
|
return overrided_->property(property_name, default_value);
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
std::string empty;
|
std::string empty;
|
||||||
return converter_->convert(property(property_name, empty), default_value);
|
return converter_->convert(property(property_name, empty), default_value);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
uint16_t FileConfiguration::property(std::string property_name, uint16_t default_value)
|
uint16_t FileConfiguration::property(std::string property_name, uint16_t default_value)
|
||||||
@ -152,12 +134,9 @@ uint16_t FileConfiguration::property(std::string property_name, uint16_t default
|
|||||||
{
|
{
|
||||||
return overrided_->property(property_name, default_value);
|
return overrided_->property(property_name, default_value);
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
std::string empty;
|
std::string empty;
|
||||||
return converter_->convert(property(property_name, empty), default_value);
|
return converter_->convert(property(property_name, empty), default_value);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
int16_t FileConfiguration::property(std::string property_name, int16_t default_value)
|
int16_t FileConfiguration::property(std::string property_name, int16_t default_value)
|
||||||
@ -166,12 +145,9 @@ int16_t FileConfiguration::property(std::string property_name, int16_t default_v
|
|||||||
{
|
{
|
||||||
return overrided_->property(property_name, default_value);
|
return overrided_->property(property_name, default_value);
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
std::string empty;
|
std::string empty;
|
||||||
return converter_->convert(property(property_name, empty), default_value);
|
return converter_->convert(property(property_name, empty), default_value);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
float FileConfiguration::property(std::string property_name, float default_value)
|
float FileConfiguration::property(std::string property_name, float default_value)
|
||||||
@ -180,12 +156,9 @@ float FileConfiguration::property(std::string property_name, float default_value
|
|||||||
{
|
{
|
||||||
return overrided_->property(property_name, default_value);
|
return overrided_->property(property_name, default_value);
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
std::string empty;
|
std::string empty;
|
||||||
return converter_->convert(property(property_name, empty), default_value);
|
return converter_->convert(property(property_name, empty), default_value);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
double FileConfiguration::property(std::string property_name, double default_value)
|
double FileConfiguration::property(std::string property_name, double default_value)
|
||||||
@ -194,12 +167,9 @@ double FileConfiguration::property(std::string property_name, double default_val
|
|||||||
{
|
{
|
||||||
return overrided_->property(property_name, default_value);
|
return overrided_->property(property_name, default_value);
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
std::string empty;
|
std::string empty;
|
||||||
return converter_->convert(property(property_name, empty), default_value);
|
return converter_->convert(property(property_name, empty), default_value);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
void FileConfiguration::set_property(std::string property_name, std::string value)
|
void FileConfiguration::set_property(std::string property_name, std::string value)
|
||||||
|
@ -55,11 +55,8 @@ std::string InMemoryConfiguration::property(std::string property_name, std::stri
|
|||||||
{
|
{
|
||||||
return iter->second;
|
return iter->second;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
return default_value;
|
return default_value;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
bool InMemoryConfiguration::property(std::string property_name, bool default_value)
|
bool InMemoryConfiguration::property(std::string property_name, bool default_value)
|
||||||
|
@ -224,11 +224,9 @@ bool Galileo_Fnav_Message::_CRC_test(std::bitset<GALILEO_FNAV_DATA_FRAME_BITS> b
|
|||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
void Galileo_Fnav_Message::decode_page(const std::string& data)
|
void Galileo_Fnav_Message::decode_page(const std::string& data)
|
||||||
@ -498,11 +496,8 @@ bool Galileo_Fnav_Message::have_new_ephemeris() // Check if we have a new ephem
|
|||||||
std::cout << "Batch number: " << IOD_ephemeris << std::endl;
|
std::cout << "Batch number: " << IOD_ephemeris << std::endl;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
|
@ -253,11 +253,8 @@ bool Galileo_Navigation_Message::CRC_test(std::bitset<GALILEO_DATA_FRAME_BITS> b
|
|||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
uint64_t Galileo_Navigation_Message::read_navigation_unsigned(std::bitset<GALILEO_DATA_JK_BITS> bits, const std::vector<std::pair<int32_t, int32_t> >& parameter)
|
uint64_t Galileo_Navigation_Message::read_navigation_unsigned(std::bitset<GALILEO_DATA_JK_BITS> bits, const std::vector<std::pair<int32_t, int32_t> >& parameter)
|
||||||
@ -442,11 +439,10 @@ bool Galileo_Navigation_Message::have_new_ephemeris() // Check if we have a new
|
|||||||
std::cout << "Batch number: " << IOD_ephemeris << std::endl;
|
std::cout << "Batch number: " << IOD_ephemeris << std::endl;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
else
|
else
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -459,7 +455,7 @@ bool Galileo_Navigation_Message::have_new_iono_and_GST() // Check if we have a
|
|||||||
flag_iono_and_GST = false; // clear the flag
|
flag_iono_and_GST = false; // clear the flag
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -471,7 +467,7 @@ bool Galileo_Navigation_Message::have_new_utc_model() // Check if we have a new
|
|||||||
flag_utc_model = false; // clear the flag
|
flag_utc_model = false; // clear the flag
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -488,7 +484,7 @@ bool Galileo_Navigation_Message::have_new_almanac() // Check if we have a new a
|
|||||||
flag_all_almanac = true;
|
flag_all_almanac = true;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -200,7 +200,7 @@ bool Glonass_Gnav_Navigation_Message::CRC_test(std::bitset<GLONASS_GNAV_STRING_B
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
// (a-ii) Only one of the checksums (C1,...,C7) is equal to zero but C_Sigma = 1
|
// (a-ii) Only one of the checksums (C1,...,C7) is equal to zero but C_Sigma = 1
|
||||||
else if (C_Sigma == 1 && C1 + C2 + C3 + C4 + C5 + C6 + C7 == 6)
|
if (C_Sigma == 1 && C1 + C2 + C3 + C4 + C5 + C6 + C7 == 6)
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@ -733,7 +733,7 @@ bool Glonass_Gnav_Navigation_Message::have_new_utc_model() // Check if we have
|
|||||||
flag_utc_model_str_5 = false; // clear the flag
|
flag_utc_model_str_5 = false; // clear the flag
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -337,11 +337,8 @@ bool Gps_CNAV_Navigation_Message::have_new_ephemeris() // Check if we have a ne
|
|||||||
b_flag_ephemeris_2 = false; // clear the flag
|
b_flag_ephemeris_2 = false; // clear the flag
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
@ -362,11 +359,8 @@ bool Gps_CNAV_Navigation_Message::have_new_iono() // Check if we have a new ion
|
|||||||
b_flag_iono_valid = false; // clear the flag
|
b_flag_iono_valid = false; // clear the flag
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
Gps_CNAV_Iono Gps_CNAV_Navigation_Message::get_iono()
|
Gps_CNAV_Iono Gps_CNAV_Navigation_Message::get_iono()
|
||||||
@ -382,11 +376,8 @@ bool Gps_CNAV_Navigation_Message::have_new_utc_model() // Check if we have a ne
|
|||||||
b_flag_utc_valid = false; // clear the flag
|
b_flag_utc_valid = false; // clear the flag
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
Gps_CNAV_Utc_Model Gps_CNAV_Navigation_Message::get_utc_model()
|
Gps_CNAV_Utc_Model Gps_CNAV_Navigation_Message::get_utc_model()
|
||||||
|
@ -178,11 +178,9 @@ bool Rtcm::check_CRC(const std::string& message) const
|
|||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
std::string Rtcm::bin_to_binary_data(const std::string& s) const
|
std::string Rtcm::bin_to_binary_data(const std::string& s) const
|
||||||
|
@ -1011,12 +1011,10 @@ bool Gnuplot::set_GNUPlotPath(const std::string &path)
|
|||||||
Gnuplot::m_sGNUPlotPath = path;
|
Gnuplot::m_sGNUPlotPath = path;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
Gnuplot::m_sGNUPlotPath.clear();
|
Gnuplot::m_sGNUPlotPath.clear();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
@ -1068,7 +1066,7 @@ void stringtok(Container &container,
|
|||||||
container.push_back(in.substr(i));
|
container.push_back(in.substr(i));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
container.push_back(in.substr(i, j - i));
|
container.push_back(in.substr(i, j - i));
|
||||||
|
|
||||||
// set up for next loop
|
// set up for next loop
|
||||||
@ -1876,7 +1874,7 @@ Gnuplot &Gnuplot::cmd(const std::string &cmdstr)
|
|||||||
{
|
{
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
else if (cmdstr.find("splot") != std::string::npos)
|
if (cmdstr.find("splot") != std::string::npos)
|
||||||
{
|
{
|
||||||
two_dim = false;
|
two_dim = false;
|
||||||
nplots++;
|
nplots++;
|
||||||
@ -2052,11 +2050,8 @@ bool Gnuplot::file_exists(const std::string &filename, int mode)
|
|||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
bool Gnuplot::file_available(const std::string &filename)
|
bool Gnuplot::file_available(const std::string &filename)
|
||||||
@ -2147,7 +2142,7 @@ std::string Gnuplot::create_tmpfile(std::ofstream &tmp)
|
|||||||
//
|
//
|
||||||
// Save the temporary filename
|
// Save the temporary filename
|
||||||
//
|
//
|
||||||
tmpfile_list.push_back(name);
|
tmpfile_list.emplace_back(name);
|
||||||
Gnuplot::tmpfile_num++;
|
Gnuplot::tmpfile_num++;
|
||||||
|
|
||||||
return name;
|
return name;
|
||||||
|
@ -81,11 +81,8 @@ bool rtklib_solver_dump_reader::restart()
|
|||||||
d_dump_file.seekg(0, std::ios::beg);
|
d_dump_file.seekg(0, std::ios::beg);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
int64_t rtklib_solver_dump_reader::num_epochs()
|
int64_t rtklib_solver_dump_reader::num_epochs()
|
||||||
@ -99,11 +96,8 @@ int64_t rtklib_solver_dump_reader::num_epochs()
|
|||||||
int64_t nepoch = size / epoch_size_bytes;
|
int64_t nepoch = size / epoch_size_bytes;
|
||||||
return nepoch;
|
return nepoch;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
bool rtklib_solver_dump_reader::open_obs_file(std::string out_file)
|
bool rtklib_solver_dump_reader::open_obs_file(std::string out_file)
|
||||||
|
@ -186,11 +186,8 @@ bool spirent_motion_csv_dump_reader::restart()
|
|||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
int64_t spirent_motion_csv_dump_reader::num_epochs()
|
int64_t spirent_motion_csv_dump_reader::num_epochs()
|
||||||
@ -206,11 +203,8 @@ int64_t spirent_motion_csv_dump_reader::num_epochs()
|
|||||||
}
|
}
|
||||||
return nepoch - header_lines;
|
return nepoch - header_lines;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
bool spirent_motion_csv_dump_reader::open_obs_file(std::string out_file)
|
bool spirent_motion_csv_dump_reader::open_obs_file(std::string out_file)
|
||||||
|
@ -145,7 +145,7 @@ TEST(MatioTest, WriteAndReadGrComplex)
|
|||||||
std::vector<gr_complex> x_v_read;
|
std::vector<gr_complex> x_v_read;
|
||||||
for (unsigned int i = 0; i < size; i++)
|
for (unsigned int i = 0; i < size; i++)
|
||||||
{
|
{
|
||||||
x_v_read.push_back(gr_complex(x_read_real[i], x_read_imag[i]));
|
x_v_read.emplace_back(x_read_real[i], x_read_imag[i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
Mat_Close(matfp_read);
|
Mat_Close(matfp_read);
|
||||||
|
@ -63,11 +63,8 @@ bool observables_dump_reader::restart()
|
|||||||
d_dump_file.seekg(0, std::ios::beg);
|
d_dump_file.seekg(0, std::ios::beg);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
int64_t observables_dump_reader::num_epochs()
|
int64_t observables_dump_reader::num_epochs()
|
||||||
@ -82,11 +79,8 @@ int64_t observables_dump_reader::num_epochs()
|
|||||||
int64_t nepoch = size / epoch_size_bytes;
|
int64_t nepoch = size / epoch_size_bytes;
|
||||||
return nepoch;
|
return nepoch;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
bool observables_dump_reader::open_obs_file(std::string out_file)
|
bool observables_dump_reader::open_obs_file(std::string out_file)
|
||||||
|
@ -56,11 +56,8 @@ bool tlm_dump_reader::restart()
|
|||||||
d_dump_file.seekg(0, std::ios::beg);
|
d_dump_file.seekg(0, std::ios::beg);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
int64_t tlm_dump_reader::num_epochs()
|
int64_t tlm_dump_reader::num_epochs()
|
||||||
@ -75,11 +72,8 @@ int64_t tlm_dump_reader::num_epochs()
|
|||||||
int64_t nepoch = size / epoch_size_bytes;
|
int64_t nepoch = size / epoch_size_bytes;
|
||||||
return nepoch;
|
return nepoch;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
bool tlm_dump_reader::open_obs_file(std::string out_file)
|
bool tlm_dump_reader::open_obs_file(std::string out_file)
|
||||||
|
@ -75,11 +75,8 @@ bool tracking_dump_reader::restart()
|
|||||||
d_dump_file.seekg(0, std::ios::beg);
|
d_dump_file.seekg(0, std::ios::beg);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
int64_t tracking_dump_reader::num_epochs()
|
int64_t tracking_dump_reader::num_epochs()
|
||||||
@ -96,11 +93,10 @@ int64_t tracking_dump_reader::num_epochs()
|
|||||||
int64_t nepoch = size / epoch_size_bytes;
|
int64_t nepoch = size / epoch_size_bytes;
|
||||||
return nepoch;
|
return nepoch;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
bool tracking_dump_reader::open_obs_file(std::string out_file)
|
bool tracking_dump_reader::open_obs_file(std::string out_file)
|
||||||
|
@ -58,11 +58,8 @@ bool tracking_true_obs_reader::restart()
|
|||||||
d_dump_file.seekg(0, std::ios::beg);
|
d_dump_file.seekg(0, std::ios::beg);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
int64_t tracking_true_obs_reader::num_epochs()
|
int64_t tracking_true_obs_reader::num_epochs()
|
||||||
@ -77,11 +74,8 @@ int64_t tracking_true_obs_reader::num_epochs()
|
|||||||
int64_t nepoch = size / epoch_size_bytes;
|
int64_t nepoch = size / epoch_size_bytes;
|
||||||
return nepoch;
|
return nepoch;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
bool tracking_true_obs_reader::open_obs_file(std::string out_file)
|
bool tracking_true_obs_reader::open_obs_file(std::string out_file)
|
||||||
|
@ -63,11 +63,8 @@ bool true_observables_reader::restart()
|
|||||||
d_dump_file.seekg(0, std::ios::beg);
|
d_dump_file.seekg(0, std::ios::beg);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
int64_t true_observables_reader::num_epochs()
|
int64_t true_observables_reader::num_epochs()
|
||||||
@ -82,11 +79,8 @@ int64_t true_observables_reader::num_epochs()
|
|||||||
int64_t nepoch = size / epoch_size_bytes;
|
int64_t nepoch = size / epoch_size_bytes;
|
||||||
return nepoch;
|
return nepoch;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
bool true_observables_reader::open_obs_file(std::string out_file)
|
bool true_observables_reader::open_obs_file(std::string out_file)
|
||||||
|
@ -78,13 +78,10 @@ bool FrontEndCal::read_assistance_from_XML()
|
|||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
std::cout << "ERROR: SUPL client error reading XML" << std::endl;
|
std::cout << "ERROR: SUPL client error reading XML" << std::endl;
|
||||||
LOG(WARNING) << "ERROR: SUPL client error reading XML";
|
LOG(WARNING) << "ERROR: SUPL client error reading XML";
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
int FrontEndCal::Get_SUPL_Assist()
|
int FrontEndCal::Get_SUPL_Assist()
|
||||||
@ -256,11 +253,8 @@ bool FrontEndCal::get_ephemeris()
|
|||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
@ -274,12 +268,9 @@ bool FrontEndCal::get_ephemeris()
|
|||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
arma::vec FrontEndCal::lla2ecef(const arma::vec &lla)
|
arma::vec FrontEndCal::lla2ecef(const arma::vec &lla)
|
||||||
@ -377,11 +368,8 @@ double FrontEndCal::estimate_doppler_from_eph(unsigned int PRN, double TOW, doub
|
|||||||
mean_Doppler_Hz = arma::mean(Doppler_Hz);
|
mean_Doppler_Hz = arma::mean(Doppler_Hz);
|
||||||
return mean_Doppler_Hz;
|
return mean_Doppler_Hz;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
throw(1);
|
throw(1);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
void FrontEndCal::GPS_L1_front_end_model_E4000(double f_bb_true_Hz, double f_bb_meas_Hz, double fs_nominal_hz, double *estimated_fs_Hz, double *estimated_f_if_Hz, double *f_osc_err_ppm)
|
void FrontEndCal::GPS_L1_front_end_model_E4000(double f_bb_true_Hz, double f_bb_meas_Hz, double fs_nominal_hz, double *estimated_fs_Hz, double *estimated_f_if_Hz, double *f_osc_err_ppm)
|
||||||
|
Loading…
Reference in New Issue
Block a user