GNSS-SDR_manual.pdf (v0.0.9) 下载地址: https://download.csdn.net/download/wmyan/10632255
目录
GNSSFlowgraph 类 -> flowgraph对象
GNSS-SDR's main 函数:
GNSS-SDR's main method initializes the logging library, processes the command line flags, if any, provided by the user and instantiates a ControlThread object. Its constructor reads the configuration file, creates a control queue and creates a flowgraph according to the configuration. Then, the program's main method calls the run() method of the instantiated object, an action that connects the flowgraph and starts running it. After that, and until a stop message is received, it reads control messages sent by the receiver's modules through a safe-thread queue and processes them. Finally, when a stop message is received, the main method executes the destructor of the ControlThread object, which deallocates memory, does other cleanup and exits the program.
总结如下:
- 初始化logging库(主要用到google开源工具glog);
- 处理命令行参数(主要用到google开源工具gflags);
- 创建ControlThread对象:ControlThread的构造函数通过调用init()函数:
(1)创建控制队列control_queue_ ;
(2)并根据配置文件创建流程图flowgraph_(GNSSFlowgraph),(其构造函数调用了初始化函数init());
(3)创建控制信息control_message_factory_;
- 运行ControlThread对象的成员函数run():
(1)连接流程图flowgraph_->connect();
(2)启动流程图flowgraph_->start();
(3)启动GNSS辅助assist_GNSS();
(4)启动两个线程:keyboard_thread_, sysv_queue_thread_;
(5)检测enable_FPGA,如果true,执行捕获辅助flowgraph_->start_acquisition_helper();
(6)while (flowgraph_->running()