1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2024-12-14 20:20:35 +00:00
This commit is contained in:
Carles Fernandez 2019-07-19 23:26:26 +02:00
parent 739c008f49
commit 0e583f5c39
No known key found for this signature in database
GPG Key ID: 4C583C52B0C3877D

View File

@ -228,6 +228,7 @@ void ControlThread::event_dispatcher(bool &valid_event, pmt::pmt_t &msg)
{ {
if (valid_event) if (valid_event)
{ {
processed_control_messages_++;
if (pmt::any_ref(msg).type() == typeid(channel_event_sptr)) if (pmt::any_ref(msg).type() == typeid(channel_event_sptr))
{ {
channel_event_sptr new_event; channel_event_sptr new_event;
@ -834,18 +835,17 @@ void ControlThread::apply_action(unsigned int what)
{ {
std::shared_ptr<PvtInterface> pvt_ptr; std::shared_ptr<PvtInterface> pvt_ptr;
std::vector<std::pair<int, Gnss_Satellite>> visible_satellites; std::vector<std::pair<int, Gnss_Satellite>> visible_satellites;
applied_actions_++;
switch (what) switch (what)
{ {
case 0: case 0:
LOG(INFO) << "Received action STOP"; LOG(INFO) << "Received action STOP";
stop_ = true; stop_ = true;
applied_actions_++;
break; break;
case 1: case 1:
LOG(INFO) << "Received action RESTART"; LOG(INFO) << "Received action RESTART";
stop_ = true; stop_ = true;
restart_ = true; restart_ = true;
applied_actions_++;
break; break;
case 11: case 11:
LOG(INFO) << "Receiver action COLDSTART"; LOG(INFO) << "Receiver action COLDSTART";