Real-time heading attitude correction method based on FPGA processing, medium and device
By using real-time pipeline processing and coordinate axis transformation in FPGA, the problem of excessive resource consumption in attitude correction of traditional PPC software is solved, fast attitude correction within a single pulse is achieved, and real-time requirements are met.
Patent Information
- Application Number
- CN202410687750.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-30
- Publication Date
- 2024-09-17
AI Technical Summary
Traditional PPC software consumes a lot of resources in attitude correction, resulting in long response times and unable to meet the real-time needs of target pointing changes in new systems.
Real-time pipeline processing based on FPGA is used to achieve attitude correction within a single pulse and improve response time through coordinate axis transformation and rotation matrix calculation.
The time to complete the attitude correction in the FPGA is shortened to less than 1us, meeting the real-time requirements.
Smart Images

Figure CN118654631A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of signal processing, and in particular to a real-time attitude correction method, medium and device based on FPGA processing. Background Art
[0002] In traditional attitude processing, the aircraft attitude and target pointing generally change in hundreds of milliseconds, so PPC software can be used for attitude correction. This design method has the following problems:
[0003] (1) During the engineering implementation process, the complex trigonometric calculations in the heading correction design caused the PPC software to consume a large amount of resources to process the heading correction, which affected the normal workflow;
[0004] (2) In the new system, the typical time for a target to change is 3 ms, while the typical time for the PPC software to perform heading correction on a single target is 5 ms, which cannot meet the system's real-time heading correction requirements; Summary of the invention
[0005] In order to solve the above-mentioned problems, the present invention is based on coordinate axis transformation and utilizes an accurate attitude correction model to provide a real-time attitude correction method, medium and device based on FPGA processing. The method can complete single-pulse real-time attitude correction in FPGA and improve the attitude correction response time through real-time pipeline processing of FPGA.
[0006] The present invention provides a real-time attitude correction method based on FPGA processing. Assume that the yaw angle α0, pitch angle β0, and roll angle γ0 of the corresponding aircraft when the target exists at the previous moment, and the azimuth angle of the target in the body coordinate system at the previous moment Pitch angle θ0, the current aircraft's yaw angle α1, pitch angle β1, roll angle γ1, and azimuth after attitude correction Pitch angle θ1;
[0007] The method comprises the following steps:
[0008] Step 1: Calculate α0, β0, and γ0 by looking up the table in a time-sharing manner. The sine and cosine values corresponding to θ0 and α1, β1, and γ1;
[0009] Step 2: Based on the results from step 1 The sine and cosine values of θ0 are used to calculate the coordinates of the target in the body coordinate system at the previous moment;
[0010] Step 3: Calculate the rotation matrix A based on the sine and cosine values of α0, β0, and γ0 obtained in the first step;
[0011] Step 4: Calculate the rotation matrix B based on the sine and cosine values of α1, β1, and γ1 obtained in the first step;
[0012] Step 5: Using the calculation results of the second, third and fourth steps, obtain the coordinates after heading correction in the body coordinate system;
[0013] Step 6: Convert the coordinates after attitude correction in the body coordinate system to the polar coordinate system, and obtain the azimuth after attitude correction by looking up the table Pitch angle θ1.
[0014] Furthermore, in the second step, the coordinates of the target in the body coordinate system at the previous moment are expressed as:
[0015]
[0016] Among them, (x0, y0, z0) is the coordinate of the target in the body coordinate system at the previous moment.
[0017] Furthermore, in the third step, the rotation matrix A is expressed as:
[0018]
[0019] Furthermore, in the fourth step, the rotation matrix B is expressed as:
[0020]
[0021] Furthermore, in the fifth step, the calculation results of the second step, the third step, and the fourth step are multiplied to obtain the coordinates after heading correction in the body coordinate system.
[0022] Furthermore, in the fifth step, the coordinates after heading correction in the body coordinate system are expressed as:
[0023]
[0024] Among them, (x1, y1, z1) is the coordinate after heading correction in the body coordinate system.
[0025] Furthermore, in the sixth step, the azimuth after heading correction The pitch angle θ1 is expressed as:
[0026]
[0027] Among them, (x1, y1, z1) is the coordinate after heading correction in the body coordinate system.
[0028] The present invention also provides a computer terminal storage medium storing computer terminal executable instructions, wherein the computer terminal executable instructions are used to execute the above-mentioned real-time heading correction method based on FPGA processing.
[0029] The present invention also provides a computing device, comprising:
[0030] At least one processor; and a memory in communication with the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the above-mentioned real-time attitude correction method based on FPGA processing.
[0031] In summary, due to the adoption of the above technical solution, the beneficial effects of the present invention are:
[0032] The present invention can complete single-pulse real-time heading correction in FPGA, and the time for completing the heading correction is within 1us, thus meeting the real-time requirements of the heading correction. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.
[0034] Figure 1 Schematic diagram of the real-time heading correction method based on FPGA processing in an embodiment of the present invention. DETAILED DESCRIPTION
[0035] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions 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 part of the embodiments of the present invention, not all of the embodiments. Generally, the components of the embodiments of the present invention described and shown in the drawings here can be arranged and designed in various different configurations.
[0036] Therefore, the following detailed description of the embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the invention claimed for protection, but merely represents selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0037] Example
[0038] like Figure 1 As shown, this embodiment proposes a real-time heading correction method based on FPGA processing, and obtains the coordinate axis transformation result through pipeline processing, thereby meeting the single-pulse real-time heading correction requirements:
[0039] Assume that the yaw angle, pitch angle, and roll angle of the corresponding aircraft when the target existed at the last moment are α0, β0, and γ0 respectively, and the azimuth angle and pitch angle of the target in the body coordinate system at the last moment are θ0, the current yaw angle, pitch angle, and roll angle of the aircraft are α1, β1, and γ1, and the azimuth and pitch angles after attitude correction are θ1.
[0040] Step 1: Calculate α0, β0, and γ0 by looking up the table in a time-sharing manner. The sine and cosine values corresponding to θ0, α1, β1, and γ1. The sine and cosine table settings are shown in Table 1 according to project requirements.
[0041] Table 1, sine table and cosine table settings:
[0042]
[0043]
[0044] Step 2: Based on the results from step 1 The sine and cosine values of θ0 are used to calculate the coordinates of the target in the body coordinate system at the previous moment (the distance defaults to 1 and does not affect the calculation).
[0045]
[0046] Step 3: Calculate the rotation matrix A based on the sine and cosine values of α0, β0, and γ0 obtained in the first step.
[0047]
[0048] Step 4: Calculate the rotation matrix B based on the sine and cosine values of α1, β1, and γ1 obtained in the first step.
[0049]
[0050] Step 5: Multiply the results of the second, third and fourth steps to obtain the coordinates after heading correction in the body coordinate system.
[0051]
[0052] Step 6: Convert the coordinates after attitude correction in the body coordinate system to the polar coordinate system, and obtain the azimuth after attitude correction by looking up the table Pitch angle θ1.
[0053]
[0054] According to project requirements, the inverse sine table and inverse tangent table are set as shown in Table 2.
[0055]
[0056]
[0057] according to Figure 1 After completing the FPGA code, the floating-point model of MATLAB, the fixed-point model of MATLAB and the fixed-point model of FPGA were compared. The final difference after conversion was within 0.02 degrees, which met the performance requirements.
[0058] Finally, resource evaluation is performed on XC6VSX315T, and the final resource consumption is shown in Table 3.
[0059] Resource Type Usage Total Proportion Number of Slice Registers 1,856 393,600 1% Number of Slice LUTs 1,144 196,800 1% Number of occupied Slices 441 49,200 1% Number of RAMB36E1 / FIFO36E1s 23 704 3% Number of DSP48E1s 27 1,344 2%
[0060] In addition, in some embodiments, a computer terminal storage medium is provided, which stores computer terminal executable instructions, and the computer terminal executable instructions are used to execute the real-time attitude correction method based on FPGA processing as described in the above embodiments. Examples of computer storage media include magnetic storage media (e.g., floppy disks, hard disks, etc.), optical recording media (e.g., CD-ROMs, DVDs, etc.) or memories, such as memory cards, ROMs, or RAMs. Computer storage media can also be distributed on network-connected computer systems, such as application stores.
[0061] In addition, in some embodiments, a computing device is proposed, comprising: at least one processor; and a memory connected to the at least one processor in communication; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the real-time attitude correction method based on FPGA processing as described in the above embodiments. Examples of computing devices include PCs, tablet computers, smart phones, or PDAs.
[0062] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A real-time heading correction method based on FPGA processing, characterized in that The yaw angle α0, pitch angle β0, and roll angle γ0 of the aircraft when the target existed at the last moment, and the azimuth angle of the target in the body coordinate system at the last moment Pitch angle θ0, the current aircraft's yaw angle α1, pitch angle β1, roll angle γ1, and azimuth after attitude correction Pitch angle θ1; The method comprises the following steps: Step 1: Calculate α0, β0, and γ0 by looking up the table in a time-sharing manner. The sine and cosine values corresponding to θ0 and α1, β1, and γ1; Step 2: Based on the results from step 1 The sine and cosine values of θ0 are used to calculate the coordinates of the target in the body coordinate system at the previous moment; Step 3: Calculate the rotation matrix A based on the sine and cosine values of α0, β0, and γ0 obtained in the first step; Step 4: Calculate the rotation matrix B based on the sine and cosine values of α1, β1, and γ1 obtained in the first step; Step 5: Using the calculation results of the second, third and fourth steps, obtain the coordinates after heading correction in the body coordinate system; Step 6: Convert the coordinates after attitude correction in the body coordinate system to the polar coordinate system, and obtain the azimuth after attitude correction by looking up the table Pitch angle θ1.
2. The real-time heading correction method based on FPGA processing according to claim 1 is characterized in that: In the second step, the coordinates of the target in the body coordinate system at the previous moment are expressed as: Among them, (x0, y0, z0) is the coordinate of the target in the body coordinate system at the previous moment.
3. The real-time heading correction method based on FPGA processing according to claim 1 is characterized in that: In the third step, the rotation matrix A is expressed as:
4. The real-time heading correction method based on FPGA processing according to claim 1 is characterized in that: In the fourth step, the rotation matrix B is expressed as:
5. The real-time heading correction method based on FPGA processing according to claim 1 is characterized in that: In the fifth step, the calculation results of the second, third and fourth steps are multiplied to obtain the coordinates after heading correction in the body coordinate system.
6. The real-time heading correction method based on FPGA processing according to claim 5 is characterized in that: In the fifth step, the coordinates after heading correction in the body coordinate system are expressed as: Among them, (x1, y1, z1) is the coordinate after heading correction in the body coordinate system.
7. The real-time heading correction method based on FPGA processing according to claim 1 is characterized in that: In the sixth step, the azimuth after heading correction The pitch angle θ1 is expressed as: Among them, (x1, y1, z1) is the coordinate after heading correction in the body coordinate system.
8. A computer terminal storage medium storing computer terminal executable instructions, characterized in that: The computer terminal executable instructions are used to execute the real-time heading correction method based on FPGA processing as described in any one of claims 1 to 7.
9. A computing device, characterized in that: include: at least one processor; And a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the real-time attitude correction method based on FPGA processing as described in any one of claims 1 to 7.
