[go: up one dir, main page]

CN115098570A - Method and device for automatically writing route data into flight management system - Google Patents

Method and device for automatically writing route data into flight management system Download PDF

Info

Publication number
CN115098570A
CN115098570A CN202210538508.1A CN202210538508A CN115098570A CN 115098570 A CN115098570 A CN 115098570A CN 202210538508 A CN202210538508 A CN 202210538508A CN 115098570 A CN115098570 A CN 115098570A
Authority
CN
China
Prior art keywords
data
airline
management system
writing
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.)
Granted
Application number
CN202210538508.1A
Other languages
Chinese (zh)
Other versions
CN115098570B (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.)
Shenyang Aircraft Design and Research Institute Aviation Industry of China AVIC
Original Assignee
Shenyang Aircraft Design and Research Institute Aviation Industry of China AVIC
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 Shenyang Aircraft Design and Research Institute Aviation Industry of China AVIC filed Critical Shenyang Aircraft Design and Research Institute Aviation Industry of China AVIC
Priority to CN202210538508.1A priority Critical patent/CN115098570B/en
Publication of CN115098570A publication Critical patent/CN115098570A/en
Application granted granted Critical
Publication of CN115098570B publication Critical patent/CN115098570B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/25Integrating or interfacing systems involving database management systems
    • G06F16/258Data format conversion from or to a database
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Traffic Control Systems (AREA)

Abstract

The application belongs to the technical field of control and adjustment of airline data, and particularly relates to a method and a device for automatically writing airline data into a flight management system. The method comprises the steps of S1, converting the airline data into a new folder in a text format; step S2, carrying out format conversion on the airline data to generate data consistent with the format definition of the airline data in the flight management system; step S3, defining a global variable for temporarily storing the lane data, and initializing the global variable into the lane data subjected to format conversion; step S4, writing the lane data in the global variable into a lane data interface file; and step S5, writing the source code of the airline data assignment part into the airline data interface file. The method and the device can automatically generate the air route data interface source code, and can adapt to different unmanned aerial vehicle models and control law software of a flight management system.

Description

Method and device for automatically writing air route data into flight management system
Technical Field
The application belongs to the technical field of control and adjustment of airline data, and particularly relates to a method and a device for automatically writing airline data into a flight management system.
Background
Autonomous flight according to a flight path is one of important functions of an unmanned aerial vehicle, and the function is realized mainly by loading, reading and analyzing a pre-planned flight path through flight management system control law software. The route storage of the unmanned aerial vehicle mainly comprises two modes: stored in an external device (such as NVM) with a separately set data block address and stored directly in the memory space of the aviation management system control law software with fixed data. The former mode is mostly used for large unmanned planes, has special airline management function, and can carry out various editing operations on airlines; the latter method is suitable for small scale verification airplanes, performs specific test tasks on fixed air routes, does not need external equipment, and has the advantages of small size, quickness and flexibility.
The generation of the source code of the existing fixed route data interface is often completed by relying on manual modification under the contrast of route data change, the method can be reluctant when the route data modification amount is not large, and obvious defects are exposed immediately once a large amount of data change is involved: the manual modification process is time-consuming and labor-consuming, software defects caused by human error factors are easily introduced, and equivalent manual checking operation is needed in the later stage.
Disclosure of Invention
The method comprises the steps of reading a flight line by writing a software tool aiming at fixed flight line data, converting the flight line data into a data structure of a flight line system control law software for directly operating the flight line, and writing converted flight line data information into a C language source code. The generated C language source code has strong readability, important information is written into the code annotation, and the C language source code can be seamlessly integrated with other modules of the original control law software of the flight management system.
The first aspect of the present application provides a method for automatically writing airline data into a flight management system, which mainly includes:
step S1, converting the airline data into a new folder in a text format;
step S2, carrying out format conversion on the airline data to generate data consistent with the format definition of the airline data in the flight management system;
step S3, defining a global variable for temporarily storing the lane data, and initializing the global variable into the lane data subjected to format conversion;
step S4, writing the airline data in the global variables into an airline data interface file, wherein the airline data interface file refers to a data reading interface of control law software of the flight management system;
and step S5, writing the source code of the airline data assignment part into the airline data interface file, wherein the control law software of the flight management system is used for automatically loading airline data located in the airline data interface file based on the source code of the airline data assignment part.
Preferably, the text format comprises a txt text format.
Preferably, step S4 is preceded by writing an annotation file to the airline data interface file and header file data for the airline data interface file run.
Preferably, the header comment file includes copyright information, generation time, and author.
The second aspect of the present application provides a device for automatically writing airline data into a flight management system, which mainly comprises:
the data backup module is used for converting the airline data into a new folder in a text format;
the data conversion module is used for carrying out format conversion on the airline data to generate data consistent with the format definition of the airline data in the flight management system;
the data storage module is used for defining a global variable for temporarily storing the lane data and initializing the global variable into the lane data subjected to format conversion;
the flight path data writing module is used for writing the flight path data in the global variable into a flight path data interface file, wherein the flight path data interface file refers to a data reading interface of control law software of the flight management system;
and the code data writing module is used for writing the source code of the airline data assignment part into the airline data interface file, wherein the control law software of the flight management system is used for automatically loading airline data located in the airline data interface file based on the source code of the airline data assignment part.
Preferably, the text format comprises a txt text format.
Preferably, the flight path data writing module further comprises a header file and annotation writing module, and is used for writing an annotation file into the flight path data interface file and header file data for operation of the flight path data interface file.
Preferably, the header comment file includes copyright information, generation time, and author.
According to the method and the system, the source code file name of the air route data interface, the called main scheduling function name and the contained head file name can be customized independently, the air route data interface source code can be generated automatically, and the method and the system can adapt to different unmanned aerial vehicle models and control law software of a flight management system.
Drawings
FIG. 1 is a flowchart of a method for automatically writing flight path data into a flight management system according to an embodiment of the present application.
FIG. 2 is a schematic source code diagram of an automatic annotation writing section according to the embodiment shown in FIG. 1 of the present application.
FIG. 3 is a schematic source code diagram of an automatically written lane data information portion according to the embodiment of the present application shown in FIG. 1.
FIG. 4 is a schematic illustration of a flight path data presentation in a flight path data interface file according to the embodiment of the present application shown in FIG. 1.
FIG. 5 is a schematic diagram of a source code of an automatic write route information assignment portion according to the embodiment shown in FIG. 1.
FIG. 6 is a schematic diagram illustrating a valuation function in a flight data interface file according to the embodiment shown in FIG. 1 of the present application.
Detailed Description
In order to make the implementation objects, technical solutions and advantages of the present application clearer, the technical solutions in the embodiments of the present application will be described in more detail below with reference to the accompanying drawings in the embodiments of the present application. In the drawings, the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The described embodiments are illustrative of some, but not all embodiments of the invention. The embodiments described below with reference to the drawings are exemplary and intended to be used for explaining the present application, and should not be construed as limiting the present application. All other embodiments obtained by a person of ordinary skill in the art without any inventive work based on the embodiments in the present application are within the scope of protection of the present application. Embodiments of the present application will be described in detail below with reference to the drawings.
The first aspect of the present application provides a method for automatically writing airline data into a flight management system, which mainly includes:
step S1, converting the airline data into a new folder in a text format;
step S2, carrying out format conversion on the airline data to generate data consistent with the format definition of the airline data in the flight management system;
step S3, defining a global variable for temporarily storing the lane data, and initializing the global variable into the lane data subjected to format conversion;
step S4, writing the airline data in the global variables into an airline data interface file, wherein the airline data interface file refers to a data reading interface of control law software of the flight management system;
and step S5, writing the source code of the airline data assignment part into the airline data interface file, wherein the control law software of the flight management system is used for automatically loading airline data located in the airline data interface file based on the source code of the airline data assignment part.
First, a system or software to which the present application is applied will be described, and a flight management system includes control law software for reading route data and controlling an aircraft. The control law software generally reads the airline data through the airline data interface file and belongs to passive reading, namely, the airline data is transmitted to the control law software through the airline data interface file. The invention aims to automatically and quickly write the independently stored flight path data into a flight path data interface file, and simultaneously write an assignment code into the flight path data interface file so that the flight path data in the flight path data interface file is assigned to control law software. Wherein, the step S4 writes the flight path data into the interface file, and the step S5 writes the assignment method of the flight path data into the interface file.
The steps S4 and S5 may be implemented by an airline parsing tool, the airline parsing tool may be invoked during running by writing a batch file that automatically generates an airline data interface, and a final airline data interface source code may be automatically generated according to a source code file name of a customized airline data interface, a called master dispatch function name, a header file name included, and the like, where the airline data interface source code is the content written in the airline data interface file, and is called an airline data interface source code because the content is stored in the form of code data, and those skilled in the art can understand that it is not the source code of the airline parsing tool of the present application.
According to the method, code division functions are written into the final source codes of the air route data interface, the function name of each function can be edited and is provided with a corresponding head annotation, the temporary storage air route data structure is required to be provided with definition annotations of air route data, and the file name of the whole source code can be edited.
In some alternative embodiments, the text format comprises a txt text format.
In some optional embodiments, step S4 is preceded by writing an annotation file to the airline data interface file and header file data for the flight of the airline data interface file.
In some alternative embodiments, the header annotation file includes copyright information, generation time, and author.
FIG. 2 shows the source code segment for writing the comment section into the airline data interface file, FIG. 3 shows the source code segment for writing the airline data into the airline data interface file as described in step S4, and the source code segments of FIGS. 2 and 3 are the portions of the embodiment for implementing step S4 of the present application, so that the content written into the airline data interface file is as shown in FIG. 4, that is, the portion of FIG. 4 is automatically generated after the code segments of FIGS. 2 and 3 are run. It should be noted that the specific codes in fig. 2 and fig. 3 are related to the airline format, and when there is a change in the airline format, the codes should be changed accordingly. However, once the lane format is fixed, the code here does not need to be changed, thereby realizing separation from the change of specific lane data and enabling automatic generation of source codes.
After the flight path data of FIG. 4 is obtained, it is read in step S5, that is, the flight path data portion of FIG. 4 is extracted and assigned to the control law software of the flight management system for operation. FIG. 5 shows the source code implementing step S5, the writing of the source code of the airline data assignment part into the airline data interface file is implemented by the source code, FIG. 6 shows the source code in the airline data interface file after the writing, the airline data is automatically written into the generated airline data interface source code by airline parsing tool software, the generated annotation is clear and definite, and compared with the manual writing of the interface source code, the defect rate is reduced due to the reduction of manual intervention, and the time and labor cost for completing the encoding are reduced.
The second aspect of the present application provides a device for automatically writing route data into a flight management system corresponding to the above method, which mainly comprises:
the data backup module is used for transferring the airline data into a new folder in a text format;
the data conversion module is used for carrying out format conversion on the airline data to generate data consistent with the format definition of the airline data in the flight management system;
the data storage module is used for defining a global variable for temporarily storing the lane data and initializing the global variable into the lane data subjected to format conversion;
the flight path data writing module is used for writing the flight path data in the global variable into a flight path data interface file, wherein the flight path data interface file refers to a data reading interface of control law software of the flight management system;
and the code data writing module is used for writing the source code of the airline data assignment part into the airline data interface file, wherein the control law software of the flight management system is used for automatically loading airline data located in the airline data interface file based on the source code of the airline data assignment part.
In some alternative embodiments, the text format comprises a txt text format.
In some optional embodiments, the flight path data writing module further comprises a header file and annotation writing module for writing an annotation file to the flight path data interface file and header file data for the flight path data interface file to run.
In some alternative embodiments, the header annotation file includes copyright information, time of generation, and author.
According to the method and the system, the source code file name of the air route data interface, the called main dispatching function name and the contained head file name can be customized independently, the air route data interface source code can be generated automatically, and the method and the system can adapt to different unmanned aerial vehicle models and control law software of a flight management system.
The method and the device can greatly improve the generation efficiency and the accuracy of the data interface source code of the air route in occasions with frequent and large-scale change requirements of fixed air route data, such as outfield test flight, multitask mode, multi-test intersection and the like. Under the condition that the whole airline data format is unchanged, the airline analysis tool software can be used for multiple times only by being compiled once; for the condition of changing the data format of the air route, only the air route analyzing tool software needs to be modified to adapt to the new air route data format, and then recompilation is carried out, so that the air route data format can be used for multiple times. The self-customized airline data interface source code file name, the called main scheduling function name and the contained head file name enable the method and the system to be suitable for different unmanned aerial vehicle models and control law software of a flight management system.
Although the present application has been described in detail with respect to specific embodiments and general description, it will be apparent to those skilled in the art that some modifications or improvements may be made based on the present application. Accordingly, such modifications and improvements are intended to be within the scope of this invention as claimed.

Claims (8)

1. A method of automatically writing airline data to a flight management system, comprising:
step S1, converting the airline data into a new folder in a text format;
step S2, carrying out format conversion on the airline data to generate data consistent with the format definition of the airline data in the flight management system;
step S3, defining a global variable for temporarily storing the lane data, and initializing the global variable into the lane data subjected to format conversion;
step S4, writing the flight line data in the global variable into a flight line data interface file, wherein the flight line data interface file refers to a data reading interface of control law software of the flight management system;
and step S5, writing the source code of the airline data assignment part into the airline data interface file, wherein the control law software of the flight management system is used for automatically loading airline data located in the airline data interface file based on the source code of the airline data assignment part.
2. The method of automatically writing airline data to a flight management system as claimed in claim 1, wherein the text format comprises a txt text format.
3. The method for automatically writing airline data to a flight management system according to claim 1, wherein step S4 is preceded by writing an annotation file to the airline data interface file and header file data for the airline data interface file run.
4. The method for automatically writing airline data to a flight management system of claim 3, wherein the header annotation file includes copyright information, time of generation, and author.
5. An apparatus for automatically writing airline data to a flight management system, comprising:
the data backup module is used for converting the airline data into a new folder in a text format;
the data conversion module is used for carrying out format conversion on the airline data to generate data consistent with the format definition of the airline data in the flight management system;
the data storage module is used for defining a global variable for temporarily storing the lane data and initializing the global variable into the lane data subjected to format conversion;
the flight path data writing module is used for writing the flight path data in the global variable into a flight path data interface file, wherein the flight path data interface file refers to a data reading interface of control law software of the flight management system;
and the code data writing module is used for writing a source code of a flight line data assignment part into the flight line data interface file, wherein the control law software of the flight management system is used for automatically loading flight line data positioned in the flight line data interface file based on the source code of the flight line data assignment part.
6. The apparatus for automatically writing airline data to a flight management system of claim 5, wherein the text format comprises a txt text format.
7. The apparatus for automatically writing airline data to a flight management system according to claim 5, wherein the airline data write module further comprises a header file and annotation write module for writing an annotation file to the airline data interface file and header file data for the operation of the airline data interface file.
8. The apparatus for automatically writing airline data to a flight management system of claim 7, wherein the header annotation file includes copyright information, time of generation, and author.
CN202210538508.1A 2022-05-18 2022-05-18 Method and device for automatically writing route data into flight management system Active CN115098570B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210538508.1A CN115098570B (en) 2022-05-18 2022-05-18 Method and device for automatically writing route data into flight management system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210538508.1A CN115098570B (en) 2022-05-18 2022-05-18 Method and device for automatically writing route data into flight management system

Publications (2)

Publication Number Publication Date
CN115098570A true CN115098570A (en) 2022-09-23
CN115098570B CN115098570B (en) 2023-06-02

Family

ID=83289396

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210538508.1A Active CN115098570B (en) 2022-05-18 2022-05-18 Method and device for automatically writing route data into flight management system

Country Status (1)

Country Link
CN (1) CN115098570B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080039997A1 (en) * 2003-11-10 2008-02-14 Aeromechanical Services Ltd. Aircraft flight data management system
CN107992306A (en) * 2017-12-03 2018-05-04 中国直升机设计研究所 A kind of avionics software interface realizes uniformity automatic check method
CN109196440A (en) * 2017-11-06 2019-01-11 深圳市大疆创新科技有限公司 Distribution method, server, terminal device, the control equipment and system in course line
CN112540862A (en) * 2020-12-23 2021-03-23 东莞市盟大塑化科技有限公司 A method, device, device and storage medium for generating interface document data

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080039997A1 (en) * 2003-11-10 2008-02-14 Aeromechanical Services Ltd. Aircraft flight data management system
CN109196440A (en) * 2017-11-06 2019-01-11 深圳市大疆创新科技有限公司 Distribution method, server, terminal device, the control equipment and system in course line
CN107992306A (en) * 2017-12-03 2018-05-04 中国直升机设计研究所 A kind of avionics software interface realizes uniformity automatic check method
CN112540862A (en) * 2020-12-23 2021-03-23 东莞市盟大塑化科技有限公司 A method, device, device and storage medium for generating interface document data

Also Published As

Publication number Publication date
CN115098570B (en) 2023-06-02

Similar Documents

Publication Publication Date Title
US20050251298A1 (en) Automatic generation of telemetry flight software, accompanying specifications, and decode files
CN107992306A (en) A kind of avionics software interface realizes uniformity automatic check method
JP2000020291A (en) Vehicle program development support method and apparatus
Back et al. A study for production simulation model generation system based on data model at a shipyard
US11966718B2 (en) Virtual developmental environment apparatus, method, and recording medium
CN117724686B (en) Visual generation method and device for XML-based design verification code
CN112036442A (en) Method and device for tracking and labeling objects in multi-frame 3D point cloud data and storage medium
CN112435072A (en) Model creating method and device, electronic equipment and storage medium
CN106776321A (en) A kind of winged guard system software emulation contrast conversion method based on dynamic link library
Javed et al. Towards variant management and change impact analysis in safety-oriented process-product lines
CN115098570B (en) Method and device for automatically writing route data into flight management system
Mueller et al. Introduction of a dedicated platform level for ima systems development with an extensive automation tool support
Frazza et al. MBSA in aeronautics: a way to support safety activities
Rhein et al. A holistic approach to model-based avionics systems development
Chrysalidis et al. A universal configuration format for avionics
Herbst et al. Using OpenVSP in a Conceptual Aircraft Design Environment in MATLAB
CN115774549A (en) Page character code editing system and editing method of airborne display device
Block et al. Automated test case generation for the verification of system and high-level software requirements for fly-by-wire platforms
US20200349304A1 (en) Method, apparatus, device, and medium for implementing simulator
Clerigo et al. One standard to rule them all: the tailoring of PUS-C for future ESA missions
CN112685323A (en) Method for realizing self-defined end-to-end test case compiling
Kochaleema et al. Methodology for Integrating Computational Tree Logic Model Checking in Unified Modelling Language Artefacts: A Case Study of an Embedded Controller.
CN112181519A (en) Data processing method, device, equipment and storage medium
Hyde Fostering innovation in design and reducing implementation costs by using graphical tools for functional specification
Bröcker et al. Automated Verification of State Machines in eVTOL Aircraft: A Lean Development Approach

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