Coordinate transformation method based on polar coordinate system point finding

By combining coarse-grained and fine-grained auxiliary lines in the polar coordinate interface, the problem of obtaining the precise location of the target point in the polar coordinate interface is solved, and the precise positioning of the target point is achieved.

CN115984367BActive Publication Date: 2026-01-27PLA OF CHINA AIR FORCE EARLY WARNING ACADEMY LEIDA SERGEANT SCHOOL
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202211323290.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-10-27
Publication Date
2026-01-27
Estimated Expiration
2042-10-27

AI Technical Summary

Technical Problem

Existing technologies cannot zoom in on the area where the target point is located in the polar coordinate interface, which makes it impossible to obtain the precise location of the target point, resulting in high barriers to entry and great difficulty.

Method used

In the radar scanning interface represented by polar coordinates, the approximate position coordinates of the target point in the first coordinate system are determined by using coarse-grained auxiliary lines. The position of the center origin is then determined by magnification. The precise position of the target point is obtained by using fine-grained auxiliary lines, including fine-grained range circles and azimuth auxiliary lines. Finally, the target point is displayed back in polar coordinates.

Benefits of technology

It enables precise positioning of target points in the polar coordinate interface, improving the accuracy and ease of use of target point location acquisition.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115984367B_ABST
    Figure CN115984367B_ABST
Patent Text Reader

Abstract

The application relates to a coordinate transformation method based on point searching in a polar coordinate system, which comprises the following steps: S1, a computer software determines the approximate position coordinates of a target point in a first coordinate system in a radar scanning interface represented by a polar coordinate with the aid of a coarse-grained auxiliary line according to azimuth and distance data broadcast by voice; S2, the area where the target point is located is enlarged, and the position coordinates of the central origin in the first coordinate system are determined; S3, the target point is moved to the central position of the enlarged area; S4, the position coordinates of the central origin in a second coordinate system are obtained; S5, fine-grained auxiliary lines are drawn in the enlarged area with the central origin as a reference, and the accurate position of the target point is obtained according to the fine-grained auxiliary lines, wherein the fine-grained auxiliary lines comprise fine-grained distance circle auxiliary lines and fine-grained azimuth angle auxiliary lines; and S6, the target point is echoed in the polar coordinate.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of educational training software, and in particular to a coordinate transformation method for finding points based on polar coordinates. Background Technology

[0002] The location of the aircraft, obtained by the periodic scanning of the radar, is marked on a plotting chart or entered into computer software. Then, by connecting each location point into a line, the flight trajectory of the aircraft within the radar detection range can be obtained. Current teaching lacks training in finding the point of the target in the radar coordinate system. Directly training to mark the complete flight track cannot obtain the precise location of the target point, which is difficult and has a high threshold.

[0003] Chinese patent ZL201780023180.7 discloses a method for reproducing the original flight trajectory and an aircraft. Its technical features are as follows: the aircraft captures a first image and collects flight status data at multiple flight moments. The flight status data includes at least one of position information, velocity information, and acceleration information. The aircraft generates a first trajectory based on the flight status data collected at multiple flight moments. The aircraft captures a second image while flying along the first trajectory. The aircraft compares the second image with the first image to determine the offset. The aircraft corrects the first trajectory based on the offset to allow the aircraft to continue flying. However, this method can only acquire the flight trajectory of the aircraft and cannot magnify the area where the aircraft is located in polar coordinates, thereby failing to accurately locate the aircraft in polar coordinates. Summary of the Invention

[0004] To address this issue, the present invention provides a coordinate transformation method for finding points based on polar coordinates, which can solve the technical problem that it is impossible to locally magnify the area where the target point is located in a computer-simulated polar coordinate interface and obtain the precise location of the target point through coordinate transformation.

[0005] To achieve the above objectives, this invention provides a coordinate transformation method for finding points in polar coordinates, comprising:

[0006] Step S1: Based on the azimuth and distance data broadcast by voice, the computer software determines the approximate position coordinates of the target point in the first coordinate system using coarse-grained auxiliary lines in the radar scanning interface represented by polar coordinates.

[0007] Step S2: Zoom in on the area where the target point is located and determine the position coordinates of the center origin in the first coordinate system;

[0008] Step S3: Move the target point to the center of the magnified area;

[0009] Step S4: Obtain the position coordinates of the center origin in the second coordinate system;

[0010] Step S5: Draw fine-grained auxiliary lines in the magnified area with the central origin as a reference, and obtain the precise position of the target point based on the fine-grained auxiliary lines. The fine-grained auxiliary lines include fine-grained distance circle auxiliary lines and fine-grained azimuth auxiliary lines.

[0011] Step S6: Display the target point back to the polar coordinates so that the position of the target point in the polar coordinates conforms to the preset standard.

[0012] Further, in step S1, the computer software constructs a first coordinate system with the upper left corner of the screen as the origin, the horizontal leftward direction as the positive x-axis, and the vertical downward direction of the x-axis as the positive y-axis. The coordinates of the first origin are O1(0,0), and the computer software obtains the approximate position coordinates A(X,Y) of the target point in the first coordinate system.

[0013] Where X is the horizontal offset of the target point relative to the first origin, and Y is the vertical offset of the target point relative to the first origin.

[0014] Further, in step S2, the computer software obtains the position coordinates O of the origin of the magnified area in the first coordinate system. 1n (X 1n ,Y 1n ),in,

[0015] X 1n =Xc×l 1x ;

[0016] Y 1n =Yc×l 1y ;

[0017]

[0018] Where c is the magnification factor, l 1x Let l be the difference between the target point A and the radar in the horizontal direction. 1y The computer software obtains the screen width (ScreenWidth) and height (ScreenHeight) based on the vertical difference between target point A and the radar.

[0019] Further, in step S3, the computer software constructs a second coordinate system with the upper left corner of the magnified area operation panel as the origin, the horizontal direction to the left as the positive x-axis, and the direction perpendicular to the x-axis downwards as the positive y-axis. The second origin coordinates are O2(0,0). The computer software moves the target point A to the center position A2 of the magnified area and obtains the position coordinates A2(C21) of the target point in the first coordinate system after the movement. x C21 yThe coordinates in the second coordinate system are A2(C2). x C2 y ),in,

[0020] C2 x = zoomPanelWidth / 2;

[0021] C2 y =zoomPanelHeight / 2;

[0022] C21 x =offsetX+C2 x ;

[0023] C21 y =offsetY+C2 y ;

[0024] offset2C2 x =C21 x -X;

[0025] offset2C2 y =C21 y -Y;

[0026] Wherein, zoomPanelWidth is the width of the zoom-in operation panel, zoomPanelHeight is the height of the zoom-in operation panel, offsetX is the horizontal offset of the second origin in the first coordinate system, offsetY is the vertical offset of the second origin coordinates in the first coordinate system, and offset2C2 x offset2C2 is the horizontal offset in the first coordinate system during the movement of target point A to A2. y This represents the vertical offset in the first coordinate system during the movement of target point A to A2.

[0027] Further, in step S4, the computer software obtains the position coordinates O of the central origin in the second coordinate system. 2n (X 2n ,Y 2n ),in,

[0028] X 12n =X 1n +offset2C2 x ;

[0029] Y 12n =Y 1n +offset2C2 y ;

[0030] X 2n=X 12n -offsetX;

[0031] Y 2n =Y 12n -offsetY;

[0032] Among them, (X) 12n Y 12n ) represents the position coordinates of the central origin in the first coordinate system with the second origin as the coordinate origin.

[0033] In step S5, the computer software obtains the fine-grained distance circle radius, wherein,

[0034]

[0035] Wherein, maxDistance is the maximum radius of the fine-grained range circle, circleNums is the number of concentric circles in the fine-grained range circle, maxL is the maximum radar detection range, d is the preset interval between adjacent fine-grained range circles, initRadius is the initial radius of the fine-grained range circle, and radiusStep is the radius increment step of the fine-grained range circle.

[0036] Furthermore, the computer software draws fine-grained distance circle auxiliary lines based on the initial radius and the radius increment step size, wherein when radius + radiusStep > l2, the current radius radius is marked as the center radius and marked with a special color;

[0037] Wherein, radius is the radius of the currently drawn fine-grained range circle, and l2 is the magnified length value of the distance l1 between the target point and the radar. l2 = c × l1.

[0038] Furthermore, the computer software acquires the azimuth line W, and the computer software takes the acquired angle value w modulo 5, wherein...

[0039] When (w mod 5) < 3, W = w - (w mod 5);

[0040] When (w mod 5) ≥ 3, W = w + 5 - (w mod 5).

[0041] Furthermore, the computer software uses the azimuth line as the initial value to draw fine-grained azimuth auxiliary lines, with an increment of 1 degree, increasing by 360 degrees, and draws rays at each angle, wherein the ray length is maxDistance.

[0042] Further, in step S6, the computer obtains the echo position (markX, markY) of the target point in the polar coordinates, wherein,

[0043] zoomOffsetX = zoomX - X 2n ;

[0044] zoomOffsetY = zoomY - Y 2n ;

[0045] shrinkX = zoomOffsetX / 6;

[0046] shrinkY = zoomOffsetY / 6;

[0047] markX = zoomX + shrinkX;

[0048] markY = zoomY + shrinkY;

[0049] Where (zoomX,zoomY) are the coordinates of the target point in the magnified area, and (zoomOffsetX,zoomOffsetY) are the offsets of the target point relative to the central origin in the horizontal and vertical directions, respectively.

[0050] Compared with the prior art, the beneficial effect of the present invention is that, in the present invention, the computer software determines the approximate position coordinates of the target point in the first coordinate system by using coarse-grained auxiliary lines in the radar scanning interface represented by polar coordinates, based on the azimuth and distance data broadcast by voice. After preliminary positioning, the area where the target point is located is magnified, and the position coordinates of the central origin in the first coordinate system are determined. To facilitate point finding, the target point is moved to the center position of the magnified area. As the target point moves, the position of the central origin changes accordingly. The computer software obtains the position coordinates of the central origin in the second coordinate system, draws fine-grained auxiliary lines in the magnified area with the central origin as the reference, and obtains the precise position of the target point based on the fine-grained auxiliary lines. The fine-grained auxiliary lines include fine-grained distance circle auxiliary lines and fine-grained azimuth auxiliary lines. After the target point is precisely positioned, the target point is displayed back in the polar coordinates so that the position of the target point in the polar coordinates conforms to a preset standard.

[0051] In particular, the coarse-grained auxiliary lines include azimuth lines and distance circles. The angle difference between adjacent azimuth lines is relatively large, and the distance difference represented by adjacent distance circles is also relatively large. The target point is determined by azimuth and distance. The target point is most likely to be located between adjacent azimuth angles and adjacent distance circles because the computer software constructs a first coordinate system and obtains the approximate position coordinates of the target point.

[0052] In particular, the computer software magnifies the area where the target point is located. In order to obtain the precise position of the target point, fine-grained auxiliary lines are needed for positioning. In order to draw fine-grained auxiliary lines in the magnified area, the central origin of the magnified area needs to be determined. Because the position of the target point changes, the position of the magnified area will also change, and the position of the central origin of the magnified area will also change. Therefore, the computer software obtains the distance line segment between the target point and the radar, and extends the distance line segment in the opposite direction by the magnification factor to obtain the position coordinates of the central origin of the magnified area in the first coordinate system.

[0053] In particular, to facilitate finding the point, the target point needs to be moved to the center of the magnified area. Since the target point is at the center of the magnified area, the computer software first obtains the position coordinates of the target point in the second coordinate system based on the width and height of the magnified area operation panel. The target point is also in the first coordinate system. Based on the horizontal and vertical offsets of the second origin relative to the first origin, the computer software obtains the position coordinates of the target point in the first coordinate system. Since the center origin of the magnified area changes with the position of the target point, the computer software obtains the trajectory of the target point moving to the center of the magnified area and moves the center origin in the same way. The moved center origin is still in the first coordinate system. Therefore, the computer software obtains the position of the center origin in the first coordinate system with the second origin as the coordinate origin. Then, similarly, based on the relationship between the second origin and the first origin, the position coordinates of the center origin in the second coordinate system are obtained.

[0054] In particular, the computer software obtains the maximum radius of the fine-grained range circle based on the maximum magnification of the magnification area and the screen height, obtains the number of fine-grained range circles based on the maximum radar detection range and the interval between adjacent fine-grained range circles, and obtains the initial radius and the step size for radius increment of the fine-grained range circle in the magnification area through the maximum radius and the number. The computer software draws auxiliary lines for the fine-grained range circle with the origin in the second coordinate system as the center, based on the initial radius and the step size for radius increment. If the radius of the range circle being drawn, after adding the increment step size, is greater than the target point... The computer software magnifies the radar range and marks the current radius as the center radius with a special color. It then modulo the angle values ​​to convert them into azimuth lines closest to a whole 5 degrees. After obtaining the azimuth lines, the software uses the origin as the center point and the azimuth lines as the initial values, incrementing by one degree for every 360 degrees. At each angle, it draws a ray with a length equal to the maximum radius of the fine-grained range circle, thus forming a fine-grained azimuth auxiliary line. The precise position of the target point in the magnified area is determined by the fine-grained range circle and the fine-grained azimuth auxiliary line.

[0055] In particular, after the computer software determines the position of the target point in the magnified area, the target point is selected, the magnified area disappears, and the target point is displayed in the polar coordinates. The computer software calculates the horizontal and vertical offset of the target point relative to the central origin in the magnified area, and reduces the offset according to the magnification factor of the magnified area, thereby obtaining the accurate position of the target point in the polar coordinates. Attached Figure Description

[0056] Figure 1 This is a flowchart of a coordinate transformation method for finding points in polar coordinates, as described in an embodiment of the invention.

[0057] Figure 2 This is a schematic diagram of radar target detection according to an embodiment of the present invention;

[0058] Figure 3 A coordinate diagram is constructed for the embodiments of the invention;

[0059] Figure 4 This is a schematic diagram illustrating the change in coordinate position according to an embodiment of the invention;

[0060] Figure 5 This is a schematic diagram of the computer software point-finding process in an embodiment of the invention;

[0061] Figure 6 This is a schematic diagram showing the approximate location of an embodiment of the invention.

[0062] Figure 7 This is an enlarged schematic diagram of the window opening in an embodiment of the invention;

[0063] Figure 8 A schematic diagram illustrating the calculation of the distance between A(X,Y) and the radar in an embodiment of the invention;

[0064] Figure 9 This is a magnified view of an embodiment of the invention.

[0065] Figure 10 This is a schematic diagram illustrating the movement of A to the center of the magnified area according to an embodiment of the invention;

[0066] Figure 11 For the embodiments of the invention, move O 1n A schematic diagram in coordinate system 2;

[0067] Figure 12 A schematic diagram of the distance circle auxiliary lines is drawn for the embodiments of the invention;

[0068] Figure 13 This is a schematic diagram of finding points in the magnified area of ​​an embodiment of the invention;

[0069] Figure 14 This is a schematic diagram showing the coordinates of an embodiment of the invention.

[0070] Figure 15This is a schematic diagram illustrating the conversion of coordinate values ​​to azimuth distance in an embodiment of the invention.

[0071] Figure 16 A schematic diagram of a method for transforming azimuth distance into coordinate values ​​according to an embodiment of the invention. Detailed Implementation

[0072] To make the objectives and advantages of the present invention clearer, the present invention will be further described below with reference to embodiments; it should be understood that the specific embodiments described herein are merely for explaining the present invention and are not intended to limit the present invention.

[0073] Preferred embodiments of the present invention will now be described with reference to the accompanying drawings. Those skilled in the art should understand that these embodiments are merely illustrative of the technical principles of the present invention and are not intended to limit the scope of protection of the present invention.

[0074] It should be noted that in the description of this invention, the terms "upper", "lower", "left", "right", "inner", "outer", etc., which indicate directions or positional relationships, are based on the directions or positional relationships shown in the accompanying drawings. This is only for the convenience of description and is not intended to indicate or imply that the device or element must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, it should not be construed as a limitation of this invention.

[0075] Furthermore, it should be noted that, in the description of this invention, unless otherwise explicitly specified and limited, the terms "installation," "connection," and "linking" should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral connection; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; and they can refer to the internal connection of two components. Those skilled in the art can understand the specific meaning of the above terms in this invention according to the specific circumstances.

[0076] Please see Figure 1 As shown, it is a flowchart of the coordinate transformation method for finding points based on polar coordinates according to an embodiment of the present invention, including,

[0077] Step S1: Based on the azimuth and distance data broadcast by voice, the computer software determines the approximate position coordinates of the target point in the first coordinate system using coarse-grained auxiliary lines in the radar scanning interface represented by polar coordinates.

[0078] Step S2: Zoom in on the area where the target point is located and determine the position coordinates of the center origin in the first coordinate system;

[0079] Step S3: Move the target point to the center of the magnified area;

[0080] Step S4: Obtain the position coordinates of the center origin in the second coordinate system;

[0081] Step S5: Draw fine-grained auxiliary lines in the magnified area with the central origin as a reference, and obtain the precise position of the target point based on the fine-grained auxiliary lines. The fine-grained auxiliary lines include fine-grained distance circle auxiliary lines and fine-grained azimuth auxiliary lines.

[0082] Step S6: Display the target point back to the polar coordinates so that the position of the target point in the polar coordinates conforms to the preset standard.

[0083] In step S1, the computer software constructs a first coordinate system with the upper left corner of the screen as the origin, the horizontal leftward direction as the positive x-axis, and the vertical downward direction of the x-axis as the positive y-axis. The coordinates of the first origin are O1(0,0). The computer software obtains the approximate position coordinates A(X,Y) of the target point in the first coordinate system.

[0084] Where X is the horizontal offset of the target point relative to the first origin, and Y is the vertical offset of the target point relative to the first origin.

[0085] Specifically, the coarse-grained auxiliary lines include azimuth lines and distance circles. The angle difference between adjacent azimuth lines is relatively large, and the distance difference represented by adjacent distance circles is also relatively large. The target point is determined by azimuth and distance. The target point is most likely located between adjacent azimuth angles and adjacent distance circles because the computer software constructs a first coordinate system and obtains the approximate position coordinates of the target point.

[0086] In step S2, the computer software obtains the position coordinates O of the center origin of the magnified area in the first coordinate system. 1n (X 1n ,Y 1n ),in,

[0087] X 1n =Xc×l 1x ;

[0088] Y 1n =Yc×l 1y ;

[0089]

[0090] Where c is the magnification factor, l 1x Let l be the difference between the target point A and the radar in the horizontal direction. 1y The computer software obtains the screen width (ScreenWidth) and height (ScreenHeight) based on the vertical difference between target point A and the radar.

[0091] Specifically, the computer software magnifies the area where the target point is located. In order to obtain the precise position of the target point, fine-grained auxiliary lines are needed for positioning. In order to draw fine-grained auxiliary lines in the magnified area, the central origin of the magnified area needs to be determined. Because the position of the magnified area will change as the position of the target point changes, the position of the central origin of the magnified area will also change. Therefore, the computer software obtains the distance line segment between the target point and the radar, and extends the distance line segment in the opposite direction by the magnification factor to obtain the position coordinates of the central origin of the magnified area in the first coordinate system.

[0092] In step S3, the computer software constructs a second coordinate system with the upper left corner of the magnified area operation panel as the origin, the horizontal direction to the left as the positive x-axis, and the direction perpendicular to the x-axis downwards as the positive y-axis. The second origin coordinates are O2(0,0). The computer software moves the target point A to the center position A2 of the magnified area and obtains the position coordinates A2(C21) of the target point in the first coordinate system after the movement. x C21 y The coordinates in the second coordinate system are A2(C2). x C2 y ),in,

[0093] C2 x = zoomPanelWidth / 2;

[0094] C2 y =zoomPanelHeight / 2;

[0095] C21 x =offsetX+C2 x ;

[0096] C21 y =offsetY+C2 y ;

[0097] offset2C2 x =C21 x -X;

[0098] offset2C2 y =C21 y -Y;

[0099] Wherein, zoomPanelWidth is the width of the zoom-in operation panel, zoomPanelHeight is the height of the zoom-in operation panel, offsetX is the horizontal offset of the second origin in the first coordinate system, offsetY is the vertical offset of the second origin coordinates in the first coordinate system, and offset2C2 xoffset2C2 is the horizontal offset in the first coordinate system during the movement of target point A to A2. y This represents the vertical offset in the first coordinate system during the movement of target point A to A2.

[0100] In step S4, the computer software obtains the position coordinates O of the center origin in the second coordinate system. 2n (X 2n ,Y 2n ),in,

[0101] X 12n =X 1n +offset2C2 x ;

[0102] Y 12n =Y 1n +offset2C2 y ;

[0103] X 2n =X 12n -offsetX;

[0104] Y 2n =Y 12n -offsetY;

[0105] Among them, (X) 12n Y 12n ) represents the position coordinates of the central origin in the first coordinate system with the second origin as the coordinate origin.

[0106] Specifically, to facilitate finding the point, the target point needs to be moved to the center of the magnified area. Since the target point is at the center of the magnified area, the computer software first obtains the position coordinates of the target point in the second coordinate system based on the width and height of the magnified area operation panel. The target point is also in the first coordinate system. Based on the horizontal and vertical offsets of the second origin relative to the first origin, the computer software obtains the position coordinates of the target point in the first coordinate system. Because the center origin of the magnified area changes with the position of the target point, the computer software obtains the trajectory of the target point moving to the center of the magnified area and moves the center origin in the same way. The moved center origin is still in the first coordinate system. Therefore, the computer software obtains the position of the center origin in the first coordinate system with the second origin as the coordinate origin. Then, similarly, based on the relationship between the second origin and the first origin, the position coordinates of the center origin in the second coordinate system are obtained.

[0107] In step S5, the computer software obtains the fine-grained distance circle radius, wherein,

[0108]

[0109]

[0110] Wherein, maxDistance is the maximum radius of the fine-grained range circle, circleNums is the number of concentric circles in the fine-grained range circle, maxL is the maximum radar detection range, d is the preset interval between adjacent fine-grained range circles, initRadius is the initial radius of the fine-grained range circle, and radiusStep is the radius increment step of the fine-grained range circle.

[0111] The computer software draws fine-grained distance circle auxiliary lines based on the initial radius and the radius increment step size. When radius + radiusStep > l2, the current radius radius is marked as the center radius and marked with a special color.

[0112] Wherein, radius is the radius of the currently drawn fine-grained range circle, and l2 is the magnified length value of the distance l1 between the target point and the radar. l2 = c × l1.

[0113] Specifically, the fine-grained distance circle is defined as the maximum radius and the initial radius unit of pixels.

[0114] The computer software acquires the azimuth line W, and then takes the acquired angle value w modulo 5.

[0115] When (w mod 5) < 3, W = w - (w mod 5);

[0116] When (w mod 5) ≥ 3, W = w + 5 - (w mod 5).

[0117] The computer software draws fine-grained azimuth auxiliary lines with the azimuth line as the initial value, in increments of 1 degree, increasing by 360 degrees, and draws rays at each angle, where the ray length is maxDistance.

[0118] Specifically, the computer software obtains the maximum radius of the fine-grained range circle based on the magnification factor of the magnified area and the screen height, and obtains the number of fine-grained range circles based on the maximum radar detection range and the interval between adjacent fine-grained range circles. It then uses the maximum radius and the number of circles to obtain the initial radius and the step size for radius increment of the fine-grained range circles in the magnified area. The computer software draws auxiliary lines for the fine-grained range circles with the origin in the second coordinate system as the center, based on the initial radius and the step size. If the radius of the range circle being drawn, after adding the increment step size, is greater than the target point... The computer software magnifies the radar distance and marks the current radius as the center radius with a special color. The computer software modulo the angle value and converts the angle value into an azimuth line closest to a whole 5 degrees. After obtaining the azimuth line, the computer software takes the center origin as the center and the azimuth line as the initial value, increments by one degree, and increases by 360 degrees. At each angle, it draws a ray with a length equal to the maximum radius of the fine-grained range circle, thereby forming a fine-grained azimuth auxiliary line. The precise position of the target point in the magnified area is determined by the fine-grained range circle and the fine-grained azimuth auxiliary line.

[0119] In step S6, the computer obtains the echo position (markX, markY) of the target point in the polar coordinates, wherein,

[0120] zoomOffsetX = zoomX - X 2n ;

[0121] zoomOffsetY = zoomY - Y 2n ;

[0122] shrinkX = zoomOffsetX / 6;

[0123] shrinkY = zoomOffsetY / 6;

[0124] markX = zoomX + shrinkX;

[0125] markY = zoomY + shrinkY;

[0126] Where (zoomX,zoomY) are the coordinates of the target point in the magnified area, and (zoomOffsetX,zoomOffsetY) are the offsets of the target point relative to the central origin in the horizontal and vertical directions, respectively.

[0127] Specifically, after the computer software determines the position of the target point in the magnified area, it selects the target point, the magnified area disappears, and the target point is displayed in the polar coordinates. The computer software calculates the horizontal and vertical offset of the target point relative to the central origin in the magnified area, and reduces the offset according to the magnification factor of the magnified area, thereby obtaining the accurate position of the target point in the polar coordinates.

[0128] Specifically, the location of the aircraft obtained by the periodic scanning of the radar is marked on the plotting paper or entered into the computer software. By connecting each location point into a line, the flight trajectory of the aircraft within the radar detection range can be obtained. Current teaching lacks training in finding points of the target in the radar coordinate system. Directly training to mark the complete flight track is difficult and has a high threshold.

[0129] Accordingly, this invention provides a coordinate transformation method for finding points in polar coordinates. Please refer to [link to relevant documentation]. Figure 2 As shown, this is a schematic diagram of radar target detection in an embodiment of the present invention. The radar detection range is represented by a circular area, with the center point of the area being the location of the radar. The farthest distance that the radar can detect is taken as the radius of the circular area. The azimuth is taken as due north as 0°, and it increases by 1° clockwise each time to 360°, with 360° coinciding with 0°. The unit of distance is kilometers (km), with the center point being 0km. The distance is the length from the location of the target in the circular area to the center point. When an aerial target enters the radar detection range and is detected, its position information is mainly represented by its azimuth and range. The azimuth value is fixed at 1 to 360, and the range is 1 to 400. At this time, the target position can be represented by azimuth and range as (084, 290). The azimuth and range are usually taken as integers and represented by three digits. If the number is less than three digits, zeros are added in front. The first number, 084, is the azimuth, which is the target's current azimuth when the direction is due north and rotated 84° clockwise. The second number, 290, is the range, which is the distance from the target's location to the radar, which is 290 km.

[0130] This method is based on a system core developed in Java, with the system interface constructed using Swing components and system functions implemented through Swing's mouse event handling mechanism. The voice broadcast function requires invoking the operating system's voice for speech synthesis; therefore, Jacob is introduced, primarily as a wrapper for C++ calls to the operating system interface. JNI is then used to implement Java calls to C++, necessitating the use of dynamic link libraries. Data is stored locally in files, resulting in high read / write efficiency.

[0131] Please see Figure 3As shown, it is a schematic diagram of the coordinate system constructed according to an embodiment of the present invention. Specifically, in Swing programming, the current position of the mouse on the computer screen can be obtained by programming. The unit of this position information is represented by pixels. The coordinate system of the position is based on the upper left corner of the screen as the origin, with the positive x-axis along the horizontal left and the positive y-axis along the vertical down.

[0132] Please see Figure 4 As shown, this is a schematic diagram of the coordinate position change in an embodiment of the present invention. When the Swing control JDialog is displayed, the origin of the coordinate system is the upper left corner of the JDialog dialog box. At this time, the position of the mouse is offset relative to the upper left corner of JDialog in the x and y directions. The coordinate system with the upper left corner of the screen (i.e., the red solid circle in the figure) as the origin is called coordinate system 1, and the coordinate system with the upper left corner of the pop-up box JDialog as the origin is called coordinate system 2. When a pop-up window appears on the interface, the coordinate system of the mouse will change.

[0133] Please see Figure 5 As shown, this is a schematic diagram of the computer software point-finding process according to an embodiment of the present invention. It includes locating the approximate position of the target in the radar scanning interface simulated by the software, which is the azimuth and distance circle represented by polar coordinates, based on the azimuth and distance data broadcast by voice. Clicking on the position can zoom in on the area including the position and the specified range nearby in the pop-up box. The precise position represented by the azimuth and distance can be found with the help of the fine-grained auxiliary lines in the zoomed-in area. After finding the position, left-clicking the mouse will make the zoomed-in area disappear. The coordinates of the selected point in the zoomed-in area will be transformed and displayed back in polar coordinates.

[0134] During the point-finding process described above, two coordinate system transformations occurred: when the zoom-in area was opened, coordinate system 1 was transformed into coordinate system 2, and when the zoom-in area was closed, coordinate system 2 was transformed back into coordinate system 1. Two polar coordinate center transformations occurred: one was to calculate the center of the concentric circles in coordinate system 2 and then draw fine-grained auxiliary lines when zooming in on a local area; the other was to calculate the center of the concentric circles in coordinate system 1, draw polar coordinates, and then display the point's location in the polar coordinates. Two coordinate point transformations occurred: one was to transform the approximate position in polar coordinates to display at the center of the zoom-in area; the other was to transform the coordinate position in the zoom-in area according to the zoom level and coordinate system changes after accurately finding the point in the zoom-in area and then display it at the corresponding position in polar coordinates.

[0135] Specifically, this embodiment of the invention takes the azimuth distance (084, 290) as an example, and the specific point finding process and coordinate transformation method are illustrated as follows: (1) Locating the approximate location, please refer to Figure 6As shown, this is a schematic diagram illustrating the approximate location of an embodiment of the present invention. First, the width and height of the computer screen are obtained, denoted as ScreenWidth and ScreenHeight, respectively. Assuming the maximum radar detection range is 400km, the figure shows a radar scanning interface simulated in polar coordinates by software. The maximum radar detection range is represented by... Let O1(0,0) represent the origin of coordinate system 1, with the radar's location as the center origin of polar coordinates. Therefore, the coordinates of the center origin are... Represented by O, denoted as from Figure 6 As can be seen, the azimuth auxiliary lines are only multiples of 30°, while the range circle auxiliary lines are all multiples of 100km. Clearly, these auxiliary lines can only accurately represent coordinates where the azimuth is a multiple of 30° and the distance is a multiple of 100km—that is, the intersection of the azimuth line and the range circle auxiliary lines on the polar coordinate map. The target position (084, 290) indicates an azimuth of 84°, not a multiple of 30°, and a distance of 290km from the radar, not a multiple of 100km. Therefore, only a general location can be determined: the azimuth is between 60° and 90°, closer to the 90° azimuth auxiliary line, and the distance is between 200km and 300km, closer to the 300km range circle auxiliary line. This general location is represented by A(X,Y), where (X,Y) represents the horizontal and vertical offsets of the general location relative to the origin O1 of the coordinate system, respectively. To find the accurate location, the area around A needs to be magnified, and the auxiliary lines need to be more refined.

[0136] (2) Zoom in by opening a window. Click on point A to zoom in on the surrounding area, such as... Figure 7 As shown, this is a schematic diagram of the zoomed-in window in an embodiment of the present invention. The origin of coordinate system 2 is denoted as O2(0,0). The horizontal and vertical offsets of O2 in coordinate system 1 are offsetX and offsetY, respectively. The width and height of the zoomed-in operation panel are denoted as zoomPanelWidth and zoomPanelHeight, respectively. To display fine-grained auxiliary lines in the zoomed-in area, a new center origin needs to be found. Fine-grained azimuth and distance auxiliary lines are drawn based on this new center origin, and this new center origin is called the new center. Furthermore, while the position of the windowed interface on the screen is fixed, the range of auxiliary lines displayed in the zoomed-in area needs to change depending on the position of A. This means that the position of the new center is not static but also dynamically changes with the position of A. The process of opening the window and magnifying: Extend the line segment connecting A and radar position O in the opposite direction. The extension length is the product of the magnification factor and the length of AO. The endpoint of the extended line segment is the position of the new center in coordinate system 1. Then, the new center is converted into the position in coordinate system 2 by offsetting in the horizontal and vertical directions. Then, draw auxiliary lines.

[0137] The detailed steps to achieve window magnification are as follows: (See attached document) Figure 8 As shown, this is a schematic diagram illustrating the calculation of the distance between A(X,Y) and the radar according to an embodiment of the present invention. Specifically, in the first step, l1 represents the distance between A(X,Y) and the radar, and l... 1x The difference between A and the radar in the horizontal direction is represented by l. 1y This represents the difference between A and the radar in the vertical direction, and A(X,Y) represents the horizontal offset l relative to the radar origin. 1x The ratio of l1 to l1 is the sin value of the azimuth angle, denoted by θ.

[0138] l 1x l 1y The formulas for calculating l1 and θ are as follows:

[0139]

[0140] See Figure 9 As shown, this is a schematic diagram of the magnified distance in an embodiment of the present invention, namely the second step, in which the distance line segment obtained in the first step is extended in the opposite direction by a magnification factor. The magnification factor set in the software is 6 times, to obtain the magnified length value l2 and the coordinates O of the new center in coordinate system 1. 1n (X 1n ,Y 1n ), l2, X 1n Y 1n The calculation formula is as follows:

[0141] l2 = 6 * l1

[0142] X 1n =X-6*l 1x

[0143] Y 1n =Y-6*l 1y

[0144] Please see Figure 10 As shown, this is a schematic diagram of moving A to the center of the magnified area in an embodiment of the present invention, i.e., the third step. In order to find the point better, it is necessary to move A(X,Y) to the center of the magnified area. Assuming that the green solid circle in coordinate system 1 represents A(X,Y), and A2 represents the position of A along line segment M in coordinate system 2, it can be seen that A2 is simultaneously in coordinate system 1 and coordinate system 2, corresponding to two coordinate values, using (C2) x C2 y (C21) represents the position of A2 in coordinate system 2. x C21 y This represents the position of A2 in coordinate system 1, where A is offset by offset2C2 in the horizontal and vertical directions of coordinate system 1, respectively.x offset2C2 y It can be moved to position A2, so the coordinates after moving according to line segment M are still in coordinate system 1;

[0145] C2 x C2 y C21 x C21 y offset2C2 x offset2C2 y The calculation formula is as follows:

[0146] C2 x =zoomPanelWidth / 2

[0147] C2 y =zoomPanelHeight / 2

[0148] C21 x =offsetX+C2 x

[0149] C21 y =offsetY+C2 y

[0150] offset2C2 x =C21 x -X

[0151] offset2C2 y =C21 y -Y

[0152] Please see Figure 11 As shown, it is a mobile O in an embodiment of the present invention. 1n To the diagram in coordinate system 2, i.e., step four, first, O... 1n (X 1n ,Y 1n Move along line segment M to O 12n (X 12n ,Y 12n Since the coordinates after moving along line segment M are in coordinate system 1, therefore O 12n The new center is located in coordinate system 1 with O2 as the origin, and then offset by offsets X and Y to make O... 12n Move to O in coordinate system 2 2n (X 2n ,Y 2n ), O 2n This is the position of the new center of the circle in coordinate system 2.

[0153] X 12nY 12n X 2n Y 2n The calculation formula is as follows:

[0154] X 12n =X 1n +offset2C2 x

[0155] Y 12n =Y 1n +offset2C2 y

[0156] X 2n =X 12n -offsetX

[0157] Y 2n =Y 12n -offsetY

[0158] Step 5: Calculate the radius of the distance circle. The maximum radius of the concentric circles in the simulated scanning area. Multiplying by the magnification factor of 6 yields the maximum radius of the concentric circles in the magnified region, denoted as . (In pixels), the radar's maximum detection range is 400km. Range circles are drawn at 10km intervals; the number of concentric circles is denoted as [missing information]. The maximum radius is divided by the number of concentric circles to obtain the initial radius `initRadius` and the radius increment `radiusStep`. (in pixels);

[0159] Please see Figure 12 As shown, this is a schematic diagram of drawing auxiliary lines for the distance circle in an embodiment of the present invention, namely the sixth step. With the new center of the circle in coordinate system 2 as the center, an auxiliary distance circle is drawn with an initial radius and an incremental step size. The radius of the distance circle currently being drawn is represented by radius, and its initial value is equal to initRadius. radiusStep is increased for each circle. When the current radius plus the incremental step size is greater than the magnified distance value in the second step, that is, radius + radiusStep > l2, the current radius radius is marked as the center radius and marked with a special color.

[0160] Step 7: Take the center 5-degree azimuth line. Take the angle value modulo 5. If the result is less than 3, subtract the result of the modulo operation from the angle value. Otherwise, add the result of the modulo operation from 5. This way, the angle value can be converted into the closest 5-degree azimuth line.

[0161] Step 8: Draw azimuth auxiliary lines. Using the new center of the circle in coordinate system 2 as the center, with the angle value from the previous step as the initial value, and an increment of 1 degree, increase by 360 degrees. Draw a ray at each angle, with a ray length of maxDistance, to form the azimuth auxiliary lines.

[0162] The specific point-finding process and coordinate transformation method also include (3) finding points in the magnified area. Please refer to [link to relevant documentation]. Figure 13 As shown, it is a schematic diagram of finding points in the magnified area according to an embodiment of the present invention. In the magnified area, you can see auxiliary lines for each azimuth angle from 1 to 360 degrees. There are auxiliary lines for distance circles every 10km. The center auxiliary lines of the azimuth angle and the distance circle are marked with a special color. The intersection point is close to the approximate position A in coordinate system 1. With the help of the information provided by these auxiliary lines, it is easy to find the accurate position (084, 290).

[0163] The specific point-finding process and coordinate transformation method also include (4) coordinate display. Please refer to [link to relevant documentation]. Figure 14 As shown, this is a schematic diagram of coordinate display in an embodiment of the present invention. It includes the following steps: After selecting a target location in the magnified area, the magnified area disappears, and the selected target point needs to be displayed in polar coordinates. As shown in the figure, this requires proportional scaling to display the mark at the corresponding position in polar coordinates. The coordinate position selected in the magnified area is denoted as (zoomX, zoomY). The transformation process consists of three steps: ① Calculate the offset of the selected coordinate position in the magnified area relative to the center of the magnified area in the horizontal and vertical directions (zoomOffsetX, zoomOffsetY); ② Reduce the offset by the magnification factor, i.e., divide by 6, denoted as (shrinkX, shrinkY); ③ Add the offset from step one to the radar origin coordinates in coordinate system 1, i.e., the coordinates of the selected position in the magnified area displayed in polar coordinates (markX, markY).

[0164] The formulas for calculating zoomOffsetX, zoomOffsetY, shrinkX, shrinkY, markX, and markY are as follows:

[0165] zoomOffsetX = zoomX - X 2n

[0166] zoomOffsetY = zoomY - Y 2n

[0167] shrinkX = zoomOffsetX / 6

[0168] shrinkY = zoomOffsetY / 6

[0169] markX = zoomX + shrinkX

[0170] markY = zoomY + shrinkY

[0171] Specifically, the method for coordinate orientation distance transformation in this embodiment of the invention includes converting coordinate values ​​into orientation distance. Sometimes, after point-finding training, there may be doubts about the software's judgment results. Therefore, the point-finding results are saved to a file after each training session. This can be verified by comparing the results with the target report. However, the points found on the interface are the offsets of the mouse position relative to the origin in the coordinate system along the x-axis and y-axis, while the data in the target report is in orientation distance format. To facilitate verification, it is necessary to convert the coordinate values ​​into orientation distance data. In addition, when the mouse moves in the interface, the orientation distance information corresponding to the mouse position is displayed in real time, which helps to find points better. In this case, it is also necessary to convert the coordinate values ​​into orientation distance.

[0172] Please see Figure 15 As shown, it is a schematic diagram of converting coordinate values ​​into azimuth distance according to an embodiment of the present invention, wherein... The origin of the polar coordinate system represents the location of the radar. A(X,Y) represents the found point, where X and Y are the horizontal and vertical coordinates of A in the coordinate system. After conversion to azimuth and distance, it becomes (θ,L), where θ is the angle between OA and true north, i.e., the azimuth angle, and L is the length of line segment OA, i.e., the distance between the target and the radar, in km, with a maximum distance of 400 km. The square root of the sum of the squares of the differences between the horizontal and vertical coordinates of point O and point A is the value of L. In the diagram, ΔY represents the difference between point O and point A in the vertical coordinate. The inverse cosine of the ratio of ΔY to L is the azimuth angle θ. It should be noted that the azimuth angle gradually increases clockwise from true north. The angle between OA and true north first increases from 0° to 180°. When it exceeds 180°, the angle will increase back from 0° to 180°. Therefore, when it exceeds 180°, that is, when the radar reaches its maximum range, the radar will be in a more advanced state. When ΔY is the inverse cosine of the ratio of ΔY to L, adding 180° gives the azimuth angle.

[0173] The formulas for calculating θ and L are as follows:

[0174]

[0175] Specifically, the method for converting azimuth distance to coordinate values ​​in the embodiments of the present invention includes the following steps: In point-finding training, in order to intuitively display the deviation between the found point and the correct report on the software interface, in addition to displaying the found point on the interface, the desired report should also be marked on the interface. However, the desired report uses azimuth distance to represent the target position, while the software interface uses coordinate values ​​in the coordinate system to represent the position. At this time, the azimuth distance needs to be converted into coordinate values.

[0176] Please see Figure 16As shown, this is a schematic diagram of the method for transforming azimuth distance into coordinate values ​​according to an embodiment of the present invention. It includes ΔX representing the difference in the horizontal coordinate between point O and point A. The meanings of other symbols are the same as those shown in the previous diagram. Clearly, the ratio of ΔX to L is the sin value of the azimuth angle θ, and the ratio of ΔY to L is the cos value of the azimuth angle θ. ΔX and ΔY are easy to calculate. The coordinates of the origin O plus the offsets of ΔX and ΔY give the coordinates of point A. This transforms the target position represented by azimuth distance (θ, L) into coordinate value A(X, Y). It should be noted that L represents distance in km, with a maximum value of 400 km. In the coordinate system, L should represent length in pixels, with a maximum value of [missing value]. Therefore, L, which represents km, also needs to be converted into pixels. Assuming that the pixel size represented by L in the coordinate system is μ, then... so

[0177] The formulas for calculating ΔX, ΔY, X, and Y are as follows:

[0178]

[0179] Specifically, this invention provides a preferred voice broadcasting method. This function involves introducing the third-party dependency jacob.jar into a Java project. Internally, jacob.jar uses JNI to encapsulate method calls to the C++ operating system voice function interface in the dynamic link library jacob-1.18-x86.dll. Therefore, the dll file first needs to be copied to the C:\\Windows\\System32 directory. The file copying code is shown in the figure. This code is executed at the software entry point, and the dll file copy is completed as soon as the software starts. Additionally, the dll file also needs to be placed in the jre\bin directory of the Java environment, as the JRE is built into the executable file.

[0180] The azimuth and distance in the scenario report base are Arabic numerals, but military communications use military numerals, so they need to be converted into military numerals. The corresponding pronunciations of Arabic numerals and military numerals are shown in the table. After conversion, "084,290" indicating the target position becomes "Dong Ba Si Liang Gou Dong". Additionally, to adapt to radar troops, male voices should be used for voice announcements. Therefore, a dedicated voice pack needs to be installed before running the software to avoid using the default female voice of the system. The installation file is TTS\\NextUp.com-NeoSpeech Chinese Wang16 Voice.msi. Selecting the voice pack and performing other configurations can be set by adding xml tags to the announcement content. For example, after specifying the voice pack, the announcement content is "<voicerequired='Name=VW Wang'>Dong Ba Si Liang Gou Dong", and the value of Name corresponds to the Name attribute value of the voice pack in the system registry.

[0181] According to the teaching progress, learning situation, and proficiency level, it is necessary to adjust the speed of the scenario announcement. The playback speed is controlled by two parameters. One is the speed of reading the content of the announcement text itself, implemented as "<rate speed=”>”. The value of speed ranges from -10 to 10. The other is the interval time between reading each target position, implemented as "<silence msec=” / >”. The unit of msec is milliseconds. For example, "<rate speed=’5’>Dong Ba Si Liang Gou Dong<silencemsec=’3000’ / >" means that after reading "Dong Ba Si Liang Gou Dong" at a rate of 5, there is an interval of 3 seconds before reading the next text content. As shown below, speedRateMap represents the rates corresponding to different scenario speeds selected in the interface, and intervalMap represents the time intervals corresponding to different scenario speeds selected in the interface.

[0182] Software deployment, operating environment: Windows7 32-bit operating system. Operating method: Double-click to run the executable file (Polar Coordinate Precise Point Finding Training Software.exe). The specific steps to create the exe file are as follows

[0183] (1) Generate a jar file. This software is developed using eclipse in the IDE.

[0184] Step 1: Right-click on the project and select Export

[0185] Step 2: Select Runnable JAR file

[0186] Step 3: Export as a JAR file. In the Launch configuration dropdown menu, select the entry point of your Java project. The entry point is the filename of the Java application containing the main file; in this software, it's MainFrame. Click Browse to select a location on your computer to store the exported JAR file, and name it locationpoint.jar. Next, select Package required libraries into generated JAR. Finally, click the Finish button to successfully export locationpoint.jar to the specified folder.

[0187] (2) Create an EXE file

[0188] Step 1: Install the exe4j software.

[0189] Step 2: Open the exe4j software. After launching it, you will see a welcome screen. Click the Next button in the lower right corner.

[0190] Step 3: In Choose project type, select “JAR in EXE” mode, and then click the Next button.

[0191] Step 4: Enter the project name in the first text box, select the folder where the exe file is stored in the second text box, and then click Next.

[0192] Step 5: Give the .exe program a name, select the software .ico file in Icon File, and then click Next.

[0193] Step 6: Import the JAR file in the Java invocation interface. Click the green plus sign on the right. In the pop-up dialog box, click the button with three dots in the middle to locate the JAR file in the folder. In the pop-up dialog box, select the JAR file, click Open, and then click OK. Import other third-party dependent JAR files in the same way.

[0194] Step 7: After adding all the JAR files, select the main class as the program entry point.

[0195] Step 8: Configure Java version. The generated .exe file still requires Java environment support. Enter the minimum and maximum Java versions supported by the program in the first two boxes. Here, we select 1.7 and 1.9. In the Options drop-down menu, select Search sequence to configure the JRE address.

[0196] Step 9: Configure the JRE address. First, select the existing Search sequence, then click the delete button on the right to remove the three default addresses. These three addresses are for the program to find the JRE from the host system. However, some hosts do not have a Java environment installed, so configuring the JRE will allow the program to include its own JRE folder instead of using the host system's Java environment. Therefore, the JRE folder from the local system will be included in the folder of the final generated EXE file. (The JRE folder can be obtained by downloading and installing Java.)

[0197] Step 10: Click Finish to generate the .exe program and save it in the designated folder.

[0198] During software deployment, in addition to the core .exe file, other dependent files are also packaged together. These dependent files include jre1.8.0_291, a TTS directory containing the voice pack installer, jacob-1.18-x86.dll, and logo.png, as shown in the figure. All files are added to the compressed file locationposition.rar. On other Windows 7 32-bit hosts, after decompression, the software can be run by double-clicking the "Polar Coordinate Precise Point Finding Software.exe" file.

[0199] The technical solution of the present invention has been described above with reference to the preferred embodiments shown in the accompanying drawings. However, it will be readily understood by those skilled in the art that the scope of protection of the present invention is obviously not limited to these specific embodiments. Without departing from the principles of the present invention, those skilled in the art can make equivalent changes or substitutions to the relevant technical features, and the technical solutions after these changes or substitutions will all fall within the scope of protection of the present invention.

Claims

1. A coordinate transformation method for finding points in polar coordinates, characterized in that, include: Step S1: Based on the azimuth and distance data broadcast by voice, the computer software determines the approximate position coordinates of the target point in the first coordinate system using coarse-grained auxiliary lines in the radar scanning interface represented by polar coordinates. Step S2: Zoom in on the area where the target point is located and determine the position coordinates of the center origin in the first coordinate system; Step S3: Move the target point to the center of the magnified area; Step S4: Obtain the position coordinates of the center origin in the second coordinate system; Step S5: Draw fine-grained auxiliary lines in the magnified area with the central origin as a reference, and obtain the precise position of the target point based on the fine-grained auxiliary lines. The fine-grained auxiliary lines include fine-grained distance circle auxiliary lines and fine-grained azimuth auxiliary lines. Step S6: Display the target point back to the polar coordinates so that the position of the target point in the polar coordinates conforms to a preset standard; In step S1, the computer software constructs a first coordinate system with the upper left corner of the screen as the origin, the horizontal leftward direction as the positive x-axis, and the vertical downward direction of the x-axis as the positive y-axis. The coordinates of the first origin are O1(0,0). The computer software obtains the approximate position coordinates A(X,Y) of the target point in the first coordinate system. Where X is the horizontal offset of the target point relative to the first origin, and Y is the vertical offset of the target point relative to the first origin; In step S2, the computer software obtains the position coordinates O of the center origin of the magnified area in the first coordinate system. 1n (X 1n ,Y 1n ),in, X 1n =X-c×l 1x ; AND 1n =Yc×l 1y ; Where c is the magnification factor, l 1x Let l be the difference between the target point A and the radar in the horizontal direction. 1y The computer software obtains the screen width (ScreenWidth) and height (ScreenHeight) based on the vertical difference between target point A and the radar. In step S3, the computer software constructs a second coordinate system with the upper left corner of the magnified area operation panel as the origin, the horizontal direction to the left as the positive x-axis, and the direction perpendicular to the x-axis downwards as the positive y-axis. The second origin coordinates are O2(0,0). The computer software moves the target point A to the center position A2 of the magnified area and obtains the position coordinates A2(C21) of the target point in the first coordinate system after the movement. x C21 y The coordinates of the second coordinate system are A2(C2). x C2 y ),in, C2 x =zoomPanelWidth / 2; C2 y =zoomPanelHeight / 2; C21 x =offsetX+C2 x ; C21 y =offsetY+C2 y ; offset2C2 x =C21 x -X; offset2C2 y =C21 y -Y; Wherein, zoomPanelWidth is the width of the zoom-in operation panel, zoomPanelHeight is the height of the zoom-in operation panel, offsetX is the horizontal offset of the second origin in the first coordinate system, offsetY is the vertical offset of the second origin coordinates in the first coordinate system, and offset2C2 x offset2C2 is the horizontal offset in the first coordinate system during the movement of target point A to A2. y This represents the vertical offset in the first coordinate system during the movement of target point A to A2.

2. The coordinate transformation method for finding points based on polar coordinates according to claim 1, characterized in that, In step S4, the computer software obtains the position coordinates O of the center origin in the second coordinate system. 2n (X 2n ,Y 2n ),in, X 12n =X 1n +offset2C2 x ; Y 12n =Y 1n +offset2C2 y ; X 2n =X 12n -offsetX; Y 2n =Y 12n -offsetY; Among them, (X) 12n Y 12n ) represents the position coordinates of the central origin in the first coordinate system with the second origin as the coordinate origin.

3. The coordinate transformation method for finding points based on polar coordinates according to claim 2, characterized in that, In step S5, the computer software obtains the fine-grained distance circle radius, wherein, Wherein, maxDistance is the maximum radius of the fine-grained range circle, circleNums is the number of concentric circles in the fine-grained range circle, maxL is the maximum radar detection range, d is the preset interval between adjacent fine-grained range circles, initRadius is the initial radius of the fine-grained range circle, and radiusStep is the radius increment step of the fine-grained range circle.

4. The coordinate transformation method for finding points based on polar coordinates according to claim 3, characterized in that, The computer software draws fine-grained distance circle auxiliary lines based on the initial radius and the radius increment step size. When radius + radiusStep > l2, the current radius radius is marked as the center radius and marked with a special color. Wherein, radius is the radius of the currently drawn fine-grained range circle, and l2 is the magnified length value of the distance l1 between the target point and the radar. l2 = c × l1.

5. The coordinate transformation method for finding points based on polar coordinates according to claim 4, characterized in that, The computer software acquires the azimuth line W, and then takes the acquired angle value w modulo 5. When (w mod 5) < 3, W = w - (w mod 5); When (w mod 5) ≥ 3, W = w + 5 - (w mod 5).

6. The coordinate transformation method for finding points based on polar coordinates according to claim 5, characterized in that, The computer software draws fine-grained azimuth auxiliary lines with the azimuth line as the initial value, in increments of 1 degree, increasing by 360 degrees, and draws rays at each angle, where the ray length is maxDistance.

7. The coordinate transformation method for finding points based on polar coordinates according to claim 6, characterized in that, In step S6, the computer obtains the echo position (markX, markY) of the target point in the polar coordinates, wherein, zoomOffsetX=zoomX-X 2n ; zoomOffsetY=zoomY-Y 2n ; shrinkX = zoomOffsetX / 6; shrinkY = zoomOffsetY / 6; markX = zoomX + shrinkX; markY = zoomY + shrinkY; Where (zoomX,zoomY) are the coordinates of the target point in the magnified area, and (zoomOffsetX,zoomOffsetY) are the offsets of the target point relative to the central origin in the horizontal and vertical directions, respectively.

Citation Information

Patent Citations

  • A method for recreating the original flight trajectory and an aircraft

    CN109074095B