Supercharge Your Innovation With Domain-Expert AI Agents!

C++ code generation method for unmanned aerial vehicle flight mode based on state machine diagram

A technology of flight mode and code generation, applied in the direction of model-driven code, code compilation, program code conversion, etc., can solve the problems of lack of standardized design process, lack of code conversion method, and unsuitable drone platform.

Active Publication Date: 2020-08-28
XIDIAN UNIV +1
View PDF8 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] The purpose of the present invention is to overcome the deficiencies in the above-mentioned prior art, and proposes a C++ code generation method based on the state machine diagram of the unmanned aerial vehicle flight mode, which is used to solve the problem that the code generation method in the prior art does not fit Man-machine platform, lack of standardized design process, and lack of detailed code conversion methods

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • C++ code generation method for unmanned aerial vehicle flight mode based on state machine diagram
  • C++ code generation method for unmanned aerial vehicle flight mode based on state machine diagram
  • C++ code generation method for unmanned aerial vehicle flight mode based on state machine diagram

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0047] Below in conjunction with accompanying drawing and specific embodiment, the present invention is described in further detail:

[0048] refer to figure 1 , the present invention comprises the following steps:

[0049] Step 1) Formulate the workflow of the flight mode of the UAV flight control system:

[0050] (1a) Build a simple UAV flight control system with only three flight modes, these three flight modes are automatic mode, landing mode and self-stabilization mode, and the UAV needs to use the The functions are different. According to these different task requirements, the three flight modes of the UAV flight control system are divided into the flight mode subset M that requires the global satellite navigation and positioning system to operate. 1 and a subset of flight modes M that do not require GNSS to operate 2 , where M 1 Included in automatic mode, M 2 Contains landing mode and self-stabilization mode, and M 1 and M 2 Merged into the UAV flight control sy...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides a C++ code generation method of an unmanned aerial vehicle flight mode based on a state machine diagram, for solving the problems of low efficiency of generating an unmanned aerial vehicle code and insufficient quality of the generated code due to the fact that a code generation method in the prior art is not attached to an unmanned aerial vehicle platform and lacks a code conversion method. The C++ code generation method comprises the following steps: formulating a work flow of each flight mode of the unmanned aerial vehicle flight control system; constructing a framework SysML state machine diagram of the unmanned aerial vehicle; constructing a sub SysML state machine diagram of the flight mode mi based on the framework SysML state machine diagram; obtaining an XMIfile of each flight mode mi; formulating a hierarchical code generation rule; and based on the hierarchical code generation rule, obtaining a C++ code of the unmanned aerial vehicle flight control system.

Description

technical field [0001] The invention relates to the field of software development, in particular to a C++ code generation method for embedded system software based on a SysML state machine diagram. Background technique [0002] Embedded systems are application-centric, based on modern computer technology, and can flexibly tailor software and hardware modules according to user needs, functions, reliability, cost, volume, power consumption, and environment. Due to limited storage space, The software code is required to be compact, reliable, and have strict requirements on real-time performance. At present, there are many types of languages ​​used in the development of embedded systems, but only a few languages ​​have been widely used, mainly Ada, C / C++, etc. Because the C++ language not only has the efficiency of assembly language, but also has the ease of programming of high-level language, it is currently the most widely used embedded system programming language. An excell...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F8/35G06F8/41G05D1/08G05D1/10
CPCG06F8/35G06F8/447G05D1/0816G05D1/101
Inventor 马建峰康龙宇尹文耀孙聪张涛沈玉龙李亚晖王中华
Owner XIDIAN UNIV
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More