CN112083917B - Calculation parameter generation method based on flight parameter data - Google Patents

Calculation parameter generation method based on flight parameter data Download PDF

Info

Publication number
CN112083917B
CN112083917B CN202010821242.2A CN202010821242A CN112083917B CN 112083917 B CN112083917 B CN 112083917B CN 202010821242 A CN202010821242 A CN 202010821242A CN 112083917 B CN112083917 B CN 112083917B
Authority
CN
China
Prior art keywords
calculation
parameters
parameter
sequence
time
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
CN202010821242.2A
Other languages
Chinese (zh)
Other versions
CN112083917A (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.)
Shaanxi Qianshan Avionics Co Ltd
Original Assignee
Shaanxi Qianshan Avionics 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 Shaanxi Qianshan Avionics Co Ltd filed Critical Shaanxi Qianshan Avionics Co Ltd
Priority to CN202010821242.2A priority Critical patent/CN112083917B/en
Publication of CN112083917A publication Critical patent/CN112083917A/en
Application granted granted Critical
Publication of CN112083917B publication Critical patent/CN112083917B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • G06F8/42Syntactic analysis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • G06F8/43Checking; Contextual analysis
    • 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/44557Code layout in executable memory
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C5/00Registering or indicating the working of vehicles
    • G07C5/08Registering or indicating performance data other than driving, working, idle, or waiting time, with or without registering driving, working, idle or waiting time
    • G07C5/0808Diagnosing performance data

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Stored Programmes (AREA)

Abstract

The present disclosure provides a calculation parameter generation method based on flight parameter data, comprising: registering temporary variables by taking parameter codes as labels for acquisition parameters and calculation parameters; writing a code text of the calculation parameters, and forming a calculation linked list; determining calculation interval time according to the calculation frequency of the calculation parameters; determining the time position of each calculation point according to the time sequence and the calculation interval time, searching the numerical value of the acquisition parameter at the moment, and updating the numerical value into the corresponding temporary variable; calculating the expression by utilizing the related temporary variable values according to the calculation linked list sequence to obtain a single-point calculation parameter result; saving the calculation parameter result to the corresponding position of the sequence of calculation parameters; according to the time sequence, the operation of calculating parameters is completed. The method can calculate the parameter sequence required by the user and provide support for data viewing and design of fly parameter data processing software.

Description

Calculation parameter generation method based on flight parameter data
Technical Field
The disclosure relates to the technical field of avionics, in particular to a calculation parameter generation method based on flight parameter data.
Background
The flight parameter data is recorded by a flight parameter recorder (commonly called a black box), and plays an important role in the investigation of aviation accidents. The processing and analysis of the flight parameter data are important links in the use of flight parameters. When the flight parameter data is processed and analyzed, the collected parameters cannot be used for further analysis of the data, and when the data is further analyzed, the data is often required to be subjected to joint calculation to derive a target parameter value. In order to conveniently and rapidly meet the user demand, a user expresses the realization of the calculation parameters in a programmable mode, and the acquired flight parameter data are utilized to calculate the numerical value of the calculation parameter value in a time sequence through a certain realization logic, so that a rapid method is provided for the deep analysis of the flight parameter data.
Disclosure of Invention
In view of this, the embodiments of the present disclosure provide a method for generating calculation parameters based on flight parameter data, which enables a user to flexibly use the calculation parameter sequence required by the user, and provides support for data viewing and design of flight parameter data processing software.
A calculation parameter generation method based on flight parameter data comprises the following steps:
step one: registering temporary variables in a calculation parameter processor by taking English parameter codes as labels for acquisition parameters and calculation parameters;
step two: writing a code text of the calculation parameters, and forming a calculation linked list;
step three: determining the calculation interval time of the calculation parameters according to the calculation frequency set by the calculation parameters;
step four: determining the time position of each calculation point according to the time sequence and the calculation interval time, searching the numerical value of the acquisition parameter at the moment according to the time position, and updating the numerical value into the corresponding temporary variable;
step five: calculating the expression by utilizing the related temporary variable values according to the calculation linked list sequence of the step two to obtain a single-point calculation parameter result;
step six: according to the time points, saving the calculation parameter results to the corresponding positions of the sequence of calculation parameters;
step seven: and according to the time sequence, finishing the operation of all data points of the calculated parameters, namely finishing the operation of the calculated parameters.
In a preferred embodiment, the second step further includes compiling the code text with a computing parameter processor to check the grammar.
In a preferred embodiment, when the grammar is checked, if the grammar has errors, an error prompt is returned, and the code text is modified and then compiled again until the compilation is passed.
In a preferred embodiment, the step two further includes that the computing parameter processor performs minimum computing unit decomposition on the code text according to the priority, and forms a computing linked list according to the priority of the operation.
In a preferred embodiment, when forming the calculation linked list, the calculation unit with the highest priority is first extracted, then the unit is split until the unit is split into the minimum calculation units, and each minimum calculation unit is formed into the calculation linked list according to the priority.
In a preferred embodiment, the second step further includes a calculation parameter processor to register the acquisition parameters and the calculation parameters as temporary variables and write the calculation logic as code text.
In a preferred embodiment, the calculation parameters are performed in time series, and each calculation point is calculated and stored in the calculation series.
The calculation parameter generation method based on the flight parameter data can flexibly calculate the required parameter value according to the acquired data, and provides a powerful tool for flight parameter data analysis. The beneficial effects are as follows:
1) Means for improving fly-by-fly parameter data analysis
The invention adopts a flexible method for realizing calculation parameters, provides technical means for flight parameter data analysis, custom parameters and the like, and provides means for deep analysis of data.
2) Enriches the functions of fly-by-fly data processing software
The special software for the flight parameter data analysis is flight parameter data processing software, and the flight parameter data processing software can enrich the functions of the software by integrating and utilizing the functions.
Detailed Description
Embodiments of the present disclosure are described in detail below.
Other advantages and effects of the present disclosure will become readily apparent to those skilled in the art from the following disclosure, which describes embodiments of the present disclosure by way of specific examples. It will be apparent that the described embodiments are merely some, but not all embodiments of the present disclosure. The disclosure may be embodied or practiced in other different specific embodiments, and details within the subject specification may be modified or changed from various points of view and applications without departing from the spirit of the disclosure. It should be noted that the following embodiments and features in the embodiments may be combined with each other without conflict. All other embodiments, which can be made by one of ordinary skill in the art without inventive effort, based on the embodiments in this disclosure are intended to be within the scope of this disclosure.
It is noted that various aspects of the embodiments are described below within the scope of the following claims. It should be apparent that the aspects described herein may be embodied in a wide variety of forms and that any specific structure and/or function described herein is merely illustrative. Based on the present disclosure, one skilled in the art will appreciate that one aspect described herein may be implemented independently of any other aspect, and that two or more of these aspects may be combined in various ways. For example, an apparatus may be implemented and/or a method practiced using any number of the aspects set forth herein. In addition, such apparatus may be implemented and/or such methods practiced using other structure and/or functionality in addition to one or more of the aspects set forth herein.
In addition, in the following description, specific details are provided in order to provide a thorough understanding of the examples. However, it will be understood by those skilled in the art that the aspects may be practiced without these specific details.
The embodiment of the disclosure provides a calculation parameter generation method based on flight parameter data.
Step one: defining English parameter codes for the collected parameters and calculated parameters of the flight parameters, and registering temporary variables with the parameter codes as labels to a calculated parameter processor. The temporary variable represents the value of the parameter at a certain time.
Step two: according to the code writing specification required by the computing parameter processor, writing code text of the computing parameter, wherein the code text expresses computing logic of the computing parameter. The code comprises a code of acquisition parameters, a logic operator, an arithmetic operator, a bracket and the like, and the acquisition parameter code represents the acquisition parameter value at a certain moment to participate in operation.
Step three: inputting the code text written in the second step into a calculation parameter processor, and compiling the code by the calculation parameter processor to check grammar. If the grammar has errors, returning an error prompt. Compiling again after modifying the code text until compiling passes;
step four: splitting the code text into minimum computing units according to grammar, in the splitting process, according to the priority of operators, firstly extracting the computing unit with the highest priority, splitting the unit until the code text is split into the minimum computing units, and forming a computing chain table by each minimum computing unit according to the priority.
Step five: according to the calculation frequency required by the calculation parameters, determining the calculation interval of the calculation parameters, wherein if the calculation frequency is 4, the calculation is performed for 4 times per second, and the calculation interval is 250ms;
step six: when calculating the data of a certain point, firstly, acquiring the parameter value of the acquisition parameter at the time point or the nearest time point by utilizing the time according to the time of the point on the time sequence, and updating the temporary variable value in a calculation parameter processor;
step seven: according to the calculation linked list sequence of the step four, calculating each operation unit sequence in the expression by utilizing the numerical value of the temporary variable corresponding to the acquisition parameter to obtain an operation result, and returning the result;
step eight: according to the time points, saving the calculation results to the corresponding positions of the sequence of the calculation parameters;
step nine: and when all sequence points of the calculated parameters are calculated according to the time sequence, the calculation of the calculated parameters is completed.
The method for generating the calculation parameters utilizes a calculation parameter processor which can interpret and execute codes written by users, applies the acquired parameters and calculation parameters for temporary variable space by utilizing the parameter codes. On the time sequence of the flight parameter data, unknown parameter values are calculated by using corresponding acquisition parameter values, and the parameter values are stored in time sequence, so that a sequence value of calculated parameters is formed.
The foregoing is merely specific embodiments of the disclosure, but the protection scope of the disclosure is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the disclosure are intended to be covered by the protection scope of the disclosure. Therefore, the protection scope of the present disclosure shall be subject to the protection scope of the claims.

Claims (7)

1. The calculation parameter generation method based on the flight parameter data is characterized by comprising the following steps of:
step one: registering temporary variables in a calculation parameter processor by taking the acquisition parameters and the calculation parameters as labels by taking parameter codes;
step two: writing a code text of the calculation parameters, and forming a calculation linked list;
step three: determining the calculation interval time of the calculation parameters according to the calculation frequency set by the calculation parameters;
step four: determining the time position of each calculation point according to the time sequence and the calculation interval time, searching the numerical value of the acquisition parameter at the moment according to the time position, and updating the numerical value into the corresponding temporary variable;
step five: calculating the expression by utilizing the related temporary variable values according to the calculation linked list sequence of the step two to obtain a single-point calculation parameter result;
step six: according to the time points, saving the calculation parameter results to the corresponding positions of the sequence of calculation parameters;
step seven: and according to the time sequence, finishing the operation of all data points of the calculated parameters, namely finishing the operation of the calculated parameters.
2. The method of claim 1, further comprising compiling the code text with a computing parameter processor and checking the grammar.
3. The method for generating calculation parameters based on flight data according to claim 2, wherein when the grammar is checked, if the grammar has an error, an error prompt is returned, and the code text is modified and then compiled again until the compilation passes.
4. The method of generating calculation parameters based on flight data according to claim 2, wherein the step two further comprises the steps of performing minimum calculation unit decomposition on the code text by the calculation parameter processor according to the priority, and forming a calculation linked list according to the operation priority.
5. The method for generating calculation parameters based on flight data according to claim 4, wherein when forming the calculation linked list, the calculation unit with the highest priority is extracted first, then split until the calculation unit is split into the minimum calculation units, and each minimum calculation unit is formed into the calculation linked list according to the priority.
6. The method of claim 2, further comprising, in step two, a calculation parameter processor to register the acquisition parameters and the calculation parameters as temporary variables, and write the calculation logic as code text.
7. The method for generating calculation parameters based on flight data according to claim 1, wherein the calculation parameters are performed in time series, and each calculation point is calculated and stored in a calculation sequence.
CN202010821242.2A 2020-08-14 2020-08-14 Calculation parameter generation method based on flight parameter data Active CN112083917B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010821242.2A CN112083917B (en) 2020-08-14 2020-08-14 Calculation parameter generation method based on flight parameter data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010821242.2A CN112083917B (en) 2020-08-14 2020-08-14 Calculation parameter generation method based on flight parameter data

Publications (2)

Publication Number Publication Date
CN112083917A CN112083917A (en) 2020-12-15
CN112083917B true CN112083917B (en) 2023-11-14

Family

ID=73729163

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010821242.2A Active CN112083917B (en) 2020-08-14 2020-08-14 Calculation parameter generation method based on flight parameter data

Country Status (1)

Country Link
CN (1) CN112083917B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001029662A2 (en) * 1999-10-19 2001-04-26 General Electric Company Compiler having real-time tuning, i/o scaling and process test capability
EP1637959A2 (en) * 2000-11-20 2006-03-22 ECD Systems, Inc. Systems and methods for preventing unauthorized use of digital content
CN102495749A (en) * 2011-11-29 2012-06-13 珠海翔翼航空技术有限公司 Method for converting flight rules into instruction codes convenient to execute by computer
CN103019801A (en) * 2012-12-20 2013-04-03 北京航天测控技术有限公司 Compiler applied to high-speed digital I/O wave engines

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001029662A2 (en) * 1999-10-19 2001-04-26 General Electric Company Compiler having real-time tuning, i/o scaling and process test capability
EP1637959A2 (en) * 2000-11-20 2006-03-22 ECD Systems, Inc. Systems and methods for preventing unauthorized use of digital content
CN102495749A (en) * 2011-11-29 2012-06-13 珠海翔翼航空技术有限公司 Method for converting flight rules into instruction codes convenient to execute by computer
CN103019801A (en) * 2012-12-20 2013-04-03 北京航天测控技术有限公司 Compiler applied to high-speed digital I/O wave engines

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
飞参数据综合记录分析系统的设计与实现;高歌梦月;刘荣林;;指挥控制与仿真(第01期);全文 *
飞参记录数据计算机处理的有关问题研究;吴建刚;陈志伟;李曙林;王智;;计算机仿真(第02期);全文 *

Also Published As

Publication number Publication date
CN112083917A (en) 2020-12-15

Similar Documents

Publication Publication Date Title
WO2019051426A1 (en) Pruning engine
CN110543421B (en) Unit test automatic execution method based on test case automatic generation algorithm
CN107943689B (en) Automatic test method and test system based on parameterized test script
US20130179863A1 (en) Bug variant detection using program analysis and pattern identification
JP6316120B2 (en) Test case generation system and recording medium recording test case
CN110059006B (en) Code auditing method and device
CN108763064B (en) Code test generation method and device based on black box function and machine learning
CN108345468A (en) Programming language code duplicate checking method based on tree and sequence similarity
Liventsev et al. Fully autonomous programming with large language models
Degiovanni et al. µbert: Mutation testing using pre-trained language models
CN112083917B (en) Calculation parameter generation method based on flight parameter data
CN108595810A (en) Digital satellite simulation report intelligent generation method
CN110659200A (en) Method and system for comparing and analyzing source code and target code of airborne software
CN115454702A (en) Log fault analysis method and device, storage medium and electronic equipment
Dyer et al. Bounded verification of sparse matrix computations
US9442701B1 (en) Verifying models for exceptional behavior
JP2003308229A (en) Time-series event record analysis method and apparatus, program and recording medium
Biringa et al. Automated User Experience Testing through Multi-Dimensional Performance Impact Analysis
Rostami et al. Beyond random inputs: A novel ML-based hardware fuzzing
CN113505283A (en) Test data screening method and system
Yi et al. Automated repair of high inaccuracies in numerical programs
Pham et al. Modular conformance testing and assume-guarantee verification for evolving component-based software
CN109669952A (en) A kind of SQL execution efficiency Static Analysis Method
JPH09288580A (en) Device and method for optimizing source program
Shupletsov et al. Dynamic programming algorithms for large-scale equivalence checking and functional correction

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