Flight training device environment simulation system and method thereof

文档序号:117008 发布日期:2021-10-19 浏览:35次 中文

阅读说明:本技术 一种飞行训练器环境仿真模拟系统及其方法 (Flight training device environment simulation system and method thereof ) 是由 陈又军 冯凌志 叶亮 梁琳 沈鑫 于 2021-06-04 设计创作,主要内容包括:本发明涉及一种飞行训练器环境仿真模拟系统及其方法,包括音响仿真系统,用以对声音进行处理;飞行仿真系统,用以发送飞行仿真数据;功率放大器;音响,用以播放声音;所述音响仿真系统包括音色库、合成器和音响仿真程序;所述音色库由采集的声音样本制作而成,用以供应程序控制和调用;所述音响仿真程序用以接收来自飞行仿真系统的仿真数据并根据飞机当前的飞行状态和参数向合成器实时发送MIDI消息;所述合成器用以按照MIDI消息播放音色库内的声音样本输出音频信号。该发明和通常在频域建模或插值的方法相比,该方法具有处理速度快、计算简单、编程实现容易、能够方便处理大量声音样本等特点,声音仿真在样本点上逼真度高。(The invention relates to a flight training device environment simulation system and a method thereof, wherein the flight training device environment simulation system comprises a sound simulation system, a sound processing system and a control system, wherein the sound simulation system is used for processing sound; the flight simulation system is used for sending flight simulation data; a power amplifier; a sound box for playing sound; the sound simulation system comprises a sound library, a synthesizer and a sound simulation program; the tone library is made of collected sound samples and used for program control and calling; the sound simulation program is used for receiving simulation data from the flight simulation system and sending MIDI messages to the synthesizer in real time according to the current flight state and parameters of the airplane; the synthesizer is configured to output audio signals according to the MIDI messages playing the sound samples within the timbre library. Compared with the method of modeling or interpolation in frequency domain, the method has the characteristics of high processing speed, simple calculation, easy programming realization, capability of conveniently processing a large number of sound samples and the like, and the fidelity of sound simulation on sample points is high.)

1. A flight trainer environment simulation system, comprising:

the sound simulation system is used for processing sound;

the flight simulation system is used for sending flight simulation data;

a power amplifier;

a sound box for playing sound;

the method is characterized in that: the sound simulation system comprises a sound library, a synthesizer and a sound simulation program;

the tone library is made of collected sound samples and used for program control and calling;

the sound simulation program is used for receiving simulation data from the flight simulation system and sending MIDI messages to the synthesizer in real time according to the current flight state and parameters of the airplane;

the synthesizer is configured to output audio signals according to the MIDI messages playing the sound samples within the timbre library.

2. The flight training device environment simulation system of claim 1, wherein the sound simulation system further comprises a network communication module, a graphic display module, a parameter setting module, a clock module, a data analysis module, a sound generation module and a data acquisition module, the sound acquisition module is used for recording a large number of representative sound samples, performing necessary preprocessing on the samples, and determining the action range of the sound control function and the sound control function for each sample in a specific state.

3. The flight training aid environment simulation system according to claim 2, wherein the network communication module is configured to receive flight parameters and commands from the flight simulation system and feed back local information to the other party.

4. The flight training aid environment simulation system according to claim 3, wherein the graphic display module is used for providing a visual interface for a user, the main function is to display the time domain waveform, the frequency spectrum and the system parameters of the sound in real time, the parameter setting module is used for inputting parameters required by the system during operation by a user block, and the parameter setting module allows the user to modify the parameters at any time during operation.

5. The flight training aid environment simulation system according to claim 4, wherein the clock module is configured to provide a simulation clock with a precision of 1 millisecond, the data analysis module is configured to perform a spectrum analysis on the audio signal, and the analysis result is displayed through the graphic display module for easy observation.

6. The flight trainer environment simulation system of claim 5, wherein the sound generation module is configured to perform conversion from flight parameters to MIDI messages and send the MIDI messages to the synthesizer in real time, thereby generating sounds in the specific environment, and the data collection module is configured to perform real-time collection and storage of audio data for use by other modules and off-line processing.

7. A flight training device environment simulation method is characterized by comprising the following steps:

s1, the sound simulation program receives the simulation data from the flight simulation system through the Ethernet and sends MIDI information to the synthesizer in real time according to the current flight state and parameters of the airplane;

s2, the synthesizer outputs audio signals according to the sound samples in the MIDI message playing tone color library;

and S3, finally sending the audio signal to a sound box arranged in the cabin through power amplification.

8. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method as claimed in claim 7.

Technical Field

The invention relates to the technical field of flight trainer environment simulation, in particular to a flight trainer environment simulation system and a flight trainer environment simulation method.

Background

The flight simulator simulates a real flight environment, is used for training a pilot, and can also be used for analyzing and researching the performance of an airplane, and under a common condition, the flight simulator generally comprises a simulation computer, a simulation cockpit, a motion system, a sound system, a vision system, a control load system, a simulation master console and the like.

The digital sound system provides 10% of information for a pilot, the digital sound system is used as an important component of a flight simulator, the vivid sound effect of the pilot is required in the whole flight process, the vivid sound effect can increase immersion feeling, the pilot is made to be personally on the scene, the pilot is helped to correctly judge the flight state of the airplane from the auditory sense, the pilot can be personally on the scene in a highly vivid environment, and the flight simulator has a better training effect, so that the flight simulator environment simulation system and the flight simulator environment simulation method are provided to solve the problems.

Disclosure of Invention

Aiming at the technical problems in the prior art, the invention provides a flight training device environment simulation system and a flight training device environment simulation method.

The technical scheme for solving the technical problems is as follows: a flight training device environment simulation system comprises a sound simulation system, a data processing system and a data processing system, wherein the sound simulation system is used for processing sound; the flight simulation system is used for sending flight simulation data; a power amplifier; a sound box for playing sound; the sound simulation system comprises a sound library, a synthesizer and a sound simulation program; the tone library is made of collected sound samples and used for program control and calling; the sound simulation program is used for receiving simulation data from the flight simulation system and sending MIDI messages to the synthesizer in real time according to the current flight state and parameters of the airplane; the synthesizer is configured to output audio signals according to the MIDI messages playing the sound samples within the timbre library.

On the basis of the technical scheme, the invention can be further improved as follows.

Furthermore, the sound simulation system also comprises a network communication module, a graphic display module, a parameter setting module, a clock module, a data analysis module, a sound generation module and a data acquisition module, wherein the sound sample is acquired by recording a large amount of representative sound samples, performing necessary preprocessing on the samples, and determining the action range of the sound control function and the sound control function of the samples in each specific state.

Further, the network communication module is used for receiving flight parameters and commands from the flight simulation system and feeding back local information to the opposite side.

Further, the graphic display module is used for providing a visual interface for a user, the main function is to display time domain waveforms, frequency spectrums and system parameters of sound in real time, the parameter setting module is used for inputting parameters required in the operation process of the system by a user block, and the module allows the user to modify the parameters at any time in the operation process.

Furthermore, the clock module is used for providing a simulation clock with the precision of 1 millisecond, the data analysis module is used for carrying out spectrum analysis on the audio signal, and the analysis result is displayed through the graphic display module so as to be convenient to observe.

Further, the sound generation module is used for completing the conversion from the flight parameters to the MIDI messages and sending the MIDI messages to the synthesizer in real time so as to generate the sound under the specific environment, and the data acquisition module is used for completing the tasks of acquiring and storing the audio data in real time for other modules to use and perform offline processing.

The invention also provides a flight training device environment simulation method, which comprises the following steps:

s1, the sound simulation program receives the simulation data from the flight simulation system through the Ethernet and sends MIDI information to the synthesizer in real time according to the current flight state and parameters of the airplane;

s2, the synthesizer outputs audio signals according to the sound samples in the MIDI message playing tone color library;

and S3, finally sending the audio signal to a sound box arranged in the cabin through power amplification.

The invention also provides a computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the above-mentioned method.

Compared with the prior art, the technical scheme of the application has the following beneficial technical effects:

compared with a method of modeling or interpolation in a frequency domain, the method has the characteristics of high processing speed, simple calculation, easy programming realization, capability of conveniently processing a large number of sound samples and the like, the fidelity of the sound simulation on the sample points is high, the immersion sense is increased, a pilot is enabled to be personally on the scene, the pilot can be helped to correctly judge the flight state of the airplane from the hearing sense, the pilot can be personally on the scene in a highly vivid environment, and the method has a better training effect.

Drawings

FIG. 1 is a schematic diagram of the general structure of an environment simulation system of a flight training device according to the present invention;

FIG. 2 is a schematic diagram of a software structure of a flight training device environment simulation system according to the present invention.

Detailed Description

The principles and features of this invention are described below in conjunction with the following drawings, which are set forth by way of illustration only and are not intended to limit the scope of the invention.

Referring to fig. 1-2, an environment simulation system of a flight training device in the present embodiment includes a sound simulation system for processing sound; the flight simulation system is used for sending flight simulation data; a power amplifier; the sound box is used for playing sound, wherein the sound box simulation system comprises a sound color library, a synthesizer and a sound box simulation program; the tone library is made of collected sound samples and used for program control and calling; the sound simulation program is used for receiving simulation data from the flight simulation system and sending MIDI messages to the synthesizer in real time according to the current flight state and parameters of the airplane; the synthesizer is configured to output audio signals in accordance with the MIDI messages playing the sound samples within the timbre store.

Specifically, the sound simulation program receives simulation data from the flight simulation system through the Ethernet and sends MIDI messages to the synthesizer in real time according to the current flight state and parameters of the airplane, the synthesizer outputs audio signals according to sound samples in a MIDI message playing timbre library, and the audio signals are finally transmitted to the sound boxes arranged in the cockpit through power playing.

The sound simulation system further comprises a network communication module, a graphic display module, a parameter setting module, a clock module, a data analysis module, a sound generation module and a data acquisition module.

The network communication module has the main function of carrying out data communication with the flight simulation system, receives flight parameters and commands from the flight simulation system and feeds back local information to the opposite side, and in consideration of real-time performance, the module adopts a connection-free UDP communication protocol, and the communication period is 10 milliseconds.

The graphic display module provides a visual interface for a user, and the main function is to display the time domain waveform, the frequency spectrum and the system parameters of the sound in real time.

The user inputs the parameters needed in the operation process of the system through a parameter setting module, and the module allows the user to modify the parameters at any time in the operation process.

The clock module provides a simulation clock with the precision of 1 millisecond, and the accurate time-sharing scheduling of the tasks is based on the simulation clock.

The data analysis module is used for carrying out spectrum analysis on the audio signal, and an analysis result is displayed through the graphic display module so as to be convenient to observe.

The sound generation module is the core of the whole software, and completes the conversion from the flight parameters to the MIDI messages and sends the MIDI messages to the sound card in real time, thereby generating the sound under the specific environment.

The data acquisition module completes the tasks of real-time acquisition and storage of audio data so as to be used by other modules and processed offline, and the module uses mechanisms such as callback functions, double buffers and the like in consideration of acquisition continuity and instantaneity.

For the collection of the sound samples, firstly, collecting the sound of each sound source, recording a large number of representative sound samples, and performing some necessary preprocessing on the samples, determining the action range of the sample volume control function and the tone control function in each specific state, in order to compensate for the low pitch resolution while improving the fidelity of the simulation, it is necessary to record as many sound samples as possible, in particular, to record sound samples in a state interval in which the pitch resolution is low or in which the human ear is sensitive, it is clear that, as the number of sound samples increases, when given the flight state parameters of a helicopter, the time overhead of searching for a match on a sound sample is increased by using a binary method or building a hash table to increase the search speed, and after the sound sample is ready, these sound samples are made into a tone library as required for application control and invocation using tone library creation software.

It should be noted that each musical instrument in the tone library has many attribute parameters, and in practice, the values of these attribute parameters can be adjusted as required to change the sound effect of the musical instrument, and different sound samples belonging to the musical instrument can be layered or mixed according to the key domain or the force domain for some special needs, and different sound sources are placed in different MIDI channels to realize the sound mixing of multiple sound sources, and finally, the application program sends MIDI messages to the MIDI equipment to control the sound change, and complete the real-time generation of the sound.

The volume control function and the tone control function are established by the following method:

as the blade pass frequency increases, the harmonic frequencies of the rotational noise increase, and the blade pass frequency is calculated as follows:

fb=Bn/60

in the formula: f. ofbIs the blade passing frequency (unit: Hz); b is the number of rotor blades: n is the rotor speed (unit: rpm);

in addition, a change in the total pitch angle may have a greater effect on the sound pressure level of the rotor noise field;

in accordance with the above discussion, it is now assumed that the rotor is passing at a given blade pass frequency FbAnd total pitch angleUnder the condition (ignoring the influence of other factors), the sound pressure time history function is P (f, f)b) (t is time) and two sets of parameters are given (f)b1) And (f)b2),fb1、fb2Are all not zero and (f)b2-fb1) < ε, ε is a given positive number, and we give the following formula:

wherein the content of the first and second substances,q=fb2-fb1;a=fb2/fb1;v1(l, q) is (f)b1Epsilon) of the sound pressure gain function, v1(l, q) is not less than 0 and satisfies v1(0, 0) ═ 1; f { s (t) } denotes taking the fourier transform of s (t), where the notation "#" denotes a similar relationship;

the meaning in the formula is that when the blade passing frequency is changed in a small range, the rotor is considered to be in (f)b2) Sound pressure spectrum under the condition is similar to pair (f)b1) The sound pressure frequency spectrum obtained by time scale and gain conversion of the sound pressure time history function under the condition, namely, the sound volume can be changed by using the method of changing the tone and changing the sound volumeb1) The rotor sound under the condition is similar to (f)b2) Under the condition, if noise samples of the rotor under a series of rotating speed states are recorded in advance, and the sample length is integral multiple of a blade passing period, the noise of the rotor under more states can be simulated by using the method.

In order to enable a user to observe the waveform and the frequency spectrum of audio data, a sound signal needs to be collected, analyzed and visualized in real time, and finally a more visual graphic display is provided for the user.

The sound simulation system is connected with the flight simulation system through the Ethernet, a user datagram protocol UDP (user datagram protocol) facing to no connection is used for data communication, compared with a TCP (transmission control protocol) facing to a connection mode, the UDP is simpler and quicker, and in order to eliminate the uncertainty in Ethernet transmission, a point-to-point connection mode is adopted between the sound simulation system and the flight simulation system.

Accurate time-sharing scheduling of each task module in a program needs a high-precision clock to support, the clock with the precision of 1 millisecond can be realized by using a multimedia timer on a windows platform, and the clock is independent of other threads and is not interfered by the running conditions of the other threads.

The invention relates to a flight training device environment simulation method, which comprises the following steps:

s1, the sound simulation program receives the simulation data from the flight simulation system through the Ethernet and sends MIDI information to the synthesizer in real time according to the current flight state and parameters of the airplane;

s2, the synthesizer outputs audio signals according to the sound samples in the MIDI message playing tone color library;

and S3, finally sending the audio signal to a sound box arranged in the cabin through power amplification.

The present invention also provides a computer-readable storage medium having a computer program stored thereon, the program being executed by the processor of fig. 1.

Compared with a method for modeling or interpolating in a frequency domain, the method has the characteristics of high processing speed, simple calculation, easy programming realization, capability of conveniently processing a large number of sound samples and the like, the sound simulation has high fidelity on sample points, the immersion sense is increased, a pilot is enabled to be personally on the scene, the pilot is helped to correctly judge the flight state of the airplane from the hearing sense, the pilot can be personally on the scene in a highly vivid environment, and the method has a better training effect.

The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

8页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:视频生成方法、装置、终端设备及介质

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!