1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2025-01-30 02:44:50 +00:00

Minor cleaning

This commit is contained in:
Carles Fernandez 2018-11-24 09:40:15 +01:00
parent c7486ad723
commit 144269a268
No known key found for this signature in database
GPG Key ID: 4C583C52B0C3877D

View File

@ -182,7 +182,7 @@ void ControlThread::init()
else
{
std::cerr << "GNSS-SDR.AGNSS_ref_utc_time=" << ref_time_str << " is not well-formed. Should be DD/MM/YYYY HH:MM:SS in UTC" << std::endl;
agnss_ref_location_.valid = false;
agnss_ref_time_.valid = false;
}
}
}
@ -590,7 +590,7 @@ void ControlThread::assist_GNSS()
bool SUPL_read_gps_assistance_xml = configuration_->property("GNSS-SDR.SUPL_read_gps_assistance_xml", false);
if (SUPL_read_gps_assistance_xml == true)
{
// read assistance from file
// Read assistance from file
if (read_assistance_from_XML())
{
std::cout << "GNSS assistance data loaded from local XML file(s)." << std::endl;
@ -740,7 +740,7 @@ void ControlThread::assist_GNSS()
}
}
// If we have enough AGNSS data, make use of it
// If AGNSS is enabled, make use of it
if ((agnss_ref_location_.valid == true) and ((enable_gps_supl_assistance == true) or (enable_agnss_xml == true)))
{
// Get the list of visible satellites
@ -780,7 +780,6 @@ void ControlThread::read_control_messages()
// Apply the corresponding control actions
// TODO: May be it is better to move the apply_action state machine to the control_thread
void ControlThread::process_control_messages()
{
for (unsigned int i = 0; i < control_messages_->size(); i++)
@ -792,7 +791,7 @@ void ControlThread::process_control_messages()
}
else
{
if (control_messages_->at(i)->who == 300) //some TC commands require also actions from controlthread
if (control_messages_->at(i)->who == 300) // some TC commands require also actions from control_thread
{
apply_action(control_messages_->at(i)->what);
}