| The traditional design of flight control software for UAV(Unnamed Aerial Vehicles) is realized by writing code manually, which spends long time and much cost. With the rapid development of avionics software,the requirements of efficiency and security are more and more stringent. In order to resolve the shortage and seek a more effective method, the design and realization of flight control system based on SCADE (Safety Critical Application Development Environment) is studied.On the basis of SCADE and software development of flight control system, the thesis is engaged in making research on software design of control system for UAV. The designed scheme and realized methods which employ the tool of SCADE are discussed in detail. Firstly, the development environment of SCADE is presented summarily, and the traditional development and the development based on SCADE are analyzed and compared, the general designed scheme is determined. Secondly, several function modules of the control software, such as control law, autonomous navigation, and peripheral device control module, are realized using SCADE or Simulink gateway according to their design requirements. The bridge between Simulink and SCADE is involved in control law module development, and the advantages and disadvantages of Stateflow and SCADE are concerned on realizing navigation module. Furthermore, the generated embeddable C code is compiled with the hardware driver, the code is optimized through improving the process, and the efficiency of the code is analyzed. Finally, the correctness of design is validated through the hardware-in-the-loop simulation. The result shows that software development using SCADE is high automatized and the cost can be much reduced, besides, the generated code has a characteristic of high security.According to the running result of the software design of flight control system based on SCADE, it indicates that the adopted technical route and designed scheme are feasible and effective.The technique has the characteristic of universality, flexibility, and so on. The achievement has a high value in the software development of flight control system for UAV. |