mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2024-12-15 04:30:33 +00:00
Merge branch 'next' of https://github.com/carlesfernandez/gnss-sdr into next
This commit is contained in:
commit
e792a336d0
@ -46,6 +46,7 @@
|
||||
#include <exception>
|
||||
#include <iostream>
|
||||
#include <map>
|
||||
#include <stdexcept>
|
||||
#if OLD_BOOST
|
||||
#include <boost/math/common_factor_rt.hpp>
|
||||
namespace bc = boost::math;
|
||||
@ -588,6 +589,8 @@ rtklib_pvt_cc::rtklib_pvt_cc(uint32_t nchannels,
|
||||
rtklib_pvt_cc::~rtklib_pvt_cc()
|
||||
{
|
||||
msgctl(sysv_msqid, IPC_RMID, nullptr);
|
||||
try
|
||||
{
|
||||
if (d_xml_storage)
|
||||
{
|
||||
// save GPS L2CM ephemeris to XML file
|
||||
@ -602,6 +605,10 @@ rtklib_pvt_cc::~rtklib_pvt_cc()
|
||||
xml << boost::serialization::make_nvp("GNSS-SDR_cnav_ephemeris_map", d_pvt_solver->gps_cnav_ephemeris_map);
|
||||
LOG(INFO) << "Saved GPS L2CM or L5 Ephemeris map data";
|
||||
}
|
||||
catch (const boost::archive::archive_exception e)
|
||||
{
|
||||
LOG(WARNING) << e.what();
|
||||
}
|
||||
catch (std::exception& e)
|
||||
{
|
||||
LOG(WARNING) << e.what();
|
||||
@ -624,6 +631,10 @@ rtklib_pvt_cc::~rtklib_pvt_cc()
|
||||
xml << boost::serialization::make_nvp("GNSS-SDR_ephemeris_map", d_pvt_solver->gps_ephemeris_map);
|
||||
LOG(INFO) << "Saved GPS L1 CA Ephemeris map data";
|
||||
}
|
||||
catch (const boost::archive::archive_exception e)
|
||||
{
|
||||
LOG(WARNING) << e.what();
|
||||
}
|
||||
catch (const std::exception& e)
|
||||
{
|
||||
LOG(WARNING) << e.what();
|
||||
@ -646,6 +657,14 @@ rtklib_pvt_cc::~rtklib_pvt_cc()
|
||||
xml << boost::serialization::make_nvp("GNSS-SDR_gal_ephemeris_map", d_pvt_solver->galileo_ephemeris_map);
|
||||
LOG(INFO) << "Saved Galileo E1 Ephemeris map data";
|
||||
}
|
||||
catch (const boost::archive::archive_exception e)
|
||||
{
|
||||
LOG(WARNING) << e.what();
|
||||
}
|
||||
catch (const std::ofstream::failure& e)
|
||||
{
|
||||
LOG(WARNING) << "Problem opening output XML file";
|
||||
}
|
||||
catch (const std::exception& e)
|
||||
{
|
||||
LOG(WARNING) << e.what();
|
||||
@ -668,6 +687,14 @@ rtklib_pvt_cc::~rtklib_pvt_cc()
|
||||
xml << boost::serialization::make_nvp("GNSS-SDR_gnav_ephemeris_map", d_pvt_solver->glonass_gnav_ephemeris_map);
|
||||
LOG(INFO) << "Saved GLONASS GNAV Ephemeris map data";
|
||||
}
|
||||
catch (const boost::archive::archive_exception e)
|
||||
{
|
||||
LOG(WARNING) << e.what();
|
||||
}
|
||||
catch (const std::ofstream::failure& e)
|
||||
{
|
||||
LOG(WARNING) << "Problem opening output XML file";
|
||||
}
|
||||
catch (std::exception& e)
|
||||
{
|
||||
LOG(WARNING) << e.what();
|
||||
@ -690,6 +717,14 @@ rtklib_pvt_cc::~rtklib_pvt_cc()
|
||||
xml << boost::serialization::make_nvp("GNSS-SDR_utc_model", d_pvt_solver->gps_utc_model);
|
||||
LOG(INFO) << "Saved GPS UTC model parameters";
|
||||
}
|
||||
catch (const std::ofstream::failure& e)
|
||||
{
|
||||
LOG(WARNING) << "Problem opening output XML file";
|
||||
}
|
||||
catch (const boost::archive::archive_exception e)
|
||||
{
|
||||
LOG(WARNING) << e.what();
|
||||
}
|
||||
catch (std::exception& e)
|
||||
{
|
||||
LOG(WARNING) << e.what();
|
||||
@ -712,6 +747,14 @@ rtklib_pvt_cc::~rtklib_pvt_cc()
|
||||
xml << boost::serialization::make_nvp("GNSS-SDR_gal_utc_model", d_pvt_solver->galileo_utc_model);
|
||||
LOG(INFO) << "Saved Galileo UTC model parameters";
|
||||
}
|
||||
catch (const boost::archive::archive_exception e)
|
||||
{
|
||||
LOG(WARNING) << e.what();
|
||||
}
|
||||
catch (const std::ofstream::failure& e)
|
||||
{
|
||||
LOG(WARNING) << "Problem opening output XML file";
|
||||
}
|
||||
catch (std::exception& e)
|
||||
{
|
||||
LOG(WARNING) << e.what();
|
||||
@ -734,6 +777,14 @@ rtklib_pvt_cc::~rtklib_pvt_cc()
|
||||
xml << boost::serialization::make_nvp("GNSS-SDR_iono_model", d_pvt_solver->gps_iono);
|
||||
LOG(INFO) << "Saved GPS ionospheric model parameters";
|
||||
}
|
||||
catch (const boost::archive::archive_exception e)
|
||||
{
|
||||
LOG(WARNING) << e.what();
|
||||
}
|
||||
catch (const std::ofstream::failure& e)
|
||||
{
|
||||
LOG(WARNING) << "Problem opening output XML file";
|
||||
}
|
||||
catch (std::exception& e)
|
||||
{
|
||||
LOG(WARNING) << e.what();
|
||||
@ -756,6 +807,14 @@ rtklib_pvt_cc::~rtklib_pvt_cc()
|
||||
xml << boost::serialization::make_nvp("GNSS-SDR_cnav_iono_model", d_pvt_solver->gps_cnav_iono);
|
||||
LOG(INFO) << "Saved GPS CNAV ionospheric model parameters";
|
||||
}
|
||||
catch (const boost::archive::archive_exception e)
|
||||
{
|
||||
LOG(WARNING) << e.what();
|
||||
}
|
||||
catch (const std::ofstream::failure& e)
|
||||
{
|
||||
LOG(WARNING) << "Problem opening output XML file";
|
||||
}
|
||||
catch (std::exception& e)
|
||||
{
|
||||
LOG(WARNING) << e.what();
|
||||
@ -778,6 +837,14 @@ rtklib_pvt_cc::~rtklib_pvt_cc()
|
||||
xml << boost::serialization::make_nvp("GNSS-SDR_gal_iono_model", d_pvt_solver->galileo_iono);
|
||||
LOG(INFO) << "Saved Galileo ionospheric model parameters";
|
||||
}
|
||||
catch (const boost::archive::archive_exception e)
|
||||
{
|
||||
LOG(WARNING) << e.what();
|
||||
}
|
||||
catch (const std::ofstream::failure& e)
|
||||
{
|
||||
LOG(WARNING) << "Problem opening output XML file";
|
||||
}
|
||||
catch (std::exception& e)
|
||||
{
|
||||
LOG(WARNING) << e.what();
|
||||
@ -800,6 +867,14 @@ rtklib_pvt_cc::~rtklib_pvt_cc()
|
||||
xml << boost::serialization::make_nvp("GNSS-SDR_gps_almanac_map", d_pvt_solver->gps_almanac_map);
|
||||
LOG(INFO) << "Saved GPS almanac map data";
|
||||
}
|
||||
catch (const boost::archive::archive_exception e)
|
||||
{
|
||||
LOG(WARNING) << e.what();
|
||||
}
|
||||
catch (const std::ofstream::failure& e)
|
||||
{
|
||||
LOG(WARNING) << "Problem opening output XML file";
|
||||
}
|
||||
catch (const std::exception& e)
|
||||
{
|
||||
LOG(WARNING) << e.what();
|
||||
@ -822,6 +897,14 @@ rtklib_pvt_cc::~rtklib_pvt_cc()
|
||||
xml << boost::serialization::make_nvp("GNSS-SDR_gal_almanac_map", d_pvt_solver->galileo_almanac_map);
|
||||
LOG(INFO) << "Saved Galileo almanac data";
|
||||
}
|
||||
catch (const boost::archive::archive_exception e)
|
||||
{
|
||||
LOG(WARNING) << e.what();
|
||||
}
|
||||
catch (const std::ofstream::failure& e)
|
||||
{
|
||||
LOG(WARNING) << "Problem opening output XML file";
|
||||
}
|
||||
catch (std::exception& e)
|
||||
{
|
||||
LOG(WARNING) << e.what();
|
||||
@ -844,6 +927,14 @@ rtklib_pvt_cc::~rtklib_pvt_cc()
|
||||
xml << boost::serialization::make_nvp("GNSS-SDR_cnav_utc_model", d_pvt_solver->gps_cnav_utc_model);
|
||||
LOG(INFO) << "Saved GPS CNAV UTC model parameters";
|
||||
}
|
||||
catch (const boost::archive::archive_exception e)
|
||||
{
|
||||
LOG(WARNING) << e.what();
|
||||
}
|
||||
catch (const std::ofstream::failure& e)
|
||||
{
|
||||
LOG(WARNING) << "Problem opening output XML file";
|
||||
}
|
||||
catch (std::exception& e)
|
||||
{
|
||||
LOG(WARNING) << e.what();
|
||||
@ -866,6 +957,14 @@ rtklib_pvt_cc::~rtklib_pvt_cc()
|
||||
xml << boost::serialization::make_nvp("GNSS-SDR_gnav_ephemeris_map", d_pvt_solver->glonass_gnav_ephemeris_map);
|
||||
LOG(INFO) << "Saved GLONASS GNAV ephemeris map data";
|
||||
}
|
||||
catch (const boost::archive::archive_exception e)
|
||||
{
|
||||
LOG(WARNING) << e.what();
|
||||
}
|
||||
catch (const std::ofstream::failure& e)
|
||||
{
|
||||
LOG(WARNING) << "Problem opening output XML file";
|
||||
}
|
||||
catch (std::exception& e)
|
||||
{
|
||||
LOG(WARNING) << e.what();
|
||||
@ -888,6 +987,14 @@ rtklib_pvt_cc::~rtklib_pvt_cc()
|
||||
xml << boost::serialization::make_nvp("GNSS-SDR_gnav_utc_model", d_pvt_solver->glonass_gnav_utc_model);
|
||||
LOG(INFO) << "Saved GLONASS UTC model parameters";
|
||||
}
|
||||
catch (const boost::archive::archive_exception e)
|
||||
{
|
||||
LOG(WARNING) << e.what();
|
||||
}
|
||||
catch (const std::ofstream::failure& e)
|
||||
{
|
||||
LOG(WARNING) << "Problem opening output XML file";
|
||||
}
|
||||
catch (std::exception& e)
|
||||
{
|
||||
LOG(WARNING) << e.what();
|
||||
@ -910,6 +1017,14 @@ rtklib_pvt_cc::~rtklib_pvt_cc()
|
||||
xml << boost::serialization::make_nvp("GNSS-SDR_bds_dnav_ephemeris_map", d_pvt_solver->beidou_dnav_ephemeris_map);
|
||||
LOG(INFO) << "Saved BeiDou DNAV Ephemeris map data";
|
||||
}
|
||||
catch (const boost::archive::archive_exception e)
|
||||
{
|
||||
LOG(WARNING) << e.what();
|
||||
}
|
||||
catch (const std::ofstream::failure& e)
|
||||
{
|
||||
LOG(WARNING) << "Problem opening output XML file";
|
||||
}
|
||||
catch (const std::exception& e)
|
||||
{
|
||||
LOG(WARNING) << e.what();
|
||||
@ -932,6 +1047,14 @@ rtklib_pvt_cc::~rtklib_pvt_cc()
|
||||
xml << boost::serialization::make_nvp("GNSS-SDR_bds_dnav_iono_model", d_pvt_solver->beidou_dnav_iono);
|
||||
LOG(INFO) << "Saved BeiDou DNAV ionospheric model parameters";
|
||||
}
|
||||
catch (const boost::archive::archive_exception e)
|
||||
{
|
||||
LOG(WARNING) << e.what();
|
||||
}
|
||||
catch (const std::ofstream::failure& e)
|
||||
{
|
||||
LOG(WARNING) << "Problem opening output XML file";
|
||||
}
|
||||
catch (std::exception& e)
|
||||
{
|
||||
LOG(WARNING) << e.what();
|
||||
@ -954,6 +1077,14 @@ rtklib_pvt_cc::~rtklib_pvt_cc()
|
||||
xml << boost::serialization::make_nvp("GNSS-SDR_bds_dnav_almanac_map", d_pvt_solver->beidou_dnav_almanac_map);
|
||||
LOG(INFO) << "Saved BeiDou DNAV almanac map data";
|
||||
}
|
||||
catch (const boost::archive::archive_exception e)
|
||||
{
|
||||
LOG(WARNING) << e.what();
|
||||
}
|
||||
catch (const std::ofstream::failure& e)
|
||||
{
|
||||
LOG(WARNING) << "Problem opening output XML file";
|
||||
}
|
||||
catch (const std::exception& e)
|
||||
{
|
||||
LOG(WARNING) << e.what();
|
||||
@ -976,6 +1107,14 @@ rtklib_pvt_cc::~rtklib_pvt_cc()
|
||||
xml << boost::serialization::make_nvp("GNSS-SDR_bds_dnav_utc_model", d_pvt_solver->beidou_dnav_utc_model);
|
||||
LOG(INFO) << "Saved BeiDou DNAV UTC model parameters";
|
||||
}
|
||||
catch (const boost::archive::archive_exception e)
|
||||
{
|
||||
LOG(WARNING) << e.what();
|
||||
}
|
||||
catch (const std::ofstream::failure& e)
|
||||
{
|
||||
LOG(WARNING) << "Problem opening output XML file";
|
||||
}
|
||||
catch (std::exception& e)
|
||||
{
|
||||
LOG(WARNING) << e.what();
|
||||
@ -987,6 +1126,11 @@ rtklib_pvt_cc::~rtklib_pvt_cc()
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (std::length_error& e)
|
||||
{
|
||||
LOG(WARNING) << e.what();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
bool rtklib_pvt_cc::observables_pairCompare_min(const std::pair<int, Gnss_Synchro>& a, const std::pair<int, Gnss_Synchro>& b)
|
||||
|
@ -36,6 +36,7 @@
|
||||
#include <boost/filesystem/path.hpp> // for path, operator<<
|
||||
#include <boost/filesystem/path_traits.hpp> // for filesystem
|
||||
#include <glog/logging.h>
|
||||
#include <exception>
|
||||
#include <iomanip>
|
||||
#include <sstream>
|
||||
|
||||
@ -78,9 +79,16 @@ GeoJSON_Printer::GeoJSON_Printer(const std::string& base_path)
|
||||
|
||||
|
||||
GeoJSON_Printer::~GeoJSON_Printer()
|
||||
{
|
||||
try
|
||||
{
|
||||
GeoJSON_Printer::close_file();
|
||||
}
|
||||
catch (const std::exception& e)
|
||||
{
|
||||
std::cerr << e.what() << '\n';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
bool GeoJSON_Printer::set_headers(const std::string& filename, bool time_tag_name)
|
||||
|
@ -36,6 +36,7 @@
|
||||
#include <boost/filesystem/path.hpp> // for path, operator<<
|
||||
#include <boost/filesystem/path_traits.hpp> // for filesystem
|
||||
#include <glog/logging.h>
|
||||
#include <exception>
|
||||
#include <sstream>
|
||||
|
||||
using google::LogMessage;
|
||||
@ -217,8 +218,15 @@ bool Gpx_Printer::close_file()
|
||||
|
||||
|
||||
Gpx_Printer::~Gpx_Printer()
|
||||
{
|
||||
try
|
||||
{
|
||||
close_file();
|
||||
}
|
||||
catch (const std::exception& e)
|
||||
{
|
||||
std::cerr << e.what() << '\n';
|
||||
}
|
||||
if (!positions_printed)
|
||||
{
|
||||
if (remove(gpx_filename.c_str()) != 0) LOG(INFO) << "Error deleting temporary GPX file";
|
||||
|
@ -36,6 +36,7 @@
|
||||
#include <boost/filesystem/path.hpp> // for path, operator<<
|
||||
#include <boost/filesystem/path_traits.hpp> // for filesystem
|
||||
#include <glog/logging.h>
|
||||
#include <exception>
|
||||
#include <sstream>
|
||||
|
||||
using google::LogMessage;
|
||||
@ -318,8 +319,15 @@ bool Kml_Printer::close_file()
|
||||
|
||||
|
||||
Kml_Printer::~Kml_Printer()
|
||||
{
|
||||
try
|
||||
{
|
||||
close_file();
|
||||
}
|
||||
catch (const std::exception& e)
|
||||
{
|
||||
std::cerr << e.what() << '\n';
|
||||
}
|
||||
if (!positions_printed)
|
||||
{
|
||||
if (remove(kml_filename.c_str()) != 0) LOG(INFO) << "Error deleting temporary KML file";
|
||||
|
@ -41,6 +41,7 @@
|
||||
#include <boost/filesystem/path_traits.hpp> // for filesystem
|
||||
#include <glog/logging.h>
|
||||
#include <cstdint>
|
||||
#include <exception>
|
||||
#include <fcntl.h>
|
||||
#include <termios.h>
|
||||
|
||||
@ -117,13 +118,31 @@ Nmea_Printer::Nmea_Printer(const std::string& filename, bool flag_nmea_output_fi
|
||||
|
||||
|
||||
Nmea_Printer::~Nmea_Printer()
|
||||
{
|
||||
try
|
||||
{
|
||||
if (nmea_file_descriptor.is_open())
|
||||
{
|
||||
nmea_file_descriptor.close();
|
||||
}
|
||||
}
|
||||
catch (const std::ofstream::failure& e)
|
||||
{
|
||||
std::cerr << "Problem closing NMEA dump file: " << nmea_filename << '\n';
|
||||
}
|
||||
catch (const std::exception& e)
|
||||
{
|
||||
std::cerr << e.what() << '\n';
|
||||
}
|
||||
try
|
||||
{
|
||||
close_serial();
|
||||
}
|
||||
catch (const std::exception& e)
|
||||
{
|
||||
std::cerr << e.what() << '\n';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
int Nmea_Printer::init_serial(const std::string& serial_device)
|
||||
|
@ -39,6 +39,7 @@
|
||||
#include <algorithm> // for min and max
|
||||
#include <cmath> // for floor
|
||||
#include <cstdlib> // for getenv()
|
||||
#include <exception>
|
||||
#include <iterator>
|
||||
#include <ostream>
|
||||
#include <set>
|
||||
@ -213,13 +214,19 @@ Rinex_Printer::~Rinex_Printer()
|
||||
posmn = navMixFile.tellp();
|
||||
posnr = navGloFile.tellp();
|
||||
posnc = navBdsFile.tellp();
|
||||
|
||||
try
|
||||
{
|
||||
Rinex_Printer::navFile.close();
|
||||
Rinex_Printer::obsFile.close();
|
||||
Rinex_Printer::sbsFile.close();
|
||||
Rinex_Printer::navGalFile.close();
|
||||
Rinex_Printer::navGloFile.close();
|
||||
Rinex_Printer::navBdsFile.close();
|
||||
}
|
||||
catch (const std::exception& e)
|
||||
{
|
||||
std::cerr << e.what() << '\n';
|
||||
}
|
||||
// If nothing written, erase the files.
|
||||
if (posn == 0)
|
||||
{
|
||||
|
@ -38,6 +38,7 @@
|
||||
#include <boost/filesystem/path_traits.hpp> // for filesystem
|
||||
#include <glog/logging.h>
|
||||
#include <cstdint>
|
||||
#include <exception>
|
||||
#include <fcntl.h> // for O_RDWR
|
||||
#include <iomanip>
|
||||
#include <termios.h> // for tcgetattr
|
||||
@ -190,14 +191,28 @@ Rtcm_Printer::~Rtcm_Printer()
|
||||
{
|
||||
int64_t pos;
|
||||
pos = rtcm_file_descriptor.tellp();
|
||||
try
|
||||
{
|
||||
rtcm_file_descriptor.close();
|
||||
}
|
||||
catch (const std::exception& e)
|
||||
{
|
||||
std::cerr << e.what() << '\n';
|
||||
}
|
||||
if (pos == 0)
|
||||
{
|
||||
if (remove(rtcm_filename.c_str()) != 0) LOG(INFO) << "Error deleting temporary RTCM file";
|
||||
}
|
||||
}
|
||||
try
|
||||
{
|
||||
close_serial();
|
||||
}
|
||||
catch (const std::exception& e)
|
||||
{
|
||||
std::cerr << e.what() << '\n';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
bool Rtcm_Printer::Print_Rtcm_MT1001(const Gps_Ephemeris& gps_eph, double obs_time, const std::map<int32_t, Gnss_Synchro>& observables)
|
||||
|
@ -60,6 +60,7 @@
|
||||
#include "rtklib_solution.h"
|
||||
#include <glog/logging.h>
|
||||
#include <matio.h>
|
||||
#include <exception>
|
||||
#include <utility>
|
||||
|
||||
|
||||
@ -397,6 +398,7 @@ bool rtklib_solver::save_matfile()
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
rtklib_solver::~rtklib_solver()
|
||||
{
|
||||
if (d_dump_file.is_open() == true)
|
||||
@ -411,9 +413,16 @@ rtklib_solver::~rtklib_solver()
|
||||
}
|
||||
}
|
||||
if (d_flag_dump_mat_enabled)
|
||||
{
|
||||
try
|
||||
{
|
||||
save_matfile();
|
||||
}
|
||||
catch (const std::exception &ex)
|
||||
{
|
||||
LOG(WARNING) << "Exception in destructor saving the PVT .mat dump file " << ex.what();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
@ -40,6 +40,7 @@
|
||||
#include <gnuradio/io_signature.h>
|
||||
#include <volk/volk.h>
|
||||
#include <volk_gnsssdr/volk_gnsssdr.h>
|
||||
#include <exception>
|
||||
#include <sstream>
|
||||
#include <utility>
|
||||
|
||||
@ -213,11 +214,22 @@ galileo_e5a_noncoherentIQ_acquisition_caf_cc::~galileo_e5a_noncoherentIQ_acquisi
|
||||
delete d_fft_if;
|
||||
delete d_ifft;
|
||||
|
||||
try
|
||||
{
|
||||
if (d_dump)
|
||||
{
|
||||
d_dump_file.close();
|
||||
}
|
||||
}
|
||||
catch (const std::ofstream::failure &e)
|
||||
{
|
||||
std::cerr << "Problem closing Acquisition dump file: " << d_dump_filename << '\n';
|
||||
}
|
||||
catch (const std::exception &e)
|
||||
{
|
||||
std::cerr << e.what() << '\n';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void galileo_e5a_noncoherentIQ_acquisition_caf_cc::set_local_code(std::complex<float> *codeI, std::complex<float> *codeQ)
|
||||
|
@ -34,6 +34,7 @@
|
||||
#include <gnuradio/io_signature.h>
|
||||
#include <volk/volk.h>
|
||||
#include <volk_gnsssdr/volk_gnsssdr.h>
|
||||
#include <exception>
|
||||
#include <sstream>
|
||||
#include <utility>
|
||||
|
||||
@ -53,6 +54,7 @@ galileo_pcps_8ms_acquisition_cc_sptr galileo_pcps_8ms_make_acquisition_cc(
|
||||
samples_per_code, dump, std::move(dump_filename)));
|
||||
}
|
||||
|
||||
|
||||
galileo_pcps_8ms_acquisition_cc::galileo_pcps_8ms_acquisition_cc(
|
||||
uint32_t sampled_ms,
|
||||
uint32_t max_dwells,
|
||||
@ -125,11 +127,22 @@ galileo_pcps_8ms_acquisition_cc::~galileo_pcps_8ms_acquisition_cc()
|
||||
delete d_ifft;
|
||||
delete d_fft_if;
|
||||
|
||||
try
|
||||
{
|
||||
if (d_dump)
|
||||
{
|
||||
d_dump_file.close();
|
||||
}
|
||||
}
|
||||
catch (const std::ifstream::failure &e)
|
||||
{
|
||||
std::cerr << "Problem closing Acquisition dump file: " << d_dump_filename << '\n';
|
||||
}
|
||||
catch (const std::exception &e)
|
||||
{
|
||||
std::cerr << e.what() << '\n';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void galileo_pcps_8ms_acquisition_cc::set_local_code(std::complex<float> *code)
|
||||
|
@ -38,6 +38,7 @@
|
||||
#include <gnuradio/io_signature.h>
|
||||
#include <volk/volk.h>
|
||||
#include <volk_gnsssdr/volk_gnsssdr.h>
|
||||
#include <exception>
|
||||
#include <sstream>
|
||||
#include <utility>
|
||||
|
||||
@ -131,11 +132,22 @@ pcps_assisted_acquisition_cc::~pcps_assisted_acquisition_cc()
|
||||
volk_gnsssdr_free(d_fft_codes);
|
||||
delete d_ifft;
|
||||
delete d_fft_if;
|
||||
try
|
||||
{
|
||||
if (d_dump)
|
||||
{
|
||||
d_dump_file.close();
|
||||
}
|
||||
}
|
||||
catch (const std::ofstream::failure &e)
|
||||
{
|
||||
std::cerr << "Problem closing Acquisition dump file: " << d_dump_filename << '\n';
|
||||
}
|
||||
catch (const std::exception &e)
|
||||
{
|
||||
std::cerr << e.what() << '\n';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void pcps_assisted_acquisition_cc::set_local_code(std::complex<float> *code)
|
||||
|
@ -40,6 +40,7 @@
|
||||
#include <gnuradio/io_signature.h>
|
||||
#include <volk/volk.h>
|
||||
#include <volk_gnsssdr/volk_gnsssdr.h>
|
||||
#include <exception>
|
||||
#include <sstream>
|
||||
#include <utility>
|
||||
|
||||
@ -117,6 +118,7 @@ pcps_cccwsr_acquisition_cc::pcps_cccwsr_acquisition_cc(
|
||||
d_channel = 0;
|
||||
}
|
||||
|
||||
|
||||
pcps_cccwsr_acquisition_cc::~pcps_cccwsr_acquisition_cc()
|
||||
{
|
||||
if (d_num_doppler_bins > 0)
|
||||
@ -139,11 +141,23 @@ pcps_cccwsr_acquisition_cc::~pcps_cccwsr_acquisition_cc()
|
||||
delete d_ifft;
|
||||
delete d_fft_if;
|
||||
|
||||
try
|
||||
{
|
||||
if (d_dump)
|
||||
{
|
||||
d_dump_file.close();
|
||||
}
|
||||
}
|
||||
catch (const std::ofstream::failure &e)
|
||||
{
|
||||
std::cerr << "Problem closing Acquisition dump file: " << d_dump_filename << '\n';
|
||||
}
|
||||
catch (const std::exception &e)
|
||||
{
|
||||
std::cerr << e.what() << '\n';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void pcps_cccwsr_acquisition_cc::set_local_code(std::complex<float> *code_data,
|
||||
std::complex<float> *code_pilot)
|
||||
@ -165,6 +179,7 @@ void pcps_cccwsr_acquisition_cc::set_local_code(std::complex<float> *code_data,
|
||||
volk_32fc_conjugate_32fc(d_fft_code_pilot, d_fft_if->get_outbuf(), d_fft_size);
|
||||
}
|
||||
|
||||
|
||||
void pcps_cccwsr_acquisition_cc::init()
|
||||
{
|
||||
d_gnss_synchro->Flag_valid_acquisition = false;
|
||||
|
@ -57,6 +57,7 @@
|
||||
#include <volk/volk.h>
|
||||
#include <volk_gnsssdr/volk_gnsssdr.h>
|
||||
#include <algorithm>
|
||||
#include <exception>
|
||||
#include <fstream>
|
||||
#include <iostream>
|
||||
#include <sstream>
|
||||
@ -186,11 +187,22 @@ pcps_opencl_acquisition_cc::~pcps_opencl_acquisition_cc()
|
||||
delete d_fft_if;
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
if (d_dump)
|
||||
{
|
||||
d_dump_file.close();
|
||||
}
|
||||
}
|
||||
catch (const std::ofstream::failure &e)
|
||||
{
|
||||
std::cerr << "Problem closing Acquisition dump file: " << d_dump_filename << '\n';
|
||||
}
|
||||
catch (const std::exception &e)
|
||||
{
|
||||
std::cerr << e.what() << '\n';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
int pcps_opencl_acquisition_cc::init_opencl_environment(const std::string &kernel_filename)
|
||||
|
@ -35,6 +35,7 @@
|
||||
#include <volk/volk.h>
|
||||
#include <volk_gnsssdr/volk_gnsssdr.h>
|
||||
#include <cmath>
|
||||
#include <exception>
|
||||
#include <sstream>
|
||||
#include <utility>
|
||||
|
||||
@ -158,11 +159,21 @@ pcps_quicksync_acquisition_cc::~pcps_quicksync_acquisition_cc()
|
||||
delete d_corr_output_f;
|
||||
delete[] d_code_folded;
|
||||
|
||||
try
|
||||
{
|
||||
if (d_dump)
|
||||
{
|
||||
d_dump_file.close();
|
||||
}
|
||||
// DLOG(INFO) << "END DESTROYER";
|
||||
}
|
||||
catch (const std::ofstream::failure& e)
|
||||
{
|
||||
std::cerr << "Problem closing Acquisition dump file: " << d_dump_filename << '\n';
|
||||
}
|
||||
catch (const std::exception& e)
|
||||
{
|
||||
std::cerr << e.what() << '\n';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
@ -54,6 +54,7 @@
|
||||
#include <gnuradio/io_signature.h>
|
||||
#include <volk/volk.h>
|
||||
#include <volk_gnsssdr/volk_gnsssdr.h>
|
||||
#include <exception>
|
||||
#include <sstream>
|
||||
#include <utility>
|
||||
|
||||
@ -75,6 +76,7 @@ pcps_tong_acquisition_cc_sptr pcps_tong_make_acquisition_cc(
|
||||
tong_init_val, tong_max_val, tong_max_dwells, dump, std::move(dump_filename)));
|
||||
}
|
||||
|
||||
|
||||
pcps_tong_acquisition_cc::pcps_tong_acquisition_cc(
|
||||
uint32_t sampled_ms,
|
||||
uint32_t doppler_max,
|
||||
@ -152,11 +154,23 @@ pcps_tong_acquisition_cc::~pcps_tong_acquisition_cc()
|
||||
delete d_ifft;
|
||||
delete d_fft_if;
|
||||
|
||||
try
|
||||
{
|
||||
if (d_dump)
|
||||
{
|
||||
d_dump_file.close();
|
||||
}
|
||||
}
|
||||
catch (const std::ofstream::failure &e)
|
||||
{
|
||||
std::cerr << "Problem closing Acquisition dump file: " << d_dump_filename << '\n';
|
||||
}
|
||||
catch (const std::exception &e)
|
||||
{
|
||||
std::cerr << e.what() << '\n';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void pcps_tong_acquisition_cc::set_local_code(std::complex<float> *code)
|
||||
{
|
||||
@ -168,6 +182,7 @@ void pcps_tong_acquisition_cc::set_local_code(std::complex<float> *code)
|
||||
volk_32fc_conjugate_32fc(d_fft_codes, d_fft_if->get_outbuf(), d_fft_size);
|
||||
}
|
||||
|
||||
|
||||
void pcps_tong_acquisition_cc::init()
|
||||
{
|
||||
d_gnss_synchro->Flag_valid_acquisition = false;
|
||||
@ -212,6 +227,7 @@ void pcps_tong_acquisition_cc::init()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void pcps_tong_acquisition_cc::set_state(int32_t state)
|
||||
{
|
||||
d_state = state;
|
||||
@ -244,6 +260,7 @@ void pcps_tong_acquisition_cc::set_state(int32_t state)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
int pcps_tong_acquisition_cc::general_work(int noutput_items,
|
||||
gr_vector_int &ninput_items, gr_vector_const_void_star &input_items,
|
||||
gr_vector_void_star &output_items __attribute__((unused)))
|
||||
|
@ -40,6 +40,7 @@
|
||||
#include <algorithm>
|
||||
#include <cmath>
|
||||
#include <cstdlib>
|
||||
#include <exception>
|
||||
#include <iostream>
|
||||
#include <limits>
|
||||
#include <utility>
|
||||
@ -139,9 +140,16 @@ hybrid_observables_cc::~hybrid_observables_cc()
|
||||
}
|
||||
}
|
||||
if (d_dump_mat)
|
||||
{
|
||||
try
|
||||
{
|
||||
save_matfile();
|
||||
}
|
||||
catch (const std::exception &ex)
|
||||
{
|
||||
LOG(WARNING) << "Error saving the .mat file: " << ex.what();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
@ -31,6 +31,7 @@
|
||||
|
||||
#include "labsat23_source.h"
|
||||
#include <gnuradio/io_signature.h>
|
||||
#include <exception>
|
||||
#include <iostream>
|
||||
#include <sstream>
|
||||
|
||||
@ -87,11 +88,22 @@ labsat23_source::labsat23_source(const char *signal_file_basename,
|
||||
|
||||
|
||||
labsat23_source::~labsat23_source()
|
||||
{
|
||||
try
|
||||
{
|
||||
if (binary_input_file->is_open())
|
||||
{
|
||||
binary_input_file->close();
|
||||
}
|
||||
}
|
||||
catch (const std::ifstream::failure &e)
|
||||
{
|
||||
std::cerr << "Problem closing input file" << '\n';
|
||||
}
|
||||
catch (const std::exception &e)
|
||||
{
|
||||
std::cerr << e.what() << '\n';
|
||||
}
|
||||
delete binary_input_file;
|
||||
}
|
||||
|
||||
|
@ -58,6 +58,7 @@
|
||||
#include <volk_gnsssdr/volk_gnsssdr.h>
|
||||
#include <algorithm>
|
||||
#include <cmath>
|
||||
#include <exception>
|
||||
#include <iostream>
|
||||
#include <numeric>
|
||||
#include <sstream>
|
||||
@ -671,9 +672,16 @@ dll_pll_veml_tracking::~dll_pll_veml_tracking()
|
||||
}
|
||||
}
|
||||
if (d_dump_mat)
|
||||
{
|
||||
try
|
||||
{
|
||||
save_matfile();
|
||||
}
|
||||
catch (const std::exception &ex)
|
||||
{
|
||||
LOG(WARNING) << "Error saving the .mat file: " << ex.what();
|
||||
}
|
||||
}
|
||||
try
|
||||
{
|
||||
volk_gnsssdr_free(d_local_code_shift_chips);
|
||||
|
@ -54,6 +54,7 @@
|
||||
#include <volk_gnsssdr/volk_gnsssdr.h>
|
||||
#include <algorithm>
|
||||
#include <cmath>
|
||||
#include <exception>
|
||||
#include <iostream>
|
||||
#include <sstream>
|
||||
|
||||
@ -620,9 +621,16 @@ dll_pll_veml_tracking_fpga::~dll_pll_veml_tracking_fpga()
|
||||
}
|
||||
}
|
||||
if (d_dump_mat)
|
||||
{
|
||||
try
|
||||
{
|
||||
save_matfile();
|
||||
}
|
||||
catch (const std::exception &ex)
|
||||
{
|
||||
LOG(WARNING) << "Error saving the .mat file: " << ex.what();
|
||||
}
|
||||
}
|
||||
try
|
||||
{
|
||||
volk_gnsssdr_free(d_local_code_shift_chips);
|
||||
|
@ -49,6 +49,7 @@
|
||||
#include <pmt/pmt.h>
|
||||
#include <volk_gnsssdr/volk_gnsssdr.h>
|
||||
#include <cmath>
|
||||
#include <exception>
|
||||
#include <iostream>
|
||||
#include <memory>
|
||||
#include <sstream>
|
||||
@ -325,7 +326,14 @@ glonass_l1_ca_dll_pll_c_aid_tracking_cc::~glonass_l1_ca_dll_pll_c_aid_tracking_c
|
||||
{
|
||||
std::cout << "Writing .mat files ...";
|
||||
}
|
||||
try
|
||||
{
|
||||
glonass_l1_ca_dll_pll_c_aid_tracking_cc::save_matfile();
|
||||
}
|
||||
catch (const std::exception &ex)
|
||||
{
|
||||
LOG(WARNING) << "Error saving the .mat file: " << ex.what();
|
||||
}
|
||||
if (d_channel == 0)
|
||||
{
|
||||
std::cout << " done." << std::endl;
|
||||
|
@ -48,6 +48,7 @@
|
||||
#include <matio.h>
|
||||
#include <pmt/pmt.h>
|
||||
#include <cmath>
|
||||
#include <exception>
|
||||
#include <iostream>
|
||||
#include <memory>
|
||||
#include <sstream>
|
||||
@ -528,7 +529,15 @@ glonass_l1_ca_dll_pll_c_aid_tracking_sc::~glonass_l1_ca_dll_pll_c_aid_tracking_s
|
||||
{
|
||||
std::cout << "Writing .mat files ...";
|
||||
}
|
||||
try
|
||||
{
|
||||
glonass_l1_ca_dll_pll_c_aid_tracking_sc::save_matfile();
|
||||
}
|
||||
catch (const std::exception &ex)
|
||||
{
|
||||
LOG(WARNING) << "Error saving the .mat file: " << ex.what();
|
||||
}
|
||||
|
||||
if (d_channel == 0)
|
||||
{
|
||||
std::cout << " done." << std::endl;
|
||||
|
@ -47,6 +47,7 @@
|
||||
#include <matio.h>
|
||||
#include <volk_gnsssdr/volk_gnsssdr.h>
|
||||
#include <cmath>
|
||||
#include <exception>
|
||||
#include <iostream>
|
||||
#include <memory>
|
||||
#include <sstream>
|
||||
@ -278,7 +279,15 @@ Glonass_L1_Ca_Dll_Pll_Tracking_cc::~Glonass_L1_Ca_Dll_Pll_Tracking_cc()
|
||||
{
|
||||
std::cout << "Writing .mat files ...";
|
||||
}
|
||||
try
|
||||
{
|
||||
Glonass_L1_Ca_Dll_Pll_Tracking_cc::save_matfile();
|
||||
}
|
||||
catch (const std::exception &ex)
|
||||
{
|
||||
LOG(WARNING) << "Error saving the .mat file: " << ex.what();
|
||||
}
|
||||
|
||||
if (d_channel == 0)
|
||||
{
|
||||
std::cout << " done." << std::endl;
|
||||
|
@ -47,6 +47,7 @@
|
||||
#include <pmt/pmt.h>
|
||||
#include <volk_gnsssdr/volk_gnsssdr.h>
|
||||
#include <cmath>
|
||||
#include <exception>
|
||||
#include <iostream>
|
||||
#include <memory>
|
||||
#include <sstream>
|
||||
@ -322,7 +323,15 @@ glonass_l2_ca_dll_pll_c_aid_tracking_cc::~glonass_l2_ca_dll_pll_c_aid_tracking_c
|
||||
{
|
||||
std::cout << "Writing .mat files ...";
|
||||
}
|
||||
try
|
||||
{
|
||||
glonass_l2_ca_dll_pll_c_aid_tracking_cc::save_matfile();
|
||||
}
|
||||
catch (const std::exception &ex)
|
||||
{
|
||||
LOG(WARNING) << "Error saving the .mat file: " << ex.what();
|
||||
}
|
||||
|
||||
if (d_channel == 0)
|
||||
{
|
||||
std::cout << " done." << std::endl;
|
||||
|
@ -46,6 +46,7 @@
|
||||
#include <matio.h>
|
||||
#include <pmt/pmt.h>
|
||||
#include <cmath>
|
||||
#include <exception>
|
||||
#include <iostream>
|
||||
#include <memory>
|
||||
#include <sstream>
|
||||
@ -527,7 +528,15 @@ glonass_l2_ca_dll_pll_c_aid_tracking_sc::~glonass_l2_ca_dll_pll_c_aid_tracking_s
|
||||
{
|
||||
std::cout << "Writing .mat files ...";
|
||||
}
|
||||
try
|
||||
{
|
||||
glonass_l2_ca_dll_pll_c_aid_tracking_sc::save_matfile();
|
||||
}
|
||||
catch (const std::exception &ex)
|
||||
{
|
||||
LOG(WARNING) << "Error saving the .mat file: " << ex.what();
|
||||
}
|
||||
|
||||
if (d_channel == 0)
|
||||
{
|
||||
std::cout << " done." << std::endl;
|
||||
|
@ -47,6 +47,7 @@
|
||||
#include <matio.h>
|
||||
#include <volk_gnsssdr/volk_gnsssdr.h>
|
||||
#include <cmath>
|
||||
#include <exception>
|
||||
#include <iostream>
|
||||
#include <memory>
|
||||
#include <sstream>
|
||||
@ -278,7 +279,15 @@ Glonass_L2_Ca_Dll_Pll_Tracking_cc::~Glonass_L2_Ca_Dll_Pll_Tracking_cc()
|
||||
{
|
||||
std::cout << "Writing .mat files ...";
|
||||
}
|
||||
try
|
||||
{
|
||||
Glonass_L2_Ca_Dll_Pll_Tracking_cc::save_matfile();
|
||||
}
|
||||
catch (const std::exception &ex)
|
||||
{
|
||||
LOG(WARNING) << "Error saving the .mat file: " << ex.what();
|
||||
}
|
||||
|
||||
if (d_channel == 0)
|
||||
{
|
||||
std::cout << " done." << std::endl;
|
||||
|
@ -40,6 +40,7 @@
|
||||
#include <matio.h>
|
||||
#include <volk_gnsssdr/volk_gnsssdr.h>
|
||||
#include <cmath>
|
||||
#include <exception>
|
||||
#include <iostream>
|
||||
#include <memory>
|
||||
#include <sstream>
|
||||
@ -304,7 +305,15 @@ gps_l1_ca_dll_pll_c_aid_tracking_cc::~gps_l1_ca_dll_pll_c_aid_tracking_cc()
|
||||
{
|
||||
std::cout << "Writing .mat files ...";
|
||||
}
|
||||
try
|
||||
{
|
||||
gps_l1_ca_dll_pll_c_aid_tracking_cc::save_matfile();
|
||||
}
|
||||
catch (const std::exception &ex)
|
||||
{
|
||||
LOG(WARNING) << "Error saving the .mat file: " << ex.what();
|
||||
}
|
||||
|
||||
if (d_channel == 0)
|
||||
{
|
||||
std::cout << " done." << std::endl;
|
||||
|
@ -40,6 +40,7 @@
|
||||
#include <matio.h>
|
||||
#include <pmt/pmt.h>
|
||||
#include <cmath>
|
||||
#include <exception>
|
||||
#include <iostream>
|
||||
#include <memory>
|
||||
#include <sstream>
|
||||
@ -305,7 +306,15 @@ gps_l1_ca_dll_pll_c_aid_tracking_sc::~gps_l1_ca_dll_pll_c_aid_tracking_sc()
|
||||
{
|
||||
std::cout << "Writing .mat files ...";
|
||||
}
|
||||
try
|
||||
{
|
||||
gps_l1_ca_dll_pll_c_aid_tracking_sc::save_matfile();
|
||||
}
|
||||
catch (const std::exception &ex)
|
||||
{
|
||||
LOG(WARNING) << "Error saving the .mat file: " << ex.what();
|
||||
}
|
||||
|
||||
if (d_channel == 0)
|
||||
{
|
||||
std::cout << " done." << std::endl;
|
||||
|
@ -48,6 +48,7 @@
|
||||
#include <matio.h>
|
||||
#include <volk_gnsssdr/volk_gnsssdr.h>
|
||||
#include <cmath>
|
||||
#include <exception>
|
||||
#include <iostream>
|
||||
#include <memory>
|
||||
#include <sstream>
|
||||
@ -374,7 +375,15 @@ Gps_L1_Ca_Kf_Tracking_cc::~Gps_L1_Ca_Kf_Tracking_cc()
|
||||
{
|
||||
std::cout << "Writing .mat files ...";
|
||||
}
|
||||
try
|
||||
{
|
||||
Gps_L1_Ca_Kf_Tracking_cc::save_matfile();
|
||||
}
|
||||
catch (const std::exception &ex)
|
||||
{
|
||||
LOG(WARNING) << "Error saving the .mat file: " << ex.what();
|
||||
}
|
||||
|
||||
if (d_channel == 0)
|
||||
{
|
||||
std::cout << " done." << std::endl;
|
||||
|
@ -47,6 +47,7 @@
|
||||
#include <gnuradio/io_signature.h>
|
||||
#include <volk_gnsssdr/volk_gnsssdr.h>
|
||||
#include <cmath>
|
||||
#include <exception>
|
||||
#include <iostream>
|
||||
#include <sstream>
|
||||
#include <utility>
|
||||
|
@ -8,7 +8,7 @@
|
||||
*
|
||||
* -------------------------------------------------------------------------
|
||||
*
|
||||
* Copyright (C) 2010-2018 (see AUTHORS file for a list of contributors)
|
||||
* Copyright (C) 2010-2019 (see AUTHORS file for a list of contributors)
|
||||
*
|
||||
* GNSS-SDR is a software defined Global Navigation
|
||||
* Satellite Systems receiver
|
||||
@ -79,7 +79,7 @@ int main(int argc, char** argv)
|
||||
{
|
||||
const std::string intro_help(
|
||||
std::string("\nGNSS-SDR is an Open Source GNSS Software Defined Receiver\n") +
|
||||
"Copyright (C) 2010-2018 (see AUTHORS file for a list of contributors)\n" +
|
||||
"Copyright (C) 2010-2019 (see AUTHORS file for a list of contributors)\n" +
|
||||
"This program comes with ABSOLUTELY NO WARRANTY;\n" +
|
||||
"See COPYING file to see a copy of the General Public License\n \n");
|
||||
|
||||
|
@ -29,6 +29,7 @@
|
||||
*/
|
||||
|
||||
#include "rtklib_solver_dump_reader.h"
|
||||
#include <exception>
|
||||
#include <iostream>
|
||||
#include <utility>
|
||||
|
||||
@ -113,7 +114,7 @@ bool rtklib_solver_dump_reader::open_obs_file(std::string out_file)
|
||||
}
|
||||
catch (const std::ifstream::failure &e)
|
||||
{
|
||||
std::cout << "Problem opening rtklib_solver dump Log file: " << d_dump_filename.c_str() << std::endl;
|
||||
std::cout << "Problem opening rtklib_solver dump Log file: " << d_dump_filename << std::endl;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@ -125,9 +126,20 @@ bool rtklib_solver_dump_reader::open_obs_file(std::string out_file)
|
||||
|
||||
|
||||
rtklib_solver_dump_reader::~rtklib_solver_dump_reader()
|
||||
{
|
||||
try
|
||||
{
|
||||
if (d_dump_file.is_open() == true)
|
||||
{
|
||||
d_dump_file.close();
|
||||
}
|
||||
}
|
||||
catch (const std::ifstream::failure &e)
|
||||
{
|
||||
std::cerr << "Problem closing rtklib_solver dump Log file: " << d_dump_filename << '\n';
|
||||
}
|
||||
catch (const std::exception &e)
|
||||
{
|
||||
std::cerr << e.what() << '\n';
|
||||
}
|
||||
}
|
||||
|
@ -30,6 +30,7 @@
|
||||
|
||||
#include "spirent_motion_csv_dump_reader.h"
|
||||
#include <boost/tokenizer.hpp>
|
||||
#include <exception>
|
||||
#include <iostream>
|
||||
#include <utility>
|
||||
|
||||
@ -79,12 +80,23 @@ spirent_motion_csv_dump_reader::spirent_motion_csv_dump_reader()
|
||||
|
||||
|
||||
spirent_motion_csv_dump_reader::~spirent_motion_csv_dump_reader()
|
||||
{
|
||||
try
|
||||
{
|
||||
if (d_dump_file.is_open() == true)
|
||||
{
|
||||
d_dump_file.close();
|
||||
}
|
||||
}
|
||||
catch (const std::ifstream::failure &e)
|
||||
{
|
||||
std::cerr << "Problem closing Spirent CSV dump Log file: " << d_dump_filename << '\n';
|
||||
}
|
||||
catch (const std::exception &e)
|
||||
{
|
||||
std::cerr << e.what() << '\n';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
bool spirent_motion_csv_dump_reader::read_csv_obs()
|
||||
@ -225,7 +237,7 @@ bool spirent_motion_csv_dump_reader::open_obs_file(std::string out_file)
|
||||
}
|
||||
catch (const std::ifstream::failure &e)
|
||||
{
|
||||
std::cout << "Problem opening Spirent CSV dump Log file: " << d_dump_filename.c_str() << std::endl;
|
||||
std::cout << "Problem opening Spirent CSV dump Log file: " << d_dump_filename << std::endl;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@ -238,8 +250,19 @@ bool spirent_motion_csv_dump_reader::open_obs_file(std::string out_file)
|
||||
|
||||
void spirent_motion_csv_dump_reader::close_obs_file()
|
||||
{
|
||||
if (d_dump_file.is_open() == false)
|
||||
try
|
||||
{
|
||||
if (d_dump_file.is_open() == true)
|
||||
{
|
||||
d_dump_file.close();
|
||||
}
|
||||
}
|
||||
catch (const std::ifstream::failure &e)
|
||||
{
|
||||
std::cerr << "Problem closing Spirent CSV dump Log file: " << d_dump_filename << '\n';
|
||||
}
|
||||
catch (const std::exception &e)
|
||||
{
|
||||
std::cerr << e.what() << '\n';
|
||||
}
|
||||
}
|
||||
|
@ -29,6 +29,7 @@
|
||||
*/
|
||||
|
||||
#include "observables_dump_reader.h"
|
||||
#include <exception>
|
||||
#include <iostream>
|
||||
#include <utility>
|
||||
|
||||
@ -96,7 +97,7 @@ bool observables_dump_reader::open_obs_file(std::string out_file)
|
||||
}
|
||||
catch (const std::ifstream::failure &e)
|
||||
{
|
||||
std::cout << "Problem opening TLM dump Log file: " << d_dump_filename.c_str() << std::endl;
|
||||
std::cout << "Problem opening Observables dump Log file: " << d_dump_filename << std::endl;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@ -106,6 +107,7 @@ bool observables_dump_reader::open_obs_file(std::string out_file)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void observables_dump_reader::close_obs_file()
|
||||
{
|
||||
if (d_dump_file.is_open() == false)
|
||||
@ -114,6 +116,7 @@ void observables_dump_reader::close_obs_file()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
observables_dump_reader::observables_dump_reader(int n_channels_)
|
||||
{
|
||||
n_channels = n_channels_;
|
||||
@ -128,11 +131,22 @@ observables_dump_reader::observables_dump_reader(int n_channels_)
|
||||
|
||||
|
||||
observables_dump_reader::~observables_dump_reader()
|
||||
{
|
||||
try
|
||||
{
|
||||
if (d_dump_file.is_open() == true)
|
||||
{
|
||||
d_dump_file.close();
|
||||
}
|
||||
}
|
||||
catch (const std::ifstream::failure &e)
|
||||
{
|
||||
std::cerr << "Problem closing Observables dump Log file: " << d_dump_filename << '\n';
|
||||
}
|
||||
catch (const std::exception &e)
|
||||
{
|
||||
std::cerr << e.what() << '\n';
|
||||
}
|
||||
delete[] RX_time;
|
||||
delete[] TOW_at_current_symbol_s;
|
||||
delete[] Carrier_Doppler_hz;
|
||||
|
@ -29,6 +29,7 @@
|
||||
*/
|
||||
|
||||
#include "tlm_dump_reader.h"
|
||||
#include <exception>
|
||||
#include <iostream>
|
||||
#include <utility>
|
||||
|
||||
@ -90,7 +91,7 @@ bool tlm_dump_reader::open_obs_file(std::string out_file)
|
||||
}
|
||||
catch (const std::ifstream::failure &e)
|
||||
{
|
||||
std::cout << "Problem opening TLM dump Log file: " << d_dump_filename.c_str() << std::endl;
|
||||
std::cout << "Problem opening TLM dump Log file: " << d_dump_filename << std::endl;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@ -102,9 +103,20 @@ bool tlm_dump_reader::open_obs_file(std::string out_file)
|
||||
|
||||
|
||||
tlm_dump_reader::~tlm_dump_reader()
|
||||
{
|
||||
try
|
||||
{
|
||||
if (d_dump_file.is_open() == true)
|
||||
{
|
||||
d_dump_file.close();
|
||||
}
|
||||
}
|
||||
catch (const std::ifstream::failure &e)
|
||||
{
|
||||
std::cerr << "Problem closing TLM dump Log file: " << d_dump_filename << '\n';
|
||||
}
|
||||
catch (const std::exception &e)
|
||||
{
|
||||
std::cerr << e.what() << '\n';
|
||||
}
|
||||
}
|
||||
|
@ -29,6 +29,7 @@
|
||||
*/
|
||||
|
||||
#include "tracking_dump_reader.h"
|
||||
#include <exception>
|
||||
#include <iostream>
|
||||
#include <utility>
|
||||
|
||||
@ -112,7 +113,7 @@ bool tracking_dump_reader::open_obs_file(std::string out_file)
|
||||
}
|
||||
catch (const std::ifstream::failure &e)
|
||||
{
|
||||
std::cout << "Problem opening Tracking dump Log file: " << d_dump_filename.c_str() << std::endl;
|
||||
std::cout << "Problem opening Tracking dump Log file: " << d_dump_filename << std::endl;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@ -124,9 +125,20 @@ bool tracking_dump_reader::open_obs_file(std::string out_file)
|
||||
|
||||
|
||||
tracking_dump_reader::~tracking_dump_reader()
|
||||
{
|
||||
try
|
||||
{
|
||||
if (d_dump_file.is_open() == true)
|
||||
{
|
||||
d_dump_file.close();
|
||||
}
|
||||
}
|
||||
catch (const std::ifstream::failure &e)
|
||||
{
|
||||
std::cerr << "Problem closing Tracking dump Log file: " << d_dump_filename << '\n';
|
||||
}
|
||||
catch (const std::exception &e)
|
||||
{
|
||||
std::cerr << e.what() << '\n';
|
||||
}
|
||||
}
|
||||
|
@ -29,6 +29,7 @@
|
||||
*/
|
||||
|
||||
#include "tracking_true_obs_reader.h"
|
||||
#include <exception>
|
||||
#include <iostream>
|
||||
#include <utility>
|
||||
|
||||
@ -92,7 +93,7 @@ bool tracking_true_obs_reader::open_obs_file(std::string out_file)
|
||||
}
|
||||
catch (const std::ifstream::failure &e)
|
||||
{
|
||||
std::cout << "Problem opening Tracking dump Log file: " << d_dump_filename.c_str() << std::endl;
|
||||
std::cout << "Problem opening Tracking dump Log file: " << d_dump_filename << std::endl;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@ -111,9 +112,20 @@ void tracking_true_obs_reader::close_obs_file()
|
||||
}
|
||||
|
||||
tracking_true_obs_reader::~tracking_true_obs_reader()
|
||||
{
|
||||
try
|
||||
{
|
||||
if (d_dump_file.is_open() == true)
|
||||
{
|
||||
d_dump_file.close();
|
||||
}
|
||||
}
|
||||
catch (const std::ifstream::failure &e)
|
||||
{
|
||||
std::cerr << "Problem closing Tracking dump Log file: " << d_dump_filename << '\n';
|
||||
}
|
||||
catch (const std::exception &e)
|
||||
{
|
||||
std::cerr << e.what() << '\n';
|
||||
}
|
||||
}
|
||||
|
@ -29,6 +29,7 @@
|
||||
*/
|
||||
|
||||
#include "true_observables_reader.h"
|
||||
#include <exception>
|
||||
#include <iostream>
|
||||
#include <utility>
|
||||
|
||||
@ -97,7 +98,7 @@ bool true_observables_reader::open_obs_file(std::string out_file)
|
||||
}
|
||||
catch (const std::ifstream::failure &e)
|
||||
{
|
||||
std::cout << "Problem opening True observables Log file: " << d_dump_filename.c_str() << std::endl;
|
||||
std::cout << "Problem opening true Observables Log file: " << d_dump_filename << std::endl;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@ -109,9 +110,20 @@ bool true_observables_reader::open_obs_file(std::string out_file)
|
||||
|
||||
|
||||
true_observables_reader::~true_observables_reader()
|
||||
{
|
||||
try
|
||||
{
|
||||
if (d_dump_file.is_open() == true)
|
||||
{
|
||||
d_dump_file.close();
|
||||
}
|
||||
}
|
||||
catch (const std::ifstream::failure &e)
|
||||
{
|
||||
std::cerr << "Problem closing true Observables dump Log file: " << d_dump_filename << '\n';
|
||||
}
|
||||
catch (const std::exception &e)
|
||||
{
|
||||
std::cerr << e.what() << '\n';
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user