摘 要
陀螺是惯性导航系统的心脏。随着惯导技术的发展,陀螺仪的漂移越来越严重地影响了惯导技术的精度。本论文的主要工作是根据陀螺仪的漂移数据,作出陀螺漂移的波形,并对报表打印。 该论文包括四部分:第一部分从总体上介绍了陀螺仪和面向对象的编程方法,对陀螺仪和Visual C++开发平台简要地进行了介绍;第二部分讲述陀螺仪漂移的基础知识,包括陀螺仪的原理、漂移率及其性质和对陀螺仪干扰力矩的分析;第三部分介绍了报表的打印,包括对打印机的相关技术指标的介绍,Visual C++6.0的图形设备接口,MFC的打印功能分析;第四部分介绍了多文档应用程序的Document/View结构,文档的序列化和对数据文件的读写,以及绘图功能。此外,对鼠标的响应、状态栏和工具栏也作了简要的介绍。 该软件可以解决在陀螺漂移数据处理报表打印,波形绘制的问题。 关键词:VC6.0;陀螺仪;漂移测试;报表打印 ABSTRACT The gyroscope is the most important part of inertial navigation systerm . With the development of inertial navigation techniques , the drift of the gyroscope has an increasing effect on the inertial navigation . The main work of the thesis is about drawing the wave form and printing the report . The thesis firstly discusses the basic knowledge of gyroscope including the overview and the OOP(object-oriented programming) methed . Secondly the basic knowledge of the drift is introduced , including principle and drift rate. It also includes the analysis of interaction torque . Thirdly it describes the method of the print , including the introduction of the related technique index of the printer and the analysis of MFC printing function . In the end it opens an existed data file and draws the curve based on the data . That software can resolve the printing the report and drawing the wave . Key words: VC6.0 ; gyroscope ; drift measuring ; printing the report 目 录 第一章 绪论…………………………………………………………………… 1 1.1 陀螺仪简介…………………………………………………………… 1 1.2 陀螺仪漂移测试的意义……………………………………………… 2 1.3 测试数据分析的意义………………………………………………… 3 1.4 C++语言及VC++6.0开发平台简介……………………………… 4 1.4.1 面向对象的技术和C++语言……………………………… 4 1.4.2 可视化技术和VC++6.0…………………………………… 5 1.4.3 MFC概述……………………………………………………… 6 1.4.4 AppWizard…………………………………………………… 7 1.4.5 ClassWizard………………………………………………………7 1.5 本章小结……………………………………………………………… 8 第二章 陀螺仪漂移测试……………………………………………………… 9 2.1 陀螺仪原理…………………………………………………………… 9 2.2 陀螺仪的漂移率…………………………………………………… 10 2.3 陀螺仪漂移的性质………………………………………………… 11 2.4 陀螺仪的干扰力矩………………………………………………… 12 2.5 陀螺仪漂移测试的意义…………………………………………… 13 2.6 本章小结…………………………………………………………… 14 第三章 报表的生成和打印……………………………………………………… 15 3.1 打印机介绍………………………………………………………… 15 3.1.1 打印机技术指标…………………………………………… 15 3.1.2 分辨率……………………………………………………… 16 3.2 设备环境…………………………………………………………… 17 3.2.1 图形设备接口……………………………………………… 17 3.2.2 基本绘图函数……………………………………………… 18 3.2.3 字体与文本………………………………………………… 19 3.3 映射模式…………………………………………………………… 21 3.4 MFC的打印功能分析………………………………………………23 3.5 打印程序实现……………………………………………………… 24 3.5.1 编辑OnDraw函数…………………………………………… 24 3.5.2设置打印参数…………………………………………………27 3.6 本章小结…………………………………………………………… 28 第四章 数据的波形显示…………………………………………………… 29 4.1 多文档界面应用程序的特点……………………………………… 29 4.1.1 Document/View结构………………………………………… 29 4.1.2 多文档界面应用程序的特点……………………………… 30 4.1.3 文件的打开和新建………………………………………… 31 4.2 文档的序列化……………………………………………………… 32 4.2.1 磁盘文件和归档(Archives)…………………………………33 4.2.2 使类可对象化……………………………………………… 33 4.2.3 编写Serialize函数…………………………………………… 33 4.2.4 Serialize函数应用程序框架………………………………… 33 4.2.5 设置文档类………………………………………………… 35 4.2.6 创建视图…………………………………………………… 36 4.3 鼠标响应…………………………………………………………… 37 4.4 状态栏……………………………………………………………… 39 4.4.1 状态栏的定义…………………………………………… 39 4.4.2 信息行……………………………………………………… 40 4.4.3 状态指示器………………………………………………… 40 4.4.4 对状态栏的控制…………………………………………… 40 4.5 工具栏……………………………………………………………… 41 4.5.1 概述………………………………………………………… 41 4.5.2 工具栏位图………………………………………………… 41 4.5.3 工具栏按钮的状态………………………………………… 42 4.5.4 工具栏和命令消息………………………………………… 42 4.5.5 工具栏更新命令UI消息控制函数………………………… 44 4.5.6获得主框架窗口………………………………………………45 4.6 本章小结…………………………………………………………… 46 结论………………………………………………………………………………46 参考文献…………………………………………………………………………47 致谢………………………………………………………………………………48 附录………………………………………………………………………………49 第一章 绪论 1.1陀螺仪简介 [1] [2] 下一页 |