(北京航空航天大學 宇航學院,北京 100191)
摘 要:根據Matlab/Simulink工具與STK軟件在衛星姿態控制系統仿真中的作用,考慮到Simulink無法直接與STK進行通信,因此需要研究解決Matlab/Simulink與STK聯合仿真過程中的相關技術難點。通過使用C語言連接STK,以及對Matlab/Simulink與C++經由UDP網絡協議進行數據交換的方法研究,構建了基于C++的服務器程序。仿真算例驗證了該服務器程序能夠實現Matlab/Simulink與STK的聯合仿真。此服務器程序的建立不僅能夠實現Matlab/Simulink與STK軟件間的數據交換,并且能夠推廣到其他任何能夠與VC建立連接的軟件控制之中。
關 鍵 詞:聯合仿真;Matlab/Simulink;STK;UDP協議;姿態控制
中圖分類號:TP391.9 文獻標識碼:A 文章編號:
The Study of Co-simulation of Satellite Attitude Control System Based on Matlab/Simulink and STK
Chen Lei Han Chao
(School of Astronautics, Beijing University of Aeronautics and Astronautics, Beijing 100191, China, Email:chenlei.89@foxmail.com)
Abstract: According to the important roles that Matlab/Simulink tools and STK software play in the simulation of attitude control system of satellite, and the fact that Simulink cannot communicate with STK directly, some related technical difficulties about co-simulation between Matlab/ Simulink and STK should be studied. By using the C language to establish connection with STK, and doing some research into data exchange method between Matlab/Simulink and C++ via UDP network protocol, a server program was constructed based on the C++ language. A simulation example has verified that the server program can realize co-simulation between Matlab/Simulink and STK. Besides that, it can also be extended to any other software which can make connection with the VC program.
Key words: co-simulation; Matlab/Simulink; STK; UDP protocol; attitude control
參考文獻
(1)薛定宇, 陳陽泉. 基于MATLAB/Simulink的系統仿真技術與應用[M]. 北京: 清華大學出版社, 200.
(2)周黎妮, 唐國金, 羅亞中. 基于Matlab/Simulink的航天器姿態動力學與控制仿真框架[J]. 系統仿真學報, 2005.10(17):2517-2520.
(3)STK User’s Manual Version 4.0.5 for PCS[M]. Analytical Graphics, INC(AGI), 1998.
(4)STK 4.0.6 Release Notes[M]. Analytical Graphics, INC(AGI), 1998.
(5)Ralph C Patrick, Sheila R Marshal, STK Connect[R]. Analytical Graphics, INC(AGI), 1998.
(6)楊穎, 王琦. STK在計算機仿真中的應用[M]. 北京: 國防工業出版社, 2005.
(7)周麗娟. 基于UDP協議的Socket網絡編程[J]. 電腦知識與技術, 2008.4(7):1867-1868.
(8)吳禮發, 謝希仁. 網絡程序設計教程[M]. 北京: 北京希望電子出版社, 2002.
導師簡介:韓潮
論文研究方向:衛星姿態控制系統仿真
作者簡介:
陳蕾,女,新疆克拉瑪依市人,1989年出生,北京航空航天大學宇航學院飛行器設計專業本科畢業,F為北京航空航天大學在讀碩士。主要研究方向為撓性航天器姿態仿真及控制系統。碩士期間做過Matlab/Simulink與STK、ADAMS軟件的數據交換工作與航天器軌道與姿態控制系統仿真等研究。