GNSS-SDR学习笔记1--1.5 Control plane

本文档详细介绍了GNSS-SDR的主要功能,包括初始化logging库、处理命令行参数、创建ControlThread对象及其工作原理。GNSSFlowgraph类负责构建模块图并根据配置运行和修改。Control Plane根据配置文件生成流程图并管理模块,通过ConfigurationInterface和GNSSBlockFactory实现模块配置和实例化。
摘要由CSDN通过智能技术生成

GNSS-SDR_manual.pdf (v0.0.9) 下载地址: https://download.csdn.net/download/wmyan/10632255

目录

GNSS-SDR's main 函数:

GNSSFlowgraph 类 -> flowgraph对象

Control Plane基本工作思想

1.5.1 Configuration

1.5.2 GNSS block factory


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.

总结如下:

  1. 初始化logging库(主要用到google开源工具glog);
  2. 处理命令行参数(主要用到google开源工具gflags);
  3. 创建ControlThread对象:ControlThread的构造函数通过调用init()函数:

    (1)创建控制队列control_queue_ ;

    (2)并根据配置文件创建流程图flowgraph_(GNSSFlowgraph),(其构造函数调用了初始化函数init());

    (3)创建控制信息control_message_factory_;

  4. 运行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()

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值