CN116991610B - Automatic control data output processing method for flight simulator - Google Patents

Automatic control data output processing method for flight simulator Download PDF

Info

Publication number
CN116991610B
CN116991610B CN202311268474.XA CN202311268474A CN116991610B CN 116991610 B CN116991610 B CN 116991610B CN 202311268474 A CN202311268474 A CN 202311268474A CN 116991610 B CN116991610 B CN 116991610B
Authority
CN
China
Prior art keywords
flight simulator
data
operation data
simulator
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.)
Active
Application number
CN202311268474.XA
Other languages
Chinese (zh)
Other versions
CN116991610A (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 Huayi Lantian Technology Co ltd
Original Assignee
Tianjin Huayi Lantian Technology Co ltd
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 Huayi Lantian Technology Co ltd filed Critical Tianjin Huayi Lantian Technology Co ltd
Priority to CN202311268474.XA priority Critical patent/CN116991610B/en
Publication of CN116991610A publication Critical patent/CN116991610A/en
Application granted granted Critical
Publication of CN116991610B publication Critical patent/CN116991610B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/546Message passing systems or structures, e.g. queues
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3055Monitoring arrangements for monitoring the status of the computing system or of the computing system component, e.g. monitoring if the computing system is on, off, available, not available
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/10Geometric CAD
    • G06F30/15Vehicle, aircraft or watercraft design
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/20Design optimisation, verification or simulation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09BEDUCATIONAL OR DEMONSTRATION APPLIANCES; APPLIANCES FOR TEACHING, OR COMMUNICATING WITH, THE BLIND, DEAF OR MUTE; MODELS; PLANETARIA; GLOBES; MAPS; DIAGRAMS
    • G09B9/00Simulators for teaching or training purposes
    • G09B9/02Simulators for teaching or training purposes for teaching control of vehicles or other craft
    • G09B9/08Simulators for teaching or training purposes for teaching control of vehicles or other craft for teaching control of aircraft, e.g. Link trainer
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Geometry (AREA)
  • Aviation & Aerospace Engineering (AREA)
  • Human Computer Interaction (AREA)
  • Computer Hardware Design (AREA)
  • Evolutionary Computation (AREA)
  • Automation & Control Theory (AREA)
  • Computational Mathematics (AREA)
  • Mathematical Analysis (AREA)
  • Mathematical Optimization (AREA)
  • Pure & Applied Mathematics (AREA)
  • Computing Systems (AREA)
  • Quality & Reliability (AREA)
  • Business, Economics & Management (AREA)
  • Educational Administration (AREA)
  • Educational Technology (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention relates to the field of automatic manipulation data output processing of flight simulators, in particular to an automatic manipulation data output processing method for a flight simulator, which comprises the following steps: s1, acquiring automatic control initial data corresponding to an aircraft simulator; s2, acquiring a corresponding operation data frame of the automatic manipulation of the flight simulator by utilizing the automatic manipulation initial data; s3, establishing a data transmission communication on-line state flight simulator; s4, obtaining an automatic control data output processing result by utilizing the operation data frame according to the online state flight simulator of data transmission communication, abstracting the running state of the simulator into a state machine, accurately monitoring the state of the simulator, and controlling the sending time precision of the operation data through the period of a timer so as to enable the operation restoration process to be matched with the real state as much as possible.

Description

Automatic control data output processing method for flight simulator
Technical Field
The invention relates to the field of automatic manipulation data output processing of flight simulators, in particular to an automatic manipulation data output processing method for a flight simulator.
Background
Operation of the flight simulator requires human operation as input. In the debugging stage of the flight simulator, a driver is required to assist in debugging besides a debugger; when training using a flight simulator, the driver is required to operate the simulator if a specific training condition is to be achieved. In these cases, additional manpower is added, and a level of operation by the driver is also required to ensure that the result of each operation is nearly uniform.
Disclosure of Invention
Aiming at the defects of the prior art, the invention provides an automatic control data output processing method for a flight simulator, which can process operation data of different sources, namely data with different sampling periods, together by presetting a communication transmission architecture of control data and the flight simulator.
To achieve the above object, the present invention provides an automatic manipulation data output processing method for a flight simulator, comprising:
s1, acquiring automatic control initial data corresponding to an aircraft simulator;
s2, acquiring a corresponding operation data frame of the automatic manipulation of the flight simulator by utilizing the automatic manipulation initial data;
s3, establishing a data transmission communication on-line state flight simulator;
s4, obtaining an automatic control data output processing result by utilizing the operation data frame according to the data transmission communication on-line state flight simulator.
Preferably, the acquiring initial data of the corresponding automatic steering of the aircraft simulator includes:
s1-1, acquiring operation data of automatic operation of a flight simulator, and configuring connection between a state initial value and communication of the flight simulator;
s1-2, obtaining a transmission time sequence of the automatic operation of the flight simulator by utilizing the operation data of the automatic operation of the flight simulator;
s1-3, using the transmission time sequence of the automatic operation of the flight simulator, the initial value of the state of the flight simulator and the communication connection configuration as initial data of the automatic operation of the flight simulator.
Further, the obtaining a transmission time sequence of the flight simulator autopilot by using the operation data of the flight simulator autopilot comprises:
s1-2-1, judging whether the operation data automatically operated by the flight simulator is in a standard format, if so, executing S1-2-2, otherwise, executing S1-2-2 after converting the operation data into the standard format;
s1-2-2, judging whether a transmission period of operation data of the automatic operation of the flight simulator is a designated transmission period, if so, generating a transmission time sequence of the automatic operation of the flight simulator by using a moment corresponding to the designated transmission period as a starting point, otherwise, executing S1-2-3;
s1-2-3, judging whether the signals corresponding to the operation data of the automatic operation of the flight simulator are all the same sampling period, if so, generating a transmission time sequence of the automatic operation of the flight simulator by using the current sampling period as a default transmission period, otherwise, generating the transmission time sequence of the automatic operation of the flight simulator by using the sampling period of the first signal channel of the signals corresponding to the operation data of the automatic operation of the flight simulator as a default transmission period and according to the default transmission period, corresponding to a moment starting point of 0;
the standard format is csv or tsv, the sending period is a designated sending period or a default sending period, and the minimum value of the sending period is the minimum period corresponding to the flight simulator.
Preferably, the acquiring the corresponding operation data frame of the flight simulator by using the automatic operation initial data includes:
s2-1, acquiring corresponding operation data according to the automatic operation initial data;
s2-2, obtaining an automatic manipulation corresponding operation data frame of the flight simulator according to the automatic manipulation initial data by utilizing the operation data.
Further, obtaining the flight simulator autopilot corresponding operation data frame according to the autopilot initial data by using the operation data comprises:
s2-2-1, performing time sequencing by using the operation data to establish a corresponding flight simulator operation data set;
s2-2-2, judging whether a transmission period of the automatic operation of the flight simulator is a default transmission period, if so, executing S2-2-3, otherwise, directly executing S2-2-4;
s2-2-3, judging whether corresponding signals of operation data of the automatic operation of the flight simulator are all the same sampling period, if so, storing the operation data set of the flight simulator and the corresponding transmission time sequence thereof based on a table structure to obtain an operation data frame of the automatic operation of the flight simulator, otherwise, executing S2-2-4;
s2-2-4, obtaining a flight simulator operation data set corresponding to the transmission time sequence based on a linear interpolation method by utilizing the flight simulator operation data set according to the transmission time sequence of the initial data;
s2-2-5, combining and storing the transmission time sequence and the operation data set based on the table structure to obtain the operation data frame corresponding to the automatic manipulation of the flight simulator.
Preferably, establishing the data transmission communication on-line state flight simulator includes:
and carrying out data transmission communication preprocessing on the flight simulator to obtain the data transmission communication on-line state flight simulator.
Further, the data transmission communication preprocessing for the flight simulator to obtain the data transmission communication on-line state flight simulator comprises:
establishing communication connection of the flight simulator based on the client-server architecture;
establishing data connection of the flight simulator based on AutoPltToSim and SimTOAutoPlt structures to obtain a data transmission communication on-line state flight simulator;
the AutoPltToSim is used for transmitting operation data of automatic operation of the flight simulator and a flight simulator state initial value, and the SimTOAutoPlt is used for transmitting a flight simulator state real-time value of the flight simulator and a flight simulator real-time operation value.
Further, the obtaining the automatic manipulation data output processing result by the operation data frame according to the online state flight simulator of the data transmission communication comprises the following steps:
s4-1, acquiring a real-time value of the state of the flight simulator and a real-time operation value of the flight simulator according to the data transmission communication on-line state flight simulator to establish a flight state graph;
s4-2, obtaining an automatic control data output processing result by using the operation data frame and the flight state curve graph.
Further, obtaining the automatic manipulation data output processing result by using the manipulation data frame and the flight state graph comprises:
s4-2-1, establishing an initial state of the flight simulator by utilizing the initial value of the state of the flight simulator corresponding to the operation data frame;
s4-2-2, receiving an operation data frame automatically operated by the flight simulator by utilizing the online state flight simulator of data transmission communication according to the initial state of the flight simulator;
s4-2-3, judging whether the real-time operation data frame corresponding to the operation data frame at the current moment is a termination frame or not, if so, outputting the operation data frame at the current moment and the flight state graph as an automatic operation data output processing result, otherwise, executing S3-2-5;
s4-2-4, judging whether the interval between the current moment and the adjacent last moment is larger than a transmission period, if so, transmitting the preprocessing data automatically operated by the flight simulator at the current moment, returning to S4-2-3, otherwise, discarding the processing, and returning to S4-2-3;
the termination frame is the last frame of the operation data frame of the flight simulator, which corresponds to the operation data frame of the flight simulator, the sending period is a designated sending period or a default sending period, and the minimum value of the sending period is the minimum period corresponding to the flight simulator.
Compared with the closest prior art, the invention has the following beneficial effects:
for operation data of different sources, namely, data with different sampling periods can be processed together, the running state of the simulator is abstracted into a state machine, the state of the simulator is accurately monitored, the sending time precision of the operation data is controlled through the period of a timer, and the operation restoration process is matched with the real state as much as possible.
Drawings
FIG. 1 is a flow chart of a method of automated steering data output processing for a flight simulator provided by the present invention;
FIG. 2 is a diagram of a simulator state transition for a method of handling autopilot data output processing for a flight simulator in accordance with the present invention;
fig. 3 is a flow chart of a practical application of the method for processing the output of the automatic steering data for the flight simulator.
Detailed Description
The following describes the embodiments of the present invention in further detail with reference to the drawings.
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments of the present invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Example 1: the invention provides an automatic control data output processing method for a flight simulator, which is shown in fig. 1 and comprises the following steps:
s1, acquiring automatic control initial data corresponding to an aircraft simulator;
s2, acquiring a corresponding operation data frame of the automatic manipulation of the flight simulator by utilizing the automatic manipulation initial data;
s3, establishing a data transmission communication on-line state flight simulator;
s4, obtaining an automatic control data output processing result by utilizing the operation data frame according to the data transmission communication on-line state flight simulator.
S1 specifically comprises:
s1-1, acquiring operation data of automatic operation of a flight simulator, and configuring connection between a state initial value and communication of the flight simulator;
s1-2, obtaining a transmission time sequence of the automatic operation of the flight simulator by utilizing the operation data of the automatic operation of the flight simulator;
s1-3, using the transmission time sequence of the automatic operation of the flight simulator, the initial value of the state of the flight simulator and the communication connection configuration as initial data of the automatic operation of the flight simulator.
S1-2 specifically comprises:
s1-2-1, judging whether the operation data automatically operated by the flight simulator is in a standard format, if so, executing S1-2-2, otherwise, executing S1-2-2 after converting the operation data into the standard format;
s1-2-2, judging whether a transmission period of operation data of the automatic operation of the flight simulator is a designated transmission period, if so, generating a transmission time sequence of the automatic operation of the flight simulator by using a moment corresponding to the designated transmission period as a starting point, otherwise, executing S1-2-3;
s1-2-3, judging whether the signals corresponding to the operation data of the automatic operation of the flight simulator are all the same sampling period, if so, generating a transmission time sequence of the automatic operation of the flight simulator by using the current sampling period as a default transmission period, otherwise, generating the transmission time sequence of the automatic operation of the flight simulator by using the sampling period of the first signal channel of the signals corresponding to the operation data of the automatic operation of the flight simulator as a default transmission period and according to the default transmission period, corresponding to a moment starting point of 0;
the standard format is csv or tsv, the sending period is a designated sending period or a default sending period, and the minimum value of the sending period is the minimum period corresponding to the flight simulator.
S2 specifically comprises:
s2-1, acquiring corresponding operation data according to the automatic operation initial data;
s2-2, obtaining an automatic manipulation corresponding operation data frame of the flight simulator according to the automatic manipulation initial data by utilizing the operation data.
S2-2 specifically comprises:
s2-2-1, performing time sequencing by using the operation data to establish a corresponding flight simulator operation data set;
s2-2-2, judging whether a transmission period of the automatic operation of the flight simulator is a default transmission period, if so, executing S2-2-3, otherwise, directly executing S2-2-4;
s2-2-3, judging whether corresponding signals of operation data of the automatic operation of the flight simulator are all the same sampling period, if so, storing the operation data set of the flight simulator and the corresponding transmission time sequence thereof based on a table structure to obtain an operation data frame of the automatic operation of the flight simulator, otherwise, executing S2-2-4;
s2-2-4, obtaining a flight simulator operation data set corresponding to the transmission time sequence based on a linear interpolation method by utilizing the flight simulator operation data set according to the transmission time sequence of the initial data;
s2-2-5, combining and storing the transmission time sequence and the operation data set based on the table structure to obtain the operation data frame corresponding to the automatic manipulation of the flight simulator.
S3 specifically comprises:
s3-1, carrying out data transmission communication preprocessing on the flight simulator to obtain the data transmission communication on-line state flight simulator.
S3-1 specifically comprises:
s3-1-1, establishing communication connection of the flight simulator based on a client-server architecture;
s3-1-2, establishing data connection of the flight simulator based on AutoPltToSim and SimTOPlt structures to obtain a data transmission communication on-line state flight simulator;
the AutoPltToSim is used for transmitting operation data of automatic operation of the flight simulator and a flight simulator state initial value, and the SimTOAutoPlt is used for transmitting a flight simulator state real-time value of the flight simulator and a flight simulator real-time operation value.
S4 specifically comprises the following steps:
s4-1, acquiring a real-time value of the state of the flight simulator and a real-time operation value of the flight simulator according to the data transmission communication on-line state flight simulator to establish a flight state graph;
s4-2, obtaining an automatic control data output processing result by using the operation data frame and the flight state curve graph.
S4-2 specifically comprises:
s4-2-1, establishing an initial state of the flight simulator by utilizing the initial value of the state of the flight simulator corresponding to the operation data frame;
s4-2-2, receiving an operation data frame automatically operated by the flight simulator by utilizing the online state flight simulator of data transmission communication according to the initial state of the flight simulator;
s4-2-3, judging whether the real-time operation data frame corresponding to the operation data frame at the current moment is a termination frame or not, if so, outputting the operation data frame at the current moment and the flight state graph as an automatic operation data output processing result, otherwise, executing S3-2-5;
s4-2-4, judging whether the interval between the current moment and the adjacent last moment is larger than a transmission period, if so, transmitting the preprocessing data automatically operated by the flight simulator at the current moment, returning to S4-2-3, otherwise, discarding the processing, and returning to S4-2-3;
the termination frame is the last frame of the operation data frame of the flight simulator, which corresponds to the operation data frame of the flight simulator, the sending period is a designated sending period or a default sending period, and the minimum value of the sending period is the minimum period corresponding to the flight simulator.
In this embodiment, a method for processing output of automatic steering data for a flight simulator, the actual operation process of the method is as follows:
1. starting a main control program, wherein a user interface is operated at the moment, and waiting for the operation of a user;
2. clicking a file selecting button on a user interface, selecting operation data and verification data to be read, wherein the operation data are position data of each operation rod at different moments obtained from test flight record data, and the verification data are aircraft flight state values in the test flight record data and are used for comparing with flight state values generated by a simulator;
3. after the data file is selected, the sending period of the operation data is required to be specified, namely, the main control program sends the operation data to the simulator at intervals of time, and if the source of the operation data is the same, the time sequence in the file has only one column, and the sending period is the same as the sampling period; if the sources of the operation data are different, a plurality of time sequences exist in the file, and the operation data are recalculated according to the sending period appointed by the user;
4. the processing flow of the operation data is as follows, firstly, the position data of a certain operation rod is ordered according to time, then, the sending time point is calculated by using the sending period, the position of the time point in the original time sequence is found for each sending time point, and finally, the position value of the operation rod at the moment is calculated by adopting an interpolation method. Such processing is performed for each lever to obtain each lever position value corresponding to the transmission time point. The position value of each operation lever at a certain moment is called an operation data frame;
5. the processed operation data are stored in a table structure, and the data in the table are read according to rows when the data are transmitted;
6. after the user interface is clicked and started, the main control flow starts;
7. the initially defined work is done first. As shown in fig. 2, the initial start-up procedure requires the creation of a communication connection with the simulator, i.e. the transmission of an initial flight status to the simulator; sending an initialization command to the simulator; sending an initialization completion command to the main control program, and then creating an open connection, wherein in the operation stage: sending a freeze-release command to the simulator; transmitting an operation data frame to the simulator; sending the flight state data to the main control module, and stopping: sending a freeze command to the simulator; sending a stop completion command to the main control program, wherein the communication with the external program in the method uses a client-server architecture, the simulator runs the server, and a client object is maintained in the main control program. The method uses socket;
8. the mechanism communicates data. The interface data structures of the main control program and the simulator are AutoPltToSim and SimTOAutoPlt structures respectively. AutoPltToSim is the data sent by the main control program to the simulator, including operational data frames, initial flight conditions, running state switching signals, etc. The SimTOAutoPlt is data sent by the simulator, and comprises state parameters, operating rod positions, flight state parameters and the like of the simulator;
9. a timer is initialized. Setting the running period and the time starting point of a timer, and preparing for the later synchronization;
10. sending a state switching instruction to the simulator to enable the simulator to enter an initialized state;
11. waiting for an initialization completion signal from the simulator. After receiving the initialization completion signal, sending a state switching instruction to the simulator to enable the simulator to enter an operation state;
12. a timer is started. The timer records the time difference from the last transmission of the operation data frame, and when the time difference is larger than the transmission period, the next operation data frame is transmitted. So that the maximum error between the transmission period and the sampling period of the operation data does not exceed the running period of the timer;
13. in the operating state, the main control program reads the flight status data from the simulator. Drawing a graph of the flight state in real time, and displaying a simulation result on a user interface;
14. when the main control program finishes transmitting the last frame of operation data, the timer is stopped, and then a state switching instruction is transmitted to the simulator to enable the simulator to enter a stopped state.
Example 2: the invention provides a practical application of an automatic control data output processing method for a flight simulator, as shown in fig. 3, comprising the following steps:
1. writing a user interface by using a C language, wherein the user interface comprises an operation/stop button, a data file selection button, an initial value display, a real-time flight state value display and a real-time operation value display;
2. the data file includes operation data and verification data, which may be a file or a plain text, and the data is stored in the form of a table, one column representing values of a certain operation variable or state variable at different times, and one row representing values of all operation variables or state variables at a certain time. A row is also called a data frame;
3. reading data from the selected file, analyzing the data content according to the separator, and storing the result in a two-dimensional array;
4. the interpolation method selected in this embodiment is one-dimensional linear interpolation. When the sampling period is not very large, the linear interpolation method can well meet the precision requirement;
5. the processed operation data are stored in a table structure, and the data in the table are read according to rows when the data are transmitted;
6. waiting for a user to click an operation button on the interface;
7. the communication mode of the main control program and the simulator is socket communication;
8. the default running period of the timer is 1ms, the initial actual time of the timer is the current machine time, and the initial logic time is 0;
9. after the main control module finishes the steps, a state switching instruction is sent to the interface module to enable the interface module to enter an initialized state;
10. waiting for an initialization completion signal sent by the interface module, and sending a state switching instruction to the interface module after receiving the initialization completion signal so as to enable the interface module to enter an operation state;
11. in this example, the timer period is much smaller than the operation data frame interval, and after the timer is started, the increment of the actual time is the time that the machine actually operates, and the increment of the logic time is the time interval of the operation data frame. When the actual time is earlier than the logic time, the main control module does not send data; when the actual time is equal to the logic time, the main control module sends the content of the current operation data frame, and the logic time is increased;
12. the user interface displays a change curve of the flight state and the operation data of the simulator, and uses a drawing function in the UI framework;
13. when the actual time of the timer exceeds the time of the last frame of the operation data, the timer is stopped, and then a state switching instruction is sent to the interface module to enable the interface module to enter a stopping state;
the flight status data of the whole running process can be saved to a file, or compared with verification data, and the performance of the simulator can be evaluated.
It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
Finally, it should be noted that: the above embodiments are only for illustrating the technical aspects of the present invention and not for limiting the same, and although the present invention has been described in detail with reference to the above embodiments, it should be understood by those of ordinary skill in the art that: modifications and equivalents may be made to the specific embodiments of the invention without departing from the spirit and scope of the invention, which is intended to be covered by the claims.

Claims (4)

1. A method of automatically manipulating data output for a flight simulator, comprising:
s1, acquiring automatic control initial data corresponding to an aircraft simulator;
s1-1, acquiring operation data of automatic operation of a flight simulator, and configuring connection between a state initial value and communication of the flight simulator;
s1-2, obtaining a transmission time sequence of the automatic operation of the flight simulator by utilizing the operation data of the automatic operation of the flight simulator;
s1-3, using a transmission time sequence of the automatic operation of the flight simulator, an initial value of the state of the flight simulator and communication connection configuration as initial data of the automatic operation of the flight simulator;
s2, acquiring a corresponding operation data frame of the automatic manipulation of the flight simulator by utilizing the automatic manipulation initial data;
s2-1, acquiring corresponding operation data according to the automatic operation initial data;
s2-2, obtaining an automatic manipulation corresponding operation data frame of the flight simulator according to the automatic manipulation initial data by utilizing the operation data;
s2-2-1, performing time sequencing by using the operation data to establish a corresponding flight simulator operation data set;
s2-2-2, judging whether a transmission period of the automatic operation of the flight simulator is a default transmission period, if so, executing S2-2-3, otherwise, directly executing S2-2-4;
s2-2-3, judging whether corresponding signals of operation data of the automatic operation of the flight simulator are all the same sampling period, if so, storing the operation data set of the flight simulator and the corresponding transmission time sequence thereof based on a table structure to obtain an operation data frame of the automatic operation of the flight simulator, otherwise, executing S2-2-4;
s2-2-4, obtaining a flight simulator operation data set corresponding to the transmission time sequence based on a linear interpolation method by utilizing the flight simulator operation data set according to the transmission time sequence of the initial data;
s2-2-5, merging and storing the transmission time sequence and the operation data set based on a table structure to obtain an operation data frame corresponding to the automatic manipulation of the flight simulator;
s3, establishing a data transmission communication on-line state flight simulator;
s4, obtaining an automatic control data output processing result by using the operation data frame according to the online state flight simulator of data transmission communication;
s4-1, acquiring a real-time value of the state of the flight simulator and a real-time operation value of the flight simulator according to the data transmission communication on-line state flight simulator to establish a flight state graph;
s4-2, obtaining an automatic control data output processing result by using the operation data frame and the flight state curve graph;
s4-2-1, establishing an initial state of the flight simulator by utilizing the initial value of the state of the flight simulator corresponding to the operation data frame;
s4-2-2, receiving an operation data frame automatically operated by the flight simulator by utilizing the online state flight simulator of data transmission communication according to the initial state of the flight simulator;
s4-2-3, judging whether the real-time operation data frame corresponding to the operation data frame at the current moment is a termination frame or not, if so, outputting the operation data frame at the current moment and the flight state graph as an automatic operation data output processing result, otherwise, executing S3-2-5;
s4-2-4, judging whether the interval between the current moment and the adjacent last moment is larger than a transmission period, if so, transmitting the preprocessing data automatically operated by the flight simulator at the current moment, returning to S4-2-3, otherwise, discarding the processing, and returning to S4-2-3;
the termination frame is the last frame of the operation data frame of the flight simulator, which corresponds to the operation data frame of the flight simulator, the sending period is a designated sending period or a default sending period, and the minimum value of the sending period is the minimum period corresponding to the flight simulator.
2. A method of processing autopilot data output for a flight simulator as defined in claim 1, wherein deriving a transmit time sequence for autopilot of the flight simulator using operational data for autopilot of the flight simulator comprises:
s1-2-1, judging whether the operation data automatically operated by the flight simulator is in a standard format, if so, executing S1-2-2, otherwise, executing S1-2-2 after converting the operation data into the standard format;
s1-2-2, judging whether a transmission period of operation data of the automatic operation of the flight simulator is a designated transmission period, if so, generating a transmission time sequence of the automatic operation of the flight simulator by using a moment corresponding to the designated transmission period as a starting point, otherwise, executing S1-2-3;
s1-2-3, judging whether the signals corresponding to the operation data of the automatic operation of the flight simulator are all the same sampling period, if so, generating a transmission time sequence of the automatic operation of the flight simulator by using the current sampling period as a default transmission period, otherwise, generating the transmission time sequence of the automatic operation of the flight simulator by using the sampling period of the first signal channel of the signals corresponding to the operation data of the automatic operation of the flight simulator as a default transmission period and according to the default transmission period, corresponding to a moment starting point of 0;
the standard format is csv or tsv, the sending period is a designated sending period or a default sending period, and the minimum value of the sending period is the minimum period corresponding to the flight simulator.
3. A method of automatically manipulating data output for a flight simulator as recited in claim 1, wherein establishing data transmission communication with the on-line flight simulator comprises:
and carrying out data transmission communication preprocessing on the flight simulator to obtain the data transmission communication on-line state flight simulator.
4. A method of automatically manipulating a data output for a flight simulator as recited in claim 3, wherein said preprocessing the data transmission communication of the flight simulator to obtain a data transmission communication on-line flight simulator comprises:
establishing communication connection of the flight simulator based on the client-server architecture;
establishing data connection of the flight simulator based on AutoPltToSim and SimTOAutoPlt structures to obtain a data transmission communication on-line state flight simulator;
the AutoPltToSim is used for transmitting operation data of automatic operation of the flight simulator and a flight simulator state initial value, and the SimTOAutoPlt is used for transmitting a flight simulator state real-time value of the flight simulator and a flight simulator real-time operation value.
CN202311268474.XA 2023-09-28 2023-09-28 Automatic control data output processing method for flight simulator Active CN116991610B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311268474.XA CN116991610B (en) 2023-09-28 2023-09-28 Automatic control data output processing method for flight simulator

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311268474.XA CN116991610B (en) 2023-09-28 2023-09-28 Automatic control data output processing method for flight simulator

Publications (2)

Publication Number Publication Date
CN116991610A CN116991610A (en) 2023-11-03
CN116991610B true CN116991610B (en) 2023-12-26

Family

ID=88527018

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311268474.XA Active CN116991610B (en) 2023-09-28 2023-09-28 Automatic control data output processing method for flight simulator

Country Status (1)

Country Link
CN (1) CN116991610B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107764458A (en) * 2017-09-25 2018-03-06 中国航空工业集团公司西安飞机设计研究所 A kind of aircraft handing characteristics curve generation method
CN109191993A (en) * 2018-10-17 2019-01-11 中国人民解放军陆军航空兵学院陆军航空兵研究所 The flight control system of helicopter flight simulator
CN112199828A (en) * 2020-09-25 2021-01-08 中国直升机设计研究所 Helicopter simulator control system data packet development method
CN112542070A (en) * 2020-11-30 2021-03-23 中国人民解放军海军航空大学青岛校区 Light-weight dynamic flight simulation trainer based on high-definition head display

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1368954A1 (en) * 2001-02-17 2003-12-10 Honeywell International Inc. System and method for operating software in a flight simulator environment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107764458A (en) * 2017-09-25 2018-03-06 中国航空工业集团公司西安飞机设计研究所 A kind of aircraft handing characteristics curve generation method
CN109191993A (en) * 2018-10-17 2019-01-11 中国人民解放军陆军航空兵学院陆军航空兵研究所 The flight control system of helicopter flight simulator
CN112199828A (en) * 2020-09-25 2021-01-08 中国直升机设计研究所 Helicopter simulator control system data packet development method
CN112542070A (en) * 2020-11-30 2021-03-23 中国人民解放军海军航空大学青岛校区 Light-weight dynamic flight simulation trainer based on high-definition head display

Also Published As

Publication number Publication date
CN116991610A (en) 2023-11-03

Similar Documents

Publication Publication Date Title
JPH0962601A (en) Simulator device for computer network
US8583412B2 (en) Systems and methods for providing a simulation environment having a simulation user interface
CN114895642A (en) Multi-device cooperative operation system and method based on digital twin technology
US20110320017A1 (en) Integrated drive management and configuration using instantiated objects
KR20100108582A (en) Program test device and program
CN116991610B (en) Automatic control data output processing method for flight simulator
CN114237767A (en) System and method for realizing multi-speed simulation
JP2005044316A (en) Simulation support tool, verification system for ladder program, and program product
Lyakh et al. Automatic verification of control software in cyber-physical systems with plant simulators
EP0362392A1 (en) Pc simulation system
WO2010134198A1 (en) Simulation apparatus and simulation program
CN115964270A (en) User interface automation test method and device
EP3291112A1 (en) Master and slave architecture for co-simulation of control systems
KR20070040802A (en) Cae analysis progress management system
CN110147267B (en) System for comparing running effects of different parameters of embedded system in simulation software
JP2001265409A (en) Signal analysis processor
JPH06332507A (en) Play-back system for programmable controller
US12086577B2 (en) Method for creating and executing a control program for controlling an automation system, and automation system
CN114418523A (en) Flow processing method and device combining RPA and AI
US20230004482A1 (en) Simulation system, method for simulation system, and non-transitory computer-readable storage medium storing simulation program
JPH11143613A (en) System for automatically setting application constitution
JP2009244952A (en) Motion controller, simulation method, and simulation program
JPH04117573A (en) Analytic simulation system
CN114217569A (en) Industrial control plc data monitoring method, device, electronic device, and storage medium
JP2002024053A (en) General purpose inspection system on which log function is mounted

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant