1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2024-06-26 06:53:14 +00:00

Better string comparison

This commit is contained in:
Carles Fernandez 2019-02-10 14:07:27 +01:00
parent f0e2c7c48d
commit c46cdcb188
No known key found for this signature in database
GPG Key ID: 4C583C52B0C3877D

View File

@ -78,7 +78,7 @@ using google::LogMessage;
ControlThread::ControlThread()
{
if (!FLAGS_c.compare("-"))
if (FLAGS_c == "-")
{
configuration_ = std::make_shared<FileConfiguration>(FLAGS_config_file);
}
@ -776,7 +776,7 @@ void ControlThread::read_control_messages()
// Apply the corresponding control actions
void ControlThread::process_control_messages()
{
for (auto & i : *control_messages_)
for (auto &i : *control_messages_)
{
if (stop_) break;
if (i->who == 200)
@ -881,7 +881,7 @@ std::vector<std::pair<int, Gnss_Satellite>> ControlThread::get_visible_sats(time
<< "UTC, assuming RX position " << LLH(0) << " [deg], " << LLH(1) << " [deg], " << LLH(2) << " [m]" << std::endl;
std::map<int, Gps_Ephemeris> gps_eph_map = pvt_ptr->get_gps_ephemeris();
for (auto & it : gps_eph_map)
for (auto &it : gps_eph_map)
{
eph_t rtklib_eph = eph_to_rtklib(it.second);
double r_sat[3];
@ -904,7 +904,7 @@ std::vector<std::pair<int, Gnss_Satellite>> ControlThread::get_visible_sats(time
}
std::map<int, Galileo_Ephemeris> gal_eph_map = pvt_ptr->get_galileo_ephemeris();
for (auto & it : gal_eph_map)
for (auto &it : gal_eph_map)
{
eph_t rtklib_eph = eph_to_rtklib(it.second);
double r_sat[3];
@ -927,7 +927,7 @@ std::vector<std::pair<int, Gnss_Satellite>> ControlThread::get_visible_sats(time
}
std::map<int, Gps_Almanac> gps_alm_map = pvt_ptr->get_gps_almanac();
for (auto & it : gps_alm_map)
for (auto &it : gps_alm_map)
{
alm_t rtklib_alm = alm_to_rtklib(it.second);
double r_sat[3];
@ -954,7 +954,7 @@ std::vector<std::pair<int, Gnss_Satellite>> ControlThread::get_visible_sats(time
}
std::map<int, Galileo_Almanac> gal_alm_map = pvt_ptr->get_galileo_almanac();
for (auto & it : gal_alm_map)
for (auto &it : gal_alm_map)
{
alm_t rtklib_alm = alm_to_rtklib(it.second);
double r_sat[3];