A Maneuvering Plotting Method, Device, Equipment and Medium Based on Electronic Ship Handling Diagram

Through the mobile drawing calculation method based on electronic ship operation diagrams, the problem that traditional paper ship operation diagrams cannot display time-related information and are difficult to ensure real-time and accuracy is solved, and an efficient, accurate and flexible mobile drawing calculation process is achieved, reducing costs and supporting multi-scene applications.

CN119722853BActive Publication Date: 2025-07-01CHINA STATE SHIPBUILDING CORP NO 707 RES INST
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202510238512.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-03-03
Publication Date
2025-07-01
Estimated Expiration
2045-03-03

AI Technical Summary

Technical Problem

The traditional mobile drawing calculation method is based on paper ship operation diagrams, which cannot display time-related information, and is costly and difficult to recycle, making calculation accuracy and real-time difficult to guarantee.

Method used

Using a mobile drawing calculation method based on electronic ship operation diagrams, by creating a mobile drawing calculation page for electronic ship operation diagrams, generating drawing elements and obtaining calculation parameter values ​​in response to user operations, to realize the calculation and display of the mobile drawing calculation results.

Benefits of technology

It improves computing efficiency and accuracy, reduces costs, supports repeated use, adjustable speed and distance scale, is suitable for multi-scene drawing, flexible operation, and enhances interactive experience and drawing accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119722853B_ABST
    Figure CN119722853B_ABST
Patent Text Reader

Abstract

The present invention discloses a maneuvering plotting method, device, equipment and medium based on an electronic ship handling chart. The method includes: responding to a maneuvering plotting request sent by a user, creating an electronic ship handling chart maneuvering plotting page; determining drawing information matching the target maneuvering mode according to the target maneuvering mode selected by the user, and obtaining the speed ratio and distance ratio selected by the user; when the user performs maneuvering plotting in the drawing mode, responding to a click operation of the user on the mouse, generating a current drawing element in the electronic ship handling chart according to the drawing information, the current mouse position, the speed ratio and the distance ratio, and obtaining a calculation parameter value corresponding to the current drawing element; responding to a calculation request sent by the user, generating a maneuvering plotting result according to the obtained calculation parameter values and the drawing information. By adopting the above technical solution, the electronicization of the ship handling chart is realized, the calculation efficiency and accuracy are improved, the use difficulty is low, it is reusable and the cost is low.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of ship electronic technology, and particularly to a maneuvering calculation method, device, equipment and medium based on an electronic ship handling chart. Background Art

[0002] Ship maneuvering refers to the movement carried out to occupy or change the position relative to the target according to the mission requirements. Maneuvering calculation requires mariners to quickly give result information such as maneuvering course and maneuvering time based on the movement parameters of the own ship and the target ship.

[0003] Traditional maneuvering calculation methods are generally based on paper ship handling charts, and mariners manually draw geometric figures for solution. Different paper ship handling charts correspond to different scales, and a paper ship handling chart with an appropriate scale needs to be selected according to the ship speed, voyage and distance during the calculation.

[0004] Paper ship handling charts cannot be recycled, and the cost is relatively high. Moreover, the maneuvering calculation based on paper ship handling charts can only display the positional relationship between ships, but cannot display time-related information. The calculation time, accuracy and calculation precision are greatly affected by the calculation level of mariners and weather conditions, etc., and it is difficult to meet the needs of real-time duty and training. Summary of the Invention

[0005] The present invention provides a maneuvering calculation method, device, equipment and medium based on an electronic ship handling chart, realizing the electronicization of the ship handling chart, improving the calculation efficiency and accuracy, having low usage difficulty, being reusable and having a relatively low cost.

[0006] According to an aspect of the present invention, a maneuvering calculation method based on an electronic ship handling chart is provided, including:

[0007] Responding to a maneuvering calculation request sent by a user, creating an electronic ship handling chart maneuvering calculation page for the user to operate on the electronic ship handling chart maneuvering calculation page and read the maneuvering calculation result;

[0008] Determining drawing information matching the target maneuvering mode according to the target maneuvering mode selected by the user, and obtaining the ship speed ratio and distance ratio selected by the user;

[0009] When the user performs maneuvering calculation in the drawing mode, in response to a click operation of the user on the mouse, generating a current drawing element in the electronic ship handling chart according to the drawing information, the current mouse position, the ship speed ratio and the distance ratio, and obtaining a calculation parameter value corresponding to the current drawing element;

[0010] Responding to a calculation request sent by the user, generating a maneuvering calculation result according to the obtained calculation parameter values and the drawing information.

[0011] According to another aspect of the present invention, there is provided a maneuvering plotting device based on an electronic ship handling chart, comprising:

[0012] A page creation module, configured to create an electronic ship handling chart maneuvering plotting page in response to a maneuvering plotting request sent by a user, for the user to operate in the electronic ship handling chart maneuvering plotting page and read the maneuvering plotting result;

[0013] An information acquisition module, configured to determine drawing information matching a target maneuvering mode according to the target maneuvering mode selected by the user, and acquire the speed ratio and distance ratio selected by the user;

[0014] A drawing element processing module, configured to, when the user performs maneuvering plotting in a drawing mode, in response to a click operation of the user on the mouse, generate a current drawing element in the electronic ship handling chart according to the drawing information, the current mouse position, the speed ratio, and the distance ratio, and acquire a calculation parameter value corresponding to the current drawing element;

[0015] A plotting result generation module, configured to generate a maneuvering plotting result in response to a calculation request sent by the user according to the acquired calculation parameter values and the drawing information.

[0016] According to another aspect of the present invention, there is provided an electronic device, the electronic device comprising:

[0017] At least one processor; and

[0018] A memory communicatively connected to the at least one processor; wherein,

[0019] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the maneuvering plotting method based on an electronic ship handling chart according to any embodiment of the present invention.

[0020] According to another aspect of the present invention, there is provided a computer-readable storage medium storing computer instructions for causing a processor to implement the maneuvering plotting method based on an electronic ship handling chart according to any embodiment of the present invention when executed.

[0021] The technical solution of the embodiment of the present invention creates an electronic ship maneuvering calculation page by responding to the maneuvering calculation request sent by the user, determines the drawing information matching the target maneuvering method according to the target maneuvering method selected by the user, and obtains the speed ratio and distance ratio selected by the user. When the user performs maneuvering calculation in the drawing mode, in response to the user's click operation on the mouse, according to the drawing information, the current mouse position, the speed ratio, and the distance ratio, a current drawing element is generated in the electronic ship maneuvering chart and the calculation parameter value corresponding to the current drawing element is obtained. In response to the calculation request sent by the user, according to the obtained calculation parameter values and the drawing information, the maneuvering calculation result is generated, which can realize the electronicization of the paper ship maneuvering chart, support repeated use, effectively save costs, the speed and distance scales are adjustable, suitable for multi-scenario calculations, with flexible operations, combining the advantages of drawing and solving based on the ship maneuvering chart and automatic calculation and solving according to the input. The two methods verify each other, which not only conforms to the usage habits of mariners, improves the interaction experience, but also improves the calculation accuracy and calculation efficiency, reduces the influence of human factors and environmental factors on the results, and can achieve rapid maneuvering response.

[0022] It should be understood that the content described in this part is not intended to identify the key or important features of the embodiments of the present invention, nor is it used to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following will briefly introduce the drawings required for the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present invention. For those of ordinary skill in the art, without creative efforts, other drawings can be obtained based on these drawings.

[0024] Figure 1 is a flowchart of a method for maneuvering calculation based on an electronic ship maneuvering chart according to Embodiment 1 of the present invention;

[0025] Figure 2 is a schematic diagram of an electronic ship maneuvering calculation page according to an embodiment of the present invention;

[0026] Figure 3 is a flowchart of another method for maneuvering calculation based on an electronic ship maneuvering chart according to Embodiment 2 of the present invention;

[0027] Figure 4 is a schematic structural diagram of a device for maneuvering calculation based on an electronic ship maneuvering chart according to Embodiment 3 of the present invention;

[0028] Figure 5It is a schematic structural diagram of an electronic device for implementing the maneuvering plotting method based on an electronic ship handling chart according to an embodiment of the present invention. Detailed implementation manners

[0029] In order to enable those skilled in the art to better understand the solution of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

[0030] It should be noted that the terms "first", "second", etc. in the description and claims of the present invention and the above drawings are used to distinguish similar objects, and do not necessarily need to be used to describe a specific order or sequence. It should be understood that such data can be interchanged under appropriate circumstances so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "comprising" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device comprising a series of steps or units does not necessarily have to be limited to those steps or units clearly listed, but may include other steps or units not clearly listed or inherent to these processes, methods, products or devices.

[0031] Embodiment 1

[0032] Figure 1 It is a flowchart of a maneuvering plotting method based on an electronic ship handling chart provided in Embodiment 1 of the present invention. This embodiment is applicable to the situation of providing a convenient and simple maneuvering plotting page for users and quickly and accurately obtaining the maneuvering plotting result according to the information input by the users. This method can be executed by a maneuvering plotting device based on an electronic ship handling chart. The maneuvering plotting device based on an electronic ship handling chart can be implemented in the form of hardware and / or software, and is generally configured in a computer or processor with data and graphics processing functions. As Figure 1 shown, the method includes:

[0033] S110. In response to a maneuvering plotting request sent by a user, create a maneuvering plotting page for the electronic ship handling chart, so that the user can operate on the maneuvering plotting page for the electronic ship handling chart and read the maneuvering plotting result.

[0034] Optionally, in practical applications, an electronic ship maneuvering calculation system can be built to achieve real-time interaction with users. The hardware environment of the electronic ship maneuvering calculation system can include a computer, a mouse, a keyboard, and a display. Among them, the software environment in the computer includes a computer operating system, a Qt graphics framework, and electronic ship maneuvering application function software.

[0035] Optionally, the Qt graphics framework is an application development framework used to implement two-dimensional graphics drawing. Based on the Qt graphics framework, an electronic ship maneuvering chart can be drawn in the electronic ship maneuvering application function software.

[0036] Optionally, by operating the electronic ship maneuvering application function software, the user can draw an electronic ship maneuvering chart and obtain the calculation result.

[0037] Among them, creating an electronic ship maneuvering calculation page can include:

[0038] Drawing the base map of the electronic ship maneuvering chart and creating multiple functional areas;

[0039] Among them, the functional areas include a maneuvering mode selection area, a step prompt area, a parameter information area, a calculation result area, and a scale setting area.

[0040] Optionally, in the electronic ship maneuvering application function software, an electronic ship maneuvering calculation page can be displayed. The electronic ship maneuvering calculation page includes an electronic ship maneuvering chart area and multiple functional areas. After responding to the maneuvering calculation request sent by the user, the base map of the electronic ship maneuvering chart is drawn at the electronic ship maneuvering chart area in the electronic ship maneuvering calculation page. The base map of the electronic ship maneuvering chart is an electronic ship maneuvering chart without any drawing elements.

[0041] Figure 2 It is a schematic diagram of an optional electronic ship maneuvering calculation page. As Figure 2 shown, the left part is the electronic ship maneuvering chart. A scale setting area is provided in the upper right corner of the electronic ship maneuvering chart area. The scale setting area is used to set the speed scale and the distance scale. The right part includes a maneuvering mode selection area, a step prompt area, a parameter information area, a calculation result area, and a mode switching area.

[0042] Optionally, the maneuvering mode selection area includes multiple preset maneuvering mode options. The user can select the target maneuvering mode that needs to be calculated currently by clicking on the maneuvering mode option.

[0043] Optionally, for different maneuvering modes, the final calculation results to be obtained may be different, and the calculation parameters required may also be different. Figure 2The parameter information area and the calculation result area only display the calculation parameters and calculation results to be obtained under the occupation position maneuver mode; different maneuver modes have preset action sequences, and the user needs to draw the electronic ship handling chart or fill in the calculation parameters according to the preset action sequences. Before each user operation, a prompt statement for this step will be generated and displayed in the step prompt area.

[0044] Optionally, the function area may further include a mode switching area. After creating the electronic ship handling chart maneuver calculation page, the user can select manual drawing or parameter input in the mode switching area. If the user selects manual drawing, the maneuver calculation is performed in the drawing mode. If the user selects parameter input, the maneuver calculation is performed in the parameter input mode.

[0045] Optionally, in the drawing mode, the user can perform mouse drawing operations on the electronic ship handling chart, and the calculation parameters corresponding to the drawing elements generated in each step will be correspondingly displayed in the parameter information area; in the parameter input mode, the user can directly input the calculation parameters in the parameter information area, and the drawing elements corresponding to the calculation parameters will be automatically displayed in the electronic ship handling chart.

[0046] S120. According to the target maneuver mode selected by the user, determine the drawing information matching the target maneuver mode, and obtain the speed ratio and distance ratio selected by the user.

[0047] Optionally, the maneuver modes may include occupation position, approach to encounter, shortest time to approach a predetermined distance, shortest time to reach a predetermined distance, avoid high-speed ships to maximize the shortest distance, avoid low-speed ships beyond a predetermined distance, and search on the possible navigation direction of the enemy, etc., but are not limited to the above maneuver modes.

[0048] Optionally, since different maneuver modes have preset different action sequences, the purpose is to draw the electronic ship handling chart or obtain calculation parameters in sequence. Therefore, the drawing information may include calculation parameter information, calculation result information, and drawing element information;

[0049] Among them, the calculation parameter information includes multiple groups of calculation parameters and the acquisition order between each group of calculation parameters; the drawing element information includes multiple elements to be drawn and the corresponding relationship between each element to be drawn and each group of calculation parameters.

[0050] It can be understood that during the process of drawing the electronic maneuvering board chart for the target maneuvering mode, the user may need to draw multiple points representing different ships or the connecting lines between points. These points or lines can be regarded as elements to be drawn. The data in a calculation parameter group can be represented by a point in the electronic maneuvering board chart. For example, when the parameters to be obtained are the target ship's course and speed, the target ship's course can be selected first according to the angle information outside the electronic maneuvering board chart. The current selected position of the mouse can be used as point A. Then, according to the drawing element information, the OA ray is generated. The user further slides the mouse on the OA ray. After selecting the target ship's speed, the position of point A is determined, and the OA vector line segment is generated. The OA vector line segment is an element to be drawn and to be obtained. In this example, the target ship's course and speed are a calculation parameter group, which is only for illustrative purposes here.

[0051] Optionally, the calculation result information may include the mathematical model specified by the target maneuvering mode and the calculation results to be obtained for the target maneuvering mode. By calculating according to the calculation parameters and the specified mathematical model, the calculation results can be obtained.

[0052] Optionally, the speed ratio and the distance ratio can be determined by dragging the adjustment bar. After each drag of the adjustment bar, the current ratio value can be directly displayed behind the adjustment bar, and it can also be set by directly inputting the ratio value.

[0053] S130. When the user performs maneuvering calculations in the drawing mode, in response to the user's click operation on the mouse, according to the drawing information, the current mouse position, the speed ratio, and the distance ratio, a current drawing element is generated in the electronic maneuvering board chart, and the calculation parameter value corresponding to the current drawing element is obtained.

[0054] Optionally, when the user performs maneuvering calculations in the drawing mode, before each element to be drawn is drawn, the step prompt area will give a prompt statement corresponding to the element to be drawn. For example, if the selected target maneuvering mode is to occupy a formation, before the first drawing, it can be displayed as "The current mode is to occupy a formation. First, please input the target ship's course and speed!", which is only for illustrative purposes here.

[0055] Furthermore, after the user obtains the prompt, the drawing of the current step can be carried out. Due to the particularity of the electronic maneuvering board chart, the position of each point cannot be determined by determining the values of the x-axis and y-axis. Instead, the azimuth needs to be determined first, and then information such as speed or distance is determined based on concentric circles. Therefore, different parameters need to be determined in a certain order during the drawing process.

[0056] Further, to facilitate the user to clarify the calculation parameters represented by the current mouse position and the specific calculation parameter values, the calculation parameter to be selected currently can be determined according to the user's current drawing progress, and the calculation parameter value corresponding to the currently selected calculation parameter can be determined according to the mouse position, and the calculation parameter value can be displayed near the cursor in real time to give a clear prompt to the user, which can help the user draw the electronic ship handling diagram quickly and accurately.

[0057] Optionally, the coordinates involved in the Qt graphics framework include view coordinates and scene coordinates. The view coordinates are the physical coordinates of the window interface, with the unit of pixel. The origin (0, 0) is in the upper left corner, the positive direction of the x-axis is to the right, and the positive direction of the y-axis is downward; the scene coordinates can be used to locate and manage graphic items in the graphic scene. The unit of the scene coordinates is pixel, with the center of the scene as the origin (0, 0), the positive direction of the x-axis is to the right, and the positive direction of the y-axis is downward.

[0058] Optionally, during the process of the user using the mouse for drawing, all mouse events use the view coordinates. To determine the parameter value pointed to by the user's mouse currently, it is necessary to first convert the current mouse position in the view coordinates to the scene coordinate system, and then determine the ship handling diagram speed coordinates and the ship handling diagram distance coordinates respectively according to the mouse position in the scene coordinate system, or determine the azimuth angle value, that is, the course angle, according to the mouse position in the scene coordinate system.

[0059] Optionally, when the current mouse position in the view coordinate system is P st (X st , Y st ), the mouse position P cj (X cj , Y cj ) in the scene coordinate system can be calculated through the following formula:

[0060] X cj= X st -(x1 / 2); Y cj= Y st -(y1 / 2);

[0061] where x1 and y1 are the pixel values of the preset ship handling diagram display area respectively.

[0062] Further, the mouse position P cj (X cj , Y cj ) in the scene coordinate system can be converted into the ship handling diagram speed coordinate P speed (X speed , Y speed ) and the ship handling diagram distance coordinate P dis (X dis , Y dis ) through the following formula:

[0063] X speed= X cj ×SpeedScale÷UnitPix; Y speed= Y cj ×SpeedScale÷UnitPix×(-1);

[0064] X dis= X cj ×DistanceScale÷UnitPix; Y dis= Y cj ×DistanceScale÷UnitPix×(-1);

[0065] Among them, SpeedScale is the speed ratio, DistanceScale is the distance ratio, and UnitPix is the pixel of the circle pitch, all of which are set values of the user.

[0066] Furthermore, during the process of calculating parameter acquisition and drawing elements, it is also necessary to determine the ship's heading. From the user's perspective, the approximate heading can be determined according to the angle value marked on the electronic ship handling chart. During the process of the user selecting the heading, it is necessary to convert the mouse position in the scene coordinate system into an azimuth angle value to obtain the azimuth angle value, so as to provide real-time prompts for the user using the azimuth angle value.

[0067] Specifically, the conversion formula between the mouse position in the scene coordinate system and the azimuth angle value θ is as follows:

[0068] Since the x-axis is positive to the right and the y-axis is positive downward in the scene coordinate system, if the mouse position in the scene coordinate system is in the first quadrant, that is, X cj > 0, Y cj < 0, the conversion formula is:

[0069] θ = 90 - (-1) × arctan(Y cj / X cj ) × m;

[0070] If the mouse position in the scene coordinate system is in the second quadrant, that is, X cj > 0, Y cj > 0, the conversion formula is:

[0071] θ = arctan(Y cj / X cj ) × m + 90;

[0072] If the mouse position in the scene coordinate system is in the third quadrant, that is, X cj < 0, Y cj > 0, the conversion formula is:

[0073] θ = 270 - (-1) × arctan(Y cj / X cj ) × m;

[0074] If the mouse position in the scene coordinate system is in the fourth quadrant, that is, X cj < 0, Y cj < 0, the conversion formula is:

[0075] θ = arctan(Y cj / X cj ) × m + 270;

[0076] Where m is the conversion value from radians to degrees and is a fixed value.

[0077] It can be understood that the above content illustrates how to determine the corresponding calculation parameters in the ship maneuvering chart according to the current mouse position in the view coordinates, which can not only achieve real-time parameter prompts when the user moves the mouse, but also determine the calculation parameter values corresponding to the drawn elements after the user completes drawing the elements.

[0078] Optionally, after determining the calculation parameter values corresponding to the drawn elements, fill the calculation parameter values into the corresponding filling area in the parameter information area, so that the user can intuitively confirm the calculation parameters again, which is convenient for the user to clarify the intermediate process of maneuvering calculation and conforms to the calculation habits of various mariners.

[0079] Wherein, after determining the drawing information matching the target maneuvering mode according to the target maneuvering mode selected by the user and obtaining the selected speed ratio and distance ratio of the user, it may further include:

[0080] When the user performs maneuvering calculation in the parameter input mode, whenever the user completes filling the target calculation parameter group in the parameter information area, draw the drawing element corresponding to the target calculation parameter group in the electronic ship maneuvering chart according to the calculation parameter values filled in the target parameter group.

[0081] Optionally, the maneuvering calculation method based on the electronic ship maneuvering chart also provides a parameter input mode. After the user selects the parameter input mode, the electronic ship maneuvering chart cannot be drawn. The user can input parameters one by one in the parameter information area. Whenever a group of calculation parameters is completed, the drawing element corresponding to the group of calculation parameters can be generated in the electronic ship maneuvering chart.

[0082] In an optional example, the course and speed of the target ship can be used as a group of calculation parameters. After the user completes inputting the course and speed of the target ship, a point corresponding to the target ship can be generated in the electronic ship maneuvering chart, and a connection line associated with the point can also be generated simultaneously.

[0083] It can be understood that in the drawing mode, the mouse position in the view coordinates needs to be first converted to the scene coordinate system, and then the coordinate position in the scene coordinate system is converted to the ship maneuvering chart coordinate system to determine the calculation parameter values. In the parameter input mode, the calculation parameters have been determined, and the point position in the ship maneuvering chart coordinate system can be determined. It is necessary to perform inverse calculation according to the above formula to determine the coordinate values corresponding to each drawing element in the scene coordinate system, so as to generate relevant drawing elements in the electronic ship maneuvering chart.

[0084] S140. In response to a calculation request sent by the user, generate a maneuvering calculation result according to the obtained calculation parameter values and the drawing information.

[0085] Optionally, after the user completes the drawing of the electronic ship maneuvering chart, at this time, all the parameters in the parameter information area on the electronic ship maneuvering chart maneuvering calculation page are filled in. The user can click the calculation option in the calculation result area, and then, according to the preset calculation formula and the obtained calculation parameters, calculate the calculation result.

[0086] The technical solution of the embodiment of the present invention creates an electronic ship maneuvering chart maneuvering calculation page in response to a maneuvering calculation request sent by the user, determines the drawing information matching the target maneuvering method according to the selected target maneuvering method by the user, and obtains the selected speed ratio and distance ratio by the user. When the user uses the drawing mode for maneuvering calculation, in response to the user's click operation on the mouse, according to the drawing information, the current mouse position, the speed ratio, and the distance ratio, generate the current drawing element in the electronic ship maneuvering chart and obtain the calculation parameter values corresponding to the current drawing element. In response to the calculation request sent by the user, generate a maneuvering calculation result according to the obtained calculation parameter values and the drawing information, which can realize the digitization of the paper ship maneuvering chart, support repeated use, effectively save costs, the speed and distance scales are adjustable, applicable to multi-scene calculations, with flexible operations, combining the advantages of the two calculation methods of solving based on the ship maneuvering chart drawing and automatic calculation according to the input. The two methods verify each other, which not only conforms to the usage habits of mariners, improves the interaction experience, but also improves the calculation accuracy and calculation efficiency, reduces the influence of human factors and environmental factors on the results, and can achieve rapid maneuvering response.

[0087] Embodiment 2

[0088] Figure 3 It is a flowchart of a maneuvering calculation method based on an electronic ship maneuvering chart provided by Embodiment 2 of the present invention. On the basis of the above embodiment, this embodiment specifically describes the maneuvering calculation method based on the electronic ship maneuvering chart. As Figure 3 shown, the method includes:

[0089] S210. In response to the maneuver calculation request sent by the user, create an electronic ship maneuvering chart maneuver calculation page for the user to operate on the electronic ship maneuvering chart maneuver calculation page and read the maneuver calculation results.

[0090] Optionally, after responding to the maneuver calculation request sent by the user, a ship maneuvering chart display area can be created on the electronic ship maneuvering chart maneuver calculation page, and the pixel values of the ship maneuvering chart display area can be set based on the Qt graphics framework to draw the base map of the electronic ship maneuvering chart.

[0091] In an optional example, the origin of the coordinate system of the ship maneuvering chart is the center of the selected area (0, 0). The horizontal axis (X-axis) represents distance, with the right direction being positive, and the vertical axis (Y-axis) represents speed, with the upward direction being positive. Ten concentric circles are drawn with the origin as the center, and the radii can be 49, 49×2, 49×3, 49×4, 49×5, 49×6, 49×7, 49×8, 49×9, and 49×10 respectively. On the X-axis, when the distance scale DisScale is 1:1, the correspondence between pixels and distance is that the first circle is 49 pixels, corresponding to 1 nautical mile, the second circle is 49×2 pixels, corresponding to 2 nautical miles, and so on. On the Y-axis, when the speed scale SpeedScale is 1:1, the correspondence between pixels and speed is that the first circle is 49 pixels, corresponding to 1 kn (knot), the second circle is 49×2 pixels, corresponding to 2 kn, and so on. The circle spacing represents the unit distance and unit speed. The circle spacing pixel UnitPix = 49. Among them, the radii of the concentric circles, the distance ratio, the speed ratio, the circle spacing pixels, etc. can all be adjusted adaptively.

[0092] It can be understood that the basic representations such as the concentric circles, X-axis, and Y-axis of the above ship maneuvering chart are all prior arts in the field of ship maneuvering charts. The form of the paper ship maneuvering chart is the same as that of the above base map of the electronic ship maneuvering chart. The basic principle of the electronic ship maneuvering chart will not be elaborated here. The advantage of the electronic ship maneuvering chart compared to the paper ship maneuvering chart is that the values represented by the concentric circles can be scaled by adjusting the distance ratio or speed ratio to achieve wide utilization in different usage scenarios.

[0093] S220. Determine the target maneuvering method according to the maneuvering method option selected by the user in the maneuvering method selection area, and determine the calculation parameter information, calculation result information, and drawing element information for this maneuver calculation according to the target maneuvering method.

[0094] Among them, the calculation parameter information includes multiple groups of calculation parameters and the acquisition order between each group of calculation parameters; the drawing element information includes multiple elements to be drawn and the corresponding relationship between each element to be drawn and each group of calculation parameters.

[0095] In an optional example, when the target maneuver mode selected by the user is to occupy a position, the calculation parameter groups corresponding to occupying the position are arranged in order as follows: Group 1: target ship heading, speed; Group 2: own ship bearing, distance; Group 3: occupying position bearing, distance; Group 4: occupying speed; The drawing element information may include: the element to be drawn corresponding to the parameter in Group 1 is point A and the vector line segment OA between the origin O and point A; the element to be drawn corresponding to Group 2 is point MO; the element to be drawn corresponding to Group 3 is point M1, and after determining M1, draw the vector line segment MO; the element to be drawn corresponding to Group 4 is point B, and after determining B, draw the vector line segment AB.

[0096] Optionally, after creating the electronic ship maneuver drawing calculation page, when the target maneuver mode selected by the user is obtained and the drawing mode is selected, clear the drawing content except the base map and give a prompt in the prompt area.

[0097] S230. Obtain the speed ratio and distance ratio selected by the user in the ratio setting area.

[0098] Among them, after determining the calculation parameter information, calculation result information, and drawing element information for this maneuver calculation, it may further include:

[0099] Generate a plurality of calculation parameter identifiers and parameter value filling areas respectively corresponding to each calculation parameter identifier in the parameter information area according to the calculation parameter information;

[0100] Generate at least one calculation result identifier and result value filling areas respectively corresponding to each calculation result identifier in the calculation result area according to the calculation result information.

[0101] S240. When the user performs maneuver calculation in the drawing mode, generate a prompt statement for indicating the next drawing operation according to the user's current drawing progress and drawing information, and display the prompt statement in the step prompt area.

[0102] Optionally, according to the user's current drawing progress and drawing information, it is possible to judge the content to be drawn in the next step. For example, if first entering the maneuver calculation of occupying a position, it is determined that the user's next drawing operation is to input the first set of calculation parameters or draw the drawing elements corresponding to the first set of calculation parameters. At this time, a prompt statement can be generated according to the first set of calculation parameters.

[0103] Continuing the previous example, when the target maneuver mode selected by the user is to occupy a position, after determining to enter the drawing mode or parameter input mode, first obtain the target ship heading and speed. At this time, generate a prompt statement "Currently in the occupying position mode, first please input the target ship heading and speed!", and display the prompt statement in the step prompt area.

[0104] S250. Determine the currently undetermined parameter according to the user's current drawing progress and drawing information, and generate a real-time drawing prompt according to the real-time position of the mouse and the currently undetermined parameter.

[0105] Optionally, when the user determines a point in the electronic ship maneuvering chart, two calculation parameters may be required to jointly determine it, and these two calculation parameters also have a certain acquisition order. Then, the next undetermined calculation parameter, that is, the currently undetermined parameter, can be determined according to the current drawing progress and a prompt can be given.

[0106] Continuing with the previous example, when drawing the target ship point A, if the user has not started drawing, determine the target ship's course according to the real-time mouse position and display the course value corresponding to the mouse position in real time at the cursor position of the mouse. If the user has already drawn the target ship's course, determine the target ship's speed according to the real-time mouse position and display the speed value corresponding to the mouse position in real time at the cursor position of the mouse.

[0107] Optionally, exact prompts are given for each drawing step, which can facilitate the user's memory. At the same time, the angle or distance corresponding to the current mouse position will be prompted according to the current step during each drawing, facilitating the user to draw accurately.

[0108] S260. In response to the user's click operation on the mouse, determine the currently to-be-drawn element according to the user's current drawing progress and drawing element information, and generate the currently drawn element in the electronic ship maneuvering chart according to the current mouse position and the currently to-be-drawn element.

[0109] S270. Determine the coordinate value of the mouse in the scene coordinate system according to the current mouse position and the preset pixel value in the graphic frame.

[0110] Among them, the current mouse position is the coordinate value of the mouse in the view coordinate system.

[0111] S280. Obtain the ship maneuvering chart speed coordinate, ship maneuvering chart distance coordinate or azimuth angle value in the ship maneuvering chart coordinate system respectively according to the coordinate value in the scene coordinate system, the speed ratio and the distance ratio, and determine the calculation parameter value corresponding to the currently drawn element according to the ship maneuvering chart speed coordinate, ship maneuvering chart distance coordinate or azimuth angle value.

[0112] Among them, after obtaining the calculation parameter value corresponding to the currently drawn element, it may further include:

[0113] Determine the target calculation parameter identifier corresponding to the calculation parameter value according to the currently drawn element and the drawing element information;

[0114] Determine the target parameter value filling area according to the determined target parameter identifier, and fill the calculated parameter value in the target parameter value filling area.

[0115] Continuing with the previous example, if the current drawing element is the target ship point A, the calculation parameter group corresponding to the target ship point A can be determined as group 1 according to the drawing element information. Furthermore, the target calculation parameter identifiers represented by the drawn point A can be determined as the target ship course and the target ship speed. Determine the target parameter value filling areas corresponding to the target ship course and the target ship speed in the parameter information area, and fill the calculated parameter values corresponding to point A into the target parameter value filling areas.

[0116] Optionally, every time a step is drawn, the input parameters are automatically filled in to facilitate further confirmation by the user.

[0117] S290. In response to the calculation request sent by the user, if it is determined that all parameter value filling areas in the parameter information area are filled, generate a maneuver calculation result according to the filled calculated parameter values and the calculation result information, and fill the maneuver calculation result into the corresponding result value filling area.

[0118] S2100. Draw a maneuver calculation result identifier in the electronic ship handling chart according to the maneuver calculation result.

[0119] Optionally, after obtaining the maneuver calculation result, the maneuver calculation result identifier corresponding to the calculation result can be determined according to the calculation result. For example, according to the maneuver calculation result, the maneuver course and the maneuver time can be determined. At this time, the maneuver course can be represented by a direction or an arrow and drawn in the electronic ship handling chart.

[0120] The technical solution of the embodiment of the present invention, by responding to the maneuver calculation request sent by the user, creates a maneuver calculation page for the electronic ship handling chart, determines the drawing information matching the target maneuver mode according to the selected target maneuver mode by the user, and obtains the selected speed ratio and distance ratio by the user. When the user performs maneuver calculation in the drawing mode, in response to the user's click operation on the mouse, according to the drawing information, the current mouse position, the speed ratio, and the distance ratio, generate the current drawing element in the electronic ship handling chart and obtain the calculated parameter value corresponding to the current drawing element. In response to the calculation request sent by the user, generate the maneuver calculation result according to the obtained calculated parameter values and the drawing information, can realize the electronicization of the paper ship handling chart, support repeated use, effectively save costs, the speed and distance scales are adjustable, applicable to multi-scenario calculations, the operation is flexible, combines the advantages of the two calculation methods of solving based on the ship handling chart drawing and automatic calculation according to the input. The two methods verify each other, not only conform to the usage habits of mariners, improve the interaction experience, but also improve the calculation accuracy and calculation efficiency, reduce the influence of human factors and environmental factors on the results, and can achieve fast maneuver response.

[0121] Specific application scenario

[0122] This specific application scenario aims to illustrate the maneuvering plotting method based on the electronic ship handling chart by taking the selection of the occupation position method in a maneuvering manner as an example.

[0123] Step 1: Drawing the base map of the electronic ship handling chart.

[0124] Create a display area for the ship handling chart and set the pixel size to (1042, 1042);

[0125] Select the center of the area as the origin (0, 0) for the ship handling chart coordinate system. The x-axis represents distance, with the right direction being positive, and the y-axis represents speed, with the upward direction being positive. Draw 10 concentric circles centered at the origin, with radii of 49, 49×2, 49×3, 49×4, 49×5, 49×6, 49×7, 49×8, 49×9, and 49×10 respectively. On the X-axis, when the distance scale disScale is 1:1, the corresponding relationship between pixels and distance is that the first circle has 49 pixels corresponding to 1 nautical mile, the second circle has 49×2 pixels corresponding to 2 nautical miles, and so on. On the Y-axis, when the speed scale speedScale is 1:1, the corresponding relationship between pixels and speed is that the first circle has 49 pixels corresponding to 1 kn, the second circle has 49×2 pixels corresponding to 2 kn, and so on. The circle spacing represents the unit distance and unit speed. The circle spacing pixel UnitPix = 49.

[0126] Step 2: Select the ship maneuvering method in the maneuvering mode area, select the occupation position, click to start drawing, clear the drawing content except for the base map, and enter the drawing mode. The prompt area gives a prompt: "Currently in the occupation position mode, please first enter the target ship's heading and speed!"

[0127] Step 3: Scale setting

[0128] Set the speed scale SpeedScale and distance scale DisScale according to information such as the current ship speed and target distance.

[0129] Step 4: Drawing event handling

[0130] At this time, the user can draw the target ship's heading and speed according to the target ship's motion parameters. When the mouse slides on the electronic ship handling chart, the mouse position prompts the angle of the current position. After the user selects the heading based on the angle value of the outermost circle of the ship handling chart, the OA ray is displayed. When the mouse is slid, the mouse position prompts the speed of the current position. After the user selects the speed, the OA vector line segment is displayed, and the drawing step reminder area in the lower left corner is updated ("Please continue to draw the bearing and distance of this ship!"), and at the same time, the target ship's heading and speed in the parameter input area are filled according to the heading and speed values drawn by the user;

[0131] Continue to plot the bearing and distance of our ship. The user selects the bearing according to the angle value on the outermost circle of the ship handling chart. Slide the mouse on the electronic ship handling chart, and the mouse position indicates the angle of the current position. After the user selects the bearing, the OM0 ray is displayed. Slide the mouse, and the mouse position indicates the distance of the current position. After the user selects the distance, the M0 point is displayed, and the drawing step reminder area in the lower left corner is updated ("Please continue to plot the occupied position bearing and distance!"), and at the same time, the target ship bearing and distance in the parameter input area are filled according to the bearing and distance values drawn by the user;

[0132] Continue to plot the bearing and distance of the newly occupied position. The user selects the bearing according to the angle value on the outermost circle of the ship handling chart. Slide the mouse on the electronic ship handling chart, and the mouse position indicates the angle of the current position. After the user selects the bearing, the OM1 ray is displayed. Slide the mouse, and the mouse position indicates the distance of the current position. After the user selects the distance, the M1 point is displayed, and the drawing step reminder area in the lower left corner is updated ("Please continue to plot the occupied speed!"), and at the same time, the parameter input area is filled according to the bearing and distance values of the occupied position drawn by the user;

[0133] Continue to plot the execution speed. Slide the mouse on the electronic ship handling chart, and the mouse position indicates the speed of the current position. After confirmation, draw the speed circle. The software automatically finds the position of the focus B of the speed circle and the parallel line, displays the B point, and displays the AB vector line; update the drawing step reminder area in the lower left corner ("Drawing completed!"), and at the same time, the parameter input area is filled according to the execution speed value drawn by the user.

[0134] Step Five: Calculate the Results

[0135] Click the calculation button. The software automatically calculates the results: maneuvering course and maneuvering time according to the input parameters: target ship course and speed, our ship bearing and distance, bearing and distance of the newly occupied position, execution speed, based on the occupied position mathematical formula, and displays the results in numerical form in the calculation result display area, where the maneuvering course can be intuitively compared with the results shown in the figure.

[0136] If the user is not used to the drawing method, they can directly enter the data in the parameter input area, click calculate, and directly obtain the calculation results. At the same time, the results are displayed in the form of a geometric result diagram on the electronic ship handling chart.

[0137] Step Six: After clicking the calculation button, automatically exit the drawing state.

[0138] Embodiment Three

[0139] Figure 4 This is a schematic structural diagram of a maneuvering plotting device based on an electronic ship handling chart provided by Embodiment Three of the present invention. As Figure 4As shown in the figure, the device includes: a page creation module 310, an information acquisition module 320, a drawing element processing module 330, and a calculation result generation module 340.

[0140] The page creation module 310 is used to create an electronic ship maneuvering calculation page in response to a ship maneuvering calculation request sent by the user, so that the user can operate on the electronic ship maneuvering calculation page and read the ship maneuvering calculation result.

[0141] The information acquisition module 320 is used to determine the drawing information matching the target maneuvering method according to the target maneuvering method selected by the user, and acquire the speed ratio and distance ratio selected by the user.

[0142] The drawing element processing module 330 is used to generate a current drawing element in the electronic ship chart and obtain the calculation parameter value corresponding to the current drawing element according to the drawing information, the current mouse position, the speed ratio, and the distance ratio when the user performs ship maneuvering calculation in the drawing mode in response to the user's click operation on the mouse.

[0143] The calculation result generation module 340 is used to generate a ship maneuvering calculation result according to the acquired calculation parameter value and the drawing information in response to a calculation request sent by the user.

[0144] The technical solution of the embodiment of the present invention creates an electronic ship maneuvering calculation page in response to a ship maneuvering calculation request sent by the user, determines the drawing information matching the target maneuvering method according to the target maneuvering method selected by the user, and acquires the speed ratio and distance ratio selected by the user. When the user performs ship maneuvering calculation in the drawing mode, in response to the user's click operation on the mouse, a current drawing element is generated in the electronic ship chart and the calculation parameter value corresponding to the current drawing element is obtained according to the drawing information, the current mouse position, the speed ratio, and the distance ratio. In response to a calculation request sent by the user, a ship maneuvering calculation result is generated according to the acquired calculation parameter value and the drawing information. In this way, the electronicization of the paper ship maneuvering chart can be realized, repeated use is supported, costs can be effectively saved, the speed and distance scales are adjustable, it is applicable to multi-scene calculations, the operation is flexible, and the advantages of both drawing and solving based on the ship maneuvering chart and automatic calculation and solving according to the input are combined. The two methods verify each other, which not only conforms to the usage habits of mariners, improves the interaction experience, but also improves the calculation accuracy and calculation efficiency, reduces the influence of human factors and environmental factors on the results, and can achieve fast maneuvering response.

[0145] Based on the above embodiments, the page creation module 310 is specifically used for:

[0146] Draw the base map of the electronic ship maneuvering chart and create multiple functional areas;

[0147] Among them, the function area includes a maneuver mode selection area, a step prompt area, a parameter information area, a calculation result area, and a scale setting area.

[0148] Based on the above embodiments, the information acquisition module 320 may specifically be configured to:

[0149] Determine the target maneuver mode according to the maneuver mode option selected by the user in the maneuver mode selection area, and determine the calculation parameter information, calculation result information, and drawing element information for this maneuver calculation according to the target maneuver mode;

[0150] Among them, the calculation parameter information includes multiple groups of calculation parameters and the acquisition order between each group of calculation parameters; the drawing element information includes multiple elements to be drawn and the corresponding relationship between each element to be drawn and each group of calculation parameters;

[0151] Obtain the speed scale and distance scale selected by the user in the scale setting area.

[0152] Based on the above embodiments, it may further include a filling area generation module, which is used for: after determining the calculation parameter information, calculation result information, and drawing element information for this maneuver calculation,

[0153] Generate multiple calculation parameter identifiers and parameter value filling areas respectively corresponding to each calculation parameter identifier in the parameter information area according to the calculation parameter information;

[0154] Generate at least one calculation result identifier and result value filling area respectively corresponding to each calculation result identifier in the calculation result area according to the calculation result information.

[0155] Based on the above embodiments, it may further include a step prompt module, which is used for: before responding to the user's click operation on the mouse,

[0156] Generate a prompt statement for indicating the next drawing operation according to the user's current drawing progress and the drawing information, and display the prompt statement in the step prompt area.

[0157] Based on the above embodiments, it may further include a drawing prompt module, which is used for: after displaying the prompt statement in the step prompt area,

[0158] Determine the currently undetermined parameter according to the user's current drawing progress and the drawing information, and generate a real-time drawing prompt according to the real-time position of the mouse and the currently undetermined parameter.

[0159] Based on the above embodiments, the drawing element processing module 330 may specifically be configured to:

[0160] Determine the currently to-be-drawn element according to the user's current drawing progress and the drawing element information, and generate the current drawing element in the electronic ship handling chart according to the current mouse position and the currently to-be-drawn element.

[0161] Determine the coordinate value of the mouse in the scene coordinate system according to the current mouse position and the preset pixel value in the graphic frame; wherein, the current mouse position is the coordinate value of the mouse in the view coordinate system.

[0162] Obtain the ship handling chart speed coordinate, ship handling chart distance coordinate or azimuth angle value in the ship handling chart coordinate system respectively according to the coordinate value in the scene coordinate system, the speed ratio and the distance ratio, and determine the calculation parameter value corresponding to the current drawing element according to the ship handling chart speed coordinate, ship handling chart distance coordinate or azimuth angle value.

[0163] Based on the above embodiments, a calculation parameter filling module may further be included. After obtaining the calculation parameter value corresponding to the current drawing element, it is used for:

[0164] Determine the target calculation parameter identifier corresponding to the calculation parameter value according to the current drawing element and the drawing element information.

[0165] Determine the target parameter value filling area according to the target parameter identifier, and fill the calculation parameter value in the target parameter value filling area.

[0166] Based on the above embodiments, a parameter input mode drawing and calculation module may further be included. After determining the drawing information matching the target maneuvering mode according to the target maneuvering mode selected by the user and obtaining the speed ratio and distance ratio selected by the user, it is used for:

[0167] When the user performs maneuvering drawing and calculation in the parameter input mode, whenever the user completes the filling of the target calculation parameter group in the parameter information area, draw the drawing element corresponding to the target calculation parameter group in the electronic ship handling chart according to the calculation parameter value filled in the target calculation parameter group.

[0168] Based on the above embodiments, the drawing and calculation result generation module 340 is specifically used for:

[0169] In response to the calculation request sent by the user, if it is determined that all the parameter value filling areas in the parameter information area are filled, generate a maneuvering drawing and calculation result according to the filled calculation parameter values and the calculation result information, and fill the maneuvering drawing and calculation result into the corresponding result value filling area.

[0170] Draw a maneuvering drawing and calculation result identifier in the electronic ship handling chart according to the maneuvering drawing and calculation result.

[0171] The maneuvering calculation device based on the electronic ship handling chart provided by the embodiments of the present invention can execute the maneuvering calculation method based on the electronic ship handling chart provided by any embodiment of the present invention, and has the corresponding functional modules and beneficial effects for executing the method.

[0172] Embodiment 4

[0173] Figure 5 FIG. shows a schematic structural diagram of an electronic device 10 that can be used to implement the embodiments of the present invention. The electronic device is intended to represent various forms of digital computers, such as, laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as, personal digital processors, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the present invention described and / or claimed herein.

[0174] As Figure 5 shown, the electronic device 10 includes at least one processor 11, and a memory communicatively connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc. Among them, the memory stores a computer program executable by the at least one processor. The processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 into the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. The input / output (I / O) interface 15 is also connected to the bus 14.

[0175] Multiple components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disc, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0176] The processor 11 may be various general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as the maneuvering calculation method based on the electronic ship maneuvering chart as described in the embodiments of the present invention. That is:

[0177] In response to a maneuvering calculation request sent by the user, create an electronic ship maneuvering chart maneuvering calculation page for the user to operate on the electronic ship maneuvering chart maneuvering calculation page and read the maneuvering calculation result;

[0178] According to the target maneuvering method selected by the user, determine the drawing information matching the target maneuvering method, and obtain the speed ratio and distance ratio selected by the user;

[0179] When the user uses the drawing mode for maneuvering calculation, in response to the user's click operation on the mouse, generate the current drawing element in the electronic ship maneuvering chart according to the drawing information, the current mouse position, the speed ratio, and the distance ratio, and obtain the calculation parameter value corresponding to the current drawing element;

[0180] In response to a calculation request sent by the user, generate a maneuvering calculation result according to the obtained calculation parameter values and the drawing information.

[0181] In some embodiments, the maneuvering calculation method based on the electronic ship maneuvering chart may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as the storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed onto the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the maneuvering calculation method based on the electronic ship maneuvering chart described above may be executed. Alternatively, in other embodiments, the processor 11 may be configured to execute the maneuvering calculation method based on the electronic ship maneuvering chart in any other suitable manner (for example, by means of firmware).

[0182] The various embodiments of the systems and techniques described above in this specification can be implemented in digital electronic circuitry, integrated circuit systems, field programmable gate arrays (FPGA), application specific integrated circuits (ASIC), application specific standard products (ASSP), systems on chip (SOC), complex programmable logic devices (CPLD), computer hardware, firmware, software, and / or combinations thereof. These various embodiments can include: being implemented in one or more computer programs that are executable and / or interpretable on a programmable system including at least one programmable processor, which can be a special-purpose or general-purpose programmable processor that receives data and instructions from, and transmits data and instructions to, a storage system, at least one input device, and at least one output device.

[0183] The computer programs for implementing the methods of the present invention can be written in any combination of one or more programming languages. These computer programs can be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions / operations specified in the flowchart and / or block diagram to be implemented. The computer programs can be executed entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine or entirely on the remote machine or server.

[0184] In the context of the present invention, a computer-readable storage medium can be a tangible medium that can contain or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. The computer-readable storage medium can include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. Alternatively, the computer-readable storage medium can be a machine-readable signal medium. More specific examples of the machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0185] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device for displaying information to the user (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor); and a keyboard and a pointing device (e.g., a mouse or a trackball) through which the user can provide input to the electronic device. Other kinds of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0186] The systems and techniques described herein can be implemented in a computing system including backend components (e.g., as a data server), or a computing system including middleware components (e.g., an application server), or a computing system including frontend components (e.g., a user computer having a graphical user interface or a web browser through which the user can interact with an implementation of the systems and techniques described herein), or a computing system including any combination of such backend components, middleware components, or frontend components. The components of the system can be interconnected to each other by digital data communication in any form or medium (e.g., a communication network). Examples of communication networks include: local area network (LAN), wide area network (WAN), blockchain network, and the Internet.

[0187] A computing system can include a client and a server. The client and the server are generally far from each other and typically interact through a communication network. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or a cloud host, which is a host product in the cloud computing service system, solving the defects of difficult management and weak business scalability existing in traditional physical hosts and VPS services.

[0188] It should be understood that the various forms of processes shown above can be used, with steps reordered, added, or deleted. For example, the steps recited in the present invention can be executed in parallel, sequentially, or in a different order, as long as the desired results of the technical solution of the present invention can be achieved, and no limitation is made herein.

[0189] The above specific embodiments do not constitute a limitation on the protection scope of the present invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principle of the present invention shall be included within the protection scope of the present invention.

Claims

1. A maneuvering calculation method based on an electronic ship maneuvering chart, characterized in that: include: In response to the maneuvering drawing and calculation request sent by the user, an electronic ship maneuvering chart maneuvering drawing and calculation page is created, so that the user can operate in the electronic ship maneuvering chart maneuvering drawing and calculation page and read the maneuvering drawing and calculation result; wherein, based on the Qt graphics framework, the electronic ship maneuvering chart is drawn in the electronic ship maneuvering chart application function software; in the electronic ship maneuvering chart application function software, the electronic ship maneuvering chart maneuvering drawing and calculation page is displayed; the coordinates in the Qt graphics framework include view coordinates and scene coordinates; According to the target maneuvering mode selected by the user, the drawing information matching the target maneuvering mode is determined, and the speed ratio and distance ratio selected by the user are obtained; wherein the drawing information includes calculation parameter information, calculation result information and drawing element information; the calculation parameter information includes multiple groups of calculation parameters and the acquisition order between each group of calculation parameters; the drawing element information includes multiple elements to be drawn and the corresponding relationship between each element to be drawn and each group of calculation parameters; the calculation result information includes the mathematical model specified by the target maneuvering mode and the calculation result to be obtained by the target maneuvering mode; When the user uses the drawing mode to perform maneuver drawing calculation, in response to the user's click operation of the mouse, a current drawing element is generated in the electronic ship maneuvering chart according to the drawing information, the current mouse position, the speed ratio and the distance ratio, and a calculation parameter value corresponding to the current drawing element is obtained; In response to a calculation request sent by a user, generating a motorized drawing calculation result according to the obtained calculation parameter values ​​and the drawing information; According to the drawing information, the current mouse position, the speed ratio and the distance ratio, a current drawing element is generated in the electronic ship operation chart and a calculation parameter value corresponding to the current drawing element is obtained, including: Determine the current element to be drawn according to the user's current drawing progress and the drawing element information, and generate the current drawing element in the electronic ship operation map according to the current mouse position and the current element to be drawn; According to the current mouse position and the pixel value preset in the graphics frame, the coordinate value of the mouse in the scene coordinate system is determined; wherein the current mouse position is the coordinate value of the mouse in the view coordinate system; wherein, when the current mouse position of the mouse in the view coordinate system is P st (X st , Y st ), the mouse position P in the scene coordinate system is calculated by the following formula cj (X cj , Y cj ):X cj= X st -(x1 / 2);Y cj= Y st -(y1 / 2); x1 and y1 are the pixel values ​​of the preset ship operation map display area; According to the coordinate value, speed ratio and distance ratio in the scene coordinate system, respectively obtain the ship maneuver chart speed coordinate, ship maneuver chart distance coordinate and azimuth angle value in the ship maneuver chart coordinate system, and determine the calculation parameter value corresponding to the current drawing element according to the ship maneuver chart speed coordinate, ship maneuver chart distance coordinate and azimuth angle value; Among them, the mouse position P in the scene coordinate system is calculated by the following formula cj (X cj , Y cj ) is converted into the speed coordinate P of the ship maneuver chart speed (X speed , Y speed ) and the distance coordinate P of the ship maneuver map dis (X dis , Y dis ): X speed= X cj ×SpeedScale÷UnitPix;Y speed= AND cj ×SpeedScale÷UnitPix×(-1); X dis= X cj ×DistanceScale÷UnitPix;Y dis= AND cj ×DistanceScale÷UnitPix×(-1); Among them, SpeedScale is the speed scale, DistanceScale is the distance scale, and UnitPix is ​​the circle spacing pixel, all of which are user-set values; The conversion formula between the mouse position in the scene coordinate system and the azimuth angle value θ is as follows: If the mouse position X in the scene coordinate system cj >0, Y cj <0, the conversion formula is: θ=90-(-1)×arctan(Y cj / X cj )×m; If the mouse position X in the scene coordinate system cj >0, Y cj >0, the conversion formula is: θ=arctan(Y cj / X cj )×m+90; If the mouse position X in the scene coordinate system cj <0, Y cj >0, the conversion formula is: θ=270-(-1)×arctan(Y cj / X cj )×m; If the mouse position X in the scene coordinate system cj <0, Y cj <0, the conversion formula is: θ=arctan(Y cj / X cj )×m+270; Where m is the conversion value from radians to degrees; After obtaining the calculation parameter value corresponding to the current drawing element, the method further includes: Determining a target calculation parameter identifier corresponding to the calculation parameter value according to the current drawing element and the drawing element information; A target parameter value filling area is determined according to the target calculation parameter identifier, and the calculation parameter value is filled in the target parameter value filling area.

2. The method according to claim 1, characterized in that Create an electronic ship maneuvering chart maneuvering calculation page, including: Draw the base map of the electronic ship operation chart and create multiple functional areas; The functional area includes a maneuvering mode selection area, a step prompt area, a parameter information area, a calculation result area and a ratio setting area.

3. The method according to claim 2, characterized in that According to the target maneuvering mode selected by the user, determine the drawing information that matches the target maneuvering mode, and obtain the speed ratio and distance ratio selected by the user, including: Determine a target maneuvering mode according to the maneuvering mode option selected by the user in the maneuvering mode selection area, and determine calculation parameter information, calculation result information and drawing element information for this maneuvering drawing according to the target maneuvering mode; Obtaining the speed ratio and distance ratio selected by the user in the ratio setting area; After determining the calculation parameter information, calculation result information and drawing element information used for this mobile drawing calculation, it also includes: According to the calculation parameter information, a plurality of calculation parameter identifiers and parameter value filling areas corresponding to the calculation parameter identifiers are generated in the parameter information area; At least one calculation result identifier and result value filling areas corresponding to each calculation result identifier are generated in the calculation result area according to the calculation result information.

4. The method according to claim 3, characterized in that Before responding to the user's mouse click operation, it also includes: A prompt statement for indicating the next drawing operation is generated according to the user's current drawing progress and the drawing information, and the prompt statement is displayed in the step prompt area.

5. The method according to claim 4, characterized in that After displaying the prompt statement in the step prompt area, the method further includes: According to the current drawing progress of the user and the drawing information, the current parameters to be determined are determined, and according to the real-time position of the mouse and the current parameters to be determined, a real-time drawing prompt is generated.

6. The method according to claim 3, characterized in that: After determining the drawing information matching the target maneuvering mode according to the target maneuvering mode selected by the user and obtaining the speed ratio and distance ratio selected by the user, the method further includes: When the user adopts the parameter input mode to perform maneuver drawing, each time the user completes filling in the target calculation parameter group in the parameter information area, a drawing element corresponding to the target calculation parameter group is drawn in the electronic ship maneuvering chart according to the calculation parameter values ​​filled in the target parameter group.

7. The method according to claim 3, characterized in that In response to the calculation request sent by the user, a motorized drawing calculation result is generated according to the obtained calculation parameter values ​​and the drawing information, including: In response to the calculation request sent by the user, if it is determined that all parameter value filling areas in the parameter information area are filled, then according to the filled calculation parameter values ​​and the calculation result information, a motorized calculation result is generated, and the motorized calculation result is filled into the corresponding result value filling area; According to the maneuver calculation result, a maneuver calculation result mark is drawn in the electronic ship operation chart.

8. A maneuvering calculation device based on an electronic ship maneuvering chart, characterized in that: include: The page creation module is used to create an electronic ship maneuvering chart maneuvering calculation page in response to a maneuvering calculation request sent by a user, so that the user can operate in the electronic ship maneuvering chart maneuvering calculation page and read the maneuvering calculation result; wherein, based on the Qt graphics framework, the electronic ship maneuvering chart is drawn in the electronic ship maneuvering chart application function software; in the electronic ship maneuvering chart application function software, the electronic ship maneuvering chart maneuvering calculation page is displayed; the coordinates in the Qt graphics framework include view coordinates and scene coordinates; The information acquisition module is used to determine the drawing information matching the target maneuvering mode according to the target maneuvering mode selected by the user, and obtain the speed ratio and distance ratio selected by the user; wherein the drawing information includes calculation parameter information, calculation result information and drawing element information; the calculation parameter information includes multiple groups of calculation parameters and the acquisition order between each group of calculation parameters; the drawing element information includes multiple elements to be drawn and the corresponding relationship between each element to be drawn and each group of calculation parameters; the calculation result information includes the mathematical model specified by the target maneuvering mode and the calculation result to be obtained by the target maneuvering mode; A drawing element processing module is used for generating a current drawing element in the electronic ship maneuvering chart and obtaining a calculation parameter value corresponding to the current drawing element in response to a click operation of the mouse by the user when the user adopts the drawing mode to perform maneuvering drawing calculation; A drawing calculation result generating module, used for generating a motorized drawing calculation result according to the obtained calculation parameter values ​​and the drawing information in response to the calculation request sent by the user; Among them, the drawing element processing module is specifically used for: Determine the current element to be drawn according to the user's current drawing progress and the drawing element information, and generate the current drawing element in the electronic ship operation map according to the current mouse position and the current element to be drawn; According to the current mouse position and the pixel value preset in the graphics frame, the coordinate value of the mouse in the scene coordinate system is determined; wherein the current mouse position is the coordinate value of the mouse in the view coordinate system; wherein, when the current mouse position of the mouse in the view coordinate system is P st (X st , Y st ), the mouse position P in the scene coordinate system is calculated by the following formula cj (X cj , Y cj ):X cj= X st -(x1 / 2);Y cj= Y st -(y1 / 2); x1 and y1 are the pixel values ​​of the preset ship operation map display area; According to the coordinate value, speed ratio and distance ratio in the scene coordinate system, respectively obtain the ship maneuver chart speed coordinate, ship maneuver chart distance coordinate and azimuth angle value in the ship maneuver chart coordinate system, and determine the calculation parameter value corresponding to the current drawing element according to the ship maneuver chart speed coordinate, ship maneuver chart distance coordinate and azimuth angle value; Among them, the mouse position P in the scene coordinate system is calculated by the following formula cj (X cj , Y cj ) is converted into the speed coordinate P of the ship maneuver chart speed (X speed , Y speed ) and the distance coordinate P of the ship maneuver map dis (X dis , Y dis ): X speed= X cj ×SpeedScale÷UnitPix;Y speed= AND cj ×SpeedScale÷UnitPix×(-1); X dis= X cj ×DistanceScale÷UnitPix;Y dis= AND cj ×DistanceScale÷UnitPix×(-1); Among them, SpeedScale is the speed scale, DistanceScale is the distance scale, and UnitPix is ​​the circle spacing pixel, all of which are user-set values; The conversion formula between the mouse position in the scene coordinate system and the azimuth angle value θ is as follows: If the mouse position X in the scene coordinate system cj >0, Y cj <0, the conversion formula is: θ=90-(-1)×arctan(Y cj / X cj )×m; If the mouse position X in the scene coordinate system cj >0, Y cj >0, the conversion formula is: θ=arctan(Y cj / X cj )×m+90; If the mouse position X in the scene coordinate system cj <0, Y cj >0, the conversion formula is: θ=270-(-1)×arctan(Y cj / X cj )×m; If the mouse position X in the scene coordinate system cj <0, Y cj <0, the conversion formula is: θ=arctan(Y cj / X cj )×m+270; Where m is the conversion value from radians to degrees; The module further includes a calculation parameter filling module, which is used to: Determining a target calculation parameter identifier corresponding to the calculation parameter value according to the current drawing element and the drawing element information; A target parameter value filling area is determined according to the target calculation parameter identifier, and the calculation parameter value is filled in the target parameter value filling area.

9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the maneuvering calculation method based on the electronic ship maneuvering chart described in any one of claims 1-7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the maneuvering calculation method based on an electronic ship maneuver chart as described in any one of claims 1 to 7 when executed.

Citation Information

Patent Citations

  • Naval vessel maneuvering drawing method based on electronic naval vessel operation diagram

    CN112729314A