PTZ control method and device, storage medium and processor

By detecting the gimbal sensor signal and controlling the motor torque, the problem of gyroscope stability in the unmanned gimbal carrier is solved, the gyroscope stability control without initial static conditions is achieved, and it is suitable for unmanned gimbal carriers.

CN115562369BActive Publication Date: 2024-09-03BEIJING FUJIRUI OPTOELECTRONICS TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211158167.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-22
Publication Date
2024-09-03
Estimated Expiration
2042-09-22

AI Technical Summary

Technical Problem

The existing method of using a gyroscope to stabilize a gimbal is not suitable for unmanned operation of the gimbal carrier, and it is difficult to provide static initial conditions, making it difficult to achieve stable control of the gimbal.

Method used

By detecting the shaking state of the base and the drift state of the gyroscope in the gimbal, the sensor signal is obtained, the quadrature-axis current of the motor is processed, and the motor torque is controlled based on the quadrature-axis current to achieve the stability of the gimbal.

Benefits of technology

This method enables the gimbal to achieve stable control under unmanned operation and stationary initial conditions, and is suitable for unmanned operating carriers such as unmanned ships, etc., improving the stability and applicability of the gimbal.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115562369B
    Figure CN115562369B
Patent Text Reader

Abstract

The present application discloses a control method and device for a gimbal, a storage medium and a processor. The method comprises: when a target state is detected, obtaining a signal from a sensor in the gimbal, wherein the target state is at least one of the following: the base in the gimbal is in a shaking state, the gyroscope in the gimbal is in a drifting state, and the sensor in the gimbal comprises at least a gyroscope, an encoder and an attitude sensor; processing the signal from the sensor in the gimbal to obtain the cross-axis current of the motor in the gimbal; and controlling the torque of the motor in the gimbal according to the cross-axis current to stabilize the gimbal. The present application solves the problem that the method of using a gyroscope to stably control the gimbal in the related art is not applicable to the situation where the gimbal carrier is unmanned and it is difficult to provide a static initial condition, resulting in difficulty in stably controlling the gimbal.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of pan-tilt technology, and in particular to a pan-tilt control method and device, a storage medium and a processor. Background Art

[0002] In optoelectronic systems, inertial devices are often used to stabilize the optical axis of optical cameras in conjunction with servo motors. Moreover, as a frequently used inertial device, the gyroscope itself has the advantages of high response and high sensitivity, but its drift problem must also be taken seriously during use.

[0003] In addition, in the related art, when a two-axis stabilized gimbal uses a gyroscope for optical axis stabilization, in order to ensure that the gyroscope can be used normally, an accurate zero-point drift value must be obtained before entering normal stable operation so that the drift value can be subtracted in subsequent use, thereby ensuring that the gimbal device is not affected by the drift value.

[0004] Moreover, the zero drift value is usually obtained using the following method:

[0005] (1) When the system is turned on, the device is required to remain absolutely still for a period of time. The system collects gyroscope data during this period and obtains the gyroscope's zero drift value through digital signal processing. During the normal operation of the system, the drift is subtracted when reading the gyroscope data;

[0006] (2) Every time the system is turned on, the device enters the stable working mode. At this time, the operator sends the drift calibration value through the host computer based on the observed image drift. When it is observed that the image is basically not drifting, the current drift value is saved as the zero drift value. And when reading the gyroscope data during the normal operation of the system, the drift is subtracted.

[0007] However, the above two-axis stabilized gimbal stabilization method requires obtaining accurate zero drift values ​​under the conditions of initial stillness or human intervention. Without the initial stillness condition and without human intervention during operation, the drift calibration cannot be completed, which will cause a large offset during the operation of the equipment and fail to achieve stable functions. It is also not suitable for installation on unmanned carriers that are difficult to provide absolute stillness initial conditions, such as unmanned ships.

[0008] The method of using a gyroscope to stably control the gimbal in the related art is not suitable for the situation where the gimbal carrier is unmanned and it is difficult to provide a stationary initial condition, resulting in the problem of difficulty in stably controlling the gimbal. No effective solution has been proposed yet. Summary of the invention

[0009] The main purpose of the present application is to provide a control method and device for a gimbal, a storage medium and a processor, so as to solve the problem that the method of using a gyroscope to stably control the gimbal in the related art is not suitable for the situation where the gimbal carrier is unmanned and it is difficult to provide a stationary initial condition, resulting in difficulty in stably controlling the gimbal.

[0010] In order to achieve the above-mentioned purpose, according to one aspect of the present application, a control method for a gimbal is provided. The method comprises: when a target state is detected, obtaining a signal of a sensor in the gimbal, wherein the target state is at least one of the following: the base in the gimbal is in a shaking state, the gyroscope in the gimbal is in a drifting state, and the sensor in the gimbal comprises at least: the gyroscope, the encoder and the attitude sensor; processing the signal of the sensor in the gimbal to obtain the quadrature axis current of the motor in the gimbal; and controlling the torque of the motor in the gimbal according to the quadrature axis current to stabilize the gimbal.

[0011] Furthermore, controlling the torque of the motor in the gimbal according to the cross-axis current to stabilize the gimbal includes: controlling the torque of the motor in the gimbal according to the cross-axis current to obtain a target torque; and controlling the movement of a target axis of a target device based on the target torque to stabilize the gimbal, wherein the target device is used to acquire a target image, the gimbal is used to support the target device, and the target axis is at least one of the following: a roll axis and a pitch axis.

[0012] Furthermore, processing the signal of the sensor in the gimbal to obtain the cross-axis current of the motor in the gimbal includes: combining the PD control law to process the signals of the encoder and the attitude sensor in the gimbal to obtain the current rotation speed of the target axis; combining the PI control law, based on the current rotation speed of the target axis, processing the signal of the gyroscope in the gimbal to obtain the cross-axis current of the motor in the gimbal.

[0013] Furthermore, in combination with the PD control law, the signals of the encoder and the attitude sensor in the gimbal are processed to obtain the current rotation speed of the target axis, including: processing the signal of the encoder in the gimbal to determine the position information of the target axis; processing the signal of the attitude sensor in the gimbal to determine the position information of the base; in combination with the PD control law, based on the position information of the target axis and the position information of the base, obtaining the current rotation speed of the target axis.

[0014] Further, in combination with the PI control law, based on the current rotation speed of the target axis, the signal of the gyroscope in the gimbal is processed to obtain the cross-axis current of the motor in the gimbal, including: processing the signal of the gyroscope in the gimbal to obtain the target rotation speed of the target axis; in combination with the PI control law, based on the current rotation speed and the target rotation speed, obtaining the cross-axis current of the motor in the gimbal.

[0015] Further, if the target state is that the base in the gimbal is in a shaking state, when the target state is detected, obtaining the signal of the sensor in the gimbal includes: when it is detected that the base in the gimbal is in a shaking state, detecting by the gyroscope whether the roll axis and the pitch axis are both in a first state, wherein when in the first state, the stability of the roll axis and the pitch axis are both less than a preset stability; if the roll axis and the pitch axis are both in the first state, obtaining the signal of the sensor in the gimbal.

[0016] Further, if the target state is that the gyroscope in the gimbal is in a drift state, when the target state is detected, obtaining the signal of the sensor in the gimbal includes: when it is detected that the gyroscope in the gimbal is in a drift state, detecting through the encoder whether the roll axis is in a first position or whether the pitch axis is in a second position, wherein the clarity of the image acquired when the roll axis is in the first position and the pitch axis is in the second position is greater than a preset clarity; if the roll axis is not in the first position, or the pitch axis is not in the second position, obtaining the signal of the sensor in the gimbal.

[0017] In order to achieve the above-mentioned purpose, according to another aspect of the present application, a control device for a gimbal is provided. The device includes: a first acquisition unit, which is used to acquire the signal of the sensor in the gimbal when a target state is detected, wherein the target state is at least one of the following: the base in the gimbal is in a shaking state, the gyroscope in the gimbal is in a drifting state, and the sensor in the gimbal includes at least: the gyroscope, the encoder and the attitude sensor; a first processing unit, which is used to process the signal of the sensor in the gimbal to obtain the cross-axis current of the motor in the gimbal; a first control unit, which is used to control the torque of the motor in the gimbal according to the cross-axis current to stabilize the gimbal.

[0018] Furthermore, the first control unit includes: a first control module, used to control the torque of the motor in the gimbal according to the cross-axis current to obtain a target torque; a second control module, used to control the movement of a target axis of a target device based on the target torque to stabilize the gimbal, wherein the target device is used to acquire a target image, the gimbal is used to support the target device, and the target axis is at least one of the following: a roll axis and a pitch axis.

[0019] Furthermore, the first processing unit includes: a first processing module, used to process the signals of the encoder and the attitude sensor in the gimbal in combination with the PD control law to obtain the current rotation speed of the target axis; a second processing module, used to process the signal of the gyroscope in the gimbal in combination with the PI control law based on the current rotation speed of the target axis to obtain the cross-axis current of the motor in the gimbal.

[0020] Furthermore, the first processing module includes: a first processing sub-module, used to process the signal of the encoder in the gimbal to determine the position information of the target axis; a second processing sub-module, used to process the signal of the attitude sensor in the gimbal to determine the position information of the base; a first determination sub-module, used to combine the PD control law, based on the position information of the target axis and the position information of the base, to obtain the current rotation speed of the target axis.

[0021] Furthermore, the second processing module includes: a third processing sub-module, used to process the signal of the gyroscope in the gimbal to obtain the target rotation speed of the target axis; a second determination sub-module, used to combine the PI control law, based on the current rotation speed and the target rotation speed, to obtain the quadrature-axis current of the motor in the gimbal.

[0022] Further, if the target state is that the base in the gimbal is in a shaking state, the first acquisition unit includes: a first detection module, which is used to detect whether the roll axis and the pitch axis are both in a first state through the gyroscope when it is detected that the base in the gimbal is in a shaking state, wherein when in the first state, the stability of the roll axis and the pitch axis are both less than a preset stability; a first acquisition module, which is used to obtain the signal of the sensor in the gimbal if the roll axis and the pitch axis are both in the first state.

[0023] Further, if the target state is that the gyroscope in the gimbal is in a drift state, the first acquisition unit includes: a second detection module, which is used to detect whether the roll axis is in a first position or whether the pitch axis is in a second position through the encoder when it is detected that the gyroscope in the gimbal is in a drift state, wherein the clarity of the image acquired when the roll axis is in the first position and the pitch axis is in the second position is greater than a preset clarity; a second acquisition module, which is used to acquire a signal from the sensor in the gimbal if the roll axis is not in the first position, or the pitch axis is not in the second position.

[0024] In order to achieve the above-mentioned purpose, according to another aspect of the present application, a computer-readable storage medium is provided, wherein the storage medium stores a program, wherein the program executes any one of the above-mentioned gimbal control methods.

[0025] In order to achieve the above-mentioned purpose, according to another aspect of the present application, a processor is provided, wherein the processor is used to run a program, wherein the program executes any one of the above-mentioned gimbal control methods when running.

[0026] Through the present application, the following steps are adopted: when the target state is detected, the signal of the sensor in the gimbal is obtained, wherein the target state is at least one of the following: the base in the gimbal is in a shaking state, the gyroscope in the gimbal is in a drifting state, and the sensor in the gimbal includes at least: a gyroscope, an encoder and an attitude sensor; the signal of the sensor in the gimbal is processed to obtain the quadrature axis current of the motor in the gimbal; according to the quadrature axis current, the torque of the motor in the gimbal is controlled to stabilize the gimbal, thereby solving the problem that the method of using a gyroscope to stabilize the gimbal in the related art is not suitable for the situation where the gimbal carrier is unmanned and it is difficult to provide a static initial condition, resulting in difficulty in stabilizing the gimbal. By processing the signal of the sensor in the gimbal obtained, the quadrature axis current of the motor in the gimbal is obtained, and according to the quadrature axis current, the torque of the motor in the gimbal is controlled to stabilize the gimbal, thereby making the method of stabilizing the gimbal suitable for the situation where the gimbal carrier is unmanned and it is difficult to provide a static initial condition, thereby achieving the effect of stabilizing the gimbal. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] The drawings constituting a part of the present application are used to provide a further understanding of the present application. The illustrative embodiments and descriptions of the present application are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0028] Figure 1 is a flow chart of a method for controlling a pan / tilt platform provided in an embodiment of the present application;

[0029] Figure 2is a structural diagram of a two-axis stabilized gimbal in an embodiment of the present application;

[0030] Figure 3 is a hardware block diagram of a servo control board in an embodiment of the present application;

[0031] Figure 4 is a schematic diagram of a rolling direction stability control algorithm in an embodiment of the present application;

[0032] Figure 5 is a schematic diagram of torque control of a motor in an embodiment of the present application;

[0033] Figure 6 is a flow chart of an optional pan / tilt control method provided according to an embodiment of the present application;

[0034] Figure 7 It is a schematic diagram of a control device of a pan / tilt platform provided according to an embodiment of the present application. DETAILED DESCRIPTION

[0035] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0036] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.

[0037] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present application described here. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0038] For the convenience of description, some nouns or terms involved in the embodiments of the present application are explained below:

[0039] Gimbal: A support platform for shooting equipment, also known as a support platform for mobile phones, sports cameras, professional cameras and camcorders, used to install and fix mobile phones, cameras and camcorders.

[0040] The present invention is described below in conjunction with preferred implementation steps. Figure 1 is a flow chart of a method for controlling a pan / tilt platform according to an embodiment of the present application. Figure 1 As shown, the method comprises the following steps:

[0041] Step S101, when a target state is detected, a signal of a sensor in the gimbal is obtained, wherein the target state is at least one of the following: a base in the gimbal is in a shaking state, a gyroscope in the gimbal is in a drifting state, and the sensor in the gimbal includes at least a gyroscope, an encoder, and a posture sensor.

[0042] For example, Figure 2 is a structural diagram of a two-axis stabilized gimbal in an embodiment of the present application, such as Figure 2 As shown in the figure, the structure of the two-axis stabilized gimbal is mainly composed of three parts: the base, the axis frame and the load compartment. The load compartment is installed on the axis frame, and various optoelectronic imaging devices can be loaded inside, such as infrared cameras, visible light cameras, etc., which are mainly used for image perception, acquisition, processing and transmission. And the main task of the stabilized gimbal is to ensure the stability of the optical axis of the optoelectronic imaging device inside the load compartment when the base shakes or is disturbed by the outside world, so as to obtain clear image information. The axis frame is mainly composed of the driving and sensing components of the two axis systems of roll and pitch. The axis systems of roll and pitch are composed of brushless torque motors, photoelectric encoders, and micromechanical gyroscopes, but the installation positions are different. The photoelectric encoder is mainly used to collect the relative position of the axis system, and the micromechanical gyroscope is mainly used to sense the rotation speed of the axis system. The brushless torque motor is used as a torque actuator to drive the axis system to move and complete the stabilization function of the axis system.

[0043] The base is mainly composed of a servo control board and an attitude calculation module. The attitude calculation module contains components such as accelerometers, magnetometers, and gyroscopes, which can sense the attitude of the base and transmit the attitude information back to the servo control board. The attitude information calculated by the attitude calculation module, combined with the signals of multiple sensors, can effectively avoid the influence of factors such as drift and temperature on the attitude information, and ensure the accuracy of the attitude information. The servo control board is the control center of the two-axis stabilized gimbal, which mainly completes the acquisition and processing of sensor signals, the drive of the brushless torque motor and the implementation of the vector control algorithm, the implementation of the axis stability control algorithm, and external communications.

[0044] in addition, Figure 3 is a hardware block diagram of the servo control board in the embodiment of the present application, such as Figure 3As shown, the servo control board can use a 32-bit MCU (Microcontroller Unit) as the main controller, and is designed with a three-phase drive circuit for the brushless torque motor of the roll and pitch axis system, as well as circuits for collecting the corresponding motor current and driving protection. The drive of the brushless torque motor adopts a vector control method to ensure the control accuracy and response speed of the axis system. At the same time, it also includes interface circuits for external communication and sensors, mainly including one RS422 (data transmission protocol) interface communication circuit and one RS232 interface (asynchronous transmission standard interface) communication circuit for external communication, one CAN (Controller Area Network) communication interface circuit for attitude sensor communication, and two SSI communication interfaces (Synchronous Serial Interface, a full-duplex serial interface) circuits used by the photoelectric encoder. The remaining interfaces are reserved for the system. And, Figure 3The BISS-C interface in the figure stands for Bidirectional Synchronous Serial Interface. The version of the bidirectional synchronous serial interface is BISS-C. The ABZ interface stands for the interface for transmission from the sensor device to the controller. In this case, the angle information is transmitted incrementally. The HALL interface stands for the Hall interface, which can automatically record the pulse change interval and generate an interrupt. The USB interface is the abbreviation of Universal Serial Bus. EEPROM is the abbreviation of Electrically Erasable Programmable read only memory, which refers to an electrically erasable programmable read only memory, that is, a storage chip that does not lose data after power failure. The MOS in the MOS pre-driver is the abbreviation of MOSFET, which is a metal-oxide semiconductor field effect transistor, also known as Metal-Oxide-Semiconductor Field-Effect Transistor (MOSFET). The full name of PMSM is permanent magnet synchronous motor. The internal voltage conversion circuit mainly includes DC / DC step-down circuits such as 24V to 12V, 24V to 5V, and 5V to 3.3V. The main controller uses a high-performance 32-bit ARM (Advanced RISC Machine, ARM) microprocessor with FPU (Floating Processing Unit) and DSP (Digital Signal Processing) instructions. It mainly completes the implementation of the two-axis brushless torque motor vector control algorithm, the implementation of the optical axis stabilization control algorithm, the reception and processing of external sensor information, the reception of external communication commands and the upload of device status, the detection and upload of system faults, etc.

[0045] For example, when a two-axis stabilized gimbal is working, if the base shakes or is disturbed by external factors, or the gyro drifts or is disturbed by external factors, the optical axis of the load compartment may become unstable or move in a certain direction. At this time, the gyroscope and photoelectric encoder on the axis system will quickly sense these movements and upload this information to the servo control board.

[0046] Step S102, processing the signal of the sensor in the gimbal to obtain the quadrature-axis current of the motor in the gimbal.

[0047] For example, the servo driver board outputs the motor current based on the signals from the gyroscope, photoelectric encoder and attitude sensor, and can combine the position controller and stability controller.

[0048] Step S103, controlling the torque of the motor in the gimbal according to the quadrature-axis current to stabilize the gimbal.

[0049] For example, the torque of the brushless torque motor is controlled by the output motor current, so that the motor drives the axis system to move in the opposite direction, overcomes the shaking of the base or external interference, gyroscope drift or external interference, so as to stabilize the gimbal.

[0050] Through the above steps S101 to S103, the signals of the sensors in the gimbal are processed to obtain the cross-axis current of the motor in the gimbal, and the torque of the motor in the gimbal is controlled according to the cross-axis current to stabilize the gimbal. Thus, the method for stabilizing the gimbal is suitable for the situation where the gimbal carrier is unmanned and it is difficult to provide a stationary initial condition, thereby achieving the effect of stabilizing the gimbal.

[0051] In order to quickly and accurately obtain the signals of the sensors in the gimbal, in the control method of the gimbal provided in the embodiment of the present application, the signals of the sensors in the gimbal can also be obtained through the following steps: when it is detected that the base in the gimbal is in a shaking state, the gyroscope is used to detect whether the roll axis and the pitch axis are both in a first state, wherein when in the first state, the stability of the roll axis and the pitch axis are both less than a preset stability; if the roll axis and the pitch axis are both in the first state, the signals of the sensors in the gimbal are obtained.

[0052] For example, when the two-axis stabilized gimbal is working, when the base shakes or is disturbed by external factors, the optical axis of the load compartment (including the roll axis and pitch axis of the optoelectronic imaging device in the load compartment) becomes unstable. For example, the preset stability of the roll axis and pitch axis of the optoelectronic imaging device in the load compartment is 95%, and at this time, the preset stability of the roll axis and pitch axis of the optoelectronic imaging device in the load compartment is 90%. Since the 90% stability of the roll axis and pitch axis of the optoelectronic imaging device in the load compartment is less than the preset stability of 95%, it can be regarded as the roll axis and pitch axis of the optoelectronic imaging device in the load compartment being unstable. At this time, the gyroscope on the axis system will quickly sense these movements and upload this information to the servo control board.

[0053] In summary, the gyroscope can quickly sense the instability of the optical axis of the load compartment, and the servo control board can quickly and accurately obtain the sensor signal.

[0054] In order to quickly and accurately obtain the signal of the sensor in the gimbal, in the control method of the gimbal provided in the embodiment of the present application, the signal of the sensor in the gimbal can also be obtained by the following steps: when it is detected that the gyroscope in the gimbal is in a drift state, the encoder is used to detect whether the roll axis is in a first position or whether the pitch axis is in a second position, wherein the clarity of the image obtained when the roll axis is in the first position and the pitch axis is in the second position is greater than a preset clarity; if the roll axis is not in the first position, or the pitch axis is not in the second position, the signal of the sensor in the gimbal is obtained.

[0055] For example, when the two-axis stabilized gimbal is working, when the gyro drifts or is disturbed by the outside world, the optical axis of the load compartment is offset. For example, if the preset clarity of the captured image is 96%, when the position of the roll axis of the optoelectronic imaging device in the load compartment is 45 degrees (the first position mentioned above), and the position of the pitch axis of the optoelectronic imaging device in the load compartment is 40 degrees (the second position mentioned above), the clarity of the image captured by the optoelectronic imaging device in the load compartment is 98%. Therefore, when the position of the roll axis of the optoelectronic imaging device in the load compartment is 45 degrees (the first position mentioned above), and the position of the pitch axis is 40 degrees (the second position mentioned above), the clarity of the image captured by the optoelectronic imaging device in the load compartment is 98% greater than the preset clarity of the captured image of 96%. If the position of the roll axis of the optoelectronic imaging device in the load compartment is 42 degrees (i.e., offset by 45 degrees), it can be regarded that the roll axis of the optoelectronic imaging device in the load compartment is in an offset state. Alternatively, when the position of the pitch axis is 39 degrees (i.e., offset by 40 degrees), it can be regarded that the pitch axis of the optoelectronic imaging device in the load compartment is in an offset state. At this time, the photoelectric encoder on the shaft system will quickly sense these movements and upload this information to the servo control board.

[0056] In summary, the encoder can quickly sense the optical axis offset of the load compartment, and the servo control board can quickly and accurately obtain the sensor signal.

[0057] In order to quickly and accurately obtain the quadrature-axis current of the motor in the gimbal, in the control method of the gimbal provided in the embodiment of the present application, the quadrature-axis current of the motor in the gimbal can also be obtained through the following steps: in combination with the PD control law, the signals of the encoder and the attitude sensor in the gimbal are processed to obtain the current rotation speed of the target axis; in combination with the PI control law, based on the current rotation speed of the target axis, the signal of the gyroscope in the gimbal is processed to obtain the quadrature-axis current of the motor in the gimbal.

[0058] For example, Figure 4 is a schematic diagram of the rolling direction stability control algorithm in the embodiment of the present application, such as Figure 4As shown, the position information of the roll axis collected by the photoelectric encoder and the attitude information of the base collected by the attitude sensor are input into the position controller for processing to obtain the current rotation speed of the roll axis; the current rotation speed of the roll axis and the target rotation speed of the roll axis detected by the roll gyroscope are then input into the stability controller for processing, and the motor current is output; the brushless torque motor is then controlled by the output motor current to stabilize the gimbal. And Figure 4 The θ* in represents the current position of the roll axis; θx represents the current position of the base; ω* represents the rotation speed of the roll axis calculated based on the current position of the roll axis and the current position of the base; ω represents the rotation speed of the roll axis detected by the gyroscope; PMSM stands for permanent magnet synchronous motor. In addition, the stabilization control method of the pitch axis is similar to that of the roll axis, which will not be repeated here.

[0059] Through the above scheme, the current used to control the motor torque can be quickly and accurately obtained according to the sensor signals such as the encoder, the attitude sensor and the gyroscope.

[0060] In order to quickly and accurately obtain the current rotation speed of the target axis, in the control method of the gimbal provided in the embodiment of the present application, the current rotation speed of the target axis can also be obtained through the following steps: processing the signal of the encoder in the gimbal to determine the position information of the target axis; processing the signal of the attitude sensor in the gimbal to determine the position information of the base; combining the PD control law, based on the position information of the target axis and the position information of the base, to obtain the current rotation speed of the target axis.

[0061] For example, the main function of the position controller is to combine the attitude information of the attitude solution module with the position information of the photoelectric encoder to correct the optical axis offset caused by the gyroscope zero drift and partial random drift. The attitude solution module is installed on the base plane, consistent with the load cabin plane, and calibrates the angle of the load cabin detected by the roll and pitch axis photoelectric encoder when it is in the horizontal position of roll and direction as the zero point. When the attitude of the base plane does not change, and the load cabin plane (or optical axis) is offset by the optical axis caused by the gyroscope zero drift and partial random drift, the relative calibration zero point position of the photoelectric encoder changes, and the attitude angle detected by its attitude sensor and the relative position detected by the photoelectric encoder will deviate. Calculate this deviation and use it as the input of the position controller, and the position controller adopts the PD (Proportional proportion + Differential differential) control law to output the current rotation speed of the roll axis.

[0062] Through the above scheme, the current rotation speed of the roll axis can be output quickly and accurately according to the encoder and attitude sensor signals.

[0063] In order to quickly and accurately obtain the cross-axis current of the motor in the gimbal, in the control method of the gimbal provided in the embodiment of the present application, the cross-axis current of the motor in the gimbal can also be obtained through the following steps: processing the signal of the gyroscope in the gimbal to obtain the target rotation speed of the target axis; combining the PI control law, and obtaining the cross-axis current of the motor in the gimbal based on the current rotation speed and the target rotation speed.

[0064] For example, the stabilization controller uses the deviation between the output of the position controller and the speed signal detected by the gyroscope as input, and adopts the PI (Proportional + Integral) control law. The output of the stabilization controller is used as the input of the torque control link to control the gimbal device to produce corresponding movement. The gyroscope can quickly detect the rotational movement of the carrier caused by the carrier shaking or external interference, and output the motor current through the stabilization controller. The torque of the brushless torque motor is then controlled by the output motor current, which can make the gimbal respond quickly to the carrier shaking or external interference, and quickly stabilize the optical axis.

[0065] Through the above scheme, the motor current used for torque control of the motor can be output quickly and accurately according to the gyro sensor signal.

[0066] In order to quickly and accurately stabilize the gimbal, in the gimbal control method provided in the embodiment of the present application, the gimbal can also be stabilized by the following steps: based on the cross-axis current, the torque of the motor in the gimbal is controlled to obtain the target torque; based on the target torque, the target axis of the target device is controlled to move to stabilize the gimbal, wherein the target device is used to acquire a target image, the gimbal is used to support the target device, and the target axis is at least one of the following: a roll axis and a pitch axis.

[0067] For example, Figure 5 Schematic diagram of torque control of a motor in an embodiment of the present application, such as Figure 5 As shown, the torque control of the motor adopts a vector control algorithm. Figure 5Iq* represents the quadrature-axis current; Id* represents the direct-axis current; Uq* represents the quadrature-axis voltage; Ud* represents the direct-axis voltage; Park inverse transform represents the synchronous rotating coordinate inverse transform; Uα* represents the voltage obtained after the quadrature-axis voltage is inversely transformed by Park; Uβ* represents the voltage obtained after the direct-axis voltage is inversely transformed by Park; SVPWM is the abbreviation of Space Vector Pulse Width Modulation, which is a modulation method; Udc represents the supply voltage of the motor; PMSM is the full name of permanent magnet synchronous motor, that is, permanent magnet synchronous motor; Ia and Ib represent the motor phase line current respectively; Clarke transform represents the prohibited coordinate transformation method; Iα and Iβ represent the current after Clarke transform respectively; Park transform represents the synchronous rotating coordinate transformation; Iq represents the currently detected quadrature-axis current; Id represents the currently detected direct-axis current; θ represents the position information. The torque control link uses the phase current of the motor as feedback input, and transforms the three-phase current into a two-phase synchronous rotating coordinate system (i.e., the quadrature axis and the direct axis), and performs closed-loop control. Among them, the output torque of the motor can be controlled by controlling the magnitude of the quadrature axis current, and the excitation current of the motor can be controlled by controlling the magnitude of the direct axis current. The control method of Id=0 is adopted here, that is, the value of the direct axis current is controlled to be always equal to zero, and the output of the stable controller is used as the input of the quadrature axis current controller to control the torque of the motor. Both the direct axis current controller and the quadrature axis current controller use the PI (proportional + integral) control law. After controlling the torque of the motor, the motor drives the axis system to move in the opposite direction to overcome the shaking of the base or external interference, thereby ensuring the stability of the optical axis of the load cabin, that is, keeping the gimbal stable.

[0068] Through the above scheme, it can be ensured that the gimbal device has high stability accuracy and fast response speed, and can also ensure that when the gyroscope has not been calibrated for zero drift and has a certain random drift, the influence on the stability of the optical axis can be overcome, so that the gimbal device can always ensure the stability of the optical axis of the load cabin during long-term operation.

[0069] For example, Figure 6 is a flow chart of an optional pan / tilt control method provided in an embodiment of the present application, such as Figure 6As shown in the figure, when the two-axis stabilized gimbal is working, when the base shakes or is disturbed by the outside world, the gyroscope drifts or is disturbed by the outside world, causing the optical axis of the load cabin to be unstable or move in a certain direction. At this time, the gyroscope on the axis system will quickly sense these movements and upload this information to the servo control board. The servo driver board controls the torque of the brushless torque motor according to the position of the photoelectric encoder, allowing the motor to drive the axis system to move in the opposite direction, overcome the shaking of the base or external interference, and thus ensure the stability of the optical axis of the axis load cabin. At the same time, the servo driver board will combine the information of the attitude solution module to ensure that the system is not affected by the gyroscope zero drift and random drift.

[0070] In addition, since the zero-point offset of the gyroscope on the axis system cannot be calibrated initially, and the gyroscope itself will drift randomly, after the gimbal works normally for a period of time, the optical axis will shift relative to the initial stable position, but the speed of this shift is relatively slow. At the same time, if the gimbal base shakes or is disturbed by external factors, the optical axis will also shift relative to the initial stable position. When the base of the device does not shake and is not disturbed by external factors, the position controller can correct the optical axis offset by combining the attitude information of the attitude solution module and the position information of the photoelectric encoder. When the base of the device shakes or is disturbed by external factors, the stability controller can quickly correct the offset of the optical axis by combining the information of the gyroscope. Although the attitude sensor can also detect the change of attitude at this time, and act on the stability through the position controller, and its action direction is consistent with the direction of the action generated by the gyroscope through the stability controller. However, since the position control loop is the outer loop of the stability control loop, its response speed is significantly lower than the latter, so at this time it is mainly the stability control loop that takes effect.

[0071] Moreover, the stabilization method of the two-axis gimbal provided in this embodiment can make the gimbal overcome the influence of drift and complete the stabilization function of the equipment without the initial static condition for zero drift calculation and without anyone to correct the drift during operation, while maintaining high stability accuracy and fast response speed. Moreover, this stabilization method does not require zero drift calibration of the gyro, and can also eliminate the influence of random drift of some gyros, and is suitable for installation on carriers that are unmanned and difficult to provide absolute static initial conditions, such as unmanned ships.

[0072] In summary, the control method of the gimbal provided in the embodiment of the present application obtains the signal of the sensor in the gimbal when the target state is detected, wherein the target state is at least one of the following: the base in the gimbal is in a shaking state, the gyroscope in the gimbal is in a drifting state, and the sensor in the gimbal includes at least: a gyroscope, an encoder, and a posture sensor; the signal of the sensor in the gimbal is processed to obtain the quadrature axis current of the motor in the gimbal; according to the quadrature axis current, the torque of the motor in the gimbal is controlled to stabilize the gimbal, thereby solving the problem that the method of using a gyroscope to stably control the gimbal in the related art is not suitable for the situation where the gimbal carrier is unmanned and it is difficult to provide a static initial condition, resulting in difficulty in stably controlling the gimbal. By processing the obtained signal of the sensor in the gimbal to obtain the quadrature axis current of the motor in the gimbal, and according to the quadrature axis current, the torque of the motor in the gimbal is controlled to stabilize the gimbal, the method of stabilizing the gimbal is suitable for the situation where the gimbal carrier is unmanned and it is difficult to provide a static initial condition, thereby achieving the effect of stabilizing the gimbal.

[0073] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0074] The present application also provides a pan-tilt control device. It should be noted that the pan-tilt control device of the present application can be used to execute the pan-tilt control method provided in the present application. The pan-tilt control device provided in the present application is introduced below.

[0075] Figure 7 Schematic diagram of a control device for a pan / tilt platform according to an embodiment of the present application. Figure 7 As shown, the device includes: a first acquisition unit 701, a first processing unit 702 and a first control unit 703.

[0076] Specifically, the first acquisition unit 701 is used to acquire a signal of a sensor in the gimbal when a target state is detected, wherein the target state is at least one of the following: a base in the gimbal is in a shaking state, a gyroscope in the gimbal is in a drifting state, and the sensor in the gimbal includes at least a gyroscope, an encoder, and a posture sensor;

[0077] The first processing unit 702 is used to process the signal of the sensor in the gimbal to obtain the quadrature axis current of the motor in the gimbal;

[0078] The first control unit 703 is used to control the torque of the motor in the gimbal according to the quadrature-axis current to stabilize the gimbal.

[0079] In summary, the control device of the gimbal provided in the embodiment of the present application obtains the signal of the sensor in the gimbal through the first acquisition unit 701 when the target state is detected, wherein the target state is at least one of the following: the base in the gimbal is in a shaking state, the gyroscope in the gimbal is in a drifting state, and the sensor in the gimbal includes at least: a gyroscope, an encoder and an attitude sensor; the first processing unit 702 processes the signal of the sensor in the gimbal to obtain the cross-axis current of the motor in the gimbal; the first control unit 703 controls the torque of the motor in the gimbal according to the cross-axis current to stabilize the gimbal, thereby solving the problem that the method of using a gyroscope to stably control the gimbal in the related art is not suitable for the situation where the gimbal carrier is unmanned and it is difficult to provide a static initial condition, resulting in difficulty in stably controlling the gimbal. By processing the signals obtained from the sensors in the gimbal, the cross-axis current of the motor in the gimbal is obtained, and based on the cross-axis current, the torque of the motor in the gimbal is controlled to stabilize the gimbal. Thus, the method of stabilizing the gimbal is suitable for the situation where the gimbal carrier is unmanned and it is difficult to provide a stationary initial condition, thereby achieving the effect of stabilizing the gimbal.

[0080] Optionally, in the control device of the gimbal provided in an embodiment of the present application, the first control unit includes: a first control module, used to control the torque of the motor in the gimbal according to the cross-axis current to obtain a target torque; a second control module, used to control the movement of a target axis of a target device based on the target torque to stabilize the gimbal, wherein the target device is used to acquire a target image, the gimbal is used to support the target device, and the target axis is at least one of the following: a roll axis and a pitch axis.

[0081] Optionally, in the control device of the gimbal provided in an embodiment of the present application, the first processing unit includes: a first processing module, used to process the signals of the encoder and the attitude sensor in the gimbal in combination with the PD control law to obtain the current rotation speed of the target axis; a second processing module, used to process the signal of the gyroscope in the gimbal in combination with the PI control law based on the current rotation speed of the target axis to obtain the cross-axis current of the motor in the gimbal.

[0082] Optionally, in the control device of the gimbal provided in the embodiment of the present application, the first processing module includes: a first processing sub-module, used to process the signal of the encoder in the gimbal to determine the position information of the target axis; a second processing sub-module, used to process the signal of the attitude sensor in the gimbal to determine the position information of the base; a first determination sub-module, used to combine the PD control law to obtain the current rotation speed of the target axis based on the position information of the target axis and the position information of the base.

[0083] Optionally, in the control device of the gimbal provided in the embodiment of the present application, the second processing module includes: a third processing sub-module, used to process the signal of the gyroscope in the gimbal to obtain the target rotation speed of the target axis; a second determination sub-module, used to combine the PI control law to obtain the cross-axis current of the motor in the gimbal based on the current rotation speed and the target rotation speed.

[0084] Optionally, in the control device of the gimbal provided in an embodiment of the present application, if the target state is that the base in the gimbal is in a shaking state, the first acquisition unit includes: a first detection module, which is used to detect through a gyroscope whether the roll axis and the pitch axis are both in a first state when it is detected that the base in the gimbal is in a shaking state, wherein when in the first state, the stability of the roll axis and the pitch axis are both less than a preset stability; a first acquisition module, which is used to obtain the signal of the sensor in the gimbal if the roll axis and the pitch axis are both in the first state.

[0085] Optionally, in the control device of the gimbal provided in an embodiment of the present application, if the target state is that the gyroscope in the gimbal is in a drift state, the first acquisition unit includes: a second detection module, which is used to detect whether the roll axis is in a first position or whether the pitch axis is in a second position through an encoder when it is detected that the gyroscope in the gimbal is in a drift state, wherein the clarity of the image acquired when the roll axis is in the first position and the pitch axis is in the second position is greater than a preset clarity; and a second acquisition module, which is used to acquire a signal from a sensor in the gimbal if the roll axis is not in the first position or the pitch axis is not in the second position.

[0086] The control device of the pan / tilt head includes a processor and a memory. The first acquisition unit 701, the first processing unit 702 and the first control unit 703 are all stored in the memory as program units, and the processor executes the program units stored in the memory to realize corresponding functions.

[0087] The processor contains a kernel, which calls the corresponding program unit from the memory. One or more kernels can be set, and the effect of stabilizing the gimbal can be achieved by adjusting the kernel parameters.

[0088] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.

[0089] An embodiment of the present invention provides a computer-readable storage medium on which a program is stored. When the program is executed by a processor, the control method of the pan / tilt platform is implemented.

[0090] An embodiment of the present invention provides a processor, which is used to run a program, wherein the control method of the pan / tilt platform is executed when the program is run.

[0091] An embodiment of the present invention provides an electronic device, comprising a processor, a memory, and a program stored in the memory and executable on the processor, wherein the processor implements the following steps when executing the program: when a target state is detected, obtaining a signal from a sensor in a gimbal, wherein the target state is at least one of the following: a base in the gimbal is in a shaking state, a gyroscope in the gimbal is in a drifting state, and the sensor in the gimbal comprises at least the gyroscope, an encoder, and an attitude sensor; processing the signal from the sensor in the gimbal to obtain a quadrature-axis current of a motor in the gimbal; and controlling the torque of the motor in the gimbal according to the quadrature-axis current to stabilize the gimbal.

[0092] When the processor executes the program, the following steps are also implemented: based on the cross-axis current, the torque of the motor in the gimbal is controlled to stabilize the gimbal, including: based on the cross-axis current, the torque of the motor in the gimbal is controlled to obtain a target torque; based on the target torque, the target axis of the target device is controlled to move to stabilize the gimbal, wherein the target device is used to acquire a target image, the gimbal is used to support the target device, and the target axis is at least one of the following: a roll axis and a pitch axis.

[0093] When the processor executes the program, the following steps are also implemented: processing the signal of the sensor in the gimbal to obtain the quadrature-axis current of the motor in the gimbal includes: combining the PD control law to process the signal of the encoder and the attitude sensor in the gimbal to obtain the current rotation speed of the target axis; combining the PI control law, based on the current rotation speed of the target axis, processing the signal of the gyroscope in the gimbal to obtain the quadrature-axis current of the motor in the gimbal.

[0094] When the processor executes the program, the following steps are also implemented: in combination with the PD control law, the signals of the encoder and the attitude sensor in the gimbal are processed to obtain the current rotation speed of the target axis, including: processing the signal of the encoder in the gimbal to determine the position information of the target axis; processing the signal of the attitude sensor in the gimbal to determine the position information of the base; in combination with the PD control law, based on the position information of the target axis and the position information of the base, the current rotation speed of the target axis is obtained.

[0095] When the processor executes the program, the following steps are also implemented: in combination with the PI control law, based on the current rotation speed of the target axis, the signal of the gyroscope in the gimbal is processed to obtain the cross-axis current of the motor in the gimbal, including: processing the signal of the gyroscope in the gimbal to obtain the target rotation speed of the target axis; in combination with the PI control law, based on the current rotation speed and the target rotation speed, the cross-axis current of the motor in the gimbal is obtained.

[0096] When the processor executes the program, the following steps are also implemented: if the target state is that the base in the gimbal is in a shaking state, when the target state is detected, obtaining the signal of the sensor in the gimbal includes: when it is detected that the base in the gimbal is in a shaking state, detecting by the gyroscope whether the roll axis and the pitch axis are both in a first state, wherein when in the first state, the stability of the roll axis and the pitch axis are both less than a preset stability; if the roll axis and the pitch axis are both in the first state, obtaining the signal of the sensor in the gimbal.

[0097] When the processor executes the program, the following steps are also implemented: if the target state is that the gyroscope in the gimbal is in a drift state, when the target state is detected, obtaining the signal of the sensor in the gimbal includes: when it is detected that the gyroscope in the gimbal is in a drift state, detecting through the encoder whether the roll axis is in a first position or whether the pitch axis is in a second position, wherein the clarity of the image obtained when the roll axis is in the first position and the pitch axis is in the second position is greater than a preset clarity; if the roll axis is not in the first position, or the pitch axis is not in the second position, obtaining the signal of the sensor in the gimbal.

[0098] The devices in this article can be servers, PCs, PADs, mobile phones, etc.

[0099] The present application also provides a computer program product, which, when executed on a data processing device, is suitable for executing a program that is initialized with the following method steps: when a target state is detected, a signal of a sensor in the gimbal is obtained, wherein the target state is at least one of the following: a base in the gimbal is in a shaking state, a gyroscope in the gimbal is in a drifting state, and the sensor in the gimbal includes at least: the gyroscope, an encoder and an attitude sensor; the signal of the sensor in the gimbal is processed to obtain a cross-axis current of a motor in the gimbal; and based on the cross-axis current, the torque of the motor in the gimbal is controlled to stabilize the gimbal.

[0100] When executed on a data processing device, it is also suitable for executing an initialization program having the following method steps: controlling the torque of the motor in the gimbal according to the cross-axis current to stabilize the gimbal, including: controlling the torque of the motor in the gimbal according to the cross-axis current to obtain a target torque; based on the target torque, controlling the movement of a target axis of a target device to stabilize the gimbal, wherein the target device is used to acquire a target image, the gimbal is used to support the target device, and the target axis is at least one of the following: a roll axis and a pitch axis.

[0101] When executed on a data processing device, it is also suitable for executing an initialization program having the following method steps: processing the signal of the sensor in the gimbal to obtain the quadrature-axis current of the motor in the gimbal, including: combining the PD control law to process the signal of the encoder and the attitude sensor in the gimbal to obtain the current rotation speed of the target axis; combining the PI control law, based on the current rotation speed of the target axis, processing the signal of the gyroscope in the gimbal to obtain the quadrature-axis current of the motor in the gimbal.

[0102] When executed on a data processing device, it is also suitable for executing an initialization program having the following method steps: combining with the PD control law, processing the signals of the encoder and the attitude sensor in the gimbal to obtain the current rotation speed of the target axis, including: processing the signal of the encoder in the gimbal to determine the position information of the target axis; processing the signal of the attitude sensor in the gimbal to determine the position information of the base; combining with the PD control law, based on the position information of the target axis and the position information of the base, obtaining the current rotation speed of the target axis.

[0103] When executed on a data processing device, it is also suitable for executing an initialization program having the following method steps: combining with the PI control law, based on the current rotation speed of the target axis, processing the signal of the gyroscope in the gimbal to obtain the cross-axis current of the motor in the gimbal, including: processing the signal of the gyroscope in the gimbal to obtain the target rotation speed of the target axis; combining with the PI control law, based on the current rotation speed and the target rotation speed, obtaining the cross-axis current of the motor in the gimbal.

[0104] When executed on a data processing device, it is also suitable for executing an initialized program having the following method steps: if the target state is that the base in the gimbal is in a shaking state, when the target state is detected, obtaining the signal of the sensor in the gimbal includes: when it is detected that the base in the gimbal is in a shaking state, detecting by the gyroscope whether the roll axis and the pitch axis are both in a first state, wherein when in the first state, the stability of the roll axis and the pitch axis are both less than a preset stability; if the roll axis and the pitch axis are both in the first state, obtaining the signal of the sensor in the gimbal.

[0105] When executed on a data processing device, it is also suitable for executing an initialized program having the following method steps: if the target state is that the gyroscope in the gimbal is in a drift state, when the target state is detected, obtaining the signal of the sensor in the gimbal includes: when it is detected that the gyroscope in the gimbal is in a drift state, detecting through the encoder whether the roll axis is in a first position or whether the pitch axis is in a second position, wherein the clarity of the image obtained when the roll axis is in the first position and the pitch axis is in the second position is greater than a preset clarity; if the roll axis is not in the first position, or the pitch axis is not in the second position, obtaining the signal of the sensor in the gimbal.

[0106] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0107] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0108] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0109] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0110] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0111] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0112] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0113] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0114] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.

[0115] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.

Claims

1. A method for controlling a pan / tilt platform, characterized in that: include: When a target state is detected, a signal of a sensor in the gimbal is obtained, wherein the target state is at least one of the following: a base in the gimbal is in a shaking state, a gyroscope in the gimbal is in a drifting state, and the sensor in the gimbal includes at least: the gyroscope, an encoder, and a posture sensor; Processing the signal of the sensor in the gimbal to obtain the quadrature axis current of the motor in the gimbal, including: combining the PD control law to process the signal of the encoder and the attitude sensor in the gimbal to obtain the current rotation speed of the target axis; combining the PI control law, based on the current rotation speed of the target axis, processing the signal of the gyroscope in the gimbal to obtain the quadrature axis current of the motor in the gimbal; According to the quadrature-axis current, the torque of the motor in the pan-tilt platform is controlled to stabilize the pan-tilt platform.

2. The method according to claim 1, characterized in that Controlling the torque of the motor in the gimbal according to the quadrature-axis current to stabilize the gimbal comprises: According to the quadrature-axis current, the torque of the motor in the pan / tilt is controlled to obtain a target torque; Based on the target torque, the target axis of the target device is controlled to move so as to stabilize the gimbal, wherein the target device is used to acquire a target image, the gimbal is used to support the target device, and the target axis is at least one of the following: a roll axis and a pitch axis.

3. The method according to claim 1, characterized in that Combined with the PD control law, the signals of the encoder and the attitude sensor in the gimbal are processed to obtain the current rotation speed of the target axis, including: Processing the signal of the encoder in the pan / tilt head to determine the position information of the target axis; Processing the signal of the attitude sensor in the gimbal to determine the position information of the base; In combination with the PD control law, based on the position information of the target axis and the position information of the base, the current rotation speed of the target axis is obtained.

4. The method according to claim 1, characterized in that: In combination with the PI control law, based on the current rotation speed of the target axis, the signal of the gyroscope in the gimbal is processed to obtain the quadrature axis current of the motor in the gimbal, including: Processing the signal of the gyroscope in the gimbal to obtain the target rotation speed of the target axis; In combination with the PI control law, based on the current rotation speed and the target rotation speed, the quadrature-axis current of the motor in the gimbal is obtained.

5. The method according to claim 2, characterized in that: If the target state is that the base in the gimbal is in a shaking state, when the target state is detected, obtaining a signal from a sensor in the gimbal includes: When it is detected that the base in the gimbal is in a shaking state, the gyroscope is used to detect whether the roll axis and the pitch axis are both in a first state, wherein in the first state, the stability of the roll axis and the pitch axis is less than a preset stability; If the roll axis and the pitch axis are both in the first state, a signal from a sensor in the gimbal is acquired.

6. The method according to claim 2, characterized in that If the target state is that the gyroscope in the gimbal is in a drifting state, when the target state is detected, obtaining a signal of a sensor in the gimbal includes: When it is detected that the gyroscope in the gimbal is in a drift state, detecting by the encoder whether the roll axis is in a first position or whether the pitch axis is in a second position, wherein the clarity of the image acquired when the roll axis is in the first position and the pitch axis is in the second position is greater than a preset clarity; If the roll axis is not in the first position, or the pitch axis is not in the second position, a signal from a sensor in the gimbal is acquired.

7. A pan / tilt control device, characterized in that: include: A first acquisition unit is used to acquire a signal of a sensor in the gimbal when a target state is detected, wherein the target state is at least one of the following: a base in the gimbal is in a shaking state, a gyroscope in the gimbal is in a drifting state, and the sensor in the gimbal at least includes: the gyroscope, an encoder, and a posture sensor; The first processing unit is used to process the signal of the sensor in the gimbal to obtain the quadrature axis current of the motor in the gimbal, and the first processing unit includes: a first processing module, which is used to process the signal of the encoder and the attitude sensor in the gimbal in combination with the PD control law to obtain the current rotation speed of the target axis of the target device; a second processing module, which is used to process the signal of the gyroscope in the gimbal in combination with the PI control law based on the current rotation speed of the target axis to obtain the quadrature axis current of the motor in the gimbal; The first control unit is used to control the torque of the motor in the gimbal according to the quadrature-axis current to stabilize the gimbal.

8. A computer-readable storage medium, characterized in that: The storage medium stores a program, wherein the program executes the pan / tilt control method according to any one of claims 1 to 6.

9. A processor, characterized in that: The processor is used to run a program, wherein the program, when running, executes the method for controlling the pan / tilt platform according to any one of claims 1 to 6.