A flight control software testing system and method based on shared memory

Through a flight control software testing system based on shared memory, the flight control simulation module and the mathematical simulation module are used to simulate the signal interaction of aircraft, and the rapid development and testing of flight control software is realized, solving the problem of long development and testing time and saving hardware overhead.

CN113010403BActive Publication Date: 2024-11-12HIWING AVIATION GENERAL EQUIP
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
CN201911320420.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-12-19
Publication Date
2024-11-12
Estimated Expiration
2039-12-19

AI Technical Summary

Technical Problem

The development and testing of flight control software relies on flight control computers and actual aircraft control equipment, resulting in the development and testing start-up time and long cycle, which has become a shortcoming in the development of drones.

Method used

The flight control software test system based on shared memory is adopted, and the signal interaction between the flight control software and external aircraft control equipment is simulated through the flight control simulation module and the mathematical simulation module. The shared memory module is used for data communication and synchronization, and the rapid development and testing are achieved.

Benefits of technology

Rapid development and testing of flight control software can be carried out without relying on flight control computers and actual aircraft control equipment, shortening the development cycle, saving hardware overhead, and ensuring the effectiveness of the test.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113010403B_ABST
    Figure CN113010403B_ABST
Patent Text Reader

Abstract

The invention provides a flight control software test system based on shared memory, comprising a flight control simulation module, a shared memory module and a mathematical simulation module; the flight control simulation module is used for obtaining aircraft navigation information from the shared memory module, performing control law calculation according to user instructions and aircraft navigation information to obtain flight control instructions, forming control information according to the flight control instructions, and transmitting the control information to the shared memory module; the mathematical simulation module is used for obtaining control information of the shared memory module, performing calculation according to the control information to obtain aircraft navigation information, and transmitting the aircraft navigation information to the shared memory module. The invention can perform rapid development and testing on flight control software without relying on hardware products.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of flight control software testing, and in particular to a flight control software testing system and method based on shared memory. Background Art

[0002] Flight control software is embedded software running on the flight control computer, and its functional testing relies on the flight control computer and simulation test equipment equipped with real communication interfaces. During the UAV development phase, due to the limited progress of hardware product development, the development and testing of flight control software started late and had a long cycle, which often became the shortcoming of the entire UAV development cycle. Summary of the invention

[0003] One object of the present invention is to provide a flight control software testing system based on shared memory, which can rapidly develop and test flight control software without relying on hardware products. Another object of the present invention is to provide a flight control software testing method based on shared memory.

[0004] In order to achieve the above objectives, the present invention discloses, on one hand, a flight control software test system based on shared memory, comprising a flight control simulation module, a shared memory module and a mathematical simulation module;

[0005] The flight control simulation module is used to obtain aircraft navigation information from the shared memory module, perform control law calculation according to user instructions and the aircraft navigation information to obtain flight control instructions, form control information according to the flight control instructions, and transmit the control information to the shared memory module;

[0006] The mathematical simulation module is used to obtain control information of the shared memory module, calculate and obtain aircraft navigation information according to the control information, and transmit the aircraft navigation information to the shared memory module.

[0007] Preferably, the flight control simulation module includes a flight control application submodule and a device simulation submodule;

[0008] The flight control application submodule is used to solve the control law according to the user instructions and the aircraft navigation information to obtain the flight control instructions;

[0009] The device simulation submodule is used to obtain aircraft navigation information from the shared memory module and send the aircraft navigation information to the flight control application submodule, and receive flight control instructions transmitted by the flight control application submodule, form control information according to the flight control instructions, and transmit the control information to the shared memory module.

[0010] Preferably, the flight control application submodule includes a data acquisition unit, a data sending unit and a flight control solution unit;

[0011] The data acquisition unit is used to obtain the aircraft navigation information of the equipment simulation submodule, convert the navigation information into a hardware interface data frame format corresponding to the flight control computer, and then transmit it to the flight control solution unit;

[0012] The flight control solving unit is used to solve the aircraft control instructions according to the aircraft navigation information and the user instructions and transmit them to the data sending unit.

[0013] The data sending unit is used to receive the control instructions of the flight control solution unit and transmit the control instructions to the device simulation submodule.

[0014] Preferably, the device simulation submodule includes a control device unit and a measurement data unit;

[0015] The control device unit is used to receive the control instruction transmitted by the flight control application submodule, form the control information of the aircraft device according to the control instruction and transmit the control information to the shared memory module;

[0016] The measurement data unit is used to obtain aircraft navigation information from the shared memory unit and send the navigation information to the flight control application submodule.

[0017] Preferably, the mathematical simulation module includes a control instruction receiving unit, a model solving unit and a navigation information sending unit;

[0018] The control instruction receiving unit is used to obtain control information from the shared memory module and transmit the control information to the model solving unit;

[0019] The model solving unit is used to solve the control information through an aerodynamic model, a dynamic model and / or a motion model to obtain the aircraft navigation information;

[0020] The navigation information sending unit is used to send the navigation information to the shared memory module.

[0021] Preferably, it further includes a first timing synchronization submodule, a second timing synchronization submodule and a third timing synchronization submodule;

[0022] The first timing synchronization submodule is used to form a first timing after transmitting the control information to the shared memory module and transmit it to the shared memory module, update the first time signal of the shared memory module to the first timing, and obtain the second time signal of the shared memory module, and determine whether the mathematical simulation module has transmitted the navigation information to the shared memory module according to the second time signal;

[0023] The third timing synchronization submodule is used to form a second timing and transmit it to the shared memory module after transmitting the aircraft navigation information to the shared memory module, and update the second time signal of the shared memory module to the second timing;

[0024] The second timing synchronization submodule is used to obtain the first time signal from the shared memory module, and if the first time signal is greater than the current second timing, control the mathematical simulation module to obtain control information of the shared memory module.

[0025] The present invention also discloses a flight control software testing method based on shared memory, comprising:

[0026] Obtain aircraft navigation information from the shared memory module, and solve the control law according to the user instructions and the aircraft navigation information to obtain the flight control instructions;

[0027] forming control information according to the flight control instruction, and transmitting the control information to a shared memory module;

[0028] The control information of the shared memory module is acquired, the aircraft navigation information is obtained according to the control information, and the aircraft navigation information is transmitted to the shared memory module.

[0029] Preferably, further comprising:

[0030] After transmitting the control information to the shared memory module, forming a first timing sequence and transmitting it to the shared memory module, and updating a first time signal of the shared memory module to the first timing sequence;

[0031] Acquire the first time signal from the shared memory module, and if the first time signal is greater than the current second timing, control the mathematical simulation module to acquire control information of the shared memory module;

[0032] After transmitting the aircraft navigation information to the shared memory module, forming a second time sequence and transmitting it to the shared memory module, and updating a second time signal of the shared memory module to the second time sequence;

[0033] A second time signal of the shared memory module is acquired, and according to the second time signal, it is determined whether the mathematical simulation module has transmitted the navigation information to the shared memory module.

[0034] The present invention also discloses a computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor.

[0035] When the processor executes the program, the method described above is implemented.

[0036] The present invention also discloses a computer readable medium having a computer program stored thereon.

[0037] When the program is executed by a processor, the method described above is implemented.

[0038] The present invention simulates the flight control software and the aircraft control device on the flight control computer through the flight control simulation module, realizes the simulation of the signal interaction between the flight control software and the external aircraft control device, obtains the control information based on the control instruction output by the flight control software, and solves the control information through the mathematical simulation module to obtain the aircraft navigation information, and can simulate the actual execution process of the aircraft control device according to the navigation information obtained by the solution, and can further determine the accuracy of the control instruction issued by the flight control software according to the navigation information, thereby realizing the test of the flight control software. In addition, the present invention realizes the data communication between the flight control simulation module and the mathematical simulation module through the shared memory module, realizes the rapid synchronization and interaction of data, and ensures the effective execution of the flight control software test. The present invention can form a fast development and test of the flight control software without relying on the flight control computer and the actual aircraft control device, and shortens the development cycle of the flight control software as much as possible without reducing the flight control software, saving hardware expenses. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0040] Figure 1 One of the structural diagrams of a specific embodiment of a flight control software test system based on shared memory of the present invention is shown;

[0041] Figure 2 A second structural diagram showing a specific embodiment of a flight control software test system based on shared memory according to the present invention;

[0042] Figure 3 One of the flow charts showing a specific embodiment of a flight control software testing method based on shared memory of the present invention;

[0043] Figure 4 A second flowchart showing a specific embodiment of a flight control software testing method based on shared memory of the present invention;

[0044] Figure 5 A schematic diagram showing the structure of a computer device suitable for implementing an embodiment of the present invention is shown. DETAILED DESCRIPTION

[0045] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0046] At present, the test of the flight control software of the flight control computer on the aircraft depends on the development progress of the aircraft. It can only be tested after the development of the aircraft is completed, which leads to the problem that the development and testing of the flight control software starts late but the cycle is long. The development of flight control software has become the shortcoming of the entire aircraft development cycle. The number of aircraft control devices that the flight control computer interacts with is large and the types of signals are many. The information transmitted between the flight control software and the external control devices mainly includes navigation information reception, atmospheric data reception, motor control signal transmission and engine signal, etc. Some flight control software also needs to bear the transmission of electrical control information. It is very difficult to test the flight control software that does not rely on the actual aircraft.

[0047] According to one aspect of the present invention, this embodiment discloses a flight control software testing system based on shared memory. Figure 1 and Figure 2 As shown, in this embodiment, the flight control software testing system includes a flight control simulation module 1, a shared memory module 3 and a mathematical simulation module 2.

[0048] Among them, the flight control simulation module 1 is used to obtain aircraft navigation information from the shared memory module 3, solve the control law according to user instructions and aircraft navigation information to obtain flight control instructions, form control information according to the flight control instructions, and transmit the control information to the shared memory module 3.

[0049] The mathematical simulation module 2 is used to obtain control information of the shared memory module 3 , calculate and obtain aircraft navigation information according to the control information, and transmit the aircraft navigation information to the shared memory module 3 .

[0050] The present invention simulates the flight control software and the aircraft control device on the flight control computer through the flight control simulation module 1, realizes the simulation of the signal interaction between the flight control software and the external aircraft control device, obtains the control information based on the control instruction output by the flight control software, and solves the control information through the mathematical simulation module 2 to obtain the aircraft navigation information, and can simulate the actual execution process of the aircraft control device according to the navigation information obtained by the solution, and can further determine the accuracy of the control instruction issued by the flight control software according to the navigation information, thereby realizing the test of the flight control software. In addition, the present invention realizes the data communication between the flight control simulation module 1 and the mathematical simulation module 2 through the shared memory module 3, realizes the rapid synchronization and interaction of data, and ensures the effective execution of the flight control software test. The present invention can realize the rapid development and testing of the flight control software without relying on the actual flight control computer and the aircraft control device on the aircraft, and shortens the development cycle of the flight control software as much as possible without reducing the flight control software, saving hardware expenses.

[0051] In an optional embodiment, the flight control software test system can be built under the Windows operating system, and the flight control simulation module 1 and the mathematical simulation module 2 are run simultaneously as two independent processes. The flight control simulation module 1 includes flight control software adapted to the Windows system and other control devices on the simulator that communicate with the flight control computer data, such as inertial navigation, steering gear controller, engine controller, etc. The two processes have real-time and large amounts of data interaction during operation, and the shared memory module 3 of the shared memory between processes can be implemented using the Windows operating system kernel object memory mapping file. Shared memory is implemented using a memory mapping file. Shared memory maps a physical memory to the virtual address space of each process, so that each process can read the same data, thereby realizing inter-process communication. Data exchange is efficient through memory operations, meeting the performance requirements of flight control software simulation. Building a shared memory module 3 in the process, that is, creating a memory mapping file object, can create a memory mapping file object when the flight control simulation module 1 is initialized, and the flight control simulation module 1 can obtain the address of the memory area for reading and writing. The mathematical simulation module 2 does not need to create a memory mapping file object when using the shared memory module 3, but only needs to open the handle of the memory mapping file object and obtain the shared memory address to read and write data. When the mathematical simulation module 2 is started, the handle of the memory-mapped file object is opened and the memory first address is returned. Before solving with the mathematical model, the control information is received from the shared memory module 3, and the navigation information is sent to the shared memory area after the model solution is completed. The flight control simulation module 1 calls the device simulation submodule 12 before calling the flight control application submodule 11. The device simulation submodule 12 reads the navigation information from the shared memory module 3 to the memory of the current process, and sends the control information of the previous time interval to the shared memory module 3.

[0052] In a preferred embodiment, the flight control simulation module 1 includes a flight control application submodule 11 and a device simulation submodule 12 .

[0053] The flight control application submodule 11 is used to solve the control law according to the user instructions and the aircraft navigation information to obtain the flight control instructions.

[0054] The device simulation submodule 12 is used to obtain aircraft navigation information from the shared memory module 3 and send the aircraft navigation information to the flight control application submodule 11, and receive flight control instructions transmitted by the flight control application submodule 11, form control information according to the flight control instructions, and transmit the control information to the shared memory module 3.

[0055] It is understandable that the flight control software to be tested is loaded in the flight control application submodule 11, which can be used to simulate the functions of the flight control software. Thus, the flight control application submodule 11 can simulate the flight control software to solve the control law according to the user instructions and the aircraft navigation information to obtain the flight control instructions, and transmit the flight control instructions to the device simulation submodule 12 for simulating the aircraft control device to simulate the flight control instructions output by the flight control application submodule 11 to test the flight control software. Among them, the navigation information includes information such as the position, speed and attitude of the aircraft.

[0056] In a preferred embodiment, the flight control application submodule 11 includes a data acquisition unit 111 , a data sending unit 112 and a flight control solving unit 113 .

[0057] The data acquisition unit 111 is used to obtain the aircraft navigation information of the equipment simulation submodule 12, convert the navigation information into a hardware interface data frame format corresponding to the flight control computer, and then transmit it to the flight control solution unit 113;

[0058] The flight control solution unit 113 is used to solve the aircraft control instructions according to the aircraft navigation information and the user instructions and transmit them to the data sending unit 112. The flight control solution unit 113 may include one or more flight control software that provide functions such as track tracking control, attitude stabilization control, speed control, task timing control and information exchange communication.

[0059] The data sending unit 112 is used to receive control instructions from the flight control solving unit 113 and transmit the control instructions to the device simulation submodule 12 .

[0060] Specifically, in the actual flight control computer, the embedded flight control software and the hardware bottom layer realize the CPU initialization, communication interface initialization and communication interface data sending and receiving functions through the interface function call. In order to build a fast simulation test system for flight control software, the existing flight control software can be adaptively modified, and the interface function of the flight control software is simulated to be initialized successfully or failed and the state is returned to form the flight control solution unit 113. Further, the control instructions solved by the flight control solution unit 113 are transmitted to the device simulation submodule 12 in the hardware interface data frame format through the data sending unit 112, and the aircraft navigation information of the device simulation submodule 12 is obtained through the data acquisition unit 111, and the navigation information is converted into the hardware interface data frame format corresponding to the flight control computer and then transmitted to the flight control solution unit 113, and the information is sent and received through the hardware interface data frame format, so that the calling part of the bottom function in the flight control software does not need to be changed, and the flight control solution unit 113 is formed by changing the flight control software as little as possible, which is convenient for testing the complete functions of the flight control software.

[0061] In a preferred embodiment, the device simulation submodule 12 includes a device control unit 121 and a measurement data unit 122 .

[0062] The control device unit 121 is used to receive the control instructions transmitted by the flight control application submodule 11, form control information of the aircraft device according to the control instructions and transmit the control information to the shared memory module 3. The control information includes information such as steering gear / throttle control instructions and time synchronization signals.

[0063] The measurement data unit 122 is used to obtain aircraft navigation information from the shared memory unit and send the navigation information to the flight control application submodule 11 .

[0064] It can be understood that in order to realize a complete system closed loop and enable the smooth execution of the aircraft workflow, it is necessary to simulate the data flow sent by other control devices to the flight control computer, so the device simulation submodule 12 is added to realize this function. Aircraft control devices include two major categories, one of which is a device with a measurement function, such as an inertial navigation, an atmospheric machine, and a radio altimeter. In this embodiment, the device with a measurement function is simulated by the measurement data unit 122, and the navigation information measured by the measurement data unit 122 can be obtained from the shared memory module 3. Further, the measurement data unit 122 can also increase the device measurement error function, and the navigation information can be transmitted to the flight control simulation module 1 in the hardware interface data frame format, that is, the data string composed of the simulated communication interface is sent to the flight control computer; the other category is a control device with a control function, such as a rudder system, an engine, and an electrical controller. In this embodiment, the control device unit 121 simulates a control device with a control function, and receives the flight control instructions of the flight control simulation module 1 to form control information. The control information may include navigation information, flight control instructions, and control device status information obtained by the operation of the device. After the control device unit 121 transmits the control information to the shared memory module 3, the mathematical simulation module 2 can obtain the control information from the shared memory module 3 to solve and obtain the navigation information. The control device unit 121 also needs to simulate on time to ensure the status information of the aircraft operation process, such as self-test results, status words, and instruction execution result words, etc., to simulate the smooth execution of the entire takeoff and recovery process.

[0065] In a preferred embodiment, the mathematical simulation module 2 includes a control instruction receiving unit 21 , a model solving unit 22 and a navigation information sending unit 23 .

[0066] The control instruction receiving unit 21 is used to obtain control information from the shared memory module 3 and transmit the control information to the model solving unit 22 .

[0067] The model solving unit 22 is used to solve the control information through an aerodynamic model, a dynamic model and / or a motion model to obtain the aircraft navigation information.

[0068] The navigation information sending unit 23 is used to send the navigation information to the shared memory module 3 .

[0069] It is understandable that the mathematical model of the mathematical simulation module 2 is generally built in the aircraft control law design stage, and is used to verify the correctness of the model and control law design. Generally, the control instructions, models, navigation and other feedback signals form a self-closed loop. In the flight control software rapid simulation test system, the control information input end of the aircraft mathematical model is disconnected, and the control information sent by the flight control simulation module 1 is connected. The control information includes information such as steering gear control signals and throttle control signals. The navigation information is obtained by solving the mathematical model of the mathematical simulation module 2 and fed back to the shared memory module 3 for the flight control simulation module 1 to read.

[0070] In a preferred embodiment, Figure 2 As shown, it further includes a first timing synchronization submodule 13 , a second timing synchronization submodule 24 and a third timing synchronization submodule 25 .

[0071] The first timing synchronization submodule 13 is used to form a first timing and transmit it to the shared memory module 3 after transmitting the control information to the shared memory module 3, update the first time signal of the shared memory module 3 to the first timing, and obtain the second time signal of the shared memory module 3, and determine whether the mathematical simulation module 2 has transmitted the navigation information to the shared memory module 3 according to the second time signal.

[0072] The third timing synchronization submodule 25 is used to form a second timing and transmit it to the shared memory module 3 after transmitting the aircraft navigation information to the shared memory module 3, and update the second time signal of the shared memory module 3 to the second timing.

[0073] The second timing synchronization submodule 24 is used to obtain the first time signal from the shared memory module 3 , and if the first time signal is greater than the current second timing, control the mathematical simulation module 2 to obtain control information of the shared memory module 3 .

[0074] Specifically, in this embodiment, the first timing synchronization submodule 13, the second timing synchronization submodule 24 and the third timing synchronization submodule 25 are set to realize the sequential reading and writing of the shared memory module 3 and time synchronization of the two processes of the flight control simulation module 1 and the mathematical simulation module 2. The shared memory module 3 stores the first time signal and the second time signal. When the flight control simulation module 1 executes the result of the current time interval to obtain control information and sends the control information to the shared memory module 3, the first timing can be generated at the same time, the first timing is transmitted to the shared memory module 3 and the first time signal is replaced by the first timing, and the first time signal is updated to the current time interval, which is the latest time point. The third timing synchronization submodule 25 stores the second timing of the previous time interval. The second timing synchronization submodule 24 obtains the first time signal from the shared memory module 3. At this time, the first time signal is greater than the second timing of the mathematical simulation module 2. The mathematical simulation module 2 obtains the control information from the shared memory module 3 and solves the navigation information. After the mathematical simulation module 2 transmits the navigation information to the shared memory module 3, the third timing synchronization submodule 25 updates the second timing to the next time interval, transmits the second timing to the shared memory module 3, and updates the second time signal of the shared memory module 3 to the second timing. The flight control simulation module 1 further obtains the second time signal from the shared memory module 3. According to the second timing of the second time signal, it can be determined that the mathematical simulation module 2 has synchronized the navigation information to the shared memory module 3. The flight control simulation module 1 can obtain the latest navigation information from the shared memory module 3. Further, preferably, the shared memory module 3 can set a mutex Flag. When one of the processes (the flight control simulation module 1, the mathematical simulation module 2, the first timing synchronization submodule 13, the second timing synchronization submodule 24 or the third timing synchronization submodule 25) accesses the shared memory module 3, the value of the mutex Flag can be changed to prevent other processes from accessing the shared memory module 3. The access order of each process is mutually exclusive to avoid errors.

[0075] Based on the same principle, this embodiment also discloses a flight control software testing method based on shared memory. Figure 3 As shown, in this embodiment, the method includes:

[0076] S100: Obtaining aircraft navigation information from the shared memory module 3, and performing control law calculation according to the user instruction and the aircraft navigation information to obtain a flight control instruction.

[0077] S200: forming control information according to the flight control instruction, and transmitting the control information to the shared memory module 3.

[0078] S300: Acquire control information of the shared memory module 3 , calculate and obtain aircraft navigation information according to the control information, and transmit the aircraft navigation information to the shared memory module 3 .

[0079] In a preferred embodiment, Figure 4 As shown, the method further comprises:

[0080] S400: After transmitting the control information to the shared memory module 3, a first timing sequence is formed and transmitted to the shared memory module 3, and a first time signal of the shared memory module 3 is updated to the first timing sequence.

[0081] S500 : Acquire the first time signal from the shared memory module 3 , and if the first time signal is greater than the current second timing, control the mathematical simulation module 2 to acquire control information of the shared memory module 3 .

[0082] S600: After transmitting the aircraft navigation information to the shared memory module 3, a second timing sequence is formed and transmitted to the shared memory module 3, and a second time signal of the shared memory module 3 is updated to the second timing sequence.

[0083] S700: Acquire a second time signal of the shared memory module 3, and determine whether the mathematical simulation module 2 has transmitted the navigation information to the shared memory module 3 according to the second time signal.

[0084] Since the principle of solving the problem by this method is similar to that of the above system, the implementation of this method can refer to the implementation of the system and will not be repeated here.

[0085] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer device, and specifically, the computer device may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.

[0086] In a typical example, a computer device specifically includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and the method described above is implemented when the processor executes the program.

[0087] Reference below Figure 5 , which shows a schematic diagram of the structure of a computer device 600 suitable for implementing an embodiment of the present application.

[0088] like Figure 5As shown, the computer device 600 includes a central processing unit (CPU) 601, which can perform various appropriate operations and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage part 608 to a random access memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the system 600 are also stored. The CPU 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.

[0089] The following components are connected to the I / O interface 605: an input section 606 including a keyboard, a mouse, etc.; an output section 607 including a cathode ray tube (CRT), a liquid crystal feedback device (LCD), etc., and a speaker, etc.; a storage section 608 including a hard disk, etc.; and a communication section 609 including a network interface card such as a LAN card, a modem, etc. The communication section 609 performs communication processing via a network such as the Internet. A drive 610 is also connected to the I / O interface 605 as needed. A removable medium 611, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 610 as needed, so that a computer program read therefrom is installed as needed as the storage section 608.

[0090] In particular, according to an embodiment of the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present invention includes a computer program product, which includes a computer program tangibly contained on a machine-readable medium, and the computer program includes program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through the communication part 609, and / or installed from the removable medium 611.

[0091] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0092] For the convenience of description, the above device is described in various units according to their functions. Of course, when implementing the present application, the functions of each unit can be implemented in the same or multiple software and / or hardware.

[0093] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0094] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0095] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

[0096] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0097] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.

[0098] The present application may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.

[0099] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0100] The above is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims

1. A flight control software test system based on shared memory, characterized in that: It includes a flight control simulation module, a shared memory module, a mathematical simulation module, a first timing synchronization submodule, a second timing synchronization submodule and a third timing synchronization submodule; The flight control simulation module is used to obtain aircraft navigation information from the shared memory module, perform control law calculation according to user instructions and the aircraft navigation information to obtain flight control instructions, form control information according to the flight control instructions, and transmit the control information to the shared memory module; The flight control simulation module includes a flight control application submodule and a device simulation submodule; The flight control application submodule is used to solve the control law according to the user instructions and the aircraft navigation information to obtain the flight control instructions; the flight control application submodule includes a data acquisition unit, a data sending unit and a flight control solving unit; the data acquisition unit is used to obtain the aircraft navigation information of the equipment simulation submodule, convert the navigation information into a hardware interface data frame format corresponding to the flight control computer, and then transmit it to the flight control solving unit; the flight control solving unit is used to solve the aircraft control instructions according to the aircraft navigation information and the user instructions and transmit them to the data sending unit; the data sending unit is used to receive the control instructions of the flight control solving unit, and transmit the control instructions to the equipment simulation submodule; The device simulation submodule is used to obtain aircraft navigation information from the shared memory module and send the aircraft navigation information to the flight control application submodule, and receive the flight control instructions transmitted by the flight control application submodule, form control information according to the flight control instructions, and transmit the control information to the shared memory module; the device simulation submodule includes a control device unit and a measurement data unit; the control device unit is used to receive the control instructions transmitted by the flight control application submodule, form control information of the aircraft device according to the control instructions and transmit the control information to the shared memory module; the measurement data unit is used to obtain aircraft navigation information from the shared memory unit, and send the navigation information to the flight control application submodule; The mathematical simulation module is used to obtain control information of the shared memory module, calculate the aircraft navigation information according to the control information, and transmit the aircraft navigation information to the shared memory module; the mathematical simulation module includes a control instruction receiving unit, a model solving unit and a navigation information sending unit; the control instruction receiving unit is used to obtain control information from the shared memory module and transmit the control information to the model solving unit; the model solving unit is used to calculate the aircraft navigation information through an aerodynamic model, a dynamic model and / or a motion model according to the control information; the navigation information sending unit is used to send the navigation information to the shared memory module; The first timing synchronization submodule is used to form a first timing after transmitting the control information to the shared memory module and transmit it to the shared memory module, update the first time signal of the shared memory module to the first timing, and obtain the second time signal of the shared memory module, and determine whether the mathematical simulation module has transmitted the navigation information to the shared memory module according to the second time signal; The third timing synchronization submodule is used to form a second timing and transmit it to the shared memory module after transmitting the aircraft navigation information to the shared memory module, and update the second time signal of the shared memory module to the second timing; The second timing synchronization submodule is used to obtain the first time signal from the shared memory module, and if the first time signal is greater than the current second timing, control the mathematical simulation module to obtain control information of the shared memory module; The test method using the shared memory-based flight control software test system specifically includes: The flight control simulation module obtains the aircraft navigation information from the shared memory module, and solves the control law according to the user instructions and the aircraft navigation information to obtain the flight control instructions; The shared memory module stores a first time signal and a second time signal. The flight control simulation module obtains control information according to the flight control instruction at the current time interval and sends the control information to the shared memory module, and generates a first time sequence at the same time, transmits the first time sequence to the shared memory module, replaces the first time signal with the first time sequence, and updates the first time signal to the current time interval, which is the latest time point; The third timing synchronization submodule stores the second timing of the previous time interval. The second timing synchronization submodule obtains the first time signal from the shared memory module. If the first time signal is greater than the second timing of the mathematical simulation module, the mathematical simulation module obtains the control information from the shared memory module and solves and obtains the navigation information. After the mathematical simulation module transmits the navigation information to the shared memory module, the third timing synchronization submodule updates the second timing to the next time interval, transmits the second timing to the shared memory module, and updates the second time signal of the shared memory module to the second timing; The flight control simulation module further obtains a second time signal from the shared memory module, and determines whether the mathematical simulation module has synchronized the navigation information to the shared memory module according to the second timing of the second time signal. If so, the flight control simulation module obtains the latest navigation information from the shared memory module.

Citation Information

Patent Citations

  • Satellite simulation system and data synchronizing method of satellite simulation system

    CN103926848A

  • Flight simulation test system for solid-liquid power aircraft

    CN104007665A

  • Simulation testing platform and controlling method for hypersonic flight vehicle assessment

    CN104182272A

  • Closed-loop simulation testing system and method for ground attitude control of microsatellites

    CN104777757A

  • Device and method of motor vehicle radar speed measurement control for real-time evidence obtaining

    CN105788293A