mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2024-12-14 20:20:35 +00:00
Fix test
This commit is contained in:
parent
739c008f49
commit
0e583f5c39
@ -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";
|
||||||
|
Loading…
Reference in New Issue
Block a user