摘要
针对六自由度飞行模拟器仿真算法复杂性与实时性要求高的特点,首先将算法离散化为简单的加乘、三角函数运算,然后采用SDK编写C++程序实现控制算法。该方法程序设计紧凑、执行迅速,通过SetTimer()函数以采样时间(1/30s)为周期定时发出WM_TIMER消息,在该消息处理函数中具体实现手柄输入数据的读取、控制算法的计算、计算结果网络传输,从输入数据读取到输出数据传输所用时间小于采样时间(1/30s),满足了飞行模拟器在线实时控制的要求。
As the algorithm is very complex and high real time quality is required in the6DOF flight simulator,the algorithm firstly is made to discrete adding and multiplying and then realized with C++programming language in SDK.With calling the SetTimer()function,the method could accomplish reading data from control stick,algorithm 's realization,and sending the result data in a sampling cycle.It indicates that this method has met the re-quirement of6DOF flight simulation real time quality.
出处
《中国民航学院学报》
2003年第4期9-12,共4页
Journal of Civil Aviation University of China
基金
中国民航总局科技基金项目(2002703)