mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-11-21 09:34:53 +00:00
Now you can change the default /tmp directory with the flag --log_dir
$ ./gnss-sdr --log_dir=./log Added some documentation and comments git-svn-id: https://svn.code.sf.net/p/gnss-sdr/code/trunk@101 64b25241-fba3-4117-9849-534c7e92360d
This commit is contained in:
@@ -1,8 +1,12 @@
|
||||
/*!
|
||||
* \file control_thread.h
|
||||
* \brief This class represents the main thread of the application, aka control thread.
|
||||
* \brief Interface of the receiver control plane
|
||||
* \author Carlos Aviles, 2010. carlos.avilesr(at)googlemail.com
|
||||
*
|
||||
* GNSS Receiver Control Plane: connects the flowgraph, starts running it,
|
||||
* and while it does not stop, reads the control messages generated by the blocks,
|
||||
* process them, and apply the corresponding actions.
|
||||
*
|
||||
* -------------------------------------------------------------------------
|
||||
*
|
||||
* Copyright (C) 2010-2011 (see AUTHORS file for a list of contributors)
|
||||
@@ -45,10 +49,12 @@ class ControlThread
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
//! Default constructor
|
||||
/*!
|
||||
* \brief Default constructor
|
||||
*/
|
||||
ControlThread();
|
||||
|
||||
|
||||
/*!
|
||||
* \brief Constructor that initializes the class with parameters
|
||||
*
|
||||
@@ -56,12 +62,18 @@ public:
|
||||
*/
|
||||
ControlThread(ConfigurationInterface *configuration);
|
||||
|
||||
//! Virtual destructor. Derived classes must implement the destructor
|
||||
|
||||
//! \brief Virtual destructor. Derived classes must implement the destructor
|
||||
virtual ~ControlThread();
|
||||
|
||||
/*!
|
||||
* \brief Runs the ControlThread
|
||||
*/
|
||||
/*! \brief Runs the control thread
|
||||
*
|
||||
* This is the main loop that reads and process the control messages
|
||||
* 1- Connect the GNSS receiver flowgraph
|
||||
* 2- Start the GNSS receiver flowgraph
|
||||
* while (flowgraph_->running() && !stop)_{
|
||||
* 3- Read control messages and process them }
|
||||
*/
|
||||
void run();
|
||||
|
||||
/*!
|
||||
@@ -71,6 +83,7 @@ public:
|
||||
*/
|
||||
void set_control_queue(gr_msg_queue_sptr control_queue);
|
||||
|
||||
|
||||
unsigned int processed_control_messages()
|
||||
{
|
||||
return processed_control_messages_;
|
||||
@@ -88,6 +101,7 @@ public:
|
||||
*/
|
||||
GNSSFlowgraph* flowgraph()
|
||||
{
|
||||
|
||||
return flowgraph_;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user