Method and device for eliminating magnetic field interference, unmanned aerial vehicle and storage medium

文档序号:1151108 发布日期:2020-09-15 浏览:12次 中文

阅读说明:本技术 消除磁场干扰的方法、装置、无人机和存储介质 (Method and device for eliminating magnetic field interference, unmanned aerial vehicle and storage medium ) 是由 孙伟 于 2020-06-12 设计创作,主要内容包括:本申请提出了一种消除磁场干扰的方法、装置、无人机和存储介质,其中,上述方法包括:检测到用于启动所述无人机的第一指令,响应于检测到的所述第一指令,对所述无人机的挂载的重量进行测量,得到第一挂载重量;根据所述第一挂载重量计算得到第一目标高度;根据所述第一目标高度抬升所述磁力计在所述无人机中的高度,使得所述磁力计伸出所述无人机的机体,以消除磁场对所述无人机的干扰。本申请通过将无人机挂载的重量换算成磁力计的高度,由此控制磁力计的升降,并用来消除周围磁场对无人机的干扰,可以提高无人机的飞行安全性以及包装和运输的便利性。(The application provides a method, a device, an unmanned aerial vehicle and a storage medium for eliminating magnetic field interference, wherein the method comprises the following steps: detecting a first instruction for starting the unmanned aerial vehicle, and measuring the weight of the unmanned aerial vehicle in response to the detected first instruction to obtain a first mounting weight; calculating to obtain a first target height according to the first hanging weight; and lifting the height of the magnetometer in the unmanned aerial vehicle according to the first target height, so that the magnetometer extends out of the unmanned aerial vehicle body, and the interference of a magnetic field on the unmanned aerial vehicle is eliminated. This application is through the height of converting into magnetometer with the weight of unmanned aerial vehicle carry, from this control magnetometer's lift to be used for eliminating the interference of magnetic field around to unmanned aerial vehicle, can improve unmanned aerial vehicle's flight security and the convenience of packing and transportation.)

1. A method for eliminating magnetic field interference, applied to a drone, the drone comprising a magnetometer located in a body of the drone, the method comprising:

detecting a first instruction for starting the unmanned aerial vehicle, and measuring the weight of the unmanned aerial vehicle in response to the detected first instruction to obtain a first mounting weight;

calculating to obtain a first target height according to the first hanging weight;

and lifting the height of the magnetometer in the unmanned aerial vehicle according to the first target height, so that the magnetometer extends out of the unmanned aerial vehicle body, and the interference of a magnetic field on the unmanned aerial vehicle is eliminated.

2. The method of claim 1, further comprising:

monitoring a magnetic field of a surrounding environment of the drone; and if the interference of the magnetic field of the surrounding environment on the unmanned aerial vehicle is monitored, lifting the magnetometer to extend out of the height of the unmanned aerial vehicle until the interference of the magnetic field of the surrounding environment on the unmanned aerial vehicle is avoided.

3. The method of claim 1, wherein calculating a first target height from the first payload comprises:

calculating according to the first mounted weight to obtain a target current;

and calculating to obtain a first target height according to the target current.

4. The method of claim 1, wherein raising the height of the magnetometer in the drone according to the first target height such that the magnetometer extends out of the drone's body to eliminate interference of the magnetic field with the drone further comprises:

measuring the weight of the mounted unmanned aerial vehicle according to a preset time period to obtain a second mounted weight corresponding to the preset time period;

and calculating to obtain a second target height according to the second hanging load, and reducing the height of the magnetometer extending out of the unmanned aerial vehicle according to the second target height.

5. The method of claim 1, wherein raising the height of the magnetometer in the drone according to the first target height such that the magnetometer extends out of the drone's body to eliminate interference of the magnetic field with the drone further comprises:

receiving a second instruction for releasing the mount in the unmanned aerial vehicle, starting monitoring of the release state of the mount in response to the received second instruction, and measuring the current mount weight of the unmanned aerial vehicle to obtain a third mount weight if the mount is monitored to be released at this time;

and calculating to obtain a third target height according to the third hanging load, and reducing the height of the magnetometer extending out of the unmanned aerial vehicle according to the third target height.

6. The method of claim 1, wherein raising the height of the magnetometer in the drone according to the first target height such that the magnetometer extends out of the drone's body to eliminate interference of the magnetic field with the drone further comprises:

detecting a third instruction for turning off the drone, in response to the detected third instruction, lowering the height at which the magnetometer extends out of the drone, so that the magnetometer is stowed in the body of the drone.

7. An apparatus for canceling magnetic field interference, comprising:

the measurement module is used for detecting a first instruction for starting the unmanned aerial vehicle, responding to the detected first instruction, and measuring the weight of the unmanned aerial vehicle to obtain a first mounting weight;

the calculating module is used for calculating to obtain a first target height according to the first hanging weight;

the elimination module is used for lifting the height of the magnetometer in the unmanned aerial vehicle according to the first target height, so that the magnetometer extends out of the unmanned aerial vehicle body, and the interference of a magnetic field on the unmanned aerial vehicle is eliminated.

8. The apparatus of claim 7, further comprising:

and the storage module is used for detecting a third instruction for closing the unmanned aerial vehicle, responding to the third instruction, and adjusting the height of the magnetometer so as to incorporate the magnetometer into the unmanned aerial vehicle.

9. An unmanned aerial vehicle, comprising: the system comprises a main control system, a motor control system, a push rod motor, a tension sensor and a magnetometer, wherein the push rod motor comprises a telescopic rod; wherein the content of the first and second substances,

the tension sensor is used for measuring the weight mounted in the unmanned aerial vehicle;

the magnetometer is used for eliminating interference of a magnetic field to the unmanned aerial vehicle;

the main control system is used for calculating according to the mounting weight measured by the tension sensor to obtain a target height and sending the target height to the motor control system;

the motor control system is used for driving the push rod motor according to the target height sent by the main control system, so that the push rod motor controls the telescopic length of the telescopic rod;

the telescopic link is used for stretching according to the control of push rod motor for magnetometer stretches out and draws back the height that unmanned aerial vehicle changes.

10. A non-transitory computer-readable storage medium storing computer instructions which, when executed on a computer, cause the computer to perform the method of any one of claims 1 to 6.

[ technical field ] A method for producing a semiconductor device

The application relates to the technical field of unmanned aerial vehicles, in particular to a method and a device for eliminating magnetic field interference, an unmanned aerial vehicle and a storage medium.

[ background of the invention ]

An unmanned aircraft, referred to as "drone", is an unmanned aircraft that is operated by a radio remote control device and a self-contained program control device, or is operated autonomously, either completely or intermittently, by an onboard computer. The system is widely applied to disaster relief, movie and television shooting, power inspection, disaster relief and the like.

At present, unmanned aerial vehicle usually can contain a magnetometer, and the effect of this magnetometer is the direction that detects the earth magnetic field for supplementary flight control system judges unmanned aerial vehicle's position, if the data of magnetometer go wrong, can lead to unmanned aerial vehicle to be in the state of out of control. Because the earth magnetic field is very weak, the magnetometer is easily influenced by external magnetic substances, for example, the magnetic field generated by ferromagnetic substances and power lines in the unmanned aerial vehicle body can interfere with the magnetometer. In addition, because unmanned aerial vehicle can carry the mount usually, and the difference of carrying weight can lead to operating current change, further leads to magnetic field intensity change from this, therefore magnetometer's position and height are difficult to confirm, bring the hidden danger for unmanned aerial vehicle's flight safety.

[ summary of the invention ]

The embodiment of the application provides a method, a device, an unmanned aerial vehicle and a storage medium for eliminating magnetic field interference, the height of a magnetometer is converted from the weight of the unmanned aerial vehicle mounted, the magnetometer is controlled to lift from the height, the interference of a surrounding magnetic field on the unmanned aerial vehicle is eliminated, the flight safety of the unmanned aerial vehicle can be improved, the magnetometer in the unmanned aerial vehicle can be collected into the unmanned aerial vehicle body in a non-working state, and therefore the packaging and transportation convenience of the unmanned aerial vehicle can be improved.

In a first aspect, an embodiment of the present application provides a method for eliminating magnetic field interference, including:

detecting a first instruction for starting the unmanned aerial vehicle, and measuring the weight of the unmanned aerial vehicle in response to the detected first instruction to obtain a first mounting weight;

calculating to obtain a first target height according to the first hanging weight;

and lifting the height of the magnetometer in the unmanned aerial vehicle according to the first target height, so that the magnetometer extends out of the unmanned aerial vehicle body, and the interference of a magnetic field on the unmanned aerial vehicle is eliminated.

In a second aspect, an embodiment of the present application provides an apparatus for canceling magnetic field interference, including:

the measurement module is used for detecting a first instruction for starting the unmanned aerial vehicle, responding to the detected first instruction, and measuring the weight of the unmanned aerial vehicle to obtain a first mounting weight;

the calculating module is used for calculating to obtain a first target height according to the first hanging weight;

the elimination module is used for lifting the height of the magnetometer in the unmanned aerial vehicle according to the first target height, so that the magnetometer extends out of the unmanned aerial vehicle body, and the interference of a magnetic field on the unmanned aerial vehicle is eliminated.

In a third aspect, an embodiment of the present application provides an unmanned aerial vehicle, including: the system comprises a main control system, a motor control system, a push rod motor, a tension sensor and a magnetometer, wherein the push rod motor comprises a telescopic rod; wherein the content of the first and second substances,

the tension sensor is used for measuring the weight mounted in the unmanned aerial vehicle;

the magnetometer is used for eliminating interference of a magnetic field to the unmanned aerial vehicle;

the main control system is used for calculating according to the mounting weight measured by the tension sensor to obtain a target height and sending the target height to the motor control system;

the motor control system is used for driving the push rod motor according to the target height sent by the main control system, so that the push rod motor controls the telescopic length of the telescopic rod;

the telescopic link is used for stretching according to the control of push rod motor for magnetometer stretches out and draws back the height that unmanned aerial vehicle changes.

In a fourth aspect, embodiments of the present application provide a non-transitory computer-readable storage medium storing computer instructions which, when executed on a computer, cause the computer to perform the method as described above.

Among the above technical scheme, through the height that converts the weight of unmanned aerial vehicle mounted into magnetometer, control the lift of magnetometer from this to be used for eliminating the interference of magnetic field on every side to unmanned aerial vehicle, can improve unmanned aerial vehicle's flight safety, and in the magnetometer of this unmanned aerial vehicle can take in unmanned aerial vehicle's organism when non-operating condition, consequently can also improve the convenience of this unmanned aerial vehicle's packing and transportation.

[ description of the drawings ]

In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.

FIG. 1 is a flow chart of an embodiment of a method for canceling magnetic field interference according to the present application;

fig. 2 is a schematic diagram of a hardware structure of an unmanned aerial vehicle provided in an embodiment of the present application;

FIG. 3 is a schematic structural diagram of an embodiment of the apparatus for canceling magnetic field interference according to the present application;

FIG. 4 is a schematic structural diagram of an embodiment of an electronic device of the present application;

FIG. 5 is a diagram of one embodiment of the system architecture of the present application.

[ detailed description ] embodiments

For better understanding of the technical solutions of the present application, the following detailed descriptions of the embodiments of the present application are provided with reference to the accompanying drawings.

It should be understood that the embodiments described are only a few embodiments of the present application, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.

The terminology used in the embodiments of the present application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in the examples of this application and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.

Unmanned aerial vehicle is influenced by external magnetic substance easily, and magnetic substance includes soft magnetism and hard magnetism, and current unmanned aerial vehicle producer selects a most suitable position when selecting the earth magnetism mounted position at the fuselage usually, and the selection of this position need be supplementary through a large amount of experimental data, for example this position not only need keep away from the ferromagnetic substance in the fuselage, need keep away from the heavy current power cord simultaneously. The fixed ferromagnetic component is determined due to the nature, so that the problem can be solved only by pulling a sufficient distance, but the magnetic field intensity generated by a high-current power line is uncertain and can change along with the change of the working current of the airplane, for the problem, the current method is to estimate the maximum current which can be generated by the airplane and select the position according to the maximum current, but the method has the following problems:

one, unmanned aerial vehicle is when the design, can't find suitable position to place magnetometer module usually in the fuselage inside, because the inside distance of fuselage can not satisfy the requirement, so most all can select to pay out the unmanned aerial vehicle body with this module, similar a vaulting pole, place magnetometer on unmanned aerial vehicle's top, this vaulting pole needs to satisfy certain height and satisfies the safe distance that the earth magnetism is not disturbed, but this vaulting pole design too high can lead to the high increase of unmanned aerial vehicle complete machine, all bring inconvenience from packing and transportation.

Secondly, the roughly estimated maximum current can be larger than the actual current according to different objects mounted by the unmanned aerial vehicle, and the actual user can have various mounting requirements when using the unmanned aerial vehicle, such as pesticides or fire extinguishing devices or rescue goods and the like; different carried weights can generate different working currents, which can not be estimated accurately usually, and once a user carries a heavy object exceeding a design threshold, the generated large current can interfere with the existing magnetometer, so that the airplane is out of control.

Fig. 1 is a flowchart of an embodiment of a method for canceling magnetic field interference according to the present application, where as shown in fig. 1, the method for canceling magnetic field interference may include:

step 101, detecting a first instruction for starting the unmanned aerial vehicle, and measuring the weight of the unmanned aerial vehicle mounted in response to the detected first instruction to obtain a first mounted weight.

Specifically, the starting state of the unmanned aerial vehicle can be detected, the unmanned aerial vehicle can be started through remote control, and can also be started through a switch button on the unmanned aerial vehicle, which is not limited in the embodiment of the application; after the unmanned aerial vehicle receives any one of the starting instructions, namely after the unmanned aerial vehicle is started, the mounted weight of the unmanned aerial vehicle can be measured; generally, the mount all can be hung in unmanned aerial vehicle's bottom, before unmanned aerial vehicle takes off, all can carry out the support to this unmanned aerial vehicle and fix, and is exemplary, can live this unmanned aerial vehicle through 4 support frames supports, and the mount can be unsettled to hang in unmanned aerial vehicle bottom, is connected with this mount have a force sensor, can measure the weight of this mount through this force sensor, first mount weight promptly.

In addition, the unmanned aerial vehicle can also comprise a magnetometer, and the magnetometer can be contained in the unmanned aerial vehicle body in a shutdown state, so that the unmanned aerial vehicle is convenient to package and transport; the height of the magnetometer can be adjusted after the unmanned aerial vehicle is started, the height can be adjusted through a telescopic rod, the telescopic rod can stretch out and draw back through a push rod motor, one side of the telescopic rod can be connected with the push rod motor, the other side of the telescopic rod can be connected with the magnetometer, and the magnetometer can be driven to lift up and down through the stretching of the telescopic rod, so that the magnetometer can extend out of a body of the unmanned aerial vehicle; for example, as shown in fig. 2, the drone 200 may include a magnetometer 210, a telescoping pole 220, and a pusher motor 230; one side of the telescopic rod 220 is connected with the push rod motor 230, the other side of the telescopic rod 220 is connected with the magnetometer 210, and the push rod motor 230 drives the telescopic rod 220, so that the height of the magnetometer 210 extending out of the unmanned aerial vehicle can be adjusted.

And 102, calculating to obtain a first target height according to the first hanging weight.

Specifically, after the main control system of the unmanned aerial vehicle obtains the mounting weight, the mounting weight can be converted into a corresponding target working current; then, conversion can be carried out according to the target working current, so that the safe height of the magnetometer, namely the first target height, can be obtained; wherein, the conversion formula between target operating current and this safe altitude also can be an empirical formula, and this safe altitude can be used for the height that this magnetometer stretched out unmanned aerial vehicle.

During concrete implementation, firstly, the mounted weight can be converted into the working current, exemplarily, the tension sensor can calculate the tension required to be generated by a single shaft, the uniaxial current can be obtained by looking up the table according to the uniaxial tension, as shown in table 1, the total current can be obtained by accumulating the currents of all the shafts, namely, the target working current, wherein the table can be stored in a memory of the unmanned aerial vehicle in advance.

TABLE 1

Figure BDA0002536796740000061

After obtaining the total operating current, the calculation may be performed according to a preset formula, which is as follows:

B=U0*I/2πh;

b is a preset safe magnetic field intensity, I is working current, pi is a circumferential rate, and h is a safe height, so that the current safe height can be calculated through the formula; it can be seen from the above formula that along with the increase of height, magnetic field intensity can reduce, consequently as long as the height is higher than this safe height, just can eliminate the interference in unmanned aerial vehicle inside magnetic field.

Optionally, a mapping relation between the pulling force and the target height may be preset, and the mapping relation may be stored in a memory of the unmanned aerial vehicle in advance, and after the unmanned aerial vehicle measures the mount weight, the unmanned aerial vehicle may be queried in the memory of the unmanned aerial vehicle in a table look-up manner to obtain the safety height corresponding to the mount weight; for example, one safety height may correspond to one mounted weight, and one safety height may also correspond to an interval range of one mounted weight, which is not limited in the embodiment of the present application.

And 103, lifting the height of the magnetometer in the unmanned aerial vehicle according to the first target height so that the magnetometer extends out of the unmanned aerial vehicle body to eliminate the interference of a magnetic field on the unmanned aerial vehicle.

Specifically, after the current safe height, that is, the first target height, is obtained through calculation, the main control system of the unmanned aerial vehicle can also send the safe height to the motor control system, and the motor control system instructs the push rod motor 230 to adjust the height of the magnetometer 210 according to the safe height, so as to eliminate the interference of the surrounding magnetic field on the unmanned aerial vehicle, thereby ensuring the safe takeoff of the unmanned aerial vehicle.

Optionally, after the height of the magnetometer of the unmanned aerial vehicle is adjusted, the magnetic field of the surrounding environment can be further monitored; the magnetic field of the surrounding environment can be obtained through magnetometer detection, the magnetic data of the current surrounding magnetic field can be obtained through magnetometer detection, the magnetic data can be compared with the preset geomagnetic data, and if the magnetic data of the current surrounding magnetic field and the preset geomagnetic data are matched, the fact that the current surrounding magnetic field does not interfere with the unmanned aerial vehicle can be shown; if the data of the two are different, it can be stated that the magnetic field of the current surrounding environment will interfere with the unmanned aerial vehicle, and at this time, the height of the magnetometer can be further adjusted, for example, the height of the magnetometer can be further raised.

In concrete implementation, after the magnetic field that detects the surrounding environment produced the interference to unmanned aerial vehicle, can finely tune the height of magnetometer, can detect current ambient magnetic field's magnetic data again after the fine setting to again compare this magnetic data with preset earth magnetism data, can constantly carry out the lifting to the height of magnetometer from this, until there is not the difference between the magnetic data that record and the preset earth magnetism data, the magnetic field of surrounding environment no longer produced the interference to unmanned aerial vehicle promptly.

Optionally, before the height adjustment of the magnetometer of the drone is performed in step 103, the magnetic field of the surrounding environment may also be monitored; the magnetic field of the surrounding environment can be obtained through magnetometer detection, the magnetic data of the current surrounding magnetic field can be obtained through magnetometer detection, the magnetic data can be compared with the preset geomagnetic data, and if the magnetic data of the current surrounding magnetic field and the preset geomagnetic data are matched, the fact that the current surrounding magnetic field does not interfere with the unmanned aerial vehicle can be shown; if the data of the two are different, it can be stated that the magnetic field of the current surrounding environment interferes with the unmanned aerial vehicle, and at this time, the height of the magnetometer can be adjusted, and for example, the height of the magnetometer can be raised until the magnetic field of the surrounding environment does not interfere with the unmanned aerial vehicle any more.

During specific implementation, after the interference of the magnetic field of the surrounding environment on the unmanned aerial vehicle is detected, the height of the magnetometer can be finely adjusted, the current magnetic data of the surrounding magnetic field can be detected again after fine adjustment, and the magnetic data is compared with the preset geomagnetic data again, so that the height of the magnetometer can be continuously lifted until the measured magnetic data is not different from the preset geomagnetic data, namely the interference of the magnetic field of the surrounding environment on the unmanned aerial vehicle is not generated any more; at this time, the current height of the magnetometer, that is, the second target height may be recorded, and the second target height may be compared with the first target height in step 102, if the second target height is greater than or equal to the first target height, the magnetometer is not lifted any more, because the current height may already eliminate interference caused by the internal magnetic field of the unmanned aerial vehicle, and if the second target height is smaller than the first target height, it is indicated that the current height is not enough to eliminate interference caused by the internal magnetic field of the unmanned aerial vehicle, the magnetometer needs to be further lifted to a height corresponding to the first target height.

Further, after the height of the magnetometer is adjusted, the unmanned aerial vehicle can further measure the mounted weight according to a preset time period, so that the height of the magnetometer can be further adjusted; because the unmanned aerial vehicle usually executes tasks, the weight mounted on the unmanned aerial vehicle can change during the flight, for example, pesticide spraying, rescue goods and materials throwing and the like are sprayed, so that a time period can be preset before the flight; for example, the time period may be a fixed time point or a fixed time interval, and the time period may be one or more; when the preset time period is reached, the weight of the current mounting can be measured to obtain the weight of the current mounting, and the height of the magnetometer can be adjusted again according to the weight of the current mounting; it should be noted that, if a plurality of time periods are preset, the height of the current magnetometer can be adjusted every time after the current mount weight is measured, so that the height of the magnetometer can be ensured to change along with the change of the mount weight.

Optionally, the unmanned aerial vehicle may further measure the mount weight again after receiving the mount release instruction; during specific implementation, a mounting releasing instruction can be detected, the instruction can be sent by user operation in a wireless mode, and after the unmanned aerial vehicle receives the mounting releasing instruction, mounting can be released; the mount can be released partially or completely, and if the mount is released partially, the rest mount can be released next time; after the mount is released, the remaining mount weight can be measured, so that the current mount weight can be obtained, and the height of the magnetometer can be further adjusted according to the current mount weight.

Furthermore, the unmanned aerial vehicle can also receive an instruction for closing the unmanned aerial vehicle and then take the magnetometer into the body of the unmanned aerial vehicle; in concrete implementation, because unmanned aerial vehicle can return the destination after carrying out the task, when this unmanned aerial vehicle returns the destination after, can close this unmanned aerial vehicle to maintain this unmanned aerial vehicle, for example, charge unmanned aerial vehicle. Therefore, in the process, when the unmanned aerial vehicle receives an instruction for closing the unmanned aerial vehicle, the height adjustment of the magnetometer can be started so as to enable the magnetometer to be collected in the unmanned aerial vehicle body; wherein, this an instruction for closing unmanned aerial vehicle can be sent by user operation through wireless communication mode, also can realize through the last power button of unmanned aerial vehicle, and this application embodiment does not limit to this.

In this embodiment, through the height that converts the weight of unmanned aerial vehicle carry into magnetometer, from this control magnetometer's lift to be used for eliminating the interference of surrounding magnetic field to unmanned aerial vehicle, can improve unmanned aerial vehicle's flight safety, and in the magnetometer of this unmanned aerial vehicle can take in unmanned aerial vehicle's organism when the non-operating condition, consequently can also improve this unmanned aerial vehicle's packing and the convenience of transportation.

Fig. 3 is a schematic structural diagram of an embodiment of the apparatus 30 for canceling magnetic field interference according to the present invention, where the apparatus 30 for canceling magnetic field interference in this embodiment can be used alone as an electronic device or as a part of an electronic device.

As shown in fig. 3, the apparatus 30 for eliminating magnetic field interference may include: a measurement module 31, a calculation module 32 and a cancellation module 33;

the measurement module 31 is configured to detect a first instruction for starting the unmanned aerial vehicle, and measure the weight of the unmanned aerial vehicle mounted in response to the detected first instruction to obtain a first mounted weight;

a calculating module 32, configured to calculate a first target height according to the first payload;

the eliminating module 33 is configured to raise the height of the magnetometer in the unmanned aerial vehicle according to the first target height, so that the magnetometer extends out of the unmanned aerial vehicle body, so as to eliminate interference of a magnetic field on the unmanned aerial vehicle.

In one possible implementation, the apparatus 30 may further include: an adjustment module 34;

an adjustment module 34 for monitoring the magnetic field of the surroundings of the drone; and if the interference of the magnetic field of the surrounding environment on the unmanned aerial vehicle is monitored, lifting the magnetometer to extend out of the height of the unmanned aerial vehicle until the interference of the magnetic field of the surrounding environment on the unmanned aerial vehicle is avoided.

In one possible implementation, the calculation module 32 may further include: a first calculating unit 321 and a second calculating unit 322;

a first calculating unit 321, configured to calculate a target current according to the first mounted weight;

the second calculating unit 322 is configured to calculate a first target height according to the target current.

In one possible implementation, the apparatus 30 may further include: an adjustment module 35;

the adjusting module 35 is configured to measure the weight of the mounted unmanned aerial vehicle according to a preset time period, so as to obtain a second mounted weight corresponding to the preset time period; and calculating to obtain a second target height according to the second hanging load, and reducing the height of the magnetometer extending out of the unmanned aerial vehicle according to the second target height.

In one possible implementation, the apparatus 30 may further include: an adjustment module 36;

an adjusting module 36, configured to receive a second instruction for releasing the mount in the unmanned aerial vehicle, start monitoring of a release state of the mount in response to the received second instruction, and measure a current mount weight of the unmanned aerial vehicle to obtain a third mount weight if it is monitored that the mount is released this time; and calculating to obtain a third target height according to the third hanging load, and reducing the height of the magnetometer extending out of the unmanned aerial vehicle according to the third target height.

In one possible implementation, the apparatus 30 may further include: a storage module 37;

and the storage module 37 is used for detecting a third instruction for closing the unmanned aerial vehicle, and responding to the detected third instruction, reducing the height of the magnetometer extending out of the unmanned aerial vehicle so that the magnetometer is collected into the unmanned aerial vehicle body.

The apparatus for canceling magnetic field interference provided in the embodiment shown in fig. 3 may be used to implement the technical solutions of the method embodiments shown in fig. 1 and fig. 2 of the present application, and the implementation principles and technical effects thereof may be further described with reference to the related descriptions in the method embodiments.

It should be understood that the division of the modules of the apparatus for canceling magnetic field interference shown in fig. 3 is only a logical division, and the actual implementation may be wholly or partially integrated into a physical entity or may be physically separated. And these modules can be realized in the form of software called by processing element; or may be implemented entirely in hardware; and part of the modules can be realized in the form of calling by the processing element in software, and part of the modules can be realized in the form of hardware. For example, the module may be a separate processing element, or may be integrated into a chip of the electronic device. Other modules are implemented similarly. In addition, all or part of the modules can be integrated together or can be independently realized. In implementation, each step of the above method or each module above may be implemented by an integrated logic circuit of hardware in a processor element or an instruction in the form of software.

For example, the above modules may be one or more integrated circuits configured to implement the above methods, such as: one or more Application Specific Integrated Circuits (ASICs), one or more microprocessors (DSPs), one or more Field Programmable Gate Arrays (FPGAs), etc. For another example, these modules may be integrated together and implemented in the form of a System-On-a-Chip (SOC).

Fig. 4 is a schematic structural diagram of an embodiment of an electronic device 400 according to the present application, where the electronic device may include: at least one processor; and at least one memory communicatively coupled to the processor, wherein: the memory stores program instructions executable by the processor, and the processor invokes the program instructions to perform the method for canceling magnetic field interference according to the embodiment shown in fig. 1 and 2.

Wherein, above-mentioned electronic equipment can be unmanned aerial vehicle or unmanned vehicles.

Fig. 4 shows a block diagram of an exemplary electronic device 400 suitable for implementing embodiments of the present application. The electronic device shown in fig. 4 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present application.

As shown in fig. 4, electronic device 400 is embodied in the form of a general purpose computing device. The components of electronic device 400 may include, but are not limited to: one or more processors 410, a memory 420, and a communication bus 440 that connects the various system components (including the memory 420 and the processors 410).

Communication bus 440 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. These architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MAC) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus, to name a few.

Electronic devices typically include a variety of computer system readable media. Such media may be any available media that is accessible by the electronic device and includes both volatile and nonvolatile media, removable and non-removable media.

Memory 420 may include computer system readable media in the form of volatile Memory, such as Random Access Memory (RAM) and/or cache Memory. The electronic device may further include other removable/non-removable, volatile/nonvolatile computer system storage media. Although not shown in FIG. 4, a disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a Compact disk Read Only Memory (CD-ROM), a Digital versatile disk Read Only Memory (DVD-ROM), or other optical media) may be provided. In these cases, each drive may be connected to the communication bus 440 by one or more data media interfaces. Memory 420 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the application.

A program/utility having a set (at least one) of program modules, including but not limited to an operating system, one or more application programs, other program modules, and program data, may be stored in memory 420, each of which examples or some combination may include an implementation of a network environment. The program modules generally perform the functions and/or methodologies of the embodiments described herein.

The electronic device may also communicate with one or more external devices (e.g., keyboard, pointing device, display, etc.), one or more devices that enable a user to interact with the electronic device, and/or any devices (e.g., network card, modem, etc.) that enable the electronic device to communicate with one or more other computing devices. Such communication may occur via communication interface 430. Furthermore, the electronic device may also communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public Network such as the Internet) via a Network adapter (not shown in FIG. 4) that may communicate with other modules of the electronic device via the communication bus 440. It should be appreciated that although not shown in FIG. 4, other hardware and/or software modules may be used in conjunction with the electronic device, including but not limited to: microcode, device drivers, Redundant processing units, external disk drive Arrays, disk array (RAID) systems, tape Drives, and data backup storage systems, among others.

The processor 410 executes programs stored in the memory 420 to perform various functional applications and data processing, such as implementing the method for eliminating magnetic field interference provided by the embodiments of the present application.

Fig. 5 is a schematic diagram of a system architecture 500 according to an embodiment of the present application. The system architecture is used for realizing the method provided in the above method embodiment.

As shown in fig. 5, the system architecture 500 may include a host system 510, a tension sensor 520, a motor control system 530, a putter motor 531, and a magnetometer 540.

The main control system 510 is configured to receive the mounting weight data sent by the tension sensor 520, and may calculate a target height according to the mounting weight data, for example, to implement step 102.

The tension sensor 520 is used for measuring the weight of the unmanned aerial vehicle mounted, and obtaining the mounted weight, for example, step 101 is implemented.

The host system 510 is further configured to send the target height to the motor control system 530, so that the motor control system 530 adjusts the height of the magnetometer 540, for example, to implement step 103.

The motor control system 530 is configured to receive the target height of the main control system 510 and drive the push rod motor 531 according to the target height to adjust the height of the magnetometer 540.

The pusher motor 531 is used to push the magnetometer 540 to make a height adjustment to the magnetometer 540.

In one possible implementation, the magnetometer 540 is configured to measure the ambient magnetic field environment data of the drone and may send the ambient magnetic field environment data to the host system 510.

In one possible implementation, the master control system 510 is further configured to determine whether the magnetic field of the surrounding environment interferes with the drone according to the surrounding magnetic field environment data.

In one possible implementation, the main control system 510 is further configured to instruct the tension sensor 520 to measure the currently mounted weight.

In one possible implementation, the host control system 510 is further configured to instruct the motor control system 530 to adjust the height of the magnetometer 540 before the drone is ready to be powered off, so that the magnetometer 540 is received into the drone body.

Embodiments of the present application also provide a non-transitory computer-readable storage medium storing computer instructions, which, when executed on a computer, cause the computer to perform the method for canceling magnetic field interference provided by embodiments of the present application.

The non-transitory computer readable storage medium described above may take any combination of one or more computer readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a Read Only Memory (ROM), an Erasable Programmable Read Only Memory (EPROM), a flash Memory, an optical fiber, a portable compact disc Read Only Memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.

A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.

Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

Computer program code for carrying out operations for aspects of the present application may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of Network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).

In the description herein, reference to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the application. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.

Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present application, "plurality" means at least two, e.g., two, three, etc., unless specifically limited otherwise.

Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing steps of a custom logic function or process, and alternate implementations are included within the scope of the preferred embodiment of the present application in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present application.

The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination" or "in response to a detection", depending on the context. Similarly, the phrases "if determined" or "if detected (a stated condition or event)" may be interpreted as "when determined" or "in response to a determination" or "when detected (a stated condition or event)" or "in response to a detection (a stated condition or event)", depending on the context.

In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions in actual implementation, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.

In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.

The integrated unit implemented in the form of a software functional unit may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) or a Processor (Processor) to execute some steps of the methods according to the embodiments of the present application. And the aforementioned storage medium includes: a U disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.

The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the scope of protection of the present application.

16页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种农药喷洒植保无人机

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!