mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-01-18 21:23:02 +00:00
Add telecommand_enabled parameter, it defaults to false
This commit is contained in:
parent
e2582586b9
commit
58922251f7
@ -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())
|
||||
{
|
||||
|
@ -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
|
||||
* -------------------------------------------------------------------------
|
||||
|
@ -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
|
||||
* -------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user