基于MFC的AUV多传感器数据采集系统设计及测试
2014-12-18高菲张东昆侯建钊
高菲+张东昆+侯建钊
摘 要: 由于海底环境的复杂性与任务的多样性,这就对AUV航向位姿环境等信息的实时性和可靠性提出很高的要求。为了降低海试成本和风险,以智能小车为硬件平台,装载AHRS、GPS、激光测距仪(LMS)等多个传感器,组成数据采集系统,采用模块化分布,使用多线程编程技术和串口通信技术,创建基于对话框的MFC应用程序,实现人机交互。
关键词: AUV; 多传感器; 串口通信; 多线程编程; MFC
中图分类号: TN964?34 文献标识码: A 文章编号: 1004?373X(2014)24?0130?03
Design and test for AUV multi?sensor data acquisition system based on MFC
GAO Fei, ZHANG Dong?kun, HOU Jian?zhao
(College of Information Science and Engineering, Ocean University of China, Qingdao 266100, China)
Abstract: In the 21st century, the ocean resources have been attracting more and more attentions from human, and AUV research has gradually become the mainstream trend. A higher requirement for the real?time performance and reliability of the heading, altitudes and location information of AUV is proposed Due to the complexity of underwater environment and varieties of task. In order to reduce the test cost and risk on sea, an intelligent vehicle is taken as a platform with AHRS, GPS, laser range finder and several sensors to constitute a data acquisition system, and modular distribution, multi?thread programming technology and serial port communication technology are adopted to establish a MFC application program based on dialog box, so as to realize the human?computer interaction.
Keywords: AUV; multi?sensor; serial communication; multithread programming; MFC
众所周知,海洋底部蕴藏着非常丰富的生物及矿产资源,自主式水下机器人(AUV)作为一种高技术手段,在海洋开发和利用中扮演重要的角色,受到各国特别是发达国家的高度重视。除了军事海洋方面,学术界也对AUV进行了大量的研究工作[1]。2002年,Oxford的Paul Newman提出MOOS系统,每个传感器作为独立进程,通过数据库MOOSDB按照UDP协议进行通信[2]。MIT的Benjamin在MOOS中加入IvP算法,实现AUV的自主决策[3]。
MIT的Albert S.Huang提出了LCM系统,利用模块化分布,基于TCP/IP协议实现数据可靠传输[4]。该系统也采用模块化分布模块,但是采用多线程体系,通过RS 232串口通信协议传输数据。
1 数据采集系统简介
数据采集系统主要包括4个模块:控制界面、数据保存模块、传感器处理模块、上层控制指令响应模块。其中,主控界面是整个软件系统的总控,为软件的各个模块提供接口,实现人机交互;保存模块主要是将传感器数据处理后保存到磁盘文件中;传感器处理模块又包括AHRS、HGPS、编码器等子传感器处理模块,主要负责数据的接收处理;上层控制指令响应模块用来解析控制指令控制传感器的工作。……
