With the rapid development of aerospace industry in China,the application of satellite technology is spread across various fields,and the commercial application of satellite system resources has gradually spread.Therefore,the development technology of satellites will be rapidly increasing in the direction of small size,low cost,short development cycle,high reliability and integration.As the most important part of the satellite platform,the satellite attitude and orbit control system(AOCS)is mainly responsible for completing attitude and orbit control tasks.As the main function of AOCS,the AOCS software counts the most direct and fast advancement direction to realize the commercial transformation of satellite development technology.In this paper,the AOCS software is taken as the research object.Based on the embedded real-time operating system μC/OS,the internal system resource allocation and scheduling management work is completed.And the design and implementation of the AOCS software is optimized.This paper expects to complete attitude orbit control function of the satellite system by using the embedded real-time operating system μC/OS and the AOCS application software.This solution will reduce the complexity of the scheduling management in the software,and strip the interaction between the system application software and the underlying hardware.Thereby the reuse rate of the system software will be improved,and the current situation of long satellite development cycle and low cost and low integration will be solved.To begin with,this paper discusses and analyzes the application fields and current status of satellite technology.And then the domestic and international status,development trend and application status of embedded real-time operating system are analyzed.It is proposed to adopt open source operating system which is improved to adapt to the application of AOCS.Using it to complete the design and development of the AOCS software is an effective way to solve the current satellite development problems.Then,the hardware structure of the satellite AOCS and the working principle and environment of the products used in the system are briefly analyzed.The composition and hierarchical structure of the system software,the functions of the underlying and application software,and the software operating environment are discussed.The functions and requirements of the AOCS software are analyzed.After that,this paper takes the embedded real-time operating system as the research object,and the main functions of the operating system involved in the implementation of the AOCS software is studied and analyzed.At the same time,combining the design and implementation of AOCS functions,the application of the operating system is respectively discussed in detail in terms of time management,resource management,data interaction and system environment migration.Then,the AOCS application software functions is decomposed.The tasks are divided according to the characteristics of each function.Each task module is designed in detail one by one.The reliability function of the satellite system is analyzed.The function implementation is realized by software design.The on-orbit programming of satellite software is studied and analyzed in detail and the design is completed from aspects of mechanism and function use.Additionally,through the mathematical modeling of each component of the attitude control system,the design of the system attitude control scheme is completed.The closed-loop control system model is simulated mathematically.The simulation results are studied and analyzed.Finally,the ground simulation test is carried out for the AOCS software.The system function and performance index analysis result are used as the standard for measuring the correctness and feasibility of the system software design and development.According to the test data and graph,the design and operation state of the AOCS software are analyzed.The experimental results show that the AOCS software designed in this paper satisfies all the functions and performance requirements of the satellite attitude control system. |