Touch screen control-based method and device for real-time control of view angle of aviation simulator

CN121680708BActive Publication Date: 2026-08-18QINGDAO BLUESKY AVIATION TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202511572787.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-10-30
Publication Date
2026-08-18
Estimated Expiration
2045-10-30

AI Technical Summary

Technical Problem

[0004]本发明提供一种基于触屏控制的航空模拟器视角实时控制方法及装置,用以解决现有模拟器教员台视角控制方案中视角的控制操作与视角变化的视觉反馈发生在不同的物理空间,导致操作割裂感的问题

Benefits of technology

本发明提供的基于触屏控制的航空模拟器视角实时控制方法及装置,通过响应在显示视景画面的触控屏上的用户触控操作,将触控数据解析为控制指令,并基于指令驱动视景渲染引擎使触控屏上视景画面更新,操作在显示视景的同一触控屏上进行,视觉反馈也直接在该触控屏呈现,消除了操作与反馈在不同物理空间的问题。用户直接在显示视景的触控屏上通过不同触控手势(对应不同控制指令)进行操作,如调整视角方向、缩放视距、切换视角模式等,且操作后视景画面立即相应更新,用户能直观看到操作带来的视角变化,从而建立起操作指令与视角变化之间的直接直觉关联。而且,本发明采用触屏控制,用户通过直观的触控手势操作,如同直接触摸和操控视景中的视角,基于被观察载体的实时状态数据计算眼点空间参数,根据视角模式切换指令确定眼点参数并驱动视景渲染引擎更新画面,整个过程让用户感觉是直接操纵视角,消除了操作割裂感,提供了直观的直接操纵体验。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121680708B_ABST
    Figure CN121680708B_ABST
Patent Text Reader

Abstract

The application provides a kind of aviation simulator visual angle real-time control method and device based on touch screen control, which comprises the following steps: obtaining corresponding touch data in response to user touch operation on the touch screen of display visual scene picture;Touch data is parsed into control instructions corresponding to visual angle change, different touch gestures are parsed into different types of control instructions, including visual angle direction adjustment instruction, visual angle scaling instruction and visual angle mode switching instruction;Based on visual angle direction adjustment instruction or visual angle scaling instruction, and the real-time state data of the observed carrier, the spatial parameters of the eye point in the target coordinate system are calculated;In response to visual angle mode switching instruction, switching is carried out between multiple visual angle modes including at least first visual angle mode and third visual angle mode;Based on the determined eye point parameters, the visual scene rendering engine is driven, so that the visual scene picture displayed on the touch screen is updated accordingly.The application can eliminate the feeling of operation fragmentation and provide intuitive and direct manipulation experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of flight simulation technology, and in particular to a method and device for real-time control of the viewpoint of an aviation simulator based on touch screen control. Background Technology

[0002] In flight simulation training, instructors need to monitor and intervene in the simulator's operation comprehensively through the instructor console system. Among these functions, controlling the flight viewpoint is one of the core functions, allowing instructors to observe the aircraft's flight attitude, position, and pilot's maneuvers from different angles in order to provide effective guidance.

[0003] Existing simulator instructor console view control schemes typically rely on traditional computer peripherals, namely the keyboard and mouse. The implementation is as follows: the instructor console computer runs dedicated control software that provides an independent view control interface. Within this interface, the instructor adjusts the view's orientation and pitch by dragging the mouse, zooms in and out using the mouse wheel, and switches between different view modes by clicking buttons on the interface. Usually, for ease of operation, at least two monitors are required for the instructor console: one main monitor displays flight data, system status, and other information about the instructor console's main interface, while the other monitor is dedicated to displaying a full-screen third-person view. However, in this scheme, view control operations and the visual feedback of view changes occur in different physical spaces; that is, mouse movements on the dedicated control interface are separate from the visual changes presented on the other monitor. This separation of interaction and display makes the operation lack intuitiveness and immersion, making it difficult for users to establish a direct, intuitive connection between operational commands and view changes, resulting in a noticeable disconnect in operation. Summary of the Invention

[0004] This invention provides a real-time view control method and device for an aviation simulator based on touchscreen control, addressing the problem in existing simulator instructor's console view control schemes where view control operations and visual feedback of view changes occur in different physical spaces, leading to a disconnect in operation. This invention eliminates this disconnect, providing an intuitive and direct control experience. The technical solution proposed by this invention is as follows: In a first aspect, the present invention provides a real-time view control method for an aviation simulator based on touchscreen control, comprising: In response to user touch operations on a touchscreen displaying a visual scene, acquire the corresponding touch data; The touch data is parsed into control commands corresponding to changes in viewing angle. Different touch gestures are parsed into different types of control commands, including viewing angle adjustment commands, viewing angle zoom commands, and viewing angle mode switching commands. Based on the aforementioned viewpoint direction adjustment command or viewpoint zoom command, and the real-time status data of the observed carrier, the spatial parameters of the eye point in the target coordinate system are calculated. In response to the viewpoint mode switching command, switching is performed between multiple viewpoint modes, including at least a first viewpoint mode and a third viewpoint mode; when switching to the first viewpoint mode, the eyepoint parameter associated with the observed carrier is used as the eyepoint parameter; when switching to the third viewpoint mode, the spatial parameter is used as the eyepoint parameter. The visual rendering engine is driven by the determined eye point parameters, so that the visual scene displayed on the touch screen is updated accordingly.

[0005] Optionally, the touch data includes single-finger movement trajectory data, multi-finger touch gesture data, and screen double-tap timing data; parsing the touch data into control commands corresponding to changes in viewing angle includes: The single-finger movement trajectory data is parsed into the view direction adjustment command, which includes the horizontal and vertical changes of the touch point calculated based on the movement trajectory. The multi-finger touch gesture data is parsed into the view zoom instruction, which includes a view zoom factor calculated based on the change in distance between the multi-finger gestures. The screen double-click timing data is parsed into the view mode switching command. Optionally, the step of calculating the spatial parameters of the eye point in the target coordinate system based on the viewpoint direction adjustment command or viewpoint zoom command and the real-time state data of the observed carrier includes: When the viewing direction adjustment command is received, the horizontal deflection angle and vertical pitch angle of the eye point are updated according to the horizontal and vertical changes of the touch point contained in the command, and the spatial parameters are calculated based on the updated horizontal deflection angle, vertical pitch angle, current observation distance and real-time status data of the observed carrier. When the view zoom command is received, the observation distance between the eye point and the observed vehicle is updated according to the view zoom factor contained in the command, and the spatial parameters are calculated based on the current horizontal yaw angle, vertical pitch angle, updated observation distance and real-time status data of the observed vehicle.

[0006] Optionally, the real-time status data of the observed carrier includes the current position and current attitude of the observed carrier in the geodetic coordinate system, and the target coordinate system is the geodetic coordinate system; The calculation of the spatial parameters based on the updated horizontal deflection angle, vertical pitch angle, current observation distance, and real-time status data of the observed vehicle includes: Based on the horizontal deflection angle, vertical pitch angle and observation distance, calculate the absolute deviation position data of the eye point in the carrier coordinate system with the observed carrier as the origin; Based on the absolute deviation position data and the current position and attitude of the observed carrier in the geodetic coordinate system, the absolute coordinates of the eye point in the geodetic coordinate system are obtained through coordinate system transformation, and used as the position parameter in the spatial parameters; Based on the horizontal yaw angle and the real-time heading angle of the observed vehicle, the heading angle of the eye point is determined; and based on the vertical pitch angle, the pitch angle of the eye point is determined, and the heading angle and pitch angle are used as attitude parameters in the spatial parameters. Optionally, the switching between multiple view modes, including at least a first view mode and a third view mode, in response to the view mode switching command includes: When switching to the first perspective mode, the third perspective model is hidden, the spatial parameters are stopped from being updated based on the touch data, and the eye point parameters are locked to the real-time eye point parameters of the observed carrier obtained from the simulator. When switching to the third-view mode, the third-view model is displayed, the spatial parameters are updated according to the touch data, and the updated spatial parameters are used as the eye point parameters.

[0007] Optionally, the view mode switching command is triggered by a double-tap operation on the screen; The method for determining a double-tap operation includes: recording the timestamps of two consecutive touch clicks; if the time difference between the two timestamps is less than a preset time threshold, it is determined to be a double-tap operation, and the view mode switching command is generated. Secondly, the present invention also provides a real-time control device for the view of an aviation simulator based on touch screen control, comprising the following modules: The touch data acquisition module is used to respond to user touch operations on the touch screen displaying the visual scene and acquire the corresponding touch data. The touch data processing module is used to parse the touch data into control commands corresponding to changes in viewing angle. Different touch gestures are parsed into different types of control commands, including viewing angle direction adjustment commands, viewing angle scaling commands, and viewing angle mode switching commands. Based on the viewing angle direction adjustment commands or viewing angle scaling commands and the real-time status data of the observed carrier, the spatial parameters of the eye point in the target coordinate system are calculated. A perspective switching control module is configured to respond to the perspective mode switching command by switching between multiple perspective modes, including at least a first perspective mode and a third perspective mode; when switching to the first perspective mode, eye point parameters associated with the observed carrier are used as eye point parameters; when switching to the third perspective mode, the spatial parameters are used as eye point parameters; and, based on the determined eye point parameters, drive the scene rendering engine so that the scene displayed on the touch screen is updated accordingly.

[0008] Thirdly, the present invention also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and running on the processor, wherein the processor executes the computer program to implement the real-time control method for the view of an aviation simulator based on touch screen control as described in the first aspect above.

[0009] Fourthly, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the real-time view control method for an aviation simulator based on touchscreen control as described in the first aspect above.

[0010] Fifthly, the present invention also provides a computer program product, including a computer program that, when executed by a processor, implements the real-time control method for the viewpoint of an aviation simulator based on touch screen control as described in the first aspect above.

[0011] Based on the above technical solution, the beneficial effects of the present invention compared with the prior art are as follows: The present invention provides a real-time view control method and device for an aviation simulator based on touchscreen control. By responding to user touch operations on a touchscreen displaying the visual scene, the method parses the touch data into control commands, and drives the visual rendering engine to update the visual scene on the touchscreen. Operations are performed on the same touchscreen displaying the scene, and visual feedback is also directly presented on this touchscreen, eliminating the problem of operation and feedback being in different physical spaces. Users can directly operate on the touchscreen displaying the scene using different touch gestures (corresponding to different control commands), such as adjusting the viewpoint direction, zooming in and out, and switching viewpoint modes. The visual scene updates immediately after each operation, allowing users to intuitively see the viewpoint changes caused by the operation, thus establishing a direct and intuitive connection between operation commands and viewpoint changes. Moreover, the present invention adopts touch screen control, allowing users to operate intuitively through touch gestures, just like directly touching and manipulating the viewpoint in the scene. Based on the real-time state data of the observed carrier, the eye point spatial parameters are calculated, and the eye point parameters are determined according to the viewpoint mode switching command, driving the scene rendering engine to update the screen. The whole process makes users feel like they are directly manipulating the viewpoint, eliminating the sense of operation disconnect and providing an intuitive and direct operation experience.

[0012] Other features and advantages of the invention will be set forth in the following description, and will be apparent in part from the description, or may be learned by practicing the invention. The objects and other advantages of the invention are realized and obtained through the structures particularly pointed out in the description and the drawings.

[0013] To make the above-mentioned objects, features and advantages of the present invention more apparent and understandable, preferred embodiments are described below in detail with reference to the accompanying drawings. Attached Figure Description

[0014] To more clearly illustrate the technical solutions in this invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.

[0015] Figure 1 This is a schematic diagram illustrating the application effect of the existing simulator instructor's view control scheme.

[0016] Figure 2 This is a schematic diagram of the real-time view control process of an aviation simulator based on touch screen control provided by the present invention.

[0017] Figure 3 This is a schematic diagram of the structure of the real-time view control device for an aviation simulator based on touch screen control provided by the present invention.

[0018] Figure 4 This is a schematic diagram of the structure of the electronic device provided by the present invention. Detailed Implementation

[0019] To make the objectives, technical solutions, and advantages of this invention clearer, the technical solutions of this invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this invention. All other embodiments obtained by those skilled in the art based on the embodiments of this invention without creative effort are within the scope of protection of this invention.

[0020] The existing simulator instructor's view control scheme, referring to Figure 1As shown, at least two monitors are required for the instructor's console: one main monitor for displaying flight data, system status, and other main interface information, and another dedicated to displaying the third-person perspective view in full screen. However, in this solution, the control of the viewpoint and the visual feedback of viewpoint changes occur in different physical spaces; that is, mouse actions on the dedicated control interface are separate from the visual changes presented on the other monitor. This separation of interaction and display makes the operation lack intuitiveness and immersion, making it difficult for users to establish a direct, intuitive connection between operation commands and viewpoint changes, thus creating a noticeable sense of disconnect in operation.

[0021] In a scenario where the console only has one keyboard and mouse set connected to the instructor's computer, this invention proposes a real-time view control method and device for an aviation simulator based on touchscreen control. This method connects the video output and USB touch output of the third-view rendering computer to the same touchscreen, using a touch data acquisition module to treat the third-view touchscreen as the view control input device. By acquiring operations such as horizontal or vertical movement of a single touch point, multi-point pinching, and double-clicking on the touchscreen, the operation data is calculated in real-time as spatial parameters of the eye point, enabling omnidirectional observation functions such as movement, zooming, and switching of different viewpoints in the simulator.

[0022] Reference Figure 2 As shown, the real-time view control method for an aviation simulator based on touchscreen control includes the following: S110, In response to a user touch operation on a touch screen displaying a visual scene, obtain the corresponding touch data.

[0023] When instructors operate on the touchscreen displaying the visual content, the system responds to these touch actions in real time. The touchscreen is equipped with sensors that capture various finger movements on the screen, such as clicking, swiping, dragging, and zooming, and converts these movements into corresponding electrical signals or data information—touch data. This touch data includes the screen coordinates of the touch points, the number of touch points, the touch action (such as a click, move, lift, or multi-touch), and a timestamp. For example, if an instructor swipes their finger to the left on the screen, the touchscreen records the start and end positions of the swipe, as well as the trajectory of the swipe.

[0024] S120. The touch data is parsed into control commands corresponding to changes in viewing angle, wherein different touch gestures are parsed into different types of control commands, including viewing angle direction adjustment commands, viewing angle zoom commands, and viewing angle mode switching commands.

[0025] Upon receiving touch data, it is parsed and processed. Based on pre-defined rules, different touch gestures are interpreted as control commands corresponding to changes in viewing angle. Different touch gestures are identified based on features such as the number of touch points and movement trajectory. The identified gestures are then mapped to specific viewing angle control commands. For example, a single-finger swipe gesture is interpreted as a viewing angle adjustment command; a two-finger pinch or spread gesture is interpreted as a viewing angle zoom command; and a quick double-tap gesture is interpreted as a viewing angle mode switching command.

[0026] Specifically, when instructors swipe left, right, up, or down on the touchscreen, these gestures are interpreted as commands to adjust the viewing angle. For example, swiping left means turning the view to the left, swiping right means turning the view to the right, swiping up means tilting the view upwards, and swiping down means tilting the view downwards. The angle of rotation is determined by the distance of the swipe.

[0027] If an instructor pinches or spreads two fingers on the touchscreen, this is interpreted as a zoom command. A pinch indicates a decrease in viewing distance, making the observer feel farther away from the observed object; spreading two fingers indicates a increase in viewing distance, making the observer feel closer to the observed object. The zoom ratio is determined based on the change in distance between the two fingers.

[0028] When an instructor taps a specific preset area or performs a specific gesture (such as a three-finger tap) on the touchscreen, it is interpreted as a view mode switching command. This command allows switching between multiple view modes, including at least a first-person view mode and a third-person view mode.

[0029] S130. Based on the viewpoint direction adjustment command or viewpoint scaling command, and the real-time status data of the observed carrier, calculate the spatial parameters of the eye point in the target coordinate system.

[0030] After receiving the viewpoint direction adjustment command or viewpoint zoom command, and the real-time status data of the observed vehicle, the spatial parameters of the eye point in the target coordinate system are calculated. The real-time status data of the observed vehicle includes information such as its position, velocity, and attitude. For example, if the observed vehicle is an aircraft in flight, the real-time status data may include the aircraft's latitude and longitude coordinates, flight altitude, flight speed, heading angle, pitch angle, and roll angle.

[0031] Based on the type of instruction received, the spatial parameters of the eye point in the target coordinate system are calculated, namely the eye point's position parameters (longitude, latitude, altitude) and attitude parameters (heading, pitch). When a viewing direction adjustment instruction is received, the new position and direction of the eye point in the target coordinate system are calculated based on the rotation angle and direction in the instruction, combined with the current attitude of the observed vehicle. For example, if the aircraft is flying horizontally, and the instructor issues an instruction to rotate the viewing angle to the left, the new direction of the eye point relative to the aircraft will be calculated based on the aircraft's heading angle and the viewing angle rotation angle. When a viewing zoom instruction is received, the distance between the eye point and the observed vehicle is adjusted according to the zoom ratio and the position of the observed vehicle, thereby obtaining the new position of the eye point in the target coordinate system. For example, if the instructor issues an instruction to zoom in on the viewing distance, the eye point will be moved backward a certain distance, making it farther away from the observed aircraft.

[0032] S140. In response to the viewpoint mode switching command, switch between multiple viewpoint modes, including at least a first viewpoint mode and a third viewpoint mode; when switching to the first viewpoint mode, use the eyepoint parameter associated with the observed carrier as the eyepoint parameter; when switching to the third viewpoint mode, use the spatial parameter as the eyepoint parameter.

[0033] Responding to view mode switching commands, it allows switching between multiple view modes. View modes include at least first-person and third-person perspectives. When switching to first-person perspective mode (such as pilot's cockpit view), the eyepoint parameters associated with the observed vehicle are used. In this mode, the observer is as if sitting in the cockpit of the observed vehicle (such as an aircraft), observing the surrounding environment from the pilot's perspective. The eyepoint parameters are dynamically adjusted according to the real-time status data of the observed vehicle. For example, as the aircraft's flight attitude changes, the observer's perspective also changes accordingly, allowing the instructor to truly experience the pilot's field of vision.

[0034] When switching to a third-person perspective mode (such as an external following view), the previously calculated spatial parameters of the eye point in the target coordinate system are used as the eye point parameters. In this mode, the observer appears to be standing outside the observed vehicle, observing the vehicle and its surrounding environment from a certain distance and angle. For example, in simulating aircraft flight, the third-person perspective mode allows instructors to see the aircraft's overall flight attitude and its relative position to the surrounding environment.

[0035] S150. Drive the visual rendering engine based on the determined eye point parameters, so that the visual scene displayed on the touch screen is updated accordingly.

[0036] Based on the determined eye-point parameters, the visual rendering engine is driven. The engine re-renders the 3D scene according to these parameters and immediately outputs the newly generated visual image to the touchscreen for display, causing the visual image displayed on the touchscreen to update accordingly. Instructors can then see the viewpoint changing in real time based on their actions on the touchscreen, thus achieving intuitive and real-time viewpoint control. The user's touch operations on the screen are visually and in real-time translated into movement, zooming, or switching of the viewpoint on the same screen, thus completing a seamless closed loop from intention input to visual feedback.

[0037] In existing simulator instructor's view control schemes, the mouse is operated on a dedicated control interface, while visual changes are displayed on a separate monitor, separating operation from feedback. This invention, however, responds to user touch operations on a touchscreen displaying the view, parses the touch data into control commands, and uses these commands to drive the visual rendering engine to update the view on the touchscreen. Operations are performed on the same touchscreen displaying the view, and visual feedback is also directly presented on that touchscreen, eliminating the problem of operation and feedback being in different physical spaces.

[0038] Existing simulator instructor-level view control schemes suffer from a lack of separation between interaction and display, making it difficult for users to establish a direct, intuitive connection between operation commands and viewpoint changes. In contrast, the method of this invention allows users to directly operate on the touchscreen displaying the scene using different touch gestures (corresponding to different control commands), such as adjusting the viewpoint direction, zooming in and out, and switching viewpoint modes. The scene updates immediately after each operation, allowing users to intuitively see the resulting viewpoint changes and thus establishing a direct, intuitive connection between operation commands and viewpoint changes. Furthermore, this invention utilizes touchscreen control, enabling users to intuitively manipulate the viewpoint as if directly touching and controlling it. Based on real-time state data of the observed platform, eye-point spatial parameters are calculated, and the viewpoint mode switching command determines these parameters, driving the scene rendering engine to update the image. The entire process gives the user the feeling of directly manipulating the viewpoint, eliminating the sense of disconnect between operation and providing an intuitive and direct control experience.

[0039] Existing simulator instructor-level view control schemes suffer from low operational efficiency and the tendency to overlook control functions. Specifically, instructors must switch their focus from the main display interface to a dedicated view control page before performing view control. This frequent interface switching not only disrupts monitoring continuity but can also lead to missed important view control operations in emergency situations due to cumbersome operation, impacting training effectiveness. This invention, however, allows direct operation on the touchscreen displaying the view, eliminating the need to switch between different interfaces. Instructors can simultaneously monitor flight data, system status, and other information on the main display interface while directly controlling the view via touch gestures on the touchscreen, ensuring continuous monitoring and improving operational efficiency. Furthermore, this invention utilizes touchscreen control, with different touch gestures corresponding to different control commands, such as adjusting the view direction by dragging a finger, zooming in and out by scrolling a finger, and switching view modes by clicking. These operations are intuitive and convenient, allowing instructors to react quickly in emergencies and complete the corresponding view control operations directly on the touchscreen, reducing the possibility of overlooking control functions due to cumbersome operation and thus ensuring training effectiveness.

[0040] Existing simulator instructor's view control schemes suffer from complex hardware configurations. Specifically, this scheme relies on a keyboard... The classic "mouse" interaction mode typically requires at least two monitors, increasing hardware costs and device space. Furthermore, when the console only has one set of keyboard and mouse connected to the instructor's console, additional keyboard and mouse or a keyboard-mouse switch is often needed for view control, causing inconvenience and compromising the simplicity of the operating environment. This invention, however, requires only a touchscreen display for view control and visual display, eliminating the need for an additional keyboard, mouse, and monitor, significantly simplifying the hardware structure. Moreover, this invention uses touchscreen control, eliminating the need for additional keyboard and mouse devices; instructors can operate directly with their fingers on the touchscreen, avoiding the complexities of using multiple sets of keyboards and mice or keyboard-mouse switchers, maintaining a simple operating environment, and improving ease of use.

[0041] In an optional embodiment, the view mode switching command is triggered by a double-tap operation on the screen; The method for determining a double-tap operation includes: recording the timestamps of two consecutive touch clicks; if the time difference between the two timestamps is less than a preset time threshold, it is determined to be a double-tap operation, and the view mode switching command is generated.

[0042] This invention maps the perspective switching function to a double-tap gesture on a touchscreen, replacing the button operation in traditional graphical interfaces. The perspective switching action can be completed within the same screen area displaying the view, without needing to look away from the main view to find the control. The screen interface does not require a persistent perspective switching button, reducing visual obstruction of the view. A time threshold determination mechanism for double-tap operations prevents accidental switching caused by a single mis-touch or swipe.

[0043] In an optional embodiment, the touch data includes single-finger movement trajectory data, multi-finger touch gesture data, and screen double-tap timing data; the step S120 described above, parsing the touch data into control commands corresponding to changes in viewing angle, includes: The single-finger movement trajectory data is parsed into the view direction adjustment instruction, which includes the horizontal and vertical changes of the touch point calculated based on the movement trajectory; the multi-finger touch gesture data is parsed into the view zoom instruction, which includes the view zoom factor calculated based on the changes in the distance between the multi-finger gestures; and the screen double-tap timing data is parsed into the view mode switching instruction.

[0044] Specifically, the aforementioned single-finger movement trajectory data includes the initial position and current position of the touch point. The movement trajectory of a single finger on the touchscreen is captured using a touch data acquisition module in existing technology. The initial position (x0, y0) of the touch point is obtained in the OnTouchDown function. When the finger moves, the current position (x1, y1) of the touch point is obtained in real time through the OnTouchMove function, thus obtaining the movement trajectory of the single finger. The horizontal and vertical movements of the single finger on the screen are used to obtain offsets, which are then converted into position offsets and attitude offsets in the carrier coordinate system, respectively. Specifically, the horizontal change of the touch point deltaX = (x1, y1) is calculated in real time. x0) and the longitudinal change deltaY=(y1) y0). The calculated horizontal and vertical changes of the touch point are encapsulated into a view direction adjustment command. This command is used to instruct the simulator to adjust the orientation and pitch of the view, so that the view changes in real time with the movement of a single finger.

[0045] Similarly, the touch data acquisition module captures multi-finger gesture data on the touchscreen, including the initial and current positions of each touch point. When the touch point list information is obtained, and the number of touch points is 2, the initial position (x) of touch point 1 is recorded. 01 ,y 01 ) and the initial position of touch point 2 (x 02 ,y 02 ), calculate the initial Euclidean distance between the two fingers as the initial hand distance disTouch0=sqrt((x 02 x 01) 2 (y 02 y 01 ) 2 When two fingers are pinched together or spread apart, the current position (x) of touch point 1 is obtained in real time. 11 ,y 11 ) and the current position of touch point 2 (x 12 ,y 12 ), and calculate the Euclidean distance when moving two fingers as the current hand distance disTouch=sqrt((x 12 x 11 ) 2 (y 12 y 11 ) 2 The zoom factor (zoomFactor = disTouch / disTouch0) is calculated by taking the ratio of the current hand distance to the initial hand distance. When two fingers are pinched together, the zoomFactor decreases, the distance between the eye point and the observed object increases, and the viewing angle widens; when two fingers are spread apart, the zoomFactor increases, the distance between the eye point and the observed object narrows, and the viewing angle shrinks. The calculated zoom factor is encapsulated into a zoom instruction, which instructs the simulator to adjust the viewing distance to zoom in or out of the image.

[0046] The above screen double-tap timing data includes the timestamp of each tap. The timestamp of the current tap (time) is obtained in the OnTouchDown function. Now First, calculate the time difference between double-clicks: timeDiff = timeNow If `timeDiff` is less than the preset time threshold `timeDiff` used for double-tap detection, the current touch is considered a double-tap operation. The double-tap flag `doubleClickFlag` is set to `True` and sent to the view switching control module. Simultaneously, `lastTapTime` is updated to `timeNow`. `lastTapTime` is the timestamp of the last tap. When the touch is released, in the `OnTouchUp` function, the double-tap flag `doubleClickFlag` is set to `False` and sent to the view switching control module. When double-tap timing data that meets the double-tap condition is detected, a view mode switching instruction is generated. This instruction is used to switch between multiple view modes, including at least a first-view mode and a third-view mode.

[0047] This invention employs a touchscreen control method, allowing instructors to operate directly on the touchscreen displaying the visual scene, eliminating the need to switch focus from the main display interface to a dedicated view control page, as is required in traditional solutions. Instructors can simultaneously monitor flight data, system status, and other information on the main display interface while controlling the view via touch gestures on the touchscreen, ensuring continuous monitoring and significantly improving operational efficiency. Different touch gestures correspond to different control commands, such as single-finger swipe to adjust the view direction, two-finger zoom to adjust the viewing distance, and double-tap to switch view modes. These operations are intuitive and convenient, allowing instructors to quickly master and apply them, reducing operation time and further enhancing efficiency. Double-tap operations enable switching between different viewpoints, including third-person and first-person perspectives with hidden models, providing comprehensive observation of the simulator's flight status while meeting the needs of flight instructors to observe the pilot's first-person view, thus improving the effectiveness and quality of simulation training.

[0048] In an optional embodiment, the calculation of the spatial parameters of the eye point in the target coordinate system based on the viewpoint direction adjustment command or viewpoint zoom command and the real-time state data of the observed carrier in S130 includes: S1301. When the viewing direction adjustment command is received, the horizontal deflection angle and vertical pitch angle of the eye point are updated according to the horizontal and vertical changes of the touch point contained in the command, and the spatial parameters are calculated based on the updated horizontal deflection angle, vertical pitch angle, current observation distance and real-time status data of the observed carrier. Specifically, upon receiving a viewpoint adjustment command, the system extracts the horizontal and vertical changes in the touchpoint position from the command. Using the carrier coordinate system as a reference, the original horizontal yaw angle and vertical pitch angle are added to the horizontal yaw and vertical changes obtained from the command, respectively, to obtain the updated horizontal yaw angle and updated vertical pitch angle. For example, if the initial horizontal yaw angle is angleH0 and the horizontal yaw amount in the command is deltaH, then the updated horizontal yaw angleH = angleH0. deltaX*PI / 180*RATIO; Similarly, the initial vertical pitch angle is angleV0, the longitudinal change in the command is deltaV, and the updated vertical pitch angle angleV=angleV0. deltaY*PI / 180*RATIO. Where PI is pi, RATIO is the rate of change adjustment coefficient, which controls the response speed during touchscreen control. angleH0 represents the horizontal deflection angle of the eye point relative to the observed carrier in the initial state. angleV0 represents the vertical pitch angle of the eye point relative to the observed carrier in the initial state.

[0049] By connecting to the relevant data interface in the simulator, real-time status data of the observed vehicle can be obtained. This data includes the vehicle's current position (longitude, latitude, altitude) and current attitude (pitch angle, roll angle, heading angle) in the target coordinate system. For example, through the simulator's data output interface, the aircraft's current latitude and longitude coordinates, as well as its pitch, roll, and heading angles, can be obtained in real time.

[0050] Based on the updated horizontal deflection angle (angleH), the updated vertical pitch angle (angleV), the current observation distance, and the real-time status data of the observed vehicle, spatial parameters are calculated. The specific steps are as follows: First, using the conversion formula from spherical coordinates to rectangular coordinates, the updated horizontal deflection angle, vertical pitch angle, and current observation distance (radiusDis) are used as input to calculate the absolute deviation position data (diffX, diffY, diffZ) of the eye point in the vehicle coordinate system. The conversion formula from spherical coordinates to rectangular coordinates is: diffX= radiusDis*cos(angleV)*cos(angleH); diffY=radiusDis*cos(angleV)*sin(angleH); diffZ= radiusDis*sin(angleV).

[0051] Then, along with the real-time status data of the observed vehicle, the absolute deviation position data (diffX, diffY, diffZ) are transformed into the absolute position (longitude, latitude, altitude) of the eye point in the target coordinate system through coordinate system transformation, thus obtaining the position parameters. The attitude parameters (heading, pitch) of the eye point are determined by the updated horizontal yaw angle, the updated vertical pitch angle, and the current attitude of the observed vehicle. For example, the heading angle of the eye point in the target coordinate system is determined by combining the real-time heading angle of the observed vehicle with the updated horizontal yaw angle.

[0052] S1302. When the view zoom command is received, the observation distance between the eye point and the observed carrier is updated according to the view zoom factor contained in the command, and the spatial parameters are calculated based on the current horizontal yaw angle, vertical pitch angle, updated observation distance and real-time status data of the observed carrier.

[0053] Upon receiving a zoom command, the zoom factor is extracted. This zoom factor is used to update the observation distance between the eyepoint and the observed carrier. A zoom factor greater than 1 indicates magnification (closer distance), while a zoom factor less than 1 indicates zoom reduction (greater distance). The updated observation distance, radiusDis = radiusDis0 / zoomFactor, remains unchanged. Here, radiusDis0 is the initial distance; at the end of each distance change, the current radiusDis is assigned to radiusDis0 as the initial distance value for the next change. The state variables at this point are: the current horizontal yaw angle, the current vertical pitch angle, and the updated observation distance.

[0054] Similarly, by connecting to the relevant data interface in the simulator, real-time status data of the observed vehicle is obtained, including the vehicle's real-time position (including longitude, latitude, and altitude) and real-time attitude (including pitch angle, roll angle, and yaw angle) in the geodetic coordinate system. Based on the current horizontal deflection angle, vertical pitch angle, updated observation distance, and the real-time status data of the observed vehicle, spatial parameters are calculated. The calculation steps are similar to those when receiving the viewpoint direction adjustment command: first, the position changes of the vehicle relative to the third-view model along the X, Y, and Z axes in the vehicle coordinate system are calculated; then, the position changes and attitude information are input into the vehicle-geometry coordinate system transformation function to finally obtain the spatial parameters of the eye point in the geodetic coordinate system, such as longitude, latitude, altitude, yaw angle, pitch angle, and roll angle.

[0055] This invention achieves precise adjustment of the simulator's viewpoint direction by accurately updating the horizontal yaw angle and vertical pitch angle based on viewpoint direction adjustment commands and calculating spatial parameters using real-time status data of the observed platform. Instructors can precisely control the orientation and pitch changes of the viewpoint through single-finger swipes and other operations, thereby observing various scenes and details in the simulator more clearly and improving the effectiveness and quality of simulation training. Accurately updating the observation distance based on viewpoint zoom commands and calculating corresponding spatial parameters enables precise zooming of the simulator's viewpoint. Instructors can precisely control the viewing distance through pinching or spreading two fingers, allowing them to zoom in to observe details or zoom out to observe the overall situation, meeting the observation needs of different scenarios.

[0056] In an optional embodiment, the touch data processing module processes the touch input to obtain information about the eye point in the carrier coordinate system. Specifically, this includes the absolute deviation position data of the eye point in the carrier coordinate system, represented by diffX, diffY, and diffZ, where these three values ​​represent the offset of the eye point along the three coordinate axes of the carrier coordinate system. Simultaneously, it obtains the orientation radian information in the horizontal and vertical directions, namely the updated horizontal deflection angle H and the updated vertical pitch angle V. The real-time state data of the observed carrier includes the current position and current attitude of the observed carrier in the geodetic coordinate system, where the target coordinate system is the geodetic coordinate system. The calculation of the spatial parameters in S1301 above, based on the updated horizontal deflection angle, vertical pitch angle, current observation distance, and real-time status data of the observed vehicle, includes: S13011. Based on the horizontal deflection angle, vertical pitch angle, and observation distance, calculate the absolute deviation position data of the eye point in the carrier coordinate system with the observed carrier as the origin.

[0057] S13012. Based on the absolute deviation position data and the current position and attitude of the observed carrier in the geodetic coordinate system, the absolute coordinates of the eye point in the geodetic coordinate system are obtained through coordinate system transformation, and used as the position parameter in the spatial parameters.

[0058] S13013. Based on the horizontal deflection angle and the real-time heading angle of the observed vehicle, determine the heading angle of the eye point; and based on the vertical pitch angle, determine the pitch angle of the eye point, and use the heading angle and pitch angle as attitude parameters in the spatial parameters.

[0059] Specifically, the touch data processing module processes the touch input to obtain key information about the observation point in the carrier coordinate system. This includes the absolute deviation of the eye point in the carrier coordinate system, represented by diffX, diffY, and diffZ, which represent the offset of the eye point along the three coordinate axes of the carrier coordinate system. It also obtains the updated horizontal deflection angle (angleH) and the updated vertical pitch angle (angleV). The information obtained by the touch data processing module is then input as parameters into the carrier-to-geocentric coordinate system transformation function CalBodyPointPos2LLA. This function converts the absolute deviation data in the carrier coordinate system into longitude, latitude, altitude, pitch angle, roll angle, and yaw angle data of the eye point in the geocentric coordinate system.

[0060] vPosLLASet=CalBodyPointPos2LLA(OriginLLA,OriginPosture,vCgPos,DisplaceRelative) The CalBodyPointPos2LLA function, a transformation function between the carrier and geodetic coordinate systems, uses data containers containing three floating-point numbers: x, y, and z. The function inputs include OriginLLA, OriginPosture, vCgPos, and DisplaceRelative.

[0061] OriginLLA represents the current position of the observed vehicle in the geodetic coordinate system, expressed in longitude, latitude, and altitude. Longitude indicates the vehicle's position in the east-west direction, latitude indicates the vehicle's position in the north-south direction, and altitude indicates the vehicle's vertical distance relative to the geodetic reference surface.

[0062] OriginPosture represents the current attitude of the observed vehicle, including the current pitch angle OriginPosture.x, the current roll angle OriginPosture.y, and the current heading angle OriginPosture.z. This attitude information describes the rotational relationship of the vehicle's coordinate system relative to the Earth-Centered, Earth-Fixed (ECEF) coordinate system. OriginPosture.x and OriginPosture.y are set to 0, while OriginPosture.z represents the current heading angle, i.e., the angle of rotation of the observed vehicle about its vertical axis.

[0063] vCgPos represents the coordinates of the center point of the observed carrier in the carrier coordinate system. vCgPos.x, vCgPos.y, and vCgPos.z represent the coordinates of the center point along the X, Y, and Z axes, respectively. When vCgPos.x, vCgPos.y, and vCgPos.z are all 0, it indicates that the calculation is performed with the center of the carrier itself as the origin of the coordinate system.

[0064] DisplaceRelative is the absolute offset position data of the eye point in the carrier coordinate system, that is, the absolute offset position data of the eye point in the carrier coordinate system (diffX, diffY, diffZ).

[0065] The function output is vPosLLASet, which is the calculated absolute coordinates of the eye point in the geodetic coordinate system, including longitude, latitude, and altitude information.

[0066] The process of determining the position parameters is as follows: First, the function calculates the direction cosine matrix based on OriginPosture. The direction cosine matrix describes the rotation relationship between the carrier coordinate system and the ECEF coordinate system, and can be used to transform the position point from the carrier coordinate system to the Earth coordinate system. Using the calculated direction cosine matrix, the absolute offset position data DisplaceRelative of the eye point in the carrier coordinate system is transformed to the Earth coordinate system. Combined with the current position OriginLLA of the observed carrier in the geodetic coordinate system, the geodetic datum model (WGS84) is used to transform the position point from the Earth coordinate system to the geodetic coordinate system, thereby determining the absolute coordinates of the eye point in the geodetic coordinate system, i.e., the aforementioned position parameters.

[0067] The attitude parameters, including the heading angle, pitch angle, and roll angle, are determined as follows: The eye point's heading angle in the geodetic coordinate system is the difference between the current heading angle OriginPosture.z and the calculated updated horizontal deflection angleH, converted to degrees. The updated horizontal deflection angleH is the horizontal orientation in radians obtained from touch data processing. After converting it to an angle, the difference is calculated with the target heading to obtain the eye point's heading angle in the geodetic coordinate system.

[0068] The eye point's pitch angle in the geodetic coordinate system is the negative value of the updated vertical pitch angle V after conversion to degrees. The updated vertical pitch angle V is the vertical direction in radians obtained from touch data processing, converted to degrees and then negative, which is used as the eye point's pitch angle in the geodetic coordinate system.

[0069] The roll angle of the eye point in the geodetic coordinate system is 0.

[0070] Through the above calculation process, the absolute coordinates of the eye point in the geodetic coordinate system can be accurately determined, achieving precise spatial positioning of the observer's location. Determining the eye point's heading and pitch angles allows for an accurate description of its attitude.

[0071] It can process real-time status data of the observed vehicle, as well as updated horizontal deflection angle, vertical pitch angle, and observation distance, adapting to the dynamic changes of both the vehicle and the observer. Regardless of how the observed vehicle moves or changes its posture, or how the observer adjusts their viewpoint and distance, it can calculate accurate spatial parameters in a timely manner, ensuring real-time performance and accuracy.

[0072] In an optional embodiment, the switching between multiple view modes, including at least a first view mode and a third view mode, in response to the view mode switching command described in S140 above includes: S1401. When switching to the first perspective mode, hide the third perspective model, stop updating the spatial parameters according to the touch data, and lock the eye point parameters to the real-time eye point parameters of the observed carrier obtained from the simulator.

[0073] Upon receiving the command to switch to first-person perspective mode, the update logic of the interface rendering layer is immediately triggered, setting the visualization control parameters of the third-person perspective model to invisible (false), thus hiding the third-person perspective model. Hiding the third-person perspective model reduces interference from interface elements, allowing the user to focus on the immersive experience of the first-person perspective. It should be noted that the observed vehicle in this invention refers to moving objects such as airplanes and vehicles being tracked and calculated in the simulator. The third-person perspective model refers to a 3D model that the user can see on the screen, used to display the overall appearance of the vehicle or its surrounding environment, generated by computer graphics rendering based on the real-time status data of the observed vehicle in the visual system.

[0074] The system terminates the listening and processing of touch events. Specifically, it removes the touch event listener and stops calling the spatial parameter update function. This ensures that user actions in first-person view mode do not unexpectedly change the viewing angle, maintaining the stability of real-time eye-point parameters. The system obtains the real-time eye-point parameters of the observed vehicle from the simulator and directly assigns them to the eye-point parameters. This process is implemented through a data interface, ensuring real-time synchronization between the eye-point and the vehicle's movement, eliminating latency. Taking an aircraft as an example, the eye-point parameters (including position and attitude parameters) are directly taken from the real-time eye-point parameters (including real-time position and attitude parameters) calculated by the simulator. In first-person view mode, single-finger horizontal and vertical touch angle adjustment and two-finger open / pinch angle adjustment operations no longer take effect, and the view is completely consistent with the cockpit's main view.

[0075] S1402. When switching to the third-view mode, the third-view model is displayed, the spatial parameters are updated according to the touch data, and the updated spatial parameters are used as the eye point parameters.

[0076] When switching from first-person to third-person perspective, the visualization control parameters of the third-person model are set to visible (true). The third-person model is reloaded or activated and rendered to the specified area of ​​the interface. Displaying the third-person model provides a global perspective, helping users understand the relationship between the vehicle and its environment.

[0077] Re-register the touch event listener and restore the spatial parameter update logic. Assign the updated spatial parameters directly to the eye point parameters. Use the spatial parameters calculated in real-time in steps S110-S140 above to respond to single-finger horizontal and vertical touch viewpoint direction adjustments and two-finger open / pinch viewpoint size adjustments. Send the model visualization control parameters and eye point parameters to the visual rendering engine, which then renders the response control parameters.

[0078] Assuming the observed vehicle is an airplane, a simulated flight is conducted. When the user switches to a first-person perspective, the interface only displays the view from the camera in front of the airplane, with the eye point parameter locked to the airplane's real-time orientation. As the user operates the airplane via remote control, the view changes synchronously with the airplane's attitude, providing a realistic flight experience. When the user switches to a third-person perspective, the interface displays a 3D model of the airplane and the surrounding terrain. The user can adjust the viewing angle via touch controls, observe the relative position of the airplane and obstacles, and plan obstacle avoidance paths.

[0079] This invention, by hiding the third-view model and locking the eyepoint parameters, allows the user's field of vision to be fully focused on the real-time perspective of the observed carrier, eliminating redundant information on the interface. After displaying the third-view model and restoring touch updates, the user can freely adjust the observation angle to fully understand the positional relationship between the carrier and its environment.

[0080] The real-time control device for the view of an aircraft simulator based on touch screen control provided by the present invention will be described below. The real-time control device for the view of an aircraft simulator based on touch screen control described below can be referred to in correspondence with the real-time control method for the view of an aircraft simulator based on touch screen control described above.

[0081] The real-time view control device for an aviation simulator based on touch screen control provided by this invention refers to... Figure 3 As shown, it includes: The touch data acquisition module 210 is used to acquire corresponding touch data in response to user touch operations on a touch screen displaying a visual scene. The touch data processing module 220 is used to parse the touch data into control commands corresponding to changes in viewing angle. Different touch gestures are parsed into different types of control commands, including viewing angle direction adjustment commands, viewing angle scaling commands, and viewing angle mode switching commands. Based on the viewing angle direction adjustment commands or viewing angle scaling commands and the real-time status data of the observed carrier, the spatial parameters of the eye point in the target coordinate system are calculated. The viewpoint switching control module 230 is configured to respond to the viewpoint mode switching command by switching between multiple viewpoint modes, including at least a first viewpoint mode and a third viewpoint mode; when switching to the first viewpoint mode, using eyepoint parameters associated with the observed carrier as eyepoint parameters; when switching to the third viewpoint mode, using the spatial parameters as eyepoint parameters; and driving the scene rendering engine based on the determined eyepoint parameters, so that the scene displayed on the touch screen is updated accordingly.

[0082] Figure 4 An example is a schematic diagram of the physical structure of an electronic device, such as... Figure 4 As shown, the electronic device may include a processor 310, a communications interface 320, a memory 330, and a communication bus 340. The processor 310, communications interface 320, and memory 330 communicate with each other via the communication bus 340. The processor 310 can call logical instructions from the memory 330 to execute a real-time control method based on a touchscreen-controlled flight simulator perspective.

[0083] Furthermore, the logical instructions in the aforementioned memory 330 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, essentially, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0084] On the other hand, the present invention also provides a computer program product, which includes a computer program that can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the real-time control method for the view of an aviation simulator based on touch screen control provided by the above methods.

[0085] In another aspect, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the real-time control method for the view of an aviation simulator based on touch screen control provided by the above methods.

[0086] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.

[0087] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.

[0088] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A real-time view control method for an aircraft simulator based on touchscreen control, characterized in that, include: In response to user touch operations on a touchscreen displaying a visual scene, acquire the corresponding touch data; The touch data is parsed into control commands corresponding to changes in viewing angle. Different touch gestures are parsed into different types of control commands, including viewing angle adjustment commands, viewing angle zoom commands, and viewing angle mode switching commands. Based on the aforementioned viewpoint direction adjustment command or viewpoint zoom command, and the real-time status data of the observed carrier, the spatial parameters of the eye point in the target coordinate system are calculated. In response to the viewpoint mode switching command, switching is performed between multiple viewpoint modes, including at least a first viewpoint mode and a third viewpoint mode; when switching to the first viewpoint mode, the eyepoint parameter associated with the observed carrier is used as the eyepoint parameter; when switching to the third viewpoint mode, the spatial parameter is used as the eyepoint parameter. The visual rendering engine is driven by the determined eye point parameters, so that the visual scene displayed on the touch screen is updated accordingly. The calculation of the spatial parameters of the eye point in the target coordinate system based on the viewpoint direction adjustment command or viewpoint zoom command and the real-time state data of the observed carrier includes: When the viewing direction adjustment command is received, the horizontal deflection angle and vertical pitch angle of the eye point are updated according to the horizontal and vertical changes of the touch point contained in the command, and the spatial parameters are calculated based on the updated horizontal deflection angle, vertical pitch angle, current observation distance and real-time status data of the observed carrier. When the view zoom command is received, the observation distance between the eye point and the observed vehicle is updated according to the view zoom factor contained in the command, and the spatial parameters are calculated based on the current horizontal yaw angle, vertical pitch angle, updated observation distance and real-time status data of the observed vehicle. The real-time status data of the observed carrier includes the current position and current attitude of the observed carrier in the geodetic coordinate system, and the target coordinate system is the geodetic coordinate system; The calculation of the spatial parameters based on the updated horizontal deflection angle, vertical pitch angle, current observation distance, and real-time status data of the observed vehicle includes: Based on the horizontal deflection angle, vertical pitch angle and observation distance, calculate the absolute deviation position data of the eye point in the carrier coordinate system with the observed carrier as the origin; Based on the absolute deviation position data and the current position and attitude of the observed carrier in the geodetic coordinate system, the absolute coordinates of the eye point in the geodetic coordinate system are obtained through coordinate system transformation, and used as the position parameter in the spatial parameters; Based on the horizontal yaw angle and the real-time heading angle of the observed vehicle, the heading angle of the eye point is determined; and based on the vertical pitch angle, the pitch angle of the eye point is determined, and the heading angle and pitch angle are used as attitude parameters in the spatial parameters.

2. The real-time view control method for an aviation simulator based on touchscreen control according to claim 1, characterized in that, The touch data includes single-finger movement trajectory data, multi-finger touch gesture data, and screen double-tap timing data. The step of parsing the touch data into control commands corresponding to changes in viewing angle includes: The single-finger movement trajectory data is parsed into the view direction adjustment command, which includes the horizontal and vertical changes of the touch point calculated based on the movement trajectory. The multi-finger touch gesture data is parsed into the view zoom instruction, which includes a view zoom factor calculated based on the change in distance between the multi-finger gestures. The screen double-click timing data is parsed into the view mode switching command.

3. The real-time view control method for an aviation simulator based on touchscreen control according to claim 1, characterized in that, The switching between multiple view modes, including at least a first view mode and a third view mode, in response to the view mode switching command includes: When switching to the first perspective mode, the third perspective model is hidden, the spatial parameters are stopped from being updated based on the touch data, and the eye point parameters are locked to the real-time eye point parameters of the observed carrier obtained from the simulator. When switching to the third-view mode, the third-view model is displayed, the spatial parameters are updated according to the touch data, and the updated spatial parameters are used as the eye point parameters.

4. The real-time view control method for an aviation simulator based on touchscreen control according to claim 1, characterized in that, The view mode switching command is triggered by a double-click operation on the screen; The method for determining a double-tap operation includes: recording the timestamps of two consecutive touch clicks; if the time difference between the timestamps of the two clicks is less than a preset time threshold, it is determined to be a double-tap operation, and the view mode switching command is generated.

5. A real-time view control device for an aviation simulator based on touchscreen control, characterized in that, The device is used to implement the real-time view control method for an aviation simulator based on touch screen control as described in any one of claims 1-4, the device comprising: The touch data acquisition module is used to respond to user touch operations on the touch screen displaying the visual scene and acquire the corresponding touch data. The touch data processing module is used to parse the touch data into control commands corresponding to changes in viewing angle. Different touch gestures are parsed into different types of control commands, including viewing angle direction adjustment commands, viewing angle scaling commands, and viewing angle mode switching commands. Based on the viewing angle direction adjustment commands or viewing angle scaling commands and the real-time status data of the observed carrier, the spatial parameters of the eye point in the target coordinate system are calculated. A perspective switching control module is configured to respond to the perspective mode switching command by switching between multiple perspective modes, including at least a first perspective mode and a third perspective mode; when switching to the first perspective mode, eye point parameters associated with the observed carrier are used as eye point parameters; when switching to the third perspective mode, the spatial parameters are used as eye point parameters; and, based on the determined eye point parameters, drive the scene rendering engine so that the scene displayed on the touch screen is updated accordingly.

6. An electronic device comprising a memory, a processor, and a computer program stored in the memory and running on the processor, characterized in that, When the processor executes the computer program, it implements the real-time view control method for an aviation simulator based on touch screen control as described in any one of claims 1 to 4.

7. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the real-time view control method for an aviation simulator based on touch screen control as described in any one of claims 1 to 4.

8. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by the processor, it implements the real-time view control method for an aviation simulator based on touch screen control as described in any one of claims 1 to 4.

Citation Information

Patent Citations

  • Real-time control method and device for visual angle of aviation simulator based on mouse control

    CN117311562A

  • Multi-terminal scene synchronization control method and device, equipment and medium

    CN120455639A