Multi-rotor unmanned aerial vehicle brushless motor magnetic interference compensation method, device and equipment

The LMS adaptive filter is used to process electromagnetic mixed signals in the UAV operating environment, and the filter parameters are adjusted to solve the impact of UAV magnetic field interference on aeromagnetic measurements and improve the accuracy of embankment leakage hazard detection data.

CN118694342APending Publication Date: 2024-09-24CHINA UNIV OF GEOSCIENCES (WUHAN)
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410785847.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-18
Publication Date
2024-09-24

AI Technical Summary

Technical Problem

The interference of the UAV's own magnetic field affects the accuracy of aeromagnetic measurement results, especially in the detection of embankment leakage hazards. Effective compensation is required to improve data accuracy.

Method used

By acquiring the geomagnetic field signal and electromagnetic mixed signal in the UAV operating environment in real time, the LMS adaptive filter is used for filtering processing, the error signal is determined and the filter parameters are adjusted to reduce the impact of electromagnetic interference on aeromagnetic measurements.

Benefits of technology

It effectively reduces the impact of UAV electromagnetic interference on detection data, improves the accuracy of UAV detection data, and especially ensures the integrity of measurement data in the detection of embankment leakage hazards.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118694342A
    Figure CN118694342A
Patent Text Reader

Abstract

The invention provides a magnetic interference compensation method, device and equipment for a brushless motor of a multi-rotor unmanned aerial vehicle, and relates to the technical field of electronic information, and the method comprises the steps: obtaining a geomagnetic field signal and an electromagnetic mixed signal in a working environment of the unmanned aerial vehicle in real time; the electromagnetic mixed signal is a mixed signal of a motor interference signal and a geomagnetic field signal; inputting the electromagnetic mixed signal into an LMS adaptive filter for filtering processing to obtain an output signal; comparing the output signal with the geomagnetic field signal to determine an error signal, and adjusting a filtering parameter of the LMS adaptive filter by using the error signal; and carrying out filtering processing on the electromagnetic mixed signal at the next moment by using the adjusted LMS adaptive filter.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of electronic information technology, and in particular to a method, device and equipment for compensating magnetic interference of a brushless motor of a multi-rotor unmanned aerial vehicle. Background Art

[0002] Magnetometric Resistivity Method (MMR) is a geophysical exploration technique that measures the distribution of magnetic fields induced by artificial current sources in the test area to invert geological structures. The attenuation of magnetic field signals with distance measured by this method is better than that of electric field signals, and the propagation of magnetic fields is not affected by shallow water in the dike. Therefore, it has been used in dike leakage detection in recent years. Compared with traditional manual ground magnetic measurement operations, drone aeromagnetic measurement has the advantages of fewer restrictions, high efficiency, small size and high safety factor. It can perform magnetic measurement operations in paddy fields, mud pits and above the water surface of dikes, ensuring the integrity of measurement data.

[0003] However, the UAV itself has magnetic field interference, which will affect the aeromagnetic measurement results. Therefore, in order to improve the accuracy of detection data, it is of great significance to compensate for the magnetic interference of the UAV. Summary of the invention

[0004] The purpose of the present invention is to solve the problem of non-maneuvering interference in the UAV's own magnetic field interference affecting the aeromagnetic measurement results. The present invention provides a method, device and equipment for compensating magnetic interference of a brushless motor of a multi-rotor UAV.

[0005] The technical solution of the embodiment of the present application is implemented as follows: A first aspect of an embodiment of the present application provides a method for compensating magnetic interference of a brushless motor of a multi-rotor drone, comprising: Real-time acquisition of geomagnetic field signals and electromagnetic mixed signals in the UAV operation environment; the electromagnetic mixed signal is a mixed signal of the motor interference signal and the geomagnetic field signal; Inputting the electromagnetic mixed signal into an LMS adaptive filter for filtering to obtain an output signal; Comparing the output signal with the geomagnetic field signal to determine an error signal, and using the error signal to adjust the filter parameters of the LMS adaptive filter; The electromagnetic mixed signal at the next moment is filtered using the adjusted LMS adaptive filter.

[0006] Optionally, the real-time acquisition of geomagnetic field signals and electromagnetic mixed signals in the UAV operation environment includes: Acquire multiple groups of geomagnetic field signals within a continuous period and electromagnetic mixed signals at the corresponding time.

[0007] Optionally, comparing the output signal with the geomagnetic field signal to determine an error signal, and using the error signal to adjust a filtering parameter of the LMS adaptive filter includes: Taking the difference between the output signal and the geomagnetic field signal to determine an error signal; Determine the target filtering parameter corresponding to when the error signal reaches the minimum value based on the minimum mean square value criterion of the error signal; The target filtering parameters are determined as filtering parameters of the LMS adaptive filter at the next moment.

[0008] Optionally, the filtering process of the electromagnetic mixed signal at the next moment by using the adjusted LMS adaptive filter includes: Determine a target filtering parameter based on the geomagnetic field signal and the electromagnetic mixed signal at a first moment; Adjusting the filter parameters of the LMS adaptive filter based on the target filter parameters; The electromagnetic mixed signal at a second moment is filtered using the adjusted LMS adaptive filter; the second moment is a next moment adjacent to the first moment.

[0009] A second aspect of the embodiment of the present application provides a multi-rotor drone brushless motor magnetic interference compensation device, comprising: an acquisition module, a first filtering module, an adjustment module, and a second filtering module, wherein: The acquisition module is configured to acquire in real time the geomagnetic field signal and the electromagnetic mixed signal in the UAV operation environment; the electromagnetic mixed signal is a mixed signal of the motor interference signal and the geomagnetic field signal; The first filtering module is configured to input the electromagnetic mixed signal into an LMS adaptive filter for filtering to obtain an output signal; The adjustment module is configured to compare the output signal with the geomagnetic field signal to determine an error signal, and use the error signal to adjust the filtering parameters of the LMS adaptive filter; The second filtering module is configured to use the adjusted LMS adaptive filter to filter the electromagnetic mixed signal at the next moment.

[0010] Optionally, the acquisition module is specifically configured as follows: Acquire multiple groups of geomagnetic field signals within a continuous period and electromagnetic mixed signals at the corresponding time.

[0011] Optionally, the adjustment module is specifically configured as follows: Taking the difference between the output signal and the geomagnetic field signal to determine an error signal; Determine the target filtering parameter corresponding to when the error signal reaches the minimum value based on the minimum mean square value criterion of the error signal; The target filtering parameters are determined as filtering parameters of the LMS adaptive filter at the next moment.

[0012] Optionally, the second filtering module is specifically configured as follows: Determine a target filtering parameter based on the geomagnetic field signal and the electromagnetic mixed signal at a first moment; Adjusting the filter parameters of the LMS adaptive filter based on the target filter parameters; The electromagnetic mixed signal at a second moment is filtered using the adjusted LMS adaptive filter; the second moment is a next moment adjacent to the first moment.

[0013] A third aspect of an embodiment of the present application provides an electronic device, including a processor and a memory; the memory stores a computer program, wherein the computer program, when executed by the processor, implements the magnetic interference compensation method for a brushless motor of a multi-rotor drone as described in the first aspect.

[0014] A fourth aspect of an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the method described in the first aspect.

[0015] Compared with the prior art, the technical solution provided by this application has the following beneficial effects: The present invention provides a method, device and equipment for compensating magnetic interference of a brushless motor of a multi-rotor unmanned aerial vehicle. The method comprises the following steps: inputting an electromagnetic mixed signal in an operating environment of the unmanned aerial vehicle into an LMS adaptive filter for filtering to obtain an output signal; comparing the output signal with a geomagnetic field signal to determine an error signal; using the error signal to adjust the filtering parameters of the LMS adaptive filter; and using the adjusted LMS adaptive filter to filter the electromagnetic mixed signal at the next moment, thereby effectively reducing the influence of electromagnetic interference on unmanned aerial vehicle detection and improving the accuracy of unmanned aerial vehicle detection data. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Figure 1 A schematic diagram of a flow chart of a method for compensating magnetic interference of a brushless motor of a multi-rotor drone provided in an embodiment of the present application; Figure 2 A schematic diagram of the structure of a magnetic interference compensation device for a brushless motor of a multi-rotor drone provided in an embodiment of the present application; Figure 3 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0017] Below, embodiments of the present application will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are exemplary only and are not intended to limit the scope of the present application. In the following detailed description, for ease of explanation, many specific details are set forth to provide a comprehensive understanding of the embodiments of the present application. However, it is apparent that one or more embodiments may also be implemented without these specific details. In addition, in the following description, descriptions of known structures and technologies are omitted to avoid unnecessary confusion of the concepts of the present application. The terms used herein are only for describing specific embodiments and are not intended to limit the present application. The terms "include", "comprising", etc. used herein indicate the existence of the features, steps, operations and / or components, but do not exclude the existence or addition of one or more other features, steps, operations or components. All terms (including technical and scientific terms) used herein have the meanings commonly understood by those skilled in the art, unless otherwise defined. It should be noted that the terms used herein should be interpreted as having a meaning consistent with the context of this specification, and should not be interpreted in an idealized or overly rigid manner.

[0018] Some block diagrams and / or flow charts are shown in the accompanying drawings. It should be understood that some blocks or combinations thereof in the block diagrams and / or flow charts may be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that these instructions, when executed by the processor, may create a device for implementing the functions / operations described in these block diagrams and / or flow charts.

[0019] In some embodiments, see Figure 1 , Figure 1 A schematic flow chart of a method for compensating magnetic interference of a brushless motor of a multi-rotor UAV provided in an embodiment of the present application; A method for compensating magnetic interference of a brushless motor of a multi-rotor UAV provided in an embodiment of the present application comprises: S110, acquiring in real time the geomagnetic field signal and the electromagnetic mixed signal in the UAV operation environment; the electromagnetic mixed signal is a mixed signal of the motor interference signal and the geomagnetic field signal.

[0020] S120, inputting the electromagnetic mixed signal into an LMS adaptive filter for filtering to obtain an output signal.

[0021] S130, comparing the output signal with the geomagnetic field signal to determine an error signal, and using the error signal to adjust the filter parameters of the LMS adaptive filter.

[0022] S140, using the adjusted LMS adaptive filter to filter the electromagnetic mixed signal at the next moment.

[0023] In this embodiment, the motor interference signal can be the motor interference magnetic field of the drone. The interference magnetic field generated by the drone motor is periodic, its frequency is related to the motor speed, and its amplitude is related to the power output by the motor. Under certain conditions, the peak value of the interference magnetic field generated by the motor is proportional to the power output. Here, the mixed signal composed of the motor interference signal and the geomagnetic field signal is used as the input signal of the LMS (Least Mean Square) adaptive filter, the geomagnetic field signal is used as the reference signal, and the output signal obtained after filtering is compared with the geomagnetic field signal, so as to adjust the filtering parameters of the LMS adaptive filter based on the least mean square principle to reduce the influence of the motor interference magnetic field. It should be noted that the next moment is based on the filtering frequency of the LMS adaptive filter. For example, if the filtering frequency of the LMS adaptive filter is 50HZ, the next moment is 0.02 s later, that is, after adjusting the filtering parameters of the LMS adaptive filter using the error signal, the adjusted LMS adaptive filter is used to filter the electromagnetic mixed signal of 0.02 s.

[0024] In some embodiments, S110, real-time acquisition of geomagnetic field signals and electromagnetic mixed signals in the UAV operation environment includes: Acquire multiple groups of geomagnetic field signals within a continuous period and electromagnetic mixed signals at the corresponding time.

[0025] In this embodiment, the continuous time period may include multiple filtering cycles. The filter parameters of the LMS adaptive filter may be adjusted according to at least one set of geomagnetic field signals and the corresponding electromagnetic mixed signal in each filtering cycle, and then the electromagnetic mixed signal of the next filtering cycle is filtered using the adjusted LMS adaptive filter. Here, the filtering cycle is related to the filtering frequency of the LMS adaptive filter.

[0026] In some embodiments, S130, comparing the output signal with the geomagnetic field signal to determine an error signal, and using the error signal to adjust the filter parameters of the LMS adaptive filter, includes: The output signal and the geomagnetic field signal are subtracted to determine the error signal; Determine the target filtering parameter corresponding to when the error signal reaches the minimum value based on the minimum mean square value criterion of the error signal; The target filtering parameters are determined as the filtering parameters of the LMS adaptive filter at the next moment.

[0027] Exemplarily, the input signal, i.e., the mixed signal, is , the output signal y(n) can be expressed as: ; Among them, the weight vector .

[0028] Therefore, the output signal y(n) can be written as: ; The error signal e(n) is the difference between the reference signal and the actual output signal. Here, the reference signal is the geomagnetic field signal. The error signal e(n) can be obtained from y(n): ; The minimum mean square value of the error signal e(n) is taken as the optimal statistical criterion, and the mean square error ε(n) is defined as: ; in, , is the autocorrelation matrix of the input signal; , is the cross-correlation matrix between the reference signal and the input signal.

[0029] The LMS algorithm is an iterative algorithm based on the principle of the fastest descent method, that is, the weight vector of the filter is adjusted along the negative gradient direction of the performance surface to find the minimum point of the performance surface. The iterative formula for calculating the weight vector is:

[0030] in, is the step size factor.

[0031] A smaller step size can reduce the steady-state error but will slow down the convergence speed; a larger step size can increase the convergence rate but will increase the steady-state error. The value of must meet the following conditions:

[0032] in Represents the input signal, the largest eigenvalue of the autocorrelation matrix.

[0033] The LMS algorithm can be used to find the minimum point of the performance surface, and then determine the target filtering parameters corresponding to when the error signal reaches the minimum value. The target filtering parameters are determined as the filtering parameters of the LMS adaptive filter at the next moment, so as to reduce the impact of motor magnetic interference on UAV detection and improve the accuracy of UAV detection data.

[0034] In some embodiments, S140, using the adjusted LMS adaptive filter to filter the electromagnetic mixed signal at the next moment includes: Determine the target filtering parameters based on the geomagnetic field signal and the electromagnetic mixed signal at the first moment; Adjusting the filter parameters of the LMS adaptive filter based on the target filter parameters; The electromagnetic mixed signal at the second moment is filtered using the adjusted LMS adaptive filter; the second moment is the next moment adjacent to the first moment.

[0035] In this embodiment, the first moment and the second moment are related to the filtering frequency of the LMS adaptive filter. If the filtering frequency of the LMS adaptive filter is 50 Hz, the filtering interval is 0.02 s. That is, the time interval between the first moment and the second moment is 0.02 s. It should be noted that the first moment and the second moment can be any two adjacent moments in the continuous filtering period.

[0036] In one example, taking the motor speed of 100r / s as an example, the average absolute value of the magnetic interference generated by the motor at this speed is measured to be 205.3nT, and the magnetic interference is periodic. After adaptive filtering of the signal, the average absolute value of the magnetic interference drops to 80.7nT, and the magnetic interference is reduced by 60.7%.

[0037] The embodiment of the present application obtains an output signal by inputting the electromagnetic mixed signal in the UAV operating environment into the LMS adaptive filter for filtering, and compares the output signal with the geomagnetic field signal to determine the error signal, and uses the error signal to adjust the filtering parameters of the LMS adaptive filter, thereby using the adjusted LMS adaptive filter to filter the electromagnetic mixed signal at the next moment, thereby effectively reducing the impact of electromagnetic interference on UAV detection and improving the accuracy of UAV detection data.

[0038] In some embodiments, see Figure 2 , Figure 2 A schematic diagram of the structure of a brushless motor magnetic interference compensation device for a multi-rotor drone provided in an embodiment of the present application. A brushless motor magnetic interference compensation device 200 for a multi-rotor drone provided in an embodiment of the present application includes: an acquisition module 210, a first filtering module 220, an adjustment module 230 and a second filtering module 240, wherein: The acquisition module 210 is configured to acquire in real time the geomagnetic field signal and the electromagnetic mixed signal in the UAV operation environment; the electromagnetic mixed signal is a mixed signal of the motor interference signal and the geomagnetic field signal; The first filtering module 220 is configured to input the electromagnetic mixed signal into the LMS adaptive filter for filtering to obtain an output signal; An adjustment module 230 is configured to compare the output signal with the geomagnetic field signal to determine an error signal, and use the error signal to adjust the filter parameters of the LMS adaptive filter; The second filtering module 240 is configured to use the adjusted LMS adaptive filter to filter the electromagnetic mixed signal at the next moment.

[0039] In some embodiments, the acquisition module 210 is specifically configured as follows: Acquire multiple groups of geomagnetic field signals within a continuous period and electromagnetic mixed signals at the corresponding time.

[0040] In some embodiments, the adjustment module 230 is specifically configured as follows: Taking the difference between the output signal and the geomagnetic field signal to determine an error signal; Determine the target filtering parameter corresponding to when the error signal reaches the minimum value based on the minimum mean square value criterion of the error signal; The target filtering parameters are determined as the filtering parameters of the LMS adaptive filter at the next moment.

[0041] In some embodiments, the second filtering module 240 is specifically configured as follows: Determine the target filtering parameters based on the geomagnetic field signal and the electromagnetic mixed signal at the first moment; Adjusting the filter parameters of the LMS adaptive filter based on the target filter parameters; The electromagnetic mixed signal at the second moment is filtered using the adjusted LMS adaptive filter; the second moment is the next moment adjacent to the first moment.

[0042] The multi-rotor UAV brushless motor magnetic interference compensation device provided in the embodiment of the present application can realize the various processes in the embodiments corresponding to the above-mentioned multi-rotor UAV brushless motor magnetic interference compensation method. To avoid repetition, they will not be repeated here.

[0043] It should be noted that the multi-rotor UAV brushless motor magnetic interference compensation device provided in the embodiment of the present application and the multi-rotor UAV brushless motor magnetic interference compensation method provided in the embodiment of the present application are based on the same application concept. Therefore, the specific implementation of this embodiment can refer to the implementation of the aforementioned multi-rotor UAV brushless motor magnetic interference compensation method, and the repeated parts will not be repeated.

[0044] In some embodiments, see Figure 3 , Figure 3 The electronic device 300 provided in the embodiment of the present application includes a processor 310 and a memory 320; the memory 320 stores a computer program, wherein the computer program implements the above-mentioned multi-rotor drone brushless motor magnetic interference compensation method when executed by the processor. Specifically, the processor 310 may include, for example, a general-purpose microprocessor, an instruction set processor and / or a related chipset and / or a special-purpose microprocessor (e.g., an application-specific integrated circuit (ASIC)), etc. The processor 310 may also include an onboard memory for cache purposes. The processor 310 may be a single processing unit or multiple processing units for executing different actions of the method flow according to the embodiment of the present application. The memory 320 may be any medium capable of containing, storing, conveying, propagating or transmitting instructions. For example, the memory 320 may include, but is not limited to, an electrical, magnetic, optical, electromagnetic, infrared or semiconductor system, device, component or propagation medium. Specific examples of the memory 320 include: a magnetic storage device, such as a magnetic tape or a hard disk (HDD); an optical storage device, such as a compact disk (CD-ROM); a random access memory (RAM) or flash memory; and / or a wired / wireless communication link. The present application also provides a computer-readable medium on which a computer program is stored, and when the program is executed by a processor, the above-mentioned method for compensating the magnetic interference of the brushless motor of a multi-rotor drone is implemented. The computer-readable medium may be included in the device / apparatus / system described in the above-mentioned embodiment; or it may exist alone without being assembled into the device / apparatus / system. The above-mentioned computer-readable medium carries one or more programs, and when the above-mentioned one or more programs are executed, the method according to the embodiment of the present application is implemented. According to an embodiment of the present application, a computer-readable medium may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. A computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to, an electrical connection with one or more wires, 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 above. In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, optical cable, radio frequency signal, etc., or any suitable combination of the above.

[0045] Those skilled in the art will appreciate that the features described in the various embodiments and / or claims of the present application may be combined and / or combined in a variety of ways, even if such combinations or combinations are not explicitly described in the present application. In particular, without departing from the spirit and teachings of the present application, the features described in the various embodiments and / or claims of the present application may be combined and / or combined in a variety of ways. All of these combinations and / or combinations fall within the scope of the present application. Therefore, the scope of the present application should not be limited to the above-described embodiments, but should be determined not only by the appended claims, but also by the equivalents of the appended claims.

Claims

1. A method for compensating magnetic interference of a brushless motor of a multi-rotor UAV, characterized in that: include: Real-time acquisition of geomagnetic field signals and electromagnetic mixed signals in the UAV operation environment; the electromagnetic mixed signal is a mixed signal of the motor interference signal and the geomagnetic field signal; Inputting the electromagnetic mixed signal into an LMS adaptive filter for filtering to obtain an output signal; Comparing the output signal with the geomagnetic field signal to determine an error signal, and using the error signal to adjust the filter parameters of the LMS adaptive filter; The electromagnetic mixed signal at the next moment is filtered using the adjusted LMS adaptive filter.

2. The method for compensating magnetic interference of a brushless motor of a multi-rotor drone according to claim 1, characterized in that: The real-time acquisition of geomagnetic field signals and electromagnetic mixed signals in the UAV operation environment includes: Acquire multiple groups of geomagnetic field signals within a continuous period and electromagnetic mixed signals at the corresponding time.

3. The method for compensating magnetic interference of a brushless motor of a multi-rotor UAV according to claim 1, characterized in that: The step of comparing the output signal with the geomagnetic field signal to determine an error signal, and using the error signal to adjust the filter parameters of the LMS adaptive filter comprises: Taking the difference between the output signal and the geomagnetic field signal to determine an error signal; Determine the target filtering parameter corresponding to when the error signal reaches the minimum value based on the minimum mean square value criterion of the error signal; The target filtering parameters are determined as filtering parameters of the LMS adaptive filter at the next moment.

4. The method for compensating magnetic interference of a brushless motor of a multi-rotor drone according to claim 3, characterized in that: The step of using the adjusted LMS adaptive filter to filter the electromagnetic mixed signal at the next moment includes: Determine a target filtering parameter based on the geomagnetic field signal and the electromagnetic mixed signal at a first moment; Adjusting the filter parameters of the LMS adaptive filter based on the target filter parameters; The electromagnetic mixed signal at a second moment is filtered using the adjusted LMS adaptive filter; the second moment is a next moment adjacent to the first moment.

5. A magnetic interference compensation device for a brushless motor of a multi-rotor drone, characterized in that: include: An acquisition module, a first filtering module, an adjustment module, and a second filtering module, wherein: The acquisition module is configured to acquire in real time the geomagnetic field signal and the electromagnetic mixed signal in the UAV operation environment; the electromagnetic mixed signal is a mixed signal of the motor interference signal and the geomagnetic field signal; The first filtering module is configured to input the electromagnetic mixed signal into an LMS adaptive filter for filtering to obtain an output signal; The adjustment module is configured to compare the output signal with the geomagnetic field signal to determine an error signal, and use the error signal to adjust the filtering parameters of the LMS adaptive filter; The second filtering module is configured to use the adjusted LMS adaptive filter to filter the electromagnetic mixed signal at the next moment.

6. The magnetic interference compensation device for a brushless motor of a multi-rotor drone according to claim 5, characterized in that: The acquisition module is specifically configured as follows: Acquire multiple groups of geomagnetic field signals within a continuous period and electromagnetic mixed signals at the corresponding time.

7. The magnetic interference compensation device for a brushless motor of a multi-rotor drone according to claim 5, characterized in that: The adjustment module is specifically configured as follows: Taking the difference between the output signal and the geomagnetic field signal to determine an error signal; Determine the target filtering parameter corresponding to when the error signal reaches the minimum value based on the minimum mean square value criterion of the error signal; The target filtering parameters are determined as filtering parameters of the LMS adaptive filter at the next moment.

8. The magnetic interference compensation device for a brushless motor of a multi-rotor drone according to claim 7, characterized in that: The second filtering module is specifically configured as follows: Determine a target filtering parameter based on the geomagnetic field signal and the electromagnetic mixed signal at a first moment; Adjusting the filter parameters of the LMS adaptive filter based on the target filter parameters; The electromagnetic mixed signal at a second moment is filtered using the adjusted LMS adaptive filter; the second moment is a next moment adjacent to the first moment.

9. An electronic device comprising a processor and a memory; the memory stores a computer program, wherein: When the computer program is executed by the processor, the computer program implements the method for compensating magnetic interference of a brushless motor of a multi-rotor drone according to any one of claims 1 to 4.

10. A computer-readable storage medium having a computer program stored thereon, wherein when the program is executed by a processor, the steps of the method according to any one of claims 1 to 4 are implemented.