Maneuvering plotting method, device and equipment based on electronic ship operation drawing and medium
By adopting a mobile drawing calculation method based on electronic ship diagrams in the field of ship electronic technology, the problem that traditional paper ship diagrams cannot effectively display time-related information in mobile drawing calculations is solved, and a more efficient, accurate and flexible mobile drawing calculation process is achieved, reducing the impact of cost and human environmental factors.
Patent Information
- Application Number
- CN202510238512.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-03
- Publication Date
- 2025-03-28
- Estimated Expiration
- 2045-03-03
AI Technical Summary
Traditional paper ship operation diagrams cannot effectively display time-related information in mobile drawing calculations, and are costly and difficult to recycle. The calculation accuracy and real-timeness are affected by human and environmental factors.
Using a mobile drawing calculation method based on electronic ship operation, by creating a mobile drawing calculation page for electronic ship operation, generating drawing elements and obtaining calculation parameter values in response to user operations, to realize automatic calculation of the mobile drawing calculation results.
It improves computing efficiency and accuracy, reduces cost and difficulty in use, supports repeated use, can effectively display time-related information, reduce the influence of human and environmental factors, and achieve fast maneuvering response.
Smart Images

Figure CN119722853A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of ship electronic technology, and in particular to a maneuvering drawing and calculation method, device, equipment and medium based on an electronic ship maneuvering chart. Background Art
[0002] Ship maneuvering refers to the movement carried out in order to occupy or change the position relative to the target according to the mission requirements. Maneuvering calculation requires the navigation personnel to quickly give the maneuvering course, maneuvering time and other result information based on the current motion parameters of the ship and the target ship.
[0003] The traditional method of maneuvering drawing and calculation is generally based on paper ship maneuvering charts, and the navigators manually draw geometric figures for solution. Different scales correspond to different paper ship maneuvering charts. When drawing and calculating, the paper ship maneuvering charts of appropriate scales should be selected according to the speed, range and distance.
[0004] Paper-based ship maneuvering charts cannot be recycled and are very expensive. In addition, maneuvering calculations based on paper-based ship maneuvering charts can only display the positional relationship between ships, but cannot display time-related information. The drawing time, accuracy, and calculation precision are greatly affected by the drawing level of the sailors and the weather environment, making it 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 electronic ship maneuvering charts, which realize the electronicization of ship maneuvering charts, improve calculation efficiency and accuracy, and are easy to use, reusable and low in cost.
[0006] According to one aspect of the present invention, a maneuvering calculation method based on an electronic ship maneuvering chart is provided, comprising:
[0007] In response to the maneuvering calculation request sent by the user, a maneuvering calculation page of the electronic ship maneuvering chart is created, so that the user can operate in the maneuvering calculation page of the electronic ship maneuvering chart and read the maneuvering calculation result;
[0008] According to the target maneuvering mode selected by the user, determine the drawing information matching the target maneuvering mode, and obtain the speed ratio and distance ratio selected by the user;
[0009] 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;
[0010] In response to the calculation request sent by the user, a motorized drawing calculation result is generated according to the acquired calculation parameter values and the drawing information.
[0011] According to another aspect of the present invention, there is provided a maneuvering calculation device based on an electronic ship maneuvering chart, comprising:
[0012] 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;
[0013] An information acquisition module, used to determine the drawing information matching the target maneuvering mode according to the target maneuvering mode selected by the user, and to obtain the speed ratio and distance ratio selected by the user;
[0014] 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;
[0015] The drawing and calculation result generating module is used to generate a motorized drawing and calculation result according to the obtained calculation parameter values and the drawing information in response to the calculation request sent by the user.
[0016] According to another aspect of the present invention, an electronic device is provided, 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 that can be executed 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 maneuver calculation method based on the electronic ship maneuver chart described in any embodiment of the present invention.
[0020] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein 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 described in any embodiment of the present invention when executed.
[0021] The technical solution of the embodiment of the present invention creates a maneuvering drawing and calculation page of an electronic ship maneuvering chart in response to a maneuvering drawing and calculation request sent by a user, determines drawing information matching the target maneuvering mode according to the target maneuvering mode selected by the user, and obtains the speed ratio and distance ratio selected by the user. When the user adopts the drawing mode to perform maneuvering drawing and calculation, in response to the user's click operation of the mouse, a current drawing element is generated in the electronic ship maneuvering chart and a calculation parameter value corresponding to the current drawing element is obtained. In response to the calculation request sent by the user, a maneuvering drawing and calculation result is generated according to the obtained calculation parameter value and drawing information. The electronicization of paper ship maneuvering charts can be realized, repeated use is supported, and costs are effectively saved. The speed and distance scales are adjustable, suitable for multi-scenario drawing and calculation, and the operation is flexible. The advantages of drawing and calculation based on ship maneuvering chart drawing and automatic calculation based on input are combined. The two methods verify each other, which not only conforms to the use habits of sailors, improves the interactive experience, but also improves the drawing and 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 contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended 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 briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0024] Figure 1 This is a flow chart of a maneuvering calculation method based on an electronic ship maneuvering chart provided according to the first embodiment of the present invention;
[0025] Figure 2 It is a schematic diagram of a maneuvering drawing and calculation page of an electronic ship maneuvering chart provided according to an embodiment of the present invention;
[0026] Figure 3 is a flow chart of another method for maneuvering calculation based on an electronic ship maneuvering chart provided according to the second embodiment of the present invention;
[0027] Figure 4 This is a structural schematic diagram of a maneuvering calculation device based on an electronic ship maneuvering chart provided according to Embodiment 3 of the present invention;
[0028] Figure 5It is a structural schematic diagram of an electronic device for implementing the maneuvering calculation method based on an electronic ship maneuvering chart according to an embodiment of the present invention. DETAILED DESCRIPTION
[0029] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0030] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, 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 "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0031] Embodiment 1
[0032] Figure 1 This is a flowchart of a maneuvering calculation method based on an electronic ship maneuvering chart provided in the first embodiment of the present invention. This embodiment can be applied to providing users with a convenient and simple electronic ship maneuvering calculation page, and quickly and accurately obtaining maneuvering calculation results based on user input information. This method can be executed by a maneuvering calculation device based on an electronic ship maneuvering chart. The maneuvering calculation device based on an electronic ship maneuvering chart can be implemented in the form of hardware and / or software, and can generally be configured in a computer or processor with data and graphics processing functions. Figure 1 As shown, the method includes:
[0033] S110. In response to the maneuvering calculation request sent by the user, a maneuvering calculation page of the electronic ship maneuvering chart is created, so that the user can operate in the maneuvering calculation page of the electronic ship maneuvering chart and read the maneuvering calculation result.
[0034] Optionally, in actual applications, an electronic ship control chart and mobile drawing and calculation system can be built to achieve real-time interaction with users. The hardware environment of the electronic ship control chart and mobile drawing and calculation system may include a computer, a mouse, a keyboard and a display, wherein the software environment in the computer includes a computer operating system, a Qt graphics framework and an electronic ship control chart application function software.
[0035] Optionally, the Qt graphics framework is an application development framework for implementing two-dimensional graphics drawing. Based on the Qt graphics framework, it is possible to draw an electronic ship control chart in the electronic ship control chart application function software.
[0036] Optionally, the user can draw an electronic ship maneuvering chart and obtain drawing and calculation results by operating the electronic ship maneuvering chart application function software.
[0037] Among them, creating an electronic ship maneuvering chart maneuvering calculation page can include:
[0038] Draw the base map of the electronic ship operation chart and create multiple functional areas;
[0039] Among them, the functional area includes the maneuvering mode selection area, the step prompt area, the parameter information area, the calculation result area and the ratio setting area.
[0040] Optionally, in the electronic ship maneuvering chart application function software, an electronic ship maneuvering chart maneuvering drawing and calculation page can be displayed, the electronic ship maneuvering chart maneuvering drawing and calculation page includes an electronic ship maneuvering chart area and multiple functional areas. After responding to the maneuvering drawing and calculation request sent by the user, an electronic ship maneuvering chart base map is drawn in the electronic ship maneuvering chart area in the electronic ship maneuvering chart maneuvering drawing and calculation page. The electronic ship maneuvering chart base map is an electronic ship maneuvering chart that does not contain any drawing elements.
[0041] Figure 2 The following is a schematic diagram of an optional electronic ship maneuvering chart maneuvering calculation page. Figure 2 As shown in the figure, the left part is the electronic ship operation chart. The upper right corner of the electronic ship operation chart area provides a scale setting area, which is used to set the speed scale and distance scale. The right part includes the maneuvering mode selection area, step prompt area, parameter information area, calculation result area and mode switching area.
[0042] Optionally, the maneuvering mode selection area includes a plurality of preset maneuvering mode options, and the user can select the target maneuvering mode that currently needs to be calculated by clicking on the maneuvering mode option.
[0043] Optionally, different maneuvers may result in different calculation results and required calculation parameters. Figure 2The parameter information area and calculation result area in the calculation result area only display the calculation parameters and calculation results to be obtained under the occupation position maneuver mode; action sequences are preset for different maneuver modes, and users need to draw the electronic ship operation chart or fill in the calculation parameters according to the preset action sequences. Before each user operation, a prompt statement for the step will be generated and displayed in the step prompt area.
[0044] Optionally, the function area may also include a mode switching area. After creating the electronic ship operation chart maneuvering calculation page, the user can choose manual drawing or input parameters in the mode switching area. If the user chooses manual drawing, the drawing mode is used for maneuvering calculation. If the user chooses input parameters, the parameter input mode is used for maneuvering calculation.
[0045] Optionally, in drawing mode, the user can use the mouse to draw on the electronic ship operation chart, and the calculation parameters corresponding to the drawing elements generated in each step will be displayed in the parameter information area; in parameter input mode, the user can directly enter 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 operation chart.
[0046] S120 . Determine 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.
[0047] Optionally, the maneuvering methods may include occupying a position, approaching to encounter, approaching to a predetermined distance in the shortest time, driving to a predetermined distance in the shortest time, avoiding high-speed ships to maximize the shortest distance, avoiding low-speed ships beyond a predetermined distance, and searching along the enemy's possible course, but are not limited to the above-mentioned maneuvering methods.
[0048] Optionally, since different maneuvering modes are preset with different action sequences, the purpose is to draw the electronic ship maneuver chart or obtain calculation parameters in sequence, so the drawing information may include calculation parameter information, calculation result information and drawing element information;
[0049] 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 in the process of drawing the electronic ship operation chart of the target maneuver mode, the user may need to draw multiple points representing different ships, or 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 ship operation chart. For example, when the parameters to be obtained are the heading and speed of the target ship, the heading of the target ship can be selected according to the angle information outside the electronic ship operation chart. The current selected position of the mouse can be used as point A, and then the OA ray is generated according to the drawing element information. The user further slides the mouse on the OA ray, selects the speed of the target ship, determines the position of point A, and generates an OA vector segment. The OA vector segment is an element to be drawn to be obtained. In this example, the heading and speed of the target ship are a calculation parameter group, which is only used as an example here.
[0051] Optionally, the calculation result information may include a mathematical model specified by the target maneuvering mode and a calculation result to be obtained for the target maneuvering mode, and the calculation result may be obtained by performing calculation according to the calculation parameters and the specified mathematical model.
[0052] Optionally, the speed ratio and 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 the ratio value can also be set by directly entering it.
[0053] S130. When the user adopts the drawing mode to perform maneuver drawing calculations, 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.
[0054] Optionally, when the user adopts the drawing mode to perform maneuver calculations, before drawing each element to be drawn, the step prompt area will give a prompt statement corresponding to the element to be drawn. For example, if the selected target maneuver mode is to occupy the position, before the first step of drawing, it can be displayed "Currently in the occupation position mode, please enter the target ship's heading and speed first!" This is only an example explanation.
[0055] Furthermore, after the user obtains the prompt, the current step can be drawn. Due to the particularity of the electronic ship operation chart, the position of each point cannot be determined by determining the values of the x-axis and y-axis, but it is necessary to determine the direction first, and then determine the speed or distance and other information based on the concentric circles. Therefore, different parameters need to be determined in a certain order during the drawing process.
[0056] Furthermore, in order to facilitate users to clearly understand the calculation parameters represented by the current mouse position and the specific calculation parameter values, the current calculation parameter to be selected can be determined according to the user's current drawing progress, and the calculation parameter value corresponding to the current calculation parameter to be selected can be determined according to the mouse position. The calculation parameter value is displayed in real time near the cursor to provide clear prompts to the user, which can help users quickly and accurately draw electronic ship operation charts.
[0057] Optionally, the coordinates involved in the Qt graphics framework include view coordinates and scene coordinates. View coordinates are the physical coordinates of the window interface, with the unit being pixels. The origin (0, 0) is in the upper left corner, the x-axis is in the right direction, and the y-axis is in the downward direction. Scene coordinates can be used to locate and manage graphic items in a graphics scene. The unit of scene coordinates is pixels, with the center of the scene as the origin (0, 0), the x-axis is positive to the right, and the y-axis is positive downward.
[0058] Optionally, when the user uses the mouse to draw, all mouse events use view coordinates. In order to determine the parameter value currently pointed to by the user's mouse, it is necessary to first convert the current mouse position in the view coordinates to the scene coordinate system, and then determine the speed coordinates and distance coordinates of the ship maneuver chart according to the mouse position in the scene coordinate system, or determine the azimuth angle value, that is, the heading angle, according to the mouse position in the scene coordinate system.
[0059] Optional, when the current mouse position in the view coordinate system is P st (X st , Y st ), the mouse position P in the scene coordinate system can be calculated by the following formula cj (X cj , Y cj ):
[0060] X cj= X st -(x1 / 2);Y cj= Y st -(y1 / 2);
[0061] Among them, x1 and y1 are the pixel values of the preset ship operation map display area.
[0062] Furthermore, the mouse position P in the scene coordinate system can be 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 ):
[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 scale, DistanceScale is the distance scale, and UnitPix is the circle spacing pixels, all of which are user-set values.
[0066] Furthermore, in the process of obtaining calculation parameters and drawing elements, it is also necessary to determine the ship's heading. From the user's perspective, the approximate heading can be determined based on the angle value marked on the electronic ship's operating chart. In the process of the user selecting the heading, the mouse position in the scene coordinate system needs to be converted into an azimuth angle value to obtain the azimuth angle value, thereby using the azimuth angle value to provide real-time prompts to the user.
[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, the X cj >0, Y cj When <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 When >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 When >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 When <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 explains how to determine the corresponding calculation parameters in the ship operation diagram based on the current mouse position in the view coordinates, which not only enables real-time parameter prompts when the user moves the mouse, but also enables the calculation parameter values corresponding to the drawing elements to be determined after the user completes drawing the elements.
[0078] Optionally, after determining the calculation parameter value corresponding to the drawing element, fill the calculation parameter value into the corresponding fill area in the parameter information area so that the user can intuitively confirm the calculation parameter again, which is convenient for the user to understand the intermediate process of the maneuver drawing and calculation, in line with the drawing and calculation habits of various types of sailors.
[0079] Among them, 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 may also include:
[0080] 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.
[0081] Optionally, the maneuvering calculation method based on the electronic ship maneuvering chart also provides a parameter input mode. When the user selects the parameter input mode, the electronic ship maneuvering chart cannot be drawn, and the user can input parameters one by one in the parameter information area. Whenever a group of calculation parameters is input, a drawing element corresponding to the group of calculation parameters can be generated in the electronic ship maneuvering chart.
[0082] In an optional example, the heading and speed of the target ship can be used as a set of calculation parameters. After the user completes inputting the heading and speed of the target ship, a point corresponding to the target ship can be generated in the electronic ship operation chart, and a connecting line associated with the point can also be generated at the same time.
[0083] It can be understood that in the drawing mode, the mouse position in the view coordinate system needs to be converted to the scene coordinate system first, and then the coordinate position in the scene coordinate system is converted to the ship operation chart coordinate system to determine the calculation parameter value. In the parameter input mode, the calculation parameters have been determined, and the point position in the ship operation chart coordinate system can be determined. It is necessary to perform inverse calculation according to the above formula to determine the coordinate value corresponding to each drawing element in the scene coordinate system, so as to generate related drawing elements in the electronic ship operation chart.
[0084] S140: 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.
[0085] Optionally, when the user completes the drawing of the electronic ship maneuvering chart, all parameters are filled in the parameter information area in the electronic ship maneuvering chart maneuvering calculation page, and the user can click the calculation option in the calculation result area, and then calculate the calculation result according to the pre-set calculation formula and the obtained calculation parameters.
[0086] The technical solution of the embodiment of the present invention creates a maneuvering drawing and calculation page of an electronic ship maneuvering chart in response to a maneuvering drawing and calculation request sent by a user, determines drawing information matching the target maneuvering mode according to the target maneuvering mode selected by the user, and obtains the speed ratio and distance ratio selected by the user. When the user adopts the drawing mode to perform maneuvering drawing and calculation, in response to the user's click operation of the mouse, a current drawing element is generated in the electronic ship maneuvering chart and a calculation parameter value corresponding to the current drawing element is obtained. In response to the calculation request sent by the user, a maneuvering drawing and calculation result is generated according to the obtained calculation parameter value and drawing information. The electronicization of paper ship maneuvering charts can be realized, repeated use is supported, and costs are effectively saved. The speed and distance scales are adjustable, suitable for multi-scenario drawing and calculation, and the operation is flexible. The advantages of drawing and calculation based on ship maneuvering chart drawing and automatic calculation based on input are combined. The two methods verify each other, which not only conforms to the use habits of sailors, improves the interactive experience, but also improves the drawing and 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 This is a flow chart of a maneuvering calculation method based on an electronic ship maneuvering chart provided in the second embodiment of the present invention. This embodiment specifically describes the maneuvering calculation method based on an electronic ship maneuvering chart based on the above embodiment. Figure 3 As shown, the method includes:
[0089] S210. In response to the maneuvering calculation request sent by the user, create an electronic ship maneuvering chart maneuvering calculation page, so that the user can operate in the electronic ship maneuvering chart maneuvering calculation page and read the maneuvering calculation result.
[0090] Optionally, after responding to the maneuver drawing request sent by the user, a ship maneuver chart display area can be created in the electronic ship maneuver chart maneuver drawing page, and the pixel value of the ship maneuver chart display area can be set based on the Qt graphics framework to draw the electronic ship maneuver chart base map.
[0091] In an optional example, the coordinate system of the ship maneuver chart selects the center of the area as the origin (0, 0), the horizontal axis (X axis) represents the distance, which is positive to the right, and the vertical axis (Y axis) represents the speed, which is positive upward; with the origin as the center, 10 concentric circles are drawn, 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 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 (knot), the second circle has 49×2 pixels, corresponding to 2 kn, and so on; the circle spacing represents unit distance and unit speed; the circle spacing pixel UnitPix = 49; among them, the concentric circle radius, distance ratio, speed ratio, circle spacing pixels, etc. can all be adaptively adjusted.
[0092] It can be understood that the concentric circles, x-axis, y-axis and other basic representations of the above-mentioned ship maneuver chart are all existing technologies in the field of ship maneuver charts. The form of the paper ship maneuver chart is the same as the form of the above-mentioned electronic ship maneuver chart base map. The basic principles of the electronic ship maneuver chart will not be elaborated here. The advantage of the electronic ship maneuver chart over the paper ship maneuver chart is that the values represented by the concentric circles can be scaled by adjusting the distance ratio or the speed ratio, so as to achieve wide use in different usage scenarios.
[0093] S220, determining a target maneuvering mode according to the maneuvering mode option selected by the user in the maneuvering mode selection area, and determining calculation parameter information, calculation result information, and drawing element information for this maneuvering drawing according to the target maneuvering mode.
[0094] 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, if the target maneuvering mode selected by the user is to occupy a position, the calculation parameter groups corresponding to the occupied position are arranged in order: Group 1: target ship heading and speed; Group 2: own ship's bearing and distance; Group 3: occupied position bearing and distance; Group 4: occupied speed; the drawing element information may include: the element to be drawn corresponding to the parameters 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 the vector line segment MO is drawn after M1 is determined; the element to be drawn corresponding to Group 4 is point B, and the vector line segment AB is drawn after B is determined.
[0096] Optionally, after creating the electronic ship maneuvering chart maneuvering calculation page, when the target maneuvering method selected by the user is obtained and the drawing mode is selected, the drawing content except the base map is cleared and a prompt is given in the prompt area.
[0097] S230: Obtain the speed ratio and distance ratio selected by the user in the ratio setting area.
[0098] After determining the calculation parameter information, calculation result information and drawing element information used for this mobile drawing calculation, it may also include:
[0099] 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;
[0100] 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.
[0101] S240: When the user adopts the drawing mode to perform dynamic drawing calculation, a prompt statement for indicating the next drawing operation is generated according to the user's current drawing progress and drawing information, and the prompt statement is displayed in the step prompt area.
[0102] Optionally, the content to be drawn in the next step can be determined based on the user's current drawing progress and drawing information. For example, if the user enters the mobile drawing calculation of occupying a position for the first time, the user's next drawing operation is determined to be inputting a first set of calculation parameters or drawing drawing elements corresponding to the first set of calculation parameters. At this time, a prompt statement can be generated based on the first set of calculation parameters.
[0103] Continuing with the previous example, if the target maneuvering method selected by the user is to occupy a position, after entering the drawing mode or parameter input mode, the target ship's heading and speed must be obtained first. At this time, a prompt sentence is generated, "Currently in the occupation position mode, please enter the target ship's heading and speed first!", and the prompt sentence is displayed in the step prompt area.
[0104] S250: Determine current parameters to be determined according to the user's current drawing progress and drawing information, and generate real-time drawing prompts according to the real-time position of the mouse and the current parameters to be determined.
[0105] Optionally, when the user determines a point in the electronic ship operation chart, two calculation parameters may be required to determine them together. These two calculation parameters also have a certain acquisition order. The next calculation parameter to be determined, that is, the current parameter to be determined, can be determined according to the current drawing progress, and a prompt will be given.
[0106] Continuing with the previous example, when drawing the target ship point A, if the user has not started drawing, the target ship's heading is determined based on the real-time mouse position, and the heading value corresponding to the mouse position is displayed in real time at the mouse cursor position; if the user has completed drawing the target ship's heading, the target ship's speed is determined based on the real-time mouse position, and the speed value corresponding to the mouse position is displayed in real time at the mouse cursor position.
[0107] Optionally, each drawing step is accurately prompted to facilitate user memory. At the same time, each drawing step will be prompted with the angle or distance corresponding to the current position of the mouse according to the current step, so that the user can draw accurately.
[0108] S260. In response to the user's click operation on the mouse, determine the current element to be drawn according to the user's current drawing progress and 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.
[0109] S270: Determine the coordinate value of the mouse in the scene coordinate system according to the current mouse position and the pixel value preset in the graphic frame.
[0110] The current mouse position is the coordinate value of the mouse in the view coordinate system.
[0111] S280. 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 or 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 or azimuth angle value.
[0112] After obtaining the calculation parameter value corresponding to the current drawing element, the following may also be included:
[0113] Determining a target calculation parameter identifier corresponding to the calculation parameter value according to the current drawing element and the drawing element information;
[0114] A target parameter value filling area is determined according to the target parameter identifier, and the calculated parameter value is filled 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 based on the drawing element information, and then the target calculation parameter identifiers represented by the drawn point A can be determined to be the target ship heading and the target ship speed, respectively. The target parameter value filling area corresponding to the target ship heading and the target ship speed is determined in the parameter information area, and the calculation parameter value corresponding to point A is filled into the target parameter value filling area.
[0116] Optionally, at each drawing step, the input parameters are automatically filled in for 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, then according to the filled calculation parameter values and calculation result information, a motorized calculation result is generated, and the motorized calculation result is filled into the corresponding result value filling area.
[0118] S2100. Draw a maneuver calculation result mark in the electronic ship operation chart according to the maneuver calculation result.
[0119] Optionally, after obtaining the maneuvering calculation result, the maneuvering calculation result identifier corresponding to the calculation result can be determined according to the calculation result. For example, the maneuvering heading and maneuvering time can be determined according to the maneuvering calculation result. At this time, the maneuvering heading can be represented by a direction or an arrow and drawn in the electronic ship maneuvering chart.
[0120] The technical solution of the embodiment of the present invention creates a maneuvering drawing and calculation page of an electronic ship maneuvering chart in response to a maneuvering drawing and calculation request sent by a user, determines drawing information matching the target maneuvering mode according to the target maneuvering mode selected by the user, and obtains the speed ratio and distance ratio selected by the user. When the user adopts the drawing mode to perform maneuvering drawing and calculation, in response to the user's click operation of the mouse, a current drawing element is generated in the electronic ship maneuvering chart and a calculation parameter value corresponding to the current drawing element is obtained. In response to the calculation request sent by the user, a maneuvering drawing and calculation result is generated according to the obtained calculation parameter value and drawing information. The electronicization of paper ship maneuvering charts can be realized, repeated use is supported, and costs are effectively saved. The speed and distance scales are adjustable, suitable for multi-scenario drawing and calculation, and the operation is flexible. The advantages of drawing and calculation based on ship maneuvering chart drawing and automatic calculation based on input are combined. The two methods verify each other, which not only conforms to the use habits of sailors, improves the interactive experience, but also improves the drawing and calculation accuracy and calculation efficiency, reduces the influence of human factors and environmental factors on the results, and can achieve rapid maneuvering response.
[0121] Specific application scenarios
[0122] This specific application scenario aims to illustrate the maneuver calculation method based on the electronic ship maneuver chart by taking the maneuver mode to select the occupation position as an example.
[0123] Step 1: Draw the base map of the electronic ship operation chart.
[0124] Create a ship operation map display area and set the pixel size to (1042,1042);
[0125] The coordinate system of the ship maneuver chart selects the center of the area as the origin (0, 0), the x-axis represents distance, and the right direction is positive, and the y-axis represents speed, and the upward direction is positive; with the origin as the center, 10 concentric circles are drawn, and the radii are 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: 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: the first circle has 49 pixels, corresponding to 1kn, the second circle has 49×2 pixels, corresponding to 2kn, and so on; the circle spacing represents unit distance and unit speed; the circle spacing pixel UnitPix = 49.
[0126] Step 2: Select the ship maneuvering mode in the maneuvering mode area, select occupy position, click to start drawing, clear the drawing content except the base map, and enter the drawing mode; the prompt area gives a prompt: "Currently in the occupy 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 the current ship speed, target distance and other information.
[0129] Step 4: Drawing event processing
[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 operation chart, the mouse position prompts the angle of the current position. After the user selects the heading according to the angle value of the outermost circle of the ship operation chart, the OA ray is displayed. When the mouse is moved, the mouse position prompts the speed of the current position. After the user selects the speed, the OA vector segment is displayed, and the drawing step reminder area in the lower left corner is updated ("Please continue to draw the ship's direction and distance!"). At the same time, the target ship's heading and speed in the parameter input area are filled according to the heading and speed drawn by the user.
[0131] Continue to draw the ship's azimuth and distance. The user selects the azimuth according to the angle value of the outermost circle of the ship operation chart. The mouse slides on the electronic ship operation chart, and the mouse position prompts the angle of the current position. After the user selects the azimuth, the OM0 ray is displayed. Slide the mouse, and the mouse position prompts 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 draw the occupied position azimuth and distance!"). At the same time, the target ship's azimuth and distance in the parameter input area are filled according to the azimuth and distance drawn by the user;
[0132] Continue to draw the azimuth and distance of the newly occupied position. The user selects the azimuth according to the angle value of the outermost circle of the ship operation chart. The mouse slides on the electronic ship operation chart, and the mouse position prompts the angle of the current position. After the user selects the azimuth, the OM1 ray is displayed. Slide the mouse, and the mouse position prompts 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 draw the occupation speed!"). At the same time, the parameter input area is filled according to the azimuth and distance of the occupied position drawn by the user;
[0133] Continue to draw the execution speed. Slide the mouse on the electronic ship operation chart. The mouse position prompts the speed of the current position. Draw the speed circle after confirmation. The software automatically finds the focus B position of the speed circle and the parallel line, displays point B, and displays the AB vector line; updates the drawing step reminder area in the lower left corner ("Drawing completed!"), and the parameter input area is filled according to the execution speed drawn by the user.
[0134] Step 5: Calculate the results
[0135] Click the Calculate button, and the software will automatically calculate the results: maneuvering direction and maneuvering time based on the input parameters: target ship's heading and speed, own ship's position and distance, newly occupied position's position and distance, and execution speed, according to the mathematical formula for occupying the position, and display the results in numerical form in the calculation result display area, where the maneuvering direction can be intuitively compared with the result shown in the figure.
[0136] If the user is not accustomed to the drawing method, he can directly enter the data in the parameter input area and click calculate to get the calculation result directly. At the same time, the result will be displayed on the electronic ship operation chart in the form of a geometric result diagram.
[0137] Step 6: After clicking the calculation button, the drawing state will be automatically exited.
[0138] Embodiment 3
[0139] Figure 4 This is a schematic diagram of the structure of a maneuvering calculation device based on an electronic ship maneuvering chart provided in the third embodiment of the present invention. Figure 4As shown, the device includes: a page creation module 310, an information acquisition module 320, a drawing element processing module 330 and a drawing result generation module 340.
[0140] The page creation module 310 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.
[0141] The information acquisition module 320 is used to determine the drawing information matching the target maneuvering mode according to the target maneuvering mode selected by the user, and to acquire the speed ratio and distance ratio selected by the user.
[0142] The drawing element processing module 330 is used to generate the current drawing element in the electronic ship maneuvering chart and obtain the calculation parameter value corresponding to the current drawing element in response to the user's mouse click operation when the user adopts the drawing mode to perform maneuver drawing calculations, according to the drawing information, the current mouse position, the speed ratio and the distance ratio.
[0143] The drawing calculation result generating module 340 is used to generate 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.
[0144] The technical solution of the embodiment of the present invention creates a maneuvering drawing and calculation page of an electronic ship maneuvering chart in response to a maneuvering drawing and calculation request sent by a user, determines drawing information matching the target maneuvering mode according to the target maneuvering mode selected by the user, and obtains the speed ratio and distance ratio selected by the user. When the user adopts the drawing mode to perform maneuvering drawing and calculation, in response to the user's click operation of the mouse, a current drawing element is generated in the electronic ship maneuvering chart and a calculation parameter value corresponding to the current drawing element is obtained. In response to the calculation request sent by the user, a maneuvering drawing and calculation result is generated according to the obtained calculation parameter value and drawing information. The electronicization of paper ship maneuvering charts can be realized, repeated use is supported, and costs are effectively saved. The speed and distance scales are adjustable, suitable for multi-scenario drawing and calculation, and the operation is flexible. The advantages of drawing and calculation based on ship maneuvering chart drawing and automatic calculation based on input are combined. The two methods verify each other, which not only conforms to the use habits of sailors, improves the interactive experience, but also improves the drawing and calculation accuracy and calculation efficiency, reduces the influence of human factors and environmental factors on the results, and can achieve rapid 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 operation chart and create multiple functional areas;
[0147] 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.
[0148] Based on the above embodiments, the information acquisition module 320 can be specifically used for:
[0149] 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;
[0150] The calculation parameter information includes multiple groups of calculation parameters and the acquisition order between the groups 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] The speed ratio and distance ratio selected by the user in the ratio setting area are obtained.
[0152] On the basis of the above embodiments, a filling area generation module may be further included, which is used to: after determining the calculation parameter information, calculation result information and drawing element information used for this motorized drawing calculation,
[0153] 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;
[0154] 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.
[0155] On the basis of the above embodiments, a step prompt module may be further included, which is used to:
[0156] 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.
[0157] On the basis of the above embodiments, a prompt drawing module may be further included, which is used to:
[0158] 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.
[0159] Based on the above embodiments, the drawing element processing module 330 can be specifically used for:
[0160] 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;
[0161] Determine the coordinate value of the mouse in the scene coordinate system according to the current mouse position and the pixel value preset in the graphics frame; wherein the current mouse position is the coordinate value of the mouse in the view coordinate system;
[0162] According to the coordinate values, speed ratio and distance ratio in the scene coordinate system, the ship maneuver chart speed coordinates, ship maneuver chart distance coordinates or azimuth angle values in the ship maneuver chart coordinate system are obtained respectively, and according to the ship maneuver chart speed coordinates, ship maneuver chart distance coordinates or azimuth angle values, the calculation parameter values corresponding to the current drawing elements are determined.
[0163] On the basis of the above embodiments, a calculation parameter filling module may be further included, which is used to: after obtaining the calculation parameter value corresponding to the current drawing element,
[0164] Determining a target calculation parameter identifier corresponding to the calculation parameter value according to the current drawing element and the drawing element information;
[0165] A target parameter value filling area is determined according to the target parameter identifier, and the calculated parameter value is filled in the target parameter value filling area.
[0166] On the basis of the above embodiments, a parameter input mode drawing calculation module may also be included, which determines the drawing information matching the target maneuvering mode according to the target maneuvering mode selected by the user, and obtains the speed ratio and distance ratio selected by the user, and is used to:
[0167] 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.
[0168] Based on the above embodiments, the drawing result generating module 340 is specifically used for:
[0169] 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;
[0170] According to the maneuver calculation result, a maneuver calculation result mark is drawn in the electronic ship operation chart.
[0171] The maneuvering calculation device based on the electronic ship maneuvering chart provided in the embodiment of the present invention can execute the maneuvering calculation method based on the electronic ship maneuvering chart provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0172] Embodiment 4
[0173] Figure 5 A schematic diagram of the structure of an electronic device 10 that can be used to implement an embodiment of the present invention is shown. 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 processing, 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 examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0174] like Figure 5 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and 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 to 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] A number of 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 disk, 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 a variety of general and / or special 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 special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, 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 an embodiment of the present invention. That is:
[0177] In response to the maneuvering calculation request sent by the user, a maneuvering calculation page of the electronic ship maneuvering chart is created, so that the user can operate in the maneuvering calculation page of the electronic ship maneuvering chart and read the maneuvering calculation result;
[0178] According to the target maneuvering mode selected by the user, determine the drawing information matching the target maneuvering mode, and obtain the speed ratio and distance ratio selected by the user;
[0179] 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;
[0180] In response to the calculation request sent by the user, a motorized drawing calculation result is generated according to the acquired calculation parameter values and the drawing information.
[0181] In some embodiments, the maneuvering calculation method based on the electronic ship operation chart can be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program can be loaded and / or installed on 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 operation chart described above can be performed. Alternatively, in other embodiments, the processor 11 can be configured to execute the maneuvering calculation method based on the electronic ship operation chart in any other appropriate manner (for example, by means of firmware).
[0182] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0183] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0184] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, device, or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, 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 disk 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 may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0186] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0187] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0188] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0189] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in 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 calculation request sent by the user, a maneuvering calculation page of the electronic ship maneuvering chart is created, so that the user can operate in the maneuvering calculation page of the electronic ship maneuvering chart and read the maneuvering calculation result; According to the target maneuvering mode selected by the user, determine the drawing information matching the target maneuvering mode, and obtain the speed ratio and distance ratio selected by the user; 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 the calculation request sent by the user, a motorized drawing calculation result is generated according to the acquired calculation parameter values and the drawing information.
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; The calculation parameter information includes multiple groups of calculation parameters and the acquisition order between the groups 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; 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 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; Determine the coordinate value of the mouse in the scene coordinate system according to the current mouse position and the pixel value preset in the graphics frame; wherein the current mouse position is the coordinate value of the mouse in the view coordinate system; According to the coordinate values, speed ratio and distance ratio in the scene coordinate system, the ship maneuver chart speed coordinates, ship maneuver chart distance coordinates or azimuth angle values in the ship maneuver chart coordinate system are obtained respectively, and according to the ship maneuver chart speed coordinates, ship maneuver chart distance coordinates or azimuth angle values, the calculation parameter values corresponding to the current drawing elements are determined.
7. The method according to claim 6, characterized in that 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 parameter identifier, and the calculated parameter value is filled in the target parameter value filling area.
8. 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.
9. 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.
10. 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; An information acquisition module, used to determine the drawing information matching the target maneuvering mode according to the target maneuvering mode selected by the user, and to obtain the speed ratio and distance ratio selected by the user; 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; The drawing and calculation result generating module is used to generate a motorized drawing and calculation result according to the obtained calculation parameter values and the drawing information in response to the calculation request sent by the user.
11. 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-9.
12. 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 9 when executed.
Citation Information
Patent Citations
Auxiliary method and device for navigation plotting work
CN109064878A
Naval vessel maneuvering drawing method based on electronic naval vessel operation diagram
CN112729314A
Smooth drawing method, device and equipment for moving target track
CN117830462A