A window management system and method for displaying a floating menu of a light helicopter
By making the display and control functions of the floating menu independent and using configuration file management, the problem of high verification cost of the floating menu extension mission equipment control function of light helicopters is solved, realizing efficient and low-cost floating menu management and control, and improving human-machine efficiency.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- CHINA HELICOPTER RES & DEV INST
- Filing Date
- 2025-07-08
- Publication Date
- 2026-05-29
AI Technical Summary
The verification cost of extending the mission equipment control function through the floating menu in the cockpit of a light helicopter is high. Furthermore, when modifying the floating menu and the main flight screen in the same software, the entire software needs to be verified, which involves a large workload and high costs.
The display and control functions of the floating menu are treated as an independent module, running independently from the main display control module. Window management, off-screen rendering, and distribution of user input commands are handled by the display management module, and the window display content and switching are controlled through configuration files, independent of the main display control module.
It enables independent management of the floating menu and the main flight screen, reducing software verification workload, lowering costs, improving human-machine efficiency, and supporting flexible and rapid expansion of mission equipment control functions.
Smart Images

Figure CN120429059B_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of helicopter cockpit display technology, and specifically relates to a window management system and method for displaying floating menus on a light helicopter. Background Technology
[0002] Light helicopters, with a takeoff weight of less than 2 tons, are widely used in mineral exploration, emergency rescue, and other fields. Their customization is flexible, and the market prospects are broad. To meet the safe flight requirements of diverse mission scenarios, the avionics in the cockpit must provide pilots with sufficient flight information and control interfaces. Due to the limited space in the instrument panel and central control console of light helicopters, display and control equipment typically employs a highly integrated design. Displaying all flight and mission information simultaneously within the limited cockpit display area would inevitably create a cluttered screen, burdening the pilot and resulting in poor ergonomics and serious safety hazards. If fixed control functions are implemented within the limited control devices, some equipment will be uncontrollable, and some missions will be impossible for the helicopter to perform. Adding control devices for new mission equipment may not be feasible in the light helicopter cockpit, affecting user experience.
[0003] Therefore, light helicopters need to adopt a floating menu-based display and control method. Pilots access the floating menu according to the mission scenario and flight phase, using knobs to select menu items, options, or modify values, enabling on-demand information display and avionics control. This makes the cockpit display simpler, the control method more flexible, and significantly improves cockpit ergonomics.
[0004] To improve pilot efficiency, hover menus on light helicopters are typically overlaid on the main flight screen. The main flight screen provides pilots with basic flight parameters and has stable display functions, while the hover menu is mainly used for setting mission equipment or optional parameters, offering more flexible and varied functionality. If the hover menu and the main flight screen are processed in the same software, adding mission equipment to the helicopter and correspondingly changing the hover menu would require modifying and verifying the entire software, resulting in a significant workload and high costs. Summary of the Invention
[0005] Purpose of the invention: To address the high verification cost of extending the control functions of the floating menu displayed in the cockpit of a light helicopter, this invention provides a window management system and method for displaying a floating menu in a light helicopter. The display and control functions of the floating menu are treated as a separate module, independent of the main display control module (which displays the main flight screen). The display management module performs management tasks such as window management, off-screen rendering, distribution of user input commands, and timeout shutdown, and integrates the floating menu and the main flight screen into a single full-screen output.
[0006] Meanwhile, in order to adapt to the frequent modifications of floating menus during the research and development process, this invention provides a configuration file design that can specify the window's display content, window switching control, subsystem control, and other functions.
[0007] Technical solution
[0008] A window management method for displaying a floating menu on a light helicopter is proposed. The display and control functions of the floating menu are treated as a separate application software, independent of the main display control application software (which displays the main flight screen). The display management application software is used to complete management tasks such as window management, off-screen rendering, distribution of user input commands, and timeout shutdown. The floating menu and the main flight screen are then integrated into a single full-screen output.
[0009] Meanwhile, in order to adapt to the frequent modifications of floating menus during the research and development process, this invention provides a configuration file design that can specify the window's display content, window switching control, subsystem control, and other functions.
[0010] A window management system for displaying floating menus on a light helicopter includes: a main display control partition module, a floating menu display control partition module, and a display management partition module;
[0011] The display management section module is used to acquire input events from peripheral keys (including buttons and knobs) and pass these input events to the main display control section module and the floating menu display control section module.
[0012] The display management partition module is also used to control the current floating menu window number based on input events, and send the floating menu window number to the floating menu display control partition module and the main display control partition module;
[0013] The main display control module is used to complete communication with the subsystems, draw the main flight screen according to the input of each subsystem, and send control data to the subsystems it controls;
[0014] The floating menu display control section module is used to draw the floating menu screen according to the floating menu window number, and to complete the control function of the options in the floating menu according to the input events of the surrounding keys;
[0015] The display management partition module is also used to overlay the main flight screen and the floating menu screen.
[0016] A method for managing a floating menu on a light helicopter includes the following steps:
[0017] Step 1: System initialization. The main display control module, the floating menu display control module, and the display management module read the floating menu configuration file, initialize the floating menu window number to 0, and display the initial main flight screen.
[0018] Step 2: Based on the floating menu window number and the floating menu configuration file, the main display control partition module and the floating menu display control partition module jointly complete the drawing of the floating menu screen. The display management partition module overlays the main flight screen and the floating menu screen, while continuously monitoring for input events of surrounding keys. If there are any, proceed to the next step; otherwise, continue with step 2.
[0019] Step 3: The display management partition module processes the peripheral key input events according to the floating menu configuration file and the floating menu window number, and updates the floating menu window number or distributes the peripheral key input events to the main display control partition module and the floating menu display control partition module.
[0020] Step 4: The floating menu display control module completes a series of tasks based on the surrounding key input events, the floating menu configuration file, and the floating menu window number, including switching options in the floating menu, entering edit mode, displaying edit mode, exiting edit mode, and sending the editing results to the main display control module.
[0021] Step 5: If the main display control module receives the editing result from the floating menu display control module, it converts the editing result into interface data between the subsystem and the floating menu configuration file, and completes the sending of the interface data.
[0022] Step 6: Display the management partition module timer, and during the timer, check if there are any new input events for the surrounding keys. If there are, return directly to step 3. If not, after the timer ends, hide the superimposed floating menu screen and return to step 2.
[0023] Furthermore, the floating menu configuration file includes: configuration information for multiple windows and configuration information for switching between floating windows;
[0024] Window configuration information includes: window name, window ID, window screen coordinates, window width, option line spacing, and configuration information for multiple options;
[0025] Option configuration information includes: option ID, option type, option name, option editing information, status word interface, and control word interface;
[0026] The floating window switching configuration information includes: multiple correspondences between "current window number, surrounding key ID, and switching window number".
[0027] The editing information for different option types is different; the editing information for multiple-choice options consists of several multiple-choice options.
[0028] The options for editing numeric values include: text after the number, text before the number, number format, step value, minimum value, and maximum value.
[0029] The status word interface and control word interface include: subsystem ID, data block number, data block length, data word length, byte offset, bit offset, and data word. The main display control partition module can use this information to map the editable content of each option to a specific interface within a subsystem.
[0030] With this flexible configuration method, adding, deleting, or modifying floating windows and options does not require modifying the code; only the configuration file needs to be modified.
[0031] Furthermore, a floating menu window number of 0 indicates that no floating menu needs to be displayed. The floating menu window number is used to determine the current floating menu display status. This value is controlled by the display management partition module and sent to the other two modules.
[0032] Furthermore, in the second step, the process of drawing the floating menu screen is as follows:
[0033] The main display control partition module determines the value of the floating menu window number. If it is not 0, it searches for the corresponding window configuration information in the floating menu configuration file based on the floating menu window number. Based on the status word interface in the multiple option configuration information in the window configuration information, it converts the subsystem's status data into option status data and sends it to the floating menu display control partition module. The option status data format is: window id, option id, option status value.
[0034] The floating menu displays the configuration information corresponding to the window number in the control partition module. It draws the border and title at the specified position, then finds all the option configuration information for the window number, draws the option name on the left, and draws the option setting value on the right based on the option status data and option editing information.
[0035] The floating menu display control module draws the floating menu screen based on the received option status data, the floating menu window number, and the configuration file. For example, when the floating menu window number is 1, it searches for the configuration information of window 1, draws the border and title at the specified position, then searches for all option configuration information of window 1, draws the option names on the left, and draws the option setting values on the right based on the option status data and option editing information.
[0036] Furthermore, in the third step, the handling process for peripheral key input events is as follows:
[0037] Based on the floating window switching configuration information in the configuration file, determine whether the input event is a floating window switching event. If it is, update the floating menu window number according to the switching configuration, the current window number, and the surrounding key ID, and send it to the floating menu display control module and the main display control module. If it is not, determine the target object of the input event based on whether the floating menu window number is 0. If it is 0, distribute it to the main display control module; otherwise, distribute it to the floating menu display control module.
[0038] Furthermore, in the fourth step, the floating menu display control module completes the processing of peripheral key input events as follows:
[0039] If the floating menu control area is in non-editing mode, when a knob rotation input event is received, it is determined to be a "switch option" event. The selected option is then switched sequentially according to the option configuration information in the window configuration information, and the selected option name is displayed with a background color on the screen. When a knob press input event is received, it is determined to be a "enter edit" event, and the control enters the edit mode. The option setting value is displayed with a background color on the screen.
[0040] If in edit mode, when a knob rotation input event is received, it is determined as an "edit" event, and the display of the option setting value is controlled according to the option configuration information; when a knob press input event is received, it is determined as an "confirm" event, the current editing result is sent to the main display control partition module, and the option editing mode is exited. The editing result format is: window id, option id, option setting value.
[0041] For example, if a multiple-choice option is currently set to "Item 1", then when this event is processed, the option setting value switches to "Item 2". Similarly, if a numeric editing option is currently set to "10", then when this event is processed, the option setting value switches to "10 + step value". Upon receiving a knob press input event, it is determined as a "confirm" event, and the current editing result is sent to the main display control module. The option editing state is then exited. The editing result format is: window ID, option ID, option setting value.
[0042] Furthermore, in step five, the process of converting the editing results into interface data between the subsystem and the floating menu configuration file is as follows:
[0043] If the main display control module receives the editing result from the floating menu display control module, it will look up the control word interface of the corresponding option in the configuration file based on the window ID and option ID in the editing result, and convert the option setting value into interface data based on the subsystem ID, data block number, data block length, data word length, byte offset, bit offset, and data word, and send it to the corresponding subsystem.
[0044] Furthermore, in step six, after the floating menu screen disappears, the floating menu window number is initialized to 0 and sent to the floating menu display control module.
[0045] Furthermore, the drawing and control of the floating menu is a common module, such as... Figure 6 and Figure 7 The two floating menus shown are implemented using the same general module. By different configuration information of the two floating menus, the same general module can draw two different floating menus.
[0046] Furthermore, such as Figure 10 As shown, the main display control module, the floating menu display control module, and the display management module all read the same floating menu configuration file, which is the basis for the display and control of the three modules.
[0047] The main display control partition module completes data communication with the subsystem, including "status data" and "control commands". After receiving the "status data", it converts it into "option status data" and sends it to the floating menu display control partition module to support the display of the floating menu.
[0048] The display management partition module is responsible for acquiring input events from the display and distributing these events to the other two modules. It is also responsible for controlling the floating menu window number and distributing it to the other two modules.
[0049] The floating menu display control module sends the edited options, after confirmation, to the main display control module. Finally, the main display control module converts these into control commands and sends them to the corresponding subsystems.
[0050] In summary, the beneficial effects of the present invention are as follows:
[0051] This invention employs a floating menu window management method, enabling the main display control application software and the floating menu application software to operate independently and display information comprehensively as needed based on pilot input. The floating menu solves the problems of limited display area and complex control logic of highly integrated display and control components in light helicopters, providing pilots with an efficient and convenient operating method. By designing the floating menu application software and the main display control application software independently, and integrating the window management software, mission equipment control functions can be flexibly and quickly expanded within the floating menu. Corresponding software changes will not affect other software, significantly reducing the workload of display system software verification and efficiently and cost-effectively meeting the diverse mission customization requirements of helicopter users. The display management software maintains the monitoring window display time and pilot input; if the timeout occurs, the window automatically exits, reducing pilot input and effectively improving human-machine efficiency.
[0052] This invention is applicable to window management of all helicopter models using a floating menu display method. It adopts a configuration file to realize the configurable design of the floating menu, and has the advantages of high modularity, strong maintainability and strong scalability. Attached Figure Description
[0053] Figure 1 This is a schematic diagram of the three software partitions, including display management, in this invention;
[0054] Figure 2 This is a schematic diagram of the partitioning process in this invention;
[0055] Figure 3 This is the multi-partition drawing data flow diagram in this invention;
[0056] Figure 4 This is a flowchart of the user input processing in this invention;
[0057] Figure 5 This is a flowchart of the floating menu display control process in this invention;
[0058] Figure 6 This is a schematic diagram of the "Parameter Settings" floating menu in this invention;
[0059] Figure 7 This is a schematic diagram of the "Display Settings" floating menu in this invention;
[0060] Figure 8 This is the main flight screen in this invention;
[0061] Figure 9 This is a schematic diagram of the configuration file structure and content in this invention;
[0062] Figure 10 This is the data flow diagram in this invention;
[0063] Figure 11 This is a schematic diagram of the configuration file for the multiple-choice type option in this invention;
[0064] Figure 12 This is a schematic diagram of the configuration file for the multiple-choice type option in this invention;
[0065] Figure 13 This is a schematic diagram of the configuration file for switching floating windows in this invention. Detailed Implementation
[0066] The present invention will now be further described in conjunction with specific embodiments and accompanying drawings:
[0067] A window management system for displaying floating menus on light helicopters treats the display and control functions of the floating menus as a separate application software, independent of the main display control application software (which displays the main flight screen). The display management application software performs management tasks such as window management, off-screen rendering, distribution of user input commands, and timeout shutdown, and integrates the floating menus and the main flight screen into a single full-screen output.
[0068] Meanwhile, in order to adapt to the frequent modifications of floating menus during the research and development process, this invention provides a configuration file design that can specify the window's display content, window switching control, subsystem control, and other functions.
[0069] A window management system for displaying floating menus on light helicopters, such as Figure 1 As shown, the system includes: a main display control module, a floating menu display control module, and a display management module;
[0070] The display management section module is used to acquire input events from peripheral keys (including buttons and knobs) and pass these input events to the main display control section module and the floating menu display control section module.
[0071] The display management partition module is also used to control the current floating menu window number based on input events, and send the floating menu window number to the floating menu display control partition module and the main display control partition module;
[0072] The main display control module is used to complete communication with the subsystems, draw the main flight screen according to the input of each subsystem, and send control data to the subsystems it controls;
[0073] The floating menu display control section module is used to draw the floating menu screen according to the floating menu window number, and to complete the control function of the options in the floating menu according to the input events of the surrounding keys;
[0074] The display management module is also used to overlay the main flight screen and the floating menu screen, such as... Figure 8 As shown.
[0075] A method for managing windows displaying floating menus in light helicopters, such as... Figure 2 and Figure 3 As shown, it includes the following steps:
[0076] Step 1: System initialization. The main display control module, the floating menu display control module, and the display management module read the floating menu configuration file, initialize the floating menu window number to 0, and display the initial main flight screen.
[0077] Step 2: Based on the floating menu window number and the floating menu configuration file, the main display control partition module and the floating menu display control partition module jointly complete the drawing of the floating menu screen. The display management partition module overlays the main flight screen and the floating menu screen, while continuously monitoring for input events of surrounding keys. If there are any, proceed to the next step; otherwise, continue with step 2.
[0078] Step 3: The display management partition module processes the peripheral key input events according to the floating menu configuration file and the floating menu window number, and updates the floating menu window number or distributes the peripheral key input events to the main display control partition module and the floating menu display control partition module.
[0079] Step 4: The floating menu display control module completes a series of tasks based on the surrounding key input events, the floating menu configuration file, and the floating menu window number, including switching options in the floating menu, entering edit mode, displaying edit mode, exiting edit mode, and sending the editing results to the main display control module.
[0080] Step 5: If the main display control module receives the editing result from the floating menu display control module, it converts the editing result into interface data between the subsystem and the floating menu configuration file, and completes the sending of the interface data.
[0081] Step 6: Display the management partition module timer, and during the timer, check if there are any new input events for the surrounding keys. If there are, return directly to step 3. If not, after the timer ends, hide the superimposed floating menu screen and return to step 2.
[0082] Use a configuration file (XML file) to specify the display information and interface information of the pop-up window.
[0083] like Figure 9 As shown, the configuration file contains: configuration information for several windows and configuration information for switching between floating windows.
[0084] The window configuration information includes name, window ID, window screen coordinates, window width, option line spacing, and several option configurations. The name is the title displayed for the floating menu, such as... Figure 6 The floating menu shown is named "PAR"; the window ID is a unique identifier for the floating menu, which is the floating menu window number; the window screen coordinates specify the display position of the upper left corner of the floating menu on the screen; the window width specifies the width of the floating menu; the option line spacing specifies the interval between each option in the floating menu; the multiple option configuration specifies the display and interface control information of the options, and it is not recommended to set more than 10 options in a floating menu.
[0085] Option configuration information includes: option ID, option type, option name, option editing information, status word interface, and control word interface. The option ID is a unique identifier for the option; two option types are available: multiple-select and numeric editing; the option name is the content displayed to the left of the option, such as... Figure 6 The symbols "ALT", "DH", etc., are shown.
[0086] The editing information for different option types is different. The editing information for multiple-choice options consists of several multiple-choice options. As shown in Figure 7, the editing information for the "NORTH" option includes two items: "0-TRU" and "1-MAG".
[0087] The options for editing numeric values include: text after the number, text before the number, number format, step value, minimum value, and maximum value. The text after the number displays the unit, such as... Figure 6 The "FT" option in the "ALT" field displays the numeric value; the text before the number is used to display the numeric prefix, such as... Figure 6 The "CA" display of the "F-NO" option indicates the integer / decimal place format when the value is displayed. For example, "FFF.FF" means that the integer part is displayed in hundreds and tens places, and the decimal part is displayed with two decimal places. The step value indicates the step size of the value when the knob is rotated one notch. The maximum and minimum values define the editable range of the value.
[0088] The status word interface and control word interface include: subsystem ID, data block number, data block length, data word length, byte offset, bit offset, and data word. The main display control partition module can use this information to map the editable content of each option to a specific interface within a subsystem.
[0089] The floating window switching configuration information includes: several correspondences between "current window number, surrounding key ID, and switching window number".
[0090] With this flexible configuration method, adding, deleting, or modifying floating windows and options does not require modifying the code; only the configuration file needs to be modified.
[0091] The current status of the floating menu is determined by the floating menu window number. A value of 0 indicates that there is no floating menu. This value is controlled by the display management module and sent to the other two modules.
[0092] The specific description of drawing the floating menu screen in the second step is as follows: The main display control partition module judges the value of the floating menu window number. If it is not 0, it looks up the corresponding window configuration information in the floating menu configuration file according to the floating menu window number. Based on the status word interface in several option configuration information in the window configuration information, it converts the subsystem's status data into option status data and sends it to the floating menu display control partition module. The option status data format is: window id, option id, option status value.
[0093] The floating menu display control module draws the floating menu screen based on the received option status data, the floating menu window number, and the configuration file. For example, when the floating menu window number is 1, it searches for the configuration information of window 1, draws the border and title at the specified position, then searches for all option configuration information of window 1, draws the option names on the left, and draws the option setting values on the right based on the option status data and option editing information. For example, the option status data for the "NORTH" option is 0, while the option editing information specifies that an option status data value of 0 corresponds to displaying the "MAG" option setting value.
[0094] In the third step, the window perimeter key input management method involves the display management partition module receiving and distributing input events from the display perimeter keys. As shown in Figure 4, the module determines whether the input event is a floating window switching event based on the "Floating Window Switching Configuration" in the configuration file. If it is, the floating menu window number is updated according to the switching configuration, the current window number, and the perimeter key ID, and then sent to the floating menu display control partition module and the main display control partition module. If it is not, the target object of the input event is determined by whether the floating menu window number is 0. If it is 0, the event is distributed to the main display control partition module; otherwise, it is distributed to the floating menu display control partition module.
[0095] The specific description of how the floating menu display control area handles peripheral key input events is as follows: Figure 5 As shown, if the floating menu control area is in non-editing mode, when a knob rotation input event is received, it is determined to be a "toggle option" event. The selected option is then switched sequentially according to the option configuration information in the window configuration information, and the selected option name is displayed with a background color overlay on the screen. When a knob press input event is received, it is determined to be a "enter edit" event, controlling the entry into edit mode, and the option setting value is displayed with a background color overlay on the screen. The configuration file for switching is as follows... Figure 13 As shown.
[0096] If in edit mode, upon receiving a knob rotation input event, it is identified as an "Edit" event. The display of the option setting value is controlled according to the option configuration information. For example, if a multi-select option currently has a setting value of "Item 1", then upon processing this event, the option setting value switches to "Item 2". For a numerical editing option, if the current setting value is "10", then upon processing this event, the option setting value switches to "10 + step value". Upon receiving a knob press input event, it is identified as a "Confirm" event. The current editing result is sent to the main display control module, and the option editing state is exited. The editing result format is: window ID, option ID, option setting value. The multi-select configuration file is as follows: Figure 11 As shown in Figure 12.
[0097] The subsystem interface data management method of the main display control partition module in step 5 is specifically described as follows: If the main display control partition module receives the editing result sent by the floating menu display control partition module, it will look up the control word interface of the corresponding option in the configuration file according to the window ID and option ID in the editing result, and convert the option setting value into interface data according to the subsystem ID, data block number, data block length, data word length, byte offset, bit offset, and data word and send it to the corresponding subsystem.
[0098] The specific description of the process of hiding the superimposed floating menu screen after the timer ends in step six is as follows: The display management partition module starts the timer and determines whether there are any new input events of the surrounding keys during the timer. If not, the floating menu window number is initialized to 0 and sent to the floating menu display control partition module.
[0099] The drawing and control of floating menus are common modules, such as... Figure 6 and Figure 7 The two floating menus shown are implemented using the same general module. By different configuration information of the two floating menus, the same general module can draw two different floating menus.
[0100] like Figure 10 As shown, the main display control module, the floating menu display control module, and the display management module all read the same floating menu configuration file, which is the basis for the display and control of the three modules.
[0101] The main display control partition module completes data communication with the subsystem, including "status data" and "control commands". After receiving the "status data", it converts it into "option status data" and sends it to the floating menu display control partition module to support the display of the floating menu.
[0102] The display management partition module is responsible for acquiring input events from the display and distributing these events to the other two modules. It is also responsible for controlling the floating menu window number and distributing it to the other two modules.
[0103] The floating menu display control module sends the edited options, after confirmation, to the main display control module. Finally, the main display control module converts these into control commands and sends them to the corresponding subsystems.
[0104] This invention employs a floating menu window management method, enabling the main display control application software and the floating menu application software to operate independently and display information comprehensively as needed based on pilot input. The floating menu solves the problems of limited display area and complex control logic of highly integrated display and control components in light helicopters, providing pilots with an efficient and convenient operating method. By designing the floating menu application software and the main display control application software independently, and integrating the window management software, mission equipment control functions can be flexibly and quickly expanded within the floating menu. Corresponding software changes will not affect other software, significantly reducing the workload of display system software verification and efficiently and cost-effectively meeting the diverse mission customization requirements of helicopter users. The display management software maintains the monitoring window display time and pilot input; if the timeout occurs, the window automatically exits, reducing pilot input and effectively improving human-machine efficiency.
[0105] This invention is applicable to window management of all helicopter models using a floating menu display method. It adopts a configuration file to realize the configurable design of the floating menu, and has the advantages of high modularity, strong maintainability and strong scalability.
Claims
1. A window management system for displaying floating menus on a light helicopter, characterized in that: The system includes: Main display control module, floating menu display control module, display management module; The display management section module is used to obtain input events from surrounding keys and pass these input events to the main display control section module and the floating menu display control section module. The display management partition module is also used to control the current floating menu window number based on input events, and send the floating menu window number to the floating menu display control partition module and the main display control partition module; The main display control module is used to complete communication with the subsystems, draw the main flight screen according to the input of each subsystem, and send control data to the subsystems it controls; The floating menu display control module is used to draw the floating menu screen according to the floating menu window number, and to complete the control functions of the options in the floating menu based on the input events of the surrounding keys; the floating menu screen drawing process is as follows: The main display control partition module determines the value of the floating menu window number. If it is not 0, it searches for the corresponding window configuration information in the floating menu configuration file based on the floating menu window number. Based on the status word interface in the multiple option configuration information in the window configuration information, it converts the subsystem's status data into option status data and sends it to the floating menu display control partition module. The option status data format is: window id, option id, option status value. The floating menu displays the configuration information corresponding to the window number in the control partition module. It draws the border and title at the specified position, then finds all the option configuration information for the window number, draws the option name on the left, and draws the option setting value on the right based on the option status data and option editing information. The floating menu display control module draws the floating menu screen based on the received option status data, the floating menu window number, and the configuration file; The floating menu displays the following process for handling peripheral key input events in the control module: If the floating menu control area is in non-editing mode, when a knob rotation input event is received, it is determined to be a "switch option" event. The selected option is then switched sequentially according to the option configuration information in the window configuration information, and the selected option name is displayed with a background color on the screen. When a knob press input event is received, it is determined to be a "enter edit" event, and the control enters the edit mode. The option setting value is displayed with a background color on the screen. If in edit mode, when a knob rotation input event is received, it is determined as an "edit" event, and the display of the option setting value is controlled according to the option configuration information; when a knob press input event is received, it is determined as an "confirm" event, the current editing result is sent to the main display control partition module, and the option editing mode is exited. The editing result format is: window id, option id, option setting value; The display management partition module is also used to overlay the main flight screen and the floating menu screen.
2. A window management method for displaying a floating menu on a light helicopter, based on the system described in claim 1, characterized in that: Includes the following steps: Step 1: System initialization. The main display control module, the floating menu display control module, and the display management module read the floating menu configuration file, initialize the floating menu window number to 0, and display the initial main flight screen. Step 2: Based on the floating menu window number and the floating menu configuration file, the main display control partition module and the floating menu display control partition module jointly complete the drawing of the floating menu screen. The display management partition module overlays the main flight screen and the floating menu screen, while continuously monitoring for input events of surrounding keys. If there are any, proceed to the next step; otherwise, continue with step 2. The floating menu configuration file includes: configuration information for multiple windows and configuration information for switching between floating windows; the window configuration information includes: window name, window ID, window screen coordinates, window width, option line spacing, and configuration information for multiple options; the option configuration information includes: option ID, option type, option name, option editing information, status word interface, and control word interface; the floating window switching configuration information includes: the correspondence between multiple "current window number, surrounding key ID, and switching window number"; in the second step, the floating menu screen drawing process is as follows: The main display control partition module determines the value of the floating menu window number. If it is not 0, it searches for the corresponding window configuration information in the floating menu configuration file based on the floating menu window number. Based on the status word interface in the multiple option configuration information in the window configuration information, it converts the subsystem's status data into option status data and sends it to the floating menu display control partition module. The option status data format is: window id, option id, option status value. The floating menu displays the configuration information corresponding to the window number in the control partition module. It draws the border and title at the specified position, then finds all the option configuration information for the window number, draws the option name on the left, and draws the option setting value on the right based on the option status data and option editing information. The floating menu display control module draws the floating menu screen based on the received option status data, the floating menu window number, and the configuration file; Step 3: The display management partition module processes the peripheral key input events according to the floating menu configuration file and the floating menu window number, and updates the floating menu window number or distributes the peripheral key input events to the main display control partition module and the floating menu display control partition module. Step 4: The floating menu display control module processes the peripheral key input events, switches options and states, and sends the editing results to the main display control module. The process of the floating menu display control module processing peripheral key input events in step 4 is as follows: If the floating menu control area is in non-editing mode, when a knob rotation input event is received, it is determined to be a "switch option" event. The selected option is then switched sequentially according to the option configuration information in the window configuration information, and the selected option name is displayed with a background color on the screen. When a knob press input event is received, it is determined to be a "enter edit" event, and the control enters the edit mode. The option setting value is displayed with a background color on the screen. If in edit mode, when a knob rotation input event is received, it is determined as an "edit" event, and the display of the option setting value is controlled according to the option configuration information; when a knob press input event is received, it is determined as an "confirm" event, the current editing result is sent to the main display control partition module, and the option editing mode is exited. The editing result format is: window id, option id, option setting value; Step 5: If the main display control module receives the editing result from the floating menu display control module, it converts the editing result into interface data with the subsystem according to the floating menu configuration file and completes the interface data transmission. The process of converting the editing result into interface data with the subsystem according to the floating menu configuration file is as follows: If the main display control partition module receives the editing result from the floating menu display control partition module, it will look up the control word interface of the corresponding option in the configuration file based on the window ID and option ID in the editing result, and convert the option setting value into interface data based on the subsystem ID, data block number, data block length, data word length, byte offset, bit offset, and data word and send it to the corresponding subsystem. Step 6: Display the management partition module timer, and during the timer, check if there are any new input events for the surrounding keys. If there are, return directly to step 3. If not, after the timer ends, hide the superimposed floating menu screen and return to step 2.
3. The method according to claim 2, characterized in that: A floating menu window number of 0 indicates that no floating menu needs to be displayed.
4. The method according to claim 3, characterized in that: In the third step, the handling process for peripheral key input events is as follows: Based on the floating window switching configuration information in the configuration file, determine whether the input event is a floating window switching event. If it is, update the floating menu window number according to the switching configuration, the current window number, and the surrounding key ID, and send it to the floating menu display control module and the main display control module. If it is not, determine the target object of the input event based on whether the floating menu window number is 0. If it is 0, distribute it to the main display control module; otherwise, distribute it to the floating menu display control module.
5. The method according to claim 4, characterized in that: In step six, after the floating menu screen disappears, the floating menu window number is initialized to 0 and sent to the floating menu display control module.