CN103093047B - Typical aircraft visual simulation system - Google Patents

Typical aircraft visual simulation system Download PDF

Info

Publication number
CN103093047B
CN103093047B CN201310011344.8A CN201310011344A CN103093047B CN 103093047 B CN103093047 B CN 103093047B CN 201310011344 A CN201310011344 A CN 201310011344A CN 103093047 B CN103093047 B CN 103093047B
Authority
CN
China
Prior art keywords
module
data
aircraft
model
flight
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN201310011344.8A
Other languages
Chinese (zh)
Other versions
CN103093047A (en
Inventor
宗群
郝秀
李庆鑫
徐锐
曲照伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tianjin University
Original Assignee
Tianjin University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tianjin University filed Critical Tianjin University
Priority to CN201310011344.8A priority Critical patent/CN103093047B/en
Publication of CN103093047A publication Critical patent/CN103093047A/en
Application granted granted Critical
Publication of CN103093047B publication Critical patent/CN103093047B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Processing Or Creating Images (AREA)

Abstract

The invention relates to the technical field of computer simulation. In order to design a visual simulation system applicable for typical aircrafts including hypersonic aerocrafts, unmanned planes and satellites, analysis for flight data by researchers includes that pure digital information is converted into three-dimensional image-based information which can be better understood by people through posture changes of virtual aircrafts. Visual simulation can performed on all of the hypersonic aerocrafts, the unmanned planes and the satellites, and the purpose that a same system is shared by a plurality of the aircrafts is achieved. Single-computer simulation or multiple-computer group control simulation can be performed. The overlapping development problem of the visual system is solved. The technical scheme includes that the typical aircraft visual simulation system comprises an aircraft model base module, a flight scene base module, a network communication module, a visual display and drive module, a data base interface module, a data visualization module, a two-dimensional state module, a model parse module and a man-machine interactive interface module. The typical aircraft visual simulation system is mainly applied to computer flight simulation.

Description

Typical aircraft visual simulation system
Technical field
The present invention relates to computer simulation technique field, particularly based on the Real-Time Scene Simulation of the typical aircraft of Distributed Simulation Architecture.Specifically, typical aircraft visual simulation system is related to.
Background technology
Along with the develop rapidly of computer technology, scientist can be got more and more, scientific experimental data more and more accurately, but the complicacy of these data, diversity are far beyond the ability of these data of human brain analysis interpretation.Owing to lacking the effective means to complex data information analysis, bulk information is wasted, and the paces of scientific research are seriously hindered.
Meet this challenge, vision simulation is arisen at the historic moment.Vision simulation is not only a novel technology, the more important thing is a kind of thinking efficiently and research mode.It is a kind of computing method, converts symbol to geometry, makes researcher can observe their imitation and calculation; It is converted into visible by invisible, has enriched the process of scientific development, has given people beyond thought clairvoyance.Vision simulation makes the research mode of scientist there occurs basic change in a lot of research field.”
In aerospace science research, we face the information waste problem that factor data complexity causes equally.In fact, be the hot research direction of country to the research of various aircraft always, the development of aircraft class airmanship has that science is perspective, development strategy and subject drive property.But aerocraft system development process often concentrates on MATLAB emulation aspect, description no matter to modeling engineering, to the introduction of control method, or the analysis to simulation result, researcher, facing to a large amount of data and curves, is difficult to obtain an entirety, directly perceived, vivid visual effect.Be undoubtedly poor efficiency to the research of complex curve data, the vision simulation forming sharp contrast therewith just seems particularly important at this.Scene Simulation is displayed needing aircraft six-degree-of-freedom information to be processed by the dummy vehicle of virtual construction, is aided with flying scene true to nature and reproduces, give researcher visual effect more intuitively.In actual applications, vision simulation is usually developed in a distributed way with pure digi-tal emulation, the computing machine carrying out pure digi-tal emulation as host computer by emulated data by communications interface transmission to vision simulation computing machine.The analogue system of what comes into a driver's computing machine and single host computer composition becomes one-of-a-kind system, and the system of the composition of multiple host computer becomes multi-machine group-control system.
But in the vision simulation application of aerospace field, there is a large amount of overlapping development problem, different vision emulation systems is except dummy vehicle kind and quantity, and other functions have very large similarity, as flight scene modeling, data visualization realization etc.So, need to propose a kind ofly to be applicable to that various aircraft carries out emulating, there is the vision simulation implementation method of versatility.
Summary of the invention
The present invention is intended to overcome the deficiencies in the prior art, and the present invention is intended to the vision emulation system that design one is applicable to typical aircraft (hypersonic aircraft, unmanned plane, satellite three class aircraft).Under this system, the analysis of researchist to flying quality is no longer confined to pure digi-tal, but pure digital information is converted into by the attitudes vibration of virtual aircraft the 3-D view information that the mankind are easier to understand; Under this system, no matter hypersonic aircraft, unmanned plane, satellite all can carry out vision simulation, reach the target that multiple dummy vehicle shares same system; Under this system, can carry out unit emulation or multi-machine group-control emulation, specific works mode is determined by host computer quantity; Further, native system needs to solve common visual system overlapping development problem.For achieving the above object, the technical scheme that the present invention takes is, typical aircraft visual simulation system, comprising: dummy vehicle library module, flying scene library module, network communication module, visual display and driver module, database interface module, data visualization module, two-dimension situation module, model analyzing module, Man Machine Interface module;
Dummy vehicle library module: store all kinds of dummy vehicle with the form of 3ds file in this module, comprises hypersonic vehicle, dummy satellite, unmanned plane model; This module belongs to easily extensible module, and the model of any 3ds form all can manually be placed in this model bank module;
Flying scene library module: the different flying scenes that this module stores has hypersonic aircraft, unmanned plane and satellite to need; Various scene based on OpenGL technology stand-alone development, and exists in submodule mode; Module comprises than more comprehensive flying scene, comprise near space model, earth model, ocean model, mountain region model, airport model, urban architecture model, sky model, if do not satisfied the demands, secondary development can be carried out to this module, add variety classes model;
Network communication module: as real-time simulation, adopts UDP communication, realizes the communication with host computer in LAN environment based on Windows Sockets (Socket); Meanwhile, set up mistake Reconstruction of The Function based on data buffering, prevent the accident of substitute in UDP communication process; When the playback mode that flies is opened, this module is closed automatically;
Visual display and driver module: based on OpenGL dual-cache mechanism initialization dummy vehicle and model of place, make both have suitable locus and display effect; Redraw technology humanized dummy vehicle based on timing to fly in flying scene;
Database interface module: for realizing the interface that playback offline mode is offered, realize the interactive operation of vision emulation system and MySQL database; For avoiding the mutual time delay between database and system, setting up buffering link between, keeping in aircraft flight data message based on collection class object approach; Data memory interface and digital independent interface can be divided into; Data memory interface is opened when turn-on data memory function, realizes temporary flying quality information and by its unloading to the function of external data base; Digital independent interface is opened when opening flight playback mode, realizes the temporary database information that reads and is transmitted to the function of aircraft class object;
Data visualization module: add data disaply moudle, researcher is had flying quality and is familiar with more accurately; The real-time visual effect to aircraft different attribute is realized based on edit box control;
Two-dimension situation module: the flight path describing aircraft, make researchist to the flight course of aircraft, the information such as position, spatial domain have to be understood accurately; Two-dimensional map is not isolated existence, and it and the binding of various flying scene exist, as long as have selected flying scene, system can specify two-dimensional map automatically; This module belongs to optional module, when functions of modules is chosen, may be displayed on the window lower left corner, does not affect main perspective observing effect;
Model analyzing module: resolve external flight device model, namely resolve the dummy vehicle stored with 3ds form, and redraw display list based on the foundation of OpenGL triangle approximate way, facilitate visual display and driver module to call; Determine the size of dummy vehicle size and the optimization model (its size has optimal effectiveness in whole visual display window) loaded based on bounding box principle in this link, after convenient, size scaling is carried out to aircraft, make it can not be excessive or too small in visual system;
Man Machine Interface module: the application program utilizing MFC platform technology feature to develop and the interface of user interactions, man-machine interaction when comprising system initialization and the man-machine interaction in later stage operational process.The man-machine interaction that dummy vehicle is selected, flying scene is selected, data storage function is selected is realized during system initialization; Later stage realizes the man-machine interaction that offline mode is selected, emulated on off control, observation visual angle selection, two-dimension situation selection when running.
The annexation of above-mentioned all modules is as described below:
Click the model selection choice of Man Machine Interface module, select the model in dummy vehicle storehouse, utilize model analyzing module to parse information in model, utilize visual display and driver module to redraw in visual display window by the information parsed subsequently;
The scene clicking Man Machine Interface module selects option, selects the flying scene in flying scene storehouse, and visual display and driver module draw flying scene according to selection result, and two-dimension situation module is according to selection result auto-associating two-dimensional map simultaneously;
Click the data storage function option of Man Machine Interface module, turn-on data memory function, temporarily store flying quality by database interface module, after program end of run, again utilize database interface module that temporary flying quality is stored to external data base;
Click the real-time flight option of Man Machine Interface module, realize online vision simulation function, after have selected this function, utilize the real time data that network communication module real-time reception host computer sends, and sent to visual display and driver module;
Click the flight playback option of Man Machine Interface module, realize off-line flight playback function, after have selected this function, abandon network communication module, then utilize the flying quality stored in database interface module reading external data storehouse, and sent to visual display and driver module;
Click the two-dimension situation button of Man Machine Interface module, realize cutting out operation to two-dimension situation module, according to the hobby of oneself, select whether enable two-dimension situation function, make it be presented at the window lower left corner;
Click the visual angle select button of Man Machine Interface module, the related parameter values of change visual display and driver module, switch and observe viewpoint;
In modular construction, visual display and driver module are nucleus module, under real-time simulation pattern, network communication module sends flying quality to visual display and driver module, and visual display and driver module send these data to data visualization module, two-dimension situation module, database interface module with broadcast mode subsequently; Under flight playback mode, visual display and driver module are still responsible for receiving and broadcast data, and difference is, data from database interface module.
In modular construction, network communication module is for can cut out module, when network communication module is opened, carry out real-time online vision simulation, when network communication module is closed, visual display and driver module rely on database interface module to read the flying quality stored, and carry out the vision simulation of playback off-line.
Arranging of modules is all arranged according to multimachine flying method, and unit flight is as the special case of multi-machine group-control;
In network communication module, establish n and receive the array of different host computer data, its initial value is 0, draws the quantity of host computer by the data judging in the array analysis that whether changes;
In visual display and driver module, be initialized the data message of n dummy vehicle, just aircraft is in and can not draws state, if judge that the flying quality information obtaining certain aircraft changes, then directly makes this dummy vehicle draw;
In two-dimension situation module, establish the two-dimentional flight path draw brush of n different colours, whether changed to determine whether use certain paintbrush to describe flight path by the aircraft two-dimensional coordinate information judged and paintbrush is associated;
In data visualization module, equally establish the data visualization function for multiple aircraft, be just all in invisible mode, when detecting that corresponding visible flight data change, make edit box control visible dynamically, display aircraft flight data;
In database interface module, establish the collection class object that n group plays data buffering effect, often organize the flying quality that collection class object all can preserve the different attribute of single aircraft.When storing data submodule and carrying out data storing work, the data in whether storage object are determined by the data variation judging in collection class object, simultaneously, when storing data, the collection class object data of different group is that it adds different Data Labels positions, when reading data submodule and carrying out digital independent work, by judging that the Data Labels position in database is read in different collection class objects.
Based on above-mentioned modular design, realized by four threads, be respectively: image procossing thread, data processing threads, network service thread, database interface thread;
Image procossing thread is the main thread of system, finishing man-machine interaction module, model analyzing module, visual display and driver module functional realiey;
Data processing threads: secondary treating is carried out to the data that communication module receives, realizes data visualization function, situation awareness display function;
Network service thread primary responsibility completes network communicating function, is responsible for receiving host computer data; When opening playback offline mode, this thread is closed automatically;
The interactive operation of database interface thread completion system and MySQL database, fulfillment database interface module function;
The opening sequence of each thread is: open image procossing thread at first, starts human-computer interaction interface; When system is determined to adopt real-time simulation pattern, then automatic opening network communication thread, otherwise this thread acquiescence is closed; After system determines to adopt playback offline mode or turn-on data memory function, then automatic turn-on data bank interface thread; Above-mentioned thread after setting completed, automatically open by data processing threads, allly subsequently opened thread concurrent working.
Technical characterstic of the present invention and effect as follows:
The present invention makes full use of the technical characterstic of MFC platform and OpenGL graph image interface, constructs the vision emulation system with feature as described below based on modular design method.
1, by embedding the 3ds document analysis function of bounding box principle, achieving the loading to variety classes, different size dummy vehicle, achieving intelligent, versatility, the extendability of system.
2, adopt OpenGL technology, based on the various flying scene of submodule mode independent development, form flying scene storehouse, achieve the selection of different flying scene, draw function, enhance intelligent, versatility, the extendability of system.
3, develop real-time simulation pattern and flight playback mode simultaneously, achieve the double effects of in-circuit emulation and off-line simulation.
4, modules in system, comprises network communication module, database interface module, two-dimension situation module, data visualization module and visual display and driver module is all developed according to multi-machine group-control mode, and unit emulation is as the special case of multi-machine group-control.This development scheme achieves diversity and the versatility of systemic-function.
5, based on the data management technique exploitation flight playback mode of MySQL database.Add database interface module, establish the collection class object with data buffering effect, prevent the time delay that factor data bank and the direct real-time, interactive of system cause.
6, add the two-dimension situation module based on dual-cache mechanism, achieve the double effects of observation flight device three-dimensional stereo effect and assurance flight integrality; Simultaneously by three-dimensional flying scene and two-dimensional map binding, enhance the intelligence degree of system.
7, based on the method for designing of multithreading, four thread parallel work, effectively make use of cpu resource, solve the animation effect pause caused because calculated amount is excessive in visual display process, discontinuous problem.
8, based on UDP Real-time Communication Technology, achieve the real-time target of visual system, in communication process, set up mistake Reconstruction of The Function, prevent data from substitute, make communication data level and smooth, continuous.
9, make full use of the technical characterstic of MFC platform, utilize its dialog box technology, Ribbon technology, the GDI technical design Man Machine Interface interface of hommization, system operation procedure is clear, easy.
The present invention is typical aircraft visual simulation system, the Real-time windows target flight effect of energy display hypersonic aircraft true to nature, satellite and unmanned plane, the pure digital information of staff's Water demand is converted into the image information being more easily accepted, understanding, helps the ability improving staff's analytical information, utilize information; Meanwhile, the present invention establishes dummy vehicle storehouse and flying scene storehouse, achieves the vision simulation of the aircraft to variety classes, different size; Again, system modules is all developed according to multi-machine group-control mode, achieves the double effects of the vision simulation of system unit and multimachine vision simulation.In a word, special multiple system integrations for hypersonic aircraft, satellite and unmanned plane are unique, multiple functional typical aircraft visual simulation system by this system, avoid energy dissipation and exploitation replication problem that multiple system development causes.
Accompanying drawing explanation
Accompanying drawing 1 typical aircraft visual simulation system general structure block diagram.
Data structure in accompanying drawing 2 typical aircraft visual simulation system and flow direction explanation.
Accompanying drawing 3 typical aircraft visual simulation system initial launch interface.
Accompanying drawing 4 typical aircraft visual simulation system Simulation Interface.
Various flying scene figure in accompanying drawing 5 system flight scene library.
Accompanying drawing 6 typical aircraft visual simulation system flowchart.
Accompanying drawing 7 grid communication module receiving data stream journey figure.
Accompanying drawing 8 system model parsing module workflow diagram.
Accompanying drawing 9 aircraft bounding box asks for process flow diagram.
Accompanying drawing 10 visual display and driver module workflow diagram.
Data submodule workflow diagram is stored in accompanying drawing 11 database interface module.
Data submodule workflow diagram is read in accompanying drawing 12 database interface module.
Accompanying drawing 13 two-dimension situation module work process flow diagram.
Embodiment
For improving extensibility and the versatility of system, according to copying demand, based on modular design method under MFC platform, by system divides be: dummy vehicle library module, flying scene library module, network communication module, visual display and driver module, database interface module, data visualization module, two-dimension situation module, model analyzing module, Man Machine Interface module.
Dummy vehicle library module: store all kinds of dummy vehicle with the form of 3ds file in this module, comprises hypersonic vehicle, dummy satellite, unmanned plane model; This module belongs to easily extensible module, and the model of any 3ds form all can manually be placed in this model bank module;
Flying scene library module: the different flying scenes that this module stores has all kinds of aircraft to need; Various scene based on OpenGL technology stand-alone development, and exists in submodule mode; Module comprises than more comprehensive flying scene, comprise near space model, earth model, ocean model, mountain region model, airport model, urban architecture model, sky model, if do not satisfied the demands, secondary development can be carried out to this module, add variety classes model;
Network communication module: as real-time simulation, adopts UDP communication, realizes the communication with host computer in LAN environment based on Windows Sockets (Socket); Meanwhile, set up mistake Reconstruction of The Function based on data buffering, prevent the accident of substitute in UDP communication process; When the playback mode that flies is opened, this module is closed automatically;
Visual display and driver module: based on OpenGL dual-cache mechanism initialization dummy vehicle and model of place, make both have suitable locus and display effect; Redraw technology humanized dummy vehicle based on timing to fly in flying scene;
Database interface module: for realizing the interface that playback offline mode is offered, realize the interactive operation of vision emulation system and MySQL database; For avoiding the mutual time delay between database and system, foundation buffering link between, keeps in aircraft flight data message based on collection class object approach; Data memory interface and digital independent interface can be divided into; Data memory interface is opened when turn-on data memory function, realizes temporary flying quality information and by its unloading to the function of external data base; Digital independent interface is opened when opening flight playback mode, realizes the temporary database information that reads and is transmitted to the function of aircraft class object;
Data visualization module: add data disaply moudle, researcher is had flying quality and is familiar with more accurately; The real-time visual effect to aircraft different attribute is realized based on edit box control;
Two-dimension situation module: the flight path describing aircraft, make researchist to the flight course of aircraft, the information such as position, spatial domain have to be understood accurately; Two-dimensional map is not isolated existence, and it and the binding of various flying scene exist, as long as have selected flying scene, system can specify two-dimensional map automatically; This module belongs to optional module, when functions of modules is chosen, may be displayed on the window lower left corner, does not affect main perspective observing effect;
Model analyzing module: resolve external flight device model, namely resolve the dummy vehicle stored with 3ds form, and redraw display list based on the foundation of OpenGL triangle approximate way, facilitate visual display and driver module to call; Determine the size of dummy vehicle size and the optimization model (its size has optimal effectiveness in whole visual display window) loaded based on bounding box principle in this link, after convenient, size scaling is carried out to aircraft, make it can not be excessive or too small in visual system;
Man Machine Interface module: the application program utilizing MFC platform technology feature to develop and the interface of user interactions, man-machine interaction when comprising system initialization and the man-machine interaction in later stage operational process.The man-machine interaction that dummy vehicle is selected, flying scene is selected, data storage function is selected is realized during system initialization; Later stage realizes the man-machine interaction that offline mode is selected, emulated on off control, observation visual angle selection, two-dimension situation selection when running.
The annexation of above-mentioned all modules is as described below:
Click the model selection choice of human-computer interaction module, select the model in dummy vehicle storehouse, utilize model analyzing module to parse information in model, utilize visual display and driver module to redraw in visual display window by the information parsed subsequently;
The scene clicking human-computer interaction module selects option, selects the flying scene in flying scene storehouse, and visual display and driver module draw flying scene according to selection result, and two-dimension situation module is according to selection result auto-associating two-dimensional map simultaneously;
Click the data storage function option of human-computer interaction module, turn-on data memory function, temporarily store flying quality by database interface module, after program end of run, again utilize database interface module that temporary flying quality is stored to external data base;
Click the real-time flight option of Man Machine Interface, realize online vision simulation function, after have selected this function, utilize the real time data that network communication module real-time reception host computer sends, and sent to visual display and driver module;
Click the flight playback option of Man Machine Interface, realize off-line flight playback function, after have selected this function, abandon network communication module, then utilize the flying quality stored in database interface module reading external data storehouse, and sent to visual display and driver module;
Click the two-dimension situation button of human-computer interaction module, realize cutting out operation to two-dimension situation module, according to the hobby of oneself, select whether enable two-dimension situation function, make it be presented at the window lower left corner;
Click the visual angle select button of human-computer interaction module, the related parameter values of change visual display and driver module, switch and observe viewpoint;
In modular construction, visual display and driver module are nucleus module, under real-time simulation pattern, network communication module sends flying quality to visual display and driver module, and visual display and driver module send these data to data visualization module, two-dimension situation module, database interface module with broadcast mode subsequently; Under flight playback mode, visual display and driver module are still responsible for receiving and broadcast data, and difference is, data from database interface module;
In modular construction, network communication module is for can cut out module, when network communication module is opened, carry out real-time online vision simulation, when network communication module is closed, visual display and driver module rely on database interface module to read the flying quality stored, and carry out the vision simulation of playback off-line.
Based on above-mentioned modular construction, system can realize aircraft unit flight simulation and multimachine flight simulation function, because arranging of modules is all arranged according to multimachine flying method, unit flight is as the special case of multi-machine group-control.
In network communication module, establish n and receive the array of different host computer data, its initial value is 0, draws the quantity of host computer by the data judging in the array analysis that whether changes;
In visual display and driver module, be initialized the data message of n dummy vehicle, just aircraft is in and can not draws state, if judge that the flying quality information obtaining certain aircraft changes, then directly makes this dummy vehicle draw;
In two-dimension situation module, establish the two-dimentional flight path draw brush of n different colours, whether changed to determine whether use certain paintbrush to describe flight path by the aircraft two-dimensional coordinate information judged and paintbrush is associated;
In data visualization module, equally establish the data visualization function for multiple aircraft, be just all in invisible mode, when detecting that corresponding visible flight data change, make edit box control visible dynamically, display aircraft flight data;
In database interface module, establish the collection class object that n group plays data buffering effect, often organize the flying quality that collection class object all can preserve the different attribute of single aircraft.When storing data submodule and carrying out data storing work, the data in whether storage object are determined by the data variation judging in collection class object, simultaneously, when storing data, the collection class object data of different group is that it adds different Data Labels positions, when reading data submodule and carrying out digital independent work, by judging that the Data Labels position in database is read in different collection class objects.
Based on above-mentioned modular design, this system is realized by four threads, is respectively: image procossing thread, data processing threads, network service thread, database interface thread;
Image procossing thread is the main thread of system, finishing man-machine interaction module, model analyzing module, visual display and driver module functional realiey;
Data processing threads: secondary treating is carried out to the data that communication module receives, realizes data visualization function, situation awareness display function;
Network service thread primary responsibility completes network communicating function, is responsible for receiving host computer data; When opening playback offline mode, this thread is closed automatically;
The interactive operation of database interface thread completion system and MySQL database, fulfillment database interface module function;
The opening sequence of each thread is: open image procossing thread at first, starts human-computer interaction interface; When system is determined to adopt real-time simulation pattern, then automatic opening network communication thread, otherwise this thread acquiescence is closed; After system determines to adopt playback offline mode or turn-on data memory function, then automatic turn-on data bank interface thread; Above-mentioned thread after setting completed, automatically open by data processing threads, allly subsequently opened thread concurrent working, Appropriate application cpu resource.
The object of the invention is to the vision simulation link as Distributed Simulation Platform, need to be connected in Ethernet mode with the host computer having Digital Simulation ability.
The present invention adopts OpenGL technology to realize displaying of graph and image based on MFC framework and drives function, need to install VS2010 software package on computers, load OpenGL chained library simultaneously under VS2010 platform; MFC application and development based on MySQL database needs to install justifying MySQL database.
Below in conjunction with accompanying drawing, the present invention is described further.
Typical aircraft visual simulation system general structure block diagram is see Fig. 1.Typical aircraft visual simulation system, by 9 module compositions, needs four thread parallel work.Wherein network communication module uses individual networks communication thread; Visual display and driver module, model analyzing module, dummy vehicle library module, flying scene library module, Man Machine Interface module use image procossing thread jointly; The common usage data processing threads of two-dimension situation module, data visualization module; Database interface module is used alone database interface thread.
In typical aircraft visual simulation system, data structure and the flow direction are as shown in Figure 2.The array buffer zone having and receive host computer information is created in network communication module; The air data architectures body driving aircraft flight is had in visual display and driver module; Containing the collection class object playing data buffering effect in database interface module; The structure storing aircraft two-dimensional coordinate information is created in two-dimension situation module; For needing the flying quality of display also to establish corresponding construction body in data visualization module.Under real-time simulation pattern, the data in network communication module send visual display and driver module to, and data broadcast, according to the demand of other modules, is gone out by visual display and driver module.Under playback offline mode, visual display and driver module receive the data in database interface module, are then sent to two-dimension situation module and data visualization module according to demand.
Typical aircraft visual simulation system initial launch interface is see Fig. 3.Develop based on MFC platform GDI, for dialog box with the addition of the background bitmap embodying emulation platform individual character, and be loaded with the bitmap button with special-effect.The function that each button realizes is respectively: please select dummy vehicle, please select flying scene, and the system in whether turn-on data memory function and the upper right corner please be selected to exit.Each function select button level is associated with secondary sub-menu, completes the appointment to model, scene, whether turn-on data memory function respectively.
Typical aircraft visual simulation system Simulation Interface is see Fig. 4.This interface is rationally integrated with four part of module information.Comprising simulation run time management region (1), complete the configuration feature to simulation model, on off control, visual angle setting, Target track displaying; Vision simulation region (2), completes vision emulation system core link---aircraft flight process and attitude virtual visualization function; Data visualization module (3), realizes the realtime curve to flying quality, gives researchist numerical information accurately; Two-dimension situation module (4), is got ready description to the flight path of aircraft, makes researchist's entirety hold flight course.
In system flight scene library, various flying scene is see Fig. 5.Show the flying scene that typical aircraft is conventional in Fig. 5, comprise mountain region model, earth model, sky model, ocean model, near space model, airport model.All adopt the exploitation of OpenGL graphics technology.
Typical aircraft visual simulation system performs flow process see Fig. 6.First staff carries out initialization information setting to system in initial interface: select dummy vehicle, selects model of place, selects whether turn-on data memory function.Startup optimization interface, staff selects offline mode: playback flight or real-time simulation, and both difference is that whether opening network communication interface and database read data interface module.Then, whether system automatic decision opens data storage function, if opened, opens data database storing interface module.After this, all the other all modules are opened by system automatically, start vision simulation work, and enter the operation of what comes into a driver's refresh cycle, staff can switch observation visual angle during this period, selects whether show two-dimension situation module.Finally, staff sends emulation halt instruction, EOP (end of program).
Grid communication module receiving data stream journey is see Fig. 7.This link adopts the UDP communication based on socket mode to complete.Front link completes loading, foundation, bound socket, the effect of initializing communication process, and the n wherein a created socket is multi-machine group-control mode service, associates with n host computer; Back link carries out based on timestamp judgement of substitute, and sets up mistake re-establishment mechanism, makes the data received have level and smooth continuity.System model parsing module workflow is see Fig. 8.This link analyses work for the solution to model completed outside stores with 3ds form.First for the information such as material, Materials Library, position vector, hypercomplex number, key frame in reading model do initial work, definition 3ds file reads in class, reads in initial configuration by the information in model; Then the class of object and the class of handling object sequence in definition process 3ds file, the mode approximate according to OpenGL triangle redraws model, Modling model display list, facilitates visual display and driver module to call; Last based on bounding box principle determination aircraft approximate size, carry out size with given optimization model (its size has optimal display result in visual display interface) to compare, determine the minimum scale in length ratio, conveniently in what comes into a driver's and display module, size setting is carried out to aircraft.
Aircraft bounding box asks for flow process see Fig. 9.This link can surround the minimum bounding box size of aircraft completely for asking for, and then determines aircraft approximate size.Its groundwork step is for find in three dimensions in X, Y, Z tri-directions respectively, and the maximal value in all apex coordinates of aircraft and minimum value, utilize the distance of the length of bounding box in the difference determination three dimensions of maximal value and minimum value.
Visual display and driver module workflow participate in Figure 10.This flow process utilizes OpenGL technology to complete display and the driving work of aircraft and flying scene thereof.First need initialization OpenGL to arrange, comprise the setting of the information such as window type, timer, logical palette, pixel format; Then create multi-machine group-control simulation model, initialization n aircraft flight information, and be and can not draw state; By judging that the data variation in the air data architectures body that each aircraft is corresponding determines last drawable dummy vehicle quantity; According to the appointment of human-computer interaction interface, the flying scene that display is fixing, and carry out the setting of dummy vehicle size scaling, enter what comes into a driver's refresh cycle flow process afterwards; In refresh cycle flow process, system all can upgrade the flying quality information of aircraft data structure body weight every a what comes into a driver's refresh cycle, continuous like this, the Data Update effect that causes aircraft to fly in flying scene fast.
Data submodule workflow is stored see Figure 11 in database interface module.This workflow achieves the effect flying quality value used in system emulation process being stored to database.After determining to open data storage function, be that database and analogue system set up n buffering link based on collection class object, temporarily store the flying quality of different aircraft.After the order receiving program stopped, eject prompting frame, whether reminding user stores flying quality, is, then the link of foundation and database, stores data if select.The data in whether storage object are determined by the data variation judging in collection class object, if the data in object change, then store this object, and for data add zone bit in storage data procedures, mark derives from the data of different sets class object.
Data submodule workflow is read see Figure 12 in database interface module.This workflow achieves the function of the flying quality that reading database stores.Similar with sub module stored principle of work, after determining to select flight playback mode, initialization data storehouse, based on the data in collection class target cache database.In the process of reading database data, according to Data Labels position item, by digital independent to different collection class objects.
Two-dimension situation module work flow process is see Figure 13.This workflow achieves and bitmap object is loaded on dialog box and the function of carrying out described point operation.First automatically specify two-dimensional map according to the flying scene system selected, be loaded on dialog box based on Picture control; Then the bitmap object of association two-dimensional map is created, be loaded on establishment with in the compatible equipment context (DC) of Picture control compatibility, the dual appearance of the DC of so compatible DC and Picture control just creates double buffers, accelerate described point speed, save CPU internal memory.
Whether finally, create multiple paintbrush and associate associated aircraft two-dimensional coordinate information, changing according to the data in two-dimensional coordinate structure judges whether that enabling certain paintbrush carries out described point to bitmap.

Claims (3)

1. a typical aircraft visual simulation system, it is characterized in that, comprising: dummy vehicle library module, flying scene library module, network communication module, visual display and driver module, database interface module, data visualization module, two-dimension situation module, model analyzing module, Man Machine Interface module;
Dummy vehicle library module: store all kinds of dummy vehicle with the form of 3ds file in this module, comprises hypersonic vehicle, dummy satellite, unmanned plane model; This module belongs to easily extensible module, and the model of any 3ds form is all to be manually placed in this model bank module;
Flying scene library module: the different flying scenes that this module stores has hypersonic aircraft, unmanned plane and satellite to need; Various scene based on OpenGL technology stand-alone development, and exists in submodule mode; Module comprises than more comprehensive flying scene, comprise near space model, earth model, ocean model, mountain region model, airport model, urban architecture model, sky model, if do not satisfied the demands, secondary development is carried out to this module, add variety classes model;
Network communication module: as real-time simulation, adopts UDP communication, realizes the communication with host computer in LAN environment based on Windows Sockets (Socket); Meanwhile, set up mistake Reconstruction of The Function based on data buffering, prevent the accident of substitute in UDP communication process; When the playback mode that flies is opened, this module is closed automatically;
Visual display and driver module: based on OpenGL dual-cache mechanism initialization dummy vehicle and model of place, make both have suitable locus and display effect; Redraw technology humanized dummy vehicle based on timing to fly in flying scene;
Database interface module: for realizing the interface that playback offline mode is offered, realize the interactive operation of vision emulation system and MySQL database; For avoiding the mutual time delay between database and system, setting up buffering link between, keeping in aircraft flight data message based on collection class object approach; Be divided into data memory interface and digital independent interface; Data memory interface is opened when turn-on data memory function, realizes temporary flying quality information and by its unloading to the function of external data base; Digital independent interface is opened when opening flight playback mode, realizes the temporary database information that reads and is transmitted to the function of aircraft class object;
Data visualization module: add data disaply moudle, researcher is had flying quality and is familiar with more accurately; The real-time visual effect to aircraft different attribute is realized based on edit box control;
Two-dimension situation module: the flight path describing aircraft, make researchist to the flight course of aircraft, spatial domain positional information has to be understood accurately; Two-dimensional map is not isolated existence, and it and the binding of various flying scene exist, as long as have selected flying scene, system can specify two-dimensional map automatically; This module belongs to optional module, when functions of modules is chosen, is presented at the window lower left corner, does not affect main perspective observing effect;
Model analyzing module: resolve external flight device model, namely resolve the dummy vehicle stored with 3ds form, and redraw display list based on the foundation of OpenGL triangle approximate way, facilitate visual display and driver module to call; The size of dummy vehicle size and the optimization model loaded is determined based on bounding box principle in this link, optimization model refers to that its size has optimal effectiveness in whole visual display window, after convenient, size scaling is carried out to aircraft, make it can not be excessive or too small in visual system;
Man Machine Interface module: the application program utilizing MFC platform technology feature to develop and the interface of user interactions, man-machine interaction when comprising system initialization and the man-machine interaction in later stage operational process; The man-machine interaction that dummy vehicle is selected, flying scene is selected, data storage function is selected is realized during system initialization; Later stage realizes the man-machine interaction that offline mode is selected, emulated on off control, observation visual angle selection, two-dimension situation selection when running;
The annexation of above-mentioned all modules is as described below:
Click the model selection choice of Man Machine Interface module, select the model in dummy vehicle storehouse, utilize model analyzing module to parse information in model, utilize visual display and driver module to redraw in visual display window by the information parsed subsequently;
The scene clicking Man Machine Interface module selects option, selects the flying scene in flying scene storehouse, and visual display and driver module draw flying scene according to selection result, and two-dimension situation module is according to selection result auto-associating two-dimensional map simultaneously;
Click the data storage function option of Man Machine Interface module, turn-on data memory function, temporarily store flying quality by database interface module, after program end of run, again utilize database interface module that temporary flying quality is stored to external data base;
Click the real-time flight option of Man Machine Interface module, realize online vision simulation function, after have selected this function, utilize the real time data that network communication module real-time reception host computer sends, and sent to visual display and driver module;
Click the flight playback option of Man Machine Interface module, realize off-line flight playback function, after have selected this function, abandon network communication module, then utilize the flying quality stored in database interface module reading external data storehouse, and sent to visual display and driver module;
Click the two-dimension situation button of Man Machine Interface module, realize cutting out operation to two-dimension situation module, according to the hobby of oneself, select whether enable two-dimension situation function, make it be presented at the window lower left corner;
Click the visual angle select button of Man Machine Interface module, the related parameter values of change visual display and driver module, switch and observe viewpoint;
In modular construction, visual display and driver module are nucleus module, under real-time simulation pattern, network communication module sends flying quality to visual display and driver module, and visual display and driver module send these data to data visualization module, two-dimension situation module, database interface module with broadcast mode subsequently; Under flight playback mode, visual display and driver module are still responsible for receiving and broadcast data, and difference is, data from database interface module;
Based on above-mentioned modular design, realized by four threads, be respectively: image procossing thread, data processing threads, network service thread, database interface thread;
Image procossing thread is the main thread of system, finishing man-machine interaction module, model analyzing module, visual display and driver module functional realiey;
Data processing threads: secondary treating is carried out to the data that communication module receives, realizes data visualization function, situation awareness display function;
Network service thread primary responsibility completes network communicating function, is responsible for receiving host computer data; When opening playback offline mode, this thread is closed automatically;
The interactive operation of database interface thread completion system and MySQL database, fulfillment database interface module function;
The opening sequence of each thread is: open image procossing thread at first, starts human-computer interaction interface; When system is determined to adopt real-time simulation pattern, then automatic opening network communication thread, otherwise this thread acquiescence is closed; After system determines to adopt playback offline mode or turn-on data memory function, then automatic turn-on data bank interface thread; Above-mentioned thread after setting completed, automatically open by data processing threads, allly subsequently opened thread concurrent working.
2. typical aircraft visual simulation system as claimed in claim 1, it is characterized in that, in modular construction, network communication module is for can cut out module, when network communication module is opened, carry out real-time online vision simulation, when network communication module is closed, visual display and driver module rely on database interface module to read the flying quality stored, and carry out the vision simulation of playback off-line.
3. typical aircraft visual simulation system as claimed in claim 1, is characterized in that, arranging of modules is all arranged according to multimachine flying method, and unit flight is as the special case of multi-machine group-control;
In network communication module, establish n and receive the array of different host computer data, its initial value is 0, draws the quantity of host computer by the data judging in the array analysis that whether changes;
In visual display and driver module, be initialized the data message of n dummy vehicle, just aircraft is in and can not draws state, if judge that the flying quality information obtaining certain aircraft changes, then directly makes this dummy vehicle draw;
In two-dimension situation module, establish the two-dimentional flight path draw brush of n different colours, whether changed to determine whether use certain paintbrush to describe flight path by the aircraft two-dimensional coordinate information judged and paintbrush is associated;
In data visualization module, equally establish the data visualization function for multiple aircraft, be just all in invisible mode, when detecting that corresponding visible flight data change, make edit box control visible dynamically, display aircraft flight data;
In database interface module, establish the collection class object that n group plays data buffering effect, often organize the flying quality that collection class object all preserves the different attribute of single aircraft; When storing data submodule and carrying out data storing work, the data in whether storage object are determined by the data variation judging in collection class object, simultaneously, when storing data, the collection class object data of different group is that it adds different Data Labels positions, when reading data submodule and carrying out digital independent work, by judging that the Data Labels position in database is read in different collection class objects.
CN201310011344.8A 2013-01-12 2013-01-12 Typical aircraft visual simulation system Expired - Fee Related CN103093047B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310011344.8A CN103093047B (en) 2013-01-12 2013-01-12 Typical aircraft visual simulation system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310011344.8A CN103093047B (en) 2013-01-12 2013-01-12 Typical aircraft visual simulation system

Publications (2)

Publication Number Publication Date
CN103093047A CN103093047A (en) 2013-05-08
CN103093047B true CN103093047B (en) 2015-06-17

Family

ID=48205607

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310011344.8A Expired - Fee Related CN103093047B (en) 2013-01-12 2013-01-12 Typical aircraft visual simulation system

Country Status (1)

Country Link
CN (1) CN103093047B (en)

Families Citing this family (30)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103926933A (en) * 2014-03-29 2014-07-16 北京航空航天大学 Indoor simultaneous locating and environment modeling method for unmanned aerial vehicle
CN103985148B (en) * 2014-04-21 2017-03-22 芜湖航飞科技股份有限公司 Rotor wing underwashing visual simulation method and system based on offshore flight
CN104133378B (en) * 2014-08-05 2017-01-25 中国民用航空总局第二研究所 Real-time simulation platform for airport activity area monitoring guidance system
CN104331530B (en) * 2014-09-03 2017-11-24 中国人民解放军63892部队 A kind of electronic warfare Scene Simulation Platform and method of work based on XML descriptions
CN104778872B (en) * 2015-04-03 2017-08-15 上海交通大学 The emulation experiment training platform studied for the man-machine interaction of mechanical arm remote operating
CN104898697A (en) * 2015-05-18 2015-09-09 国家电网公司 Three-dimensional dynamic model of unmanned plane and control method
CN105653125A (en) * 2015-12-28 2016-06-08 北京经纬恒润科技有限公司 Man-machine interaction method and system
US11080435B2 (en) * 2016-04-29 2021-08-03 Accenture Global Solutions Limited System architecture with visual modeling tool for designing and deploying complex models to distributed computing clusters
CN106202669B (en) * 2016-06-30 2019-07-16 北京航空航天大学 A kind of intellectualized battle flight simulation device
US10871753B2 (en) 2016-07-27 2020-12-22 Accenture Global Solutions Limited Feedback loop driven end-to-end state control of complex data-analytic systems
CN106548500A (en) * 2016-09-26 2017-03-29 中国电子科技集团公司第二十九研究所 A kind of two-dimension situation image processing method and device based on GPU
CN108521797B (en) * 2017-07-27 2021-04-06 深圳市大疆创新科技有限公司 Flight simulation control method, server and terminal equipment
CN108701164A (en) * 2017-08-25 2018-10-23 深圳市大疆创新科技有限公司 Obtain method, apparatus, storage medium and the equipment of flight simulation data
CN107643695B (en) * 2017-09-07 2020-11-20 天津大学 Human/unmanned aerial vehicle cluster formation VR simulation method and system based on electroencephalogram
CN107885096B (en) * 2017-10-16 2021-07-27 中国电力科学研究院 Unmanned aerial vehicle patrols and examines three-dimensional emulation monitored control system of flight path
CN107766650B (en) * 2017-10-20 2021-07-06 中国民航大学 Task-oriented dynamic capability response avionics system visual simulation tool implementation method
CN108492366A (en) * 2018-03-01 2018-09-04 中国航空无线电电子研究所 Adaptively more scenes synthesize virtual views method to unmanned plane
CN108595181A (en) * 2018-04-02 2018-09-28 北京航空航天大学 Artificial intelligence program person's writing aircraft cluster synchronization three-dimensional demonstration source code method
CN111099031B (en) * 2018-10-26 2021-07-27 北京小米松果电子有限公司 Method and device for displaying flight data, storage medium and electronic equipment
CN109747843B (en) * 2019-01-24 2021-01-29 深圳前海达闼云端智能科技有限公司 Display method, device, terminal and storage medium based on vehicle
CN110134025B (en) * 2019-05-26 2022-05-27 天津大学 Real-time simulation system of small distributed hypersonic aircraft
CN110555902B (en) * 2019-09-10 2021-03-16 中国科学院长春光学精密机械与物理研究所 Monocular vision measurement cooperative target vision simulation system
CN110765620B (en) * 2019-10-28 2024-03-08 上海科梁信息科技股份有限公司 Aircraft visual simulation method, system, server and storage medium
CN111091617A (en) * 2019-12-10 2020-05-01 四川大学 Aircraft accident prediction and three-dimensional visualization system
CN113050674B (en) * 2019-12-26 2022-08-23 中国科学院沈阳自动化研究所 Tilt rotor unmanned aerial vehicle ground command control system
CN112762939B (en) * 2020-12-24 2022-10-04 北京航天飞腾装备技术有限责任公司 Target coordinate acquisition system and method based on digital map
CN113671982B (en) * 2021-06-28 2024-09-06 湖州市公安局特警支队 Visual leading system applied to indoor outburst combat of unmanned aerial vehicle
CN114020041B (en) * 2021-12-14 2024-02-20 云南民族大学 Multi-unmanned aerial vehicle multi-thread two-dimensional exploration simulation method and system
CN114063991B (en) * 2022-01-04 2022-06-14 中国西安卫星测控中心 Satellite simulation component creation method
CN115222851B (en) * 2022-07-05 2024-01-26 上海烜翊科技有限公司 Visual simulation method, simulation system, computer equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101398866A (en) * 2008-10-29 2009-04-01 哈尔滨工程大学 Aircraft vision emulation system
US7564455B2 (en) * 2002-09-26 2009-07-21 The United States Of America As Represented By The Secretary Of The Navy Global visualization process for personal computer platforms (GVP+)
CN102426424A (en) * 2011-09-28 2012-04-25 天津大学 Visual emulation method of near-space flying vehicle based on distributed framework

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7564455B2 (en) * 2002-09-26 2009-07-21 The United States Of America As Represented By The Secretary Of The Navy Global visualization process for personal computer platforms (GVP+)
CN101398866A (en) * 2008-10-29 2009-04-01 哈尔滨工程大学 Aircraft vision emulation system
CN102426424A (en) * 2011-09-28 2012-04-25 天津大学 Visual emulation method of near-space flying vehicle based on distributed framework

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
"临近空间飞行器的模型参考滑模容错控制";林常青、宗群;《控制工程》;20120131;第19卷(第1期);第119-122、135页 *
"基于Multigen的无人机任务飞行仿真系统";贺涛、谢军等;《计算机工程》;20100131;第36卷(第1期);第248-250页 *

Also Published As

Publication number Publication date
CN103093047A (en) 2013-05-08

Similar Documents

Publication Publication Date Title
CN103093047B (en) Typical aircraft visual simulation system
EP2469474B1 (en) Creation of a playable scene with an authoring system
CN110023962B (en) Human experience with efficient transfer of robots and other autonomous machines
Lv et al. Game on, science-how video game technology may help biologists tackle visualization challenges
CN102169596B (en) Method and device for realizing 3D rendering on embedded device
CN102496177B (en) Method for producing three-dimensional water-and-ink animation
US9721045B2 (en) Operation in an immersive virtual environment
WO2016137694A1 (en) Ink stroke editing and manipulation
Pütz et al. Tools for visualizing, annotating and storing triangle meshes in ROS and RViz
CN103413343A (en) 3D (Three-Dimensional) graphic animation engine
US20180357812A1 (en) Optimizing processing time of a simulation engine
CN105511295B (en) A kind of satellite what comes into a driver's real-time emulation system and its method based on STKX component
CN102214365A (en) Skeletal animation theory-based universal virtual person simulation technology
Wasfy et al. Visualization of CFD results in immersive virtual environments
US8719732B2 (en) Method and system for applying 3D switch panel in instant messaging tool
CN107728984A (en) A kind of virtual reality picture display control program
Cao et al. Webgl-based research on virtual visualization simulation display platform of ship
CN102105905A (en) Semiconductor integrated circuit device, facility apparatus control device, and apparatus state display device
CN109977628A (en) A method of the efficient simulation laser radar in Unity
CN108460718A (en) The three dimensional graph display system optimization method and device soared based on low-power consumption
Eitsuka et al. Authoring animations of virtual objects in augmented reality-based 3d space
de Haan et al. Hybrid Interfaces in VEs: Intent and Interaction.
CN103513787B (en) For operating air mouse achievement method and the system of multi-screen adapter
Ye et al. Design of a ship safety training software based on leap motion and unity3D
Wu et al. Augmented Reality Technology and Its Application in Aviation Industry

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20150617