Search

CN-122018842-A - Aviation instrument graph drawing system and method

CN122018842ACN 122018842 ACN122018842 ACN 122018842ACN-122018842-A

Abstract

The invention belongs to the technical field of airborne display and discloses an aviation instrument graph drawing system and method, wherein the system comprises an image processing module, a processor, a RAM memory, a Flash memory and a clock reset control circuit, wherein the image processing module comprises a processor, an LCD RGB888 video interface, an external RAM memory is used as a program running space and a video memory, an external Flash memory is used as a storage space of a program and word stock data, the clock reset control circuit provides running clock signals for the processor, and the processor is configured to set a fixed double-video memory window system through the LCD RGB888 video interface and realize a video output function in an interactive way with a liquid crystal display module. The invention solves the problem of low drawing efficiency of the existing aviation display instrument.

Inventors

  • FENG XINLONG
  • XUAN XIAOGANG
  • ZHANG TAO

Assignees

  • 太原航空仪表有限公司

Dates

Publication Date
20260512
Application Date
20251227

Claims (10)

  1. 1. An avionic meter graphics rendering system, comprising: The image processing module comprises a processor, a RAM memory, a Flash memory and a clock reset control circuit, wherein the processor is provided with an LCD RGB888 video interface, the external RAM memory is used as a program running space and a video memory, the external Flash memory is used as a storage space of a program and word stock data, and the clock reset control circuit provides a running clock signal for the processor; the processor is configured to set a fixed double-video-memory window system through the LCD RGB888 video interface and realize the video output function through interaction with the liquid crystal display module.
  2. 2. The avionic meter graphic rendering system of claim 1, wherein the processor further has a debug portal and a debug RS232 interface; the debugging network port is used for downloading the software program; the debugging RS232 interface is used for transmitting debugging instructions.
  3. 3. The avionic meter graphic rendering system of claim 2, wherein the processor is configured with a DMA2D module to enable memory acceleration.
  4. 4. The drawing method of the aviation instrument graph is characterized by comprising the following steps of: Configuring an operation environment necessary for an OpenGL program by writing the program; Transplanting a window system and an egl driver of the adaptation processor through a written program; The OpenGL driving function is simplified by writing an OpenGL driving program of the adaptation processor; Compiling the three programs into executable codes, and programming the executable codes into flash carried by the processor to realize the graph drawing function.
  5. 5. The method for drawing the graph of the aviation instrument according to claim 4, wherein the program of the running environment comprises a memory allocation function and a task function.
  6. 6. The method for drawing the aviation instrument graph according to claim 4, wherein the window system and the egl driver of the adaptive processor are transplanted through programming, and specifically: a) Setting a fixed double-video-memory window system according to the characteristics of the LCD RGB888 video interface of the processor module; b) Writing and creating a surface memory function, and distributing memory for the graph drawing surface; c) Writing a context creating function, creating a context and associating a graph drawing surface, a cache array and a mixed array; d) Writing and creating a current drawing object function, and associating an enabling function enabling context with an OpenGL driver; e) And writing and creating a correlation function between the window system and the egl drive, matching the correlation between the display memory of the window system and the egl drive, and refreshing the picture in real time.
  7. 7. The method for drawing the aeronautical instrument graph according to claim 4, wherein the simplified OpenGL driving function is specifically as follows: Unnecessary OpenGL driving functions, namely scaling, matrix transformation and rotation driving functions, are cut through analyzing the display requirements of the aviation instrument.
  8. 8. The method for drawing the aeronautical instrument graph according to claim 4, wherein the optimization of OpenGL driving functions is specifically as follows: the partial OpenGL driver function is optimized using DMA, floating point acceleration, block copy, rectangular fill memory acceleration operations.
  9. 9. The avionic meter graphic rendering method of claim 8, wherein the function comprises: a) A color block filling function; b) A memory block copy function; c) An antialiasing line drawing function; d) A colored character printing function; e) A picture rotation function; f) A picture display function; g) A Chinese character printing function.
  10. 10. A computer storage medium, characterized in that a computer program is stored, which, when being executed by a processor, implements the graphics rendering method of any one of claims 4 to 9.

Description

Aviation instrument graph drawing system and method Technical Field The invention belongs to the technical field of airborne display, and particularly relates to an aviation instrument graph drawing system and method, which mainly realize the display of flight parameters and provide main flight information such as gesture, speed, altitude, course and the like for pilots, landing/landing guiding information, weather information, ground proximity warning graph, engine parameter information, comprehensive warning and operation prompt information, and information such as working states of external systems such as electromechanics, flight control and the like. Background At present, the domestic aviation technology is in a rapid development period, avionics system integrators perform unified design of the whole avionics display picture, and a model-based graphic image design technology is adopted for improving efficiency and quality, wherein tools such as SCADE DISPLAY and Vaps are included. The avionics system integrator and the avionics instrument provider both communicate demand in a tool-generated model. Frequent iterative updating of the man-machine interaction interface of the aviation instrument is required, and the on-board aviation instrument needs frequent picture updating. Each avionics provider refers to the display demand model to draw the avionics picture. The prior aviation instrument graphic processor is mainly divided into two modes, namely 1, a high-performance embedded processor is used, and an OpenGL standard graphic programming interface is used for drawing pictures by a transplanted embedded operating system. And 2, using a low-power-consumption processor to move data from the system memory to the video memory, and directly operating the video memory to draw the picture. Both drawing modes have advantages and disadvantages. The first mode needs to transplant an embedded operating system and an OpenGL driver, and can use a tool to quickly generate codes of a display model and quickly iterate updating of a picture. The disadvantage is the need to use high performance processors, which are expensive, high power consumption and bulky. The second mode has the advantages of selecting a low-power consumption processor, reducing cost and enhancing product competitiveness, and has the defects of large coding workload and no support of a model-based rapid iteration mode because the graphic is drawn by manually coding and controlling the video memory. Disclosure of Invention Aiming at the problem of low drawing efficiency of the existing aviation display instrument, the invention provides an aviation instrument graph drawing system and method, which can support simplified OpenGL drive on a low-power-consumption embedded processor without using an operating system, can rapidly transplant codes generated by a display demand model and rapidly finish drawing. The technical scheme of the invention is realized as follows: In a first aspect, the present invention provides an avionics instrument graphic rendering system comprising: The image processing module comprises a processor, a RAM memory, a Flash memory and a clock reset control circuit, wherein the processor is provided with an LCD RGB888 video interface, the external RAM memory is used as a program running space and a video memory, the external Flash memory is used as a storage space of a program and word stock data, and the clock reset control circuit provides a running clock signal for the processor; the processor is configured to set a fixed double-video-memory window system through the LCD RGB888 video interface and realize the video output function through interaction with the liquid crystal display module. As a further scheme of the invention, the processor is also provided with a debugging network port and a debugging RS232 interface; the debugging network port is used for downloading the software program; the debugging RS232 interface is used for transmitting debugging instructions. As a further scheme of the invention, the processor is provided with a DMA2D module, thereby realizing memory acceleration. In a second aspect, the invention provides a drawing method of an aeronautical instrument graph, which comprises the following steps: Configuring an operation environment necessary for an OpenGL program by writing the program; Transplanting a window system and an egl driver of the adaptation processor through a written program; The OpenGL driving function is simplified by writing an OpenGL driving program of the adaptation processor; Compiling the three programs into executable codes, and programming the executable codes into flash carried by the processor to realize the graph drawing function. As a further scheme of the invention, the program of the running environment comprises a memory allocation function and a task function. The invention further provides a program transplanting and adapting window system and egl drive of a processor, whi