mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-02-06 14:10:11 +00:00
Minor cleaning
This commit is contained in:
parent
c7486ad723
commit
144269a268
@ -182,7 +182,7 @@ void ControlThread::init()
|
|||||||
else
|
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;
|
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);
|
bool SUPL_read_gps_assistance_xml = configuration_->property("GNSS-SDR.SUPL_read_gps_assistance_xml", false);
|
||||||
if (SUPL_read_gps_assistance_xml == true)
|
if (SUPL_read_gps_assistance_xml == true)
|
||||||
{
|
{
|
||||||
// read assistance from file
|
// Read assistance from file
|
||||||
if (read_assistance_from_XML())
|
if (read_assistance_from_XML())
|
||||||
{
|
{
|
||||||
std::cout << "GNSS assistance data loaded from local XML file(s)." << std::endl;
|
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)))
|
if ((agnss_ref_location_.valid == true) and ((enable_gps_supl_assistance == true) or (enable_agnss_xml == true)))
|
||||||
{
|
{
|
||||||
// Get the list of visible satellites
|
// Get the list of visible satellites
|
||||||
@ -780,7 +780,6 @@ void ControlThread::read_control_messages()
|
|||||||
|
|
||||||
|
|
||||||
// Apply the corresponding control actions
|
// 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()
|
void ControlThread::process_control_messages()
|
||||||
{
|
{
|
||||||
for (unsigned int i = 0; i < control_messages_->size(); i++)
|
for (unsigned int i = 0; i < control_messages_->size(); i++)
|
||||||
@ -792,7 +791,7 @@ void ControlThread::process_control_messages()
|
|||||||
}
|
}
|
||||||
else
|
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);
|
apply_action(control_messages_->at(i)->what);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user