mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2024-12-14 20:20:35 +00:00
Merge branch 'next' into release_0010
This commit is contained in:
commit
a7f59ee4e2
@ -334,7 +334,7 @@ bool hybrid_ls_pvt::get_PVT(std::map<int, Gnss_Synchro> gnss_observables_map, do
|
|||||||
}
|
}
|
||||||
|
|
||||||
// get time string Gregorian calendar
|
// get time string Gregorian calendar
|
||||||
boost::posix_time::time_duration t = boost::posix_time::milliseconds(static_cast<long>(utc * 1000.0));
|
boost::posix_time::time_duration t = boost::posix_time::milliseconds(static_cast<long>(utc * 1000.0)); // NOLINT(google-runtime-int)
|
||||||
// 22 August 1999 00:00 last Galileo start GST epoch (ICD sec 5.1.2)
|
// 22 August 1999 00:00 last Galileo start GST epoch (ICD sec 5.1.2)
|
||||||
boost::posix_time::ptime p_time(boost::gregorian::date(1999, 8, 22), t);
|
boost::posix_time::ptime p_time(boost::gregorian::date(1999, 8, 22), t);
|
||||||
this->set_position_UTC_time(p_time);
|
this->set_position_UTC_time(p_time);
|
||||||
|
@ -102,7 +102,7 @@ Nmea_Printer::Nmea_Printer(const std::string& filename, bool flag_nmea_output_fi
|
|||||||
nmea_devname = std::move(nmea_dump_devname);
|
nmea_devname = std::move(nmea_dump_devname);
|
||||||
if (flag_nmea_tty_port == true)
|
if (flag_nmea_tty_port == true)
|
||||||
{
|
{
|
||||||
nmea_dev_descriptor = init_serial(nmea_devname.c_str());
|
nmea_dev_descriptor = init_serial(nmea_devname);
|
||||||
if (nmea_dev_descriptor != -1)
|
if (nmea_dev_descriptor != -1)
|
||||||
{
|
{
|
||||||
DLOG(INFO) << "NMEA printer writing on " << nmea_devname.c_str();
|
DLOG(INFO) << "NMEA printer writing on " << nmea_devname.c_str();
|
||||||
|
@ -867,7 +867,7 @@ bool rtklib_solver::get_PVT(const std::map<int, Gnss_Synchro> &gnss_observables_
|
|||||||
gtime_t rtklib_time = gpst2time(adjgpsweek(nav_data.eph[0].week), gnss_observables_map.begin()->second.RX_time);
|
gtime_t rtklib_time = gpst2time(adjgpsweek(nav_data.eph[0].week), gnss_observables_map.begin()->second.RX_time);
|
||||||
gtime_t rtklib_utc_time = gpst2utc(rtklib_time);
|
gtime_t rtklib_utc_time = gpst2utc(rtklib_time);
|
||||||
p_time = boost::posix_time::from_time_t(rtklib_utc_time.time);
|
p_time = boost::posix_time::from_time_t(rtklib_utc_time.time);
|
||||||
p_time += boost::posix_time::microseconds(static_cast<long>(round(rtklib_utc_time.sec * 1e6)));
|
p_time += boost::posix_time::microseconds(static_cast<long>(round(rtklib_utc_time.sec * 1e6))); // NOLINT(google-runtime-int)
|
||||||
this->set_position_UTC_time(p_time);
|
this->set_position_UTC_time(p_time);
|
||||||
cart2geo(static_cast<double>(rx_position_and_time(0)), static_cast<double>(rx_position_and_time(1)), static_cast<double>(rx_position_and_time(2)), 4);
|
cart2geo(static_cast<double>(rx_position_and_time(0)), static_cast<double>(rx_position_and_time(1)), static_cast<double>(rx_position_and_time(2)), 4);
|
||||||
|
|
||||||
|
@ -152,7 +152,7 @@ rtl_tcp_signal_source_c::rtl_tcp_signal_source_c(const std::string &address,
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
rtl_tcp_signal_source_c::~rtl_tcp_signal_source_c()
|
rtl_tcp_signal_source_c::~rtl_tcp_signal_source_c() // NOLINT(modernize-use-equals-default)
|
||||||
{
|
{
|
||||||
mutex_.unlock();
|
mutex_.unlock();
|
||||||
io_service_.stop();
|
io_service_.stop();
|
||||||
|
@ -309,7 +309,7 @@ void galileo_telemetry_decoder_cc::decode_INAV_word(double *page_part_symbols, i
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
// STORE HALF WORD (even page)
|
// STORE HALF WORD (even page)
|
||||||
d_inav_nav.split_page(page_String.c_str(), flag_even_word_arrived);
|
d_inav_nav.split_page(page_String, flag_even_word_arrived);
|
||||||
flag_even_word_arrived = 1;
|
flag_even_word_arrived = 1;
|
||||||
}
|
}
|
||||||
volk_gnsssdr_free(page_part_bits);
|
volk_gnsssdr_free(page_part_bits);
|
||||||
|
@ -189,7 +189,7 @@ void ControlThread::init()
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
ControlThread::~ControlThread()
|
ControlThread::~ControlThread() // NOLINT(modernize-use-equals-default)
|
||||||
{
|
{
|
||||||
if (msqid != -1) msgctl(msqid, IPC_RMID, NULL);
|
if (msqid != -1) msgctl(msqid, IPC_RMID, NULL);
|
||||||
}
|
}
|
||||||
@ -751,7 +751,7 @@ void ControlThread::assist_GNSS()
|
|||||||
time_t ref_rx_utc_time = 0;
|
time_t ref_rx_utc_time = 0;
|
||||||
if (agnss_ref_time_.valid == true)
|
if (agnss_ref_time_.valid == true)
|
||||||
{
|
{
|
||||||
ref_rx_utc_time = agnss_ref_time_.d_tv_sec;
|
ref_rx_utc_time = static_cast<time_t>(agnss_ref_time_.d_tv_sec);
|
||||||
}
|
}
|
||||||
|
|
||||||
std::vector<std::pair<int, Gnss_Satellite>> visible_sats = get_visible_sats(ref_rx_utc_time, ref_LLH);
|
std::vector<std::pair<int, Gnss_Satellite>> visible_sats = get_visible_sats(ref_rx_utc_time, ref_LLH);
|
||||||
|
Loading…
Reference in New Issue
Block a user