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

Add telecommand_enabled parameter, it defaults to false

This commit is contained in:
Carles Fernandez 2018-12-11 10:36:15 +01:00
parent e2582586b9
commit 58922251f7
No known key found for this signature in database
GPG Key ID: 4C583C52B0C3877D
3 changed files with 9 additions and 5 deletions

View File

@ -197,8 +197,12 @@ ControlThread::~ControlThread()
void ControlThread::telecommand_listener()
{
int tcp_cmd_port = configuration_->property("GNSS-SDR.telecontrol_tcp_port", 3333);
cmd_interface_.run_cmd_server(tcp_cmd_port);
bool telecommand_enabled = configuration_->property("GNSS-SDR.telecommand_enabled", false);
if (telecommand_enabled)
{
int tcp_cmd_port = configuration_->property("GNSS-SDR.telecommand_tcp_port", 3333);
cmd_interface_.run_cmd_server(tcp_cmd_port);
}
}
@ -295,7 +299,7 @@ int ControlThread::run()
}
void ControlThread::set_control_queue(const gr::msg_queue::sptr& control_queue)
void ControlThread::set_control_queue(const gr::msg_queue::sptr &control_queue)
{
if (flowgraph_->running())
{

View File

@ -1,7 +1,7 @@
/*!
* \file tcp_cmd_interface.cc
*
* \brief Class that implements a TCP telecontrol command line interface
* \brief Class that implements a TCP/IP telecommand command line interface
* for GNSS-SDR
* \author Javier Arribas jarribas (at) cttc.es
* -------------------------------------------------------------------------

View File

@ -1,7 +1,7 @@
/*!
* \file tcp_cmd_interface.h
*
* \brief Class that implements a TCP telecontrol command line interface
* \brief Class that implements a TCP/IP telecommand command line interface
* for GNSS-SDR
* \author Javier Arribas jarribas (at) cttc.es
* -------------------------------------------------------------------------