This class represents the main thread of the application, so the name is ControlThread. This is the GNSS Receiver Control Plane: it connects the flowgraph, starts running it, and while it does not stop, reads the control messages generated by the blocks, processes them, and applies the corresponding actions.
More...
#include <control_thread.h>
This class represents the main thread of the application, so the name is ControlThread. This is the GNSS Receiver Control Plane: it connects the flowgraph, starts running it, and while it does not stop, reads the control messages generated by the blocks, processes them, and applies the corresponding actions.
Definition at line 64 of file control_thread.h.
◆ ControlThread() [1/2]
| ControlThread::ControlThread |
( |
| ) |
|
◆ ControlThread() [2/2]
Constructor that initializes the class with parameters.
- Parameters
-
◆ ~ControlThread()
| ControlThread::~ControlThread |
( |
| ) |
|
◆ applied_actions()
| unsigned int ControlThread::applied_actions |
( |
| ) |
const |
|
inline |
◆ flowgraph()
Instantiates a flowgraph.
- Returns
- Returns a smart pointer to a flowgraph object
Definition at line 121 of file control_thread.h.
◆ processed_control_messages()
| unsigned int ControlThread::processed_control_messages |
( |
| ) |
const |
|
inline |
◆ run()
| int ControlThread::run |
( |
| ) |
|
Runs the control thread.
This is the main loop that reads and process the control messages:
- Connect the GNSS receiver flowgraph;
- Start the GNSS receiver flowgraph;
while (flowgraph_->running() && !stop_){
- Read control messages and process them; }
◆ set_control_queue()
| void ControlThread::set_control_queue |
( |
std::shared_ptr< Concurrent_Queue< pmt::pmt_t > > | control_queue | ) |
|
Sets the control_queue.
- Parameters
-
| [in] | std::shared_ptr<Concurrent_Queue<pmt::pmt_t>> | control_queue |
◆ me
The documentation for this class was generated from the following file: