WO2019119201A1 - Gimbal control method, unmanned aerial vehicle, gimbal, and storage medium - Google Patents
Gimbal control method, unmanned aerial vehicle, gimbal, and storage medium Download PDFInfo
- Publication number
- WO2019119201A1 WO2019119201A1 PCT/CN2017/116902 CN2017116902W WO2019119201A1 WO 2019119201 A1 WO2019119201 A1 WO 2019119201A1 CN 2017116902 W CN2017116902 W CN 2017116902W WO 2019119201 A1 WO2019119201 A1 WO 2019119201A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- joint angle
- pan
- tilt
- drone
- gimbal
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Ceased
Links
Images
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05D—SYSTEMS FOR CONTROLLING OR REGULATING NON-ELECTRIC VARIABLES
- G05D1/00—Control of position, course, altitude or attitude of land, water, air or space vehicles, e.g. using automatic pilots
- G05D1/10—Simultaneous control of position or course in three dimensions
- G05D1/101—Simultaneous control of position or course in three dimensions specially adapted for aircraft
Definitions
- the present invention relates to the field of control technologies, and in particular, to a cloud platform control method, a drone, a cloud platform, and a storage medium.
- drones mainly include pan/tilt and body. During the flight, the drone may have various faults or bombings due to the reasons of the drone itself or improper operation of the user.
- the drone After various failures or bombings of the drone, it is necessary to perform corresponding after-sales treatment on the drone, usually copying the flight data of the drone to facilitate investigation of the cause of the malfunction or bombing of the drone.
- the drone In the process of copying data, the drone may not be able to maintain balance due to the missing part of the body, which leads to the turbulence of the gimbal and even directly hit the mechanical limit, which reduces the service life of the gimbal. In severe cases, it may even burn out. Motor.
- the embodiment of the invention provides a cloud platform control method, a drone, a cloud platform, a system and a storage medium, which can improve the security of the cloud platform.
- an embodiment of the present invention provides a pan/tilt control method, which is applied to a drone, and the drone is provided with a pan/tilt.
- the method includes:
- the control command is used to indicate that the gimbal moves from a current joint angle to a target joint angle and is maintained under the target joint angle, and the joint angle refers to a joint of the pan-tilt axis relative to the pan-tilt The angle of the coordinate system.
- the embodiment of the present invention further provides another pan/tilt control method, which is applied to a cloud platform, and the cloud platform is disposed on a drone, and the method includes:
- the pan/tilt is controlled to move from the current joint angle to the target joint angle and is maintained at the target joint angle, which is the angle of the pan-tilt axis relative to the joint coordinate system of the pan-tilt.
- an embodiment of the present invention provides a drone, including:
- a power system disposed on the fuselage for providing flight power
- processor disposed in the body, the processor, configured to perform the following steps:
- the control command is used to indicate that the gimbal moves from a current joint angle to a target joint angle and is maintained under the target joint angle, and the joint angle refers to a joint of the pan-tilt axis relative to the pan-tilt The angle of the coordinate system.
- an embodiment of the present invention provides a cloud platform, where the cloud platform is mounted on a drone, and includes:
- processor configured to perform the following steps:
- the pan/tilt is controlled to move from the current joint angle to the target joint angle and is maintained at the target joint angle, which is the angle of the pan-tilt axis relative to the joint coordinate system of the pan-tilt.
- an embodiment of the present invention provides a computer readable storage medium, where the computer readable storage medium stores a computer program, and when the computer program is executed by a processor, implements the first aspect or the second aspect, PTZ control method.
- the UAV detects a state in which the UAV is currently located, and if it detects that the UAV is in a preset state, sends a control instruction to the PTZ to indicate the PTZ
- the current joint angle is moved to the target joint angle and remains under the target joint angle during subsequent copying of the data.
- FIG. 1 is a schematic diagram of an interaction process of a PTZ control method according to an embodiment of the present invention
- FIG. 2 is a schematic flowchart of a PTZ control method according to an embodiment of the present invention.
- FIG. 3 is a schematic flowchart diagram of another PTZ control method according to an embodiment of the present invention.
- FIG. 4 is a schematic flowchart diagram of still another method for controlling a PTZ according to an embodiment of the present invention.
- FIG. 5 is a schematic flowchart diagram of still another method for controlling a pan/tilt according to an embodiment of the present invention.
- FIG. 6 is a schematic block diagram of a drone according to an embodiment of the present invention.
- FIG. 7 is a schematic block diagram of a cloud platform according to an embodiment of the present invention.
- the pan/tilt control method provided by the embodiment of the present invention can be applied to a cloud station after the UAV detects that the data in the storage device of the drone is copied after the UAV malfunctions or flies. control.
- the pan/tilt control method can be applied to a drone, and can also be applied to other intelligent terminals such as an unmanned car; the storage device can be a black box of the drone; the data can include a flying height, a flight Any one or more of the flight data of direction, flight speed, and acceleration.
- the PTZ control method provided by the embodiment of the present invention may be implemented according to the interaction between the UAV and the PTZ in the system, and the interaction method of the UAV and the PTZ is described below with reference to the accompanying drawings, and respectively The control methods applied to the drone and the pan/tilt are described in detail.
- FIG. 1 is a schematic diagram of an interaction process of a PTZ control method according to an embodiment of the present invention. Specifically, the method implementation of the embodiment of the present invention includes the following steps.
- S101 The drone detects whether data in the storage device of the drone is copied.
- the drone can detect whether the data of the storage device of the drone is copied, wherein the data may include any one or more of a flight height, a flight direction, a flight speed, and an acceleration. Flight data, the storage device is explained as described above. For example, the drone can detect whether any one or more of the flight altitudes, flight directions, flight speeds, and accelerations stored in the black box of the drone are copied.
- the UAV may determine that the UAV is currently in a preset state. For example, if the drone detects that the flight data stored in the black box of the drone is copied, the drone may determine that the state of the drone is currently in a preset state. It can be understood that determining whether the drone enters the preset state may also be an instruction of whether the drone receives the sensor calibration. For example, when it is detected that the unmanned aerial vehicle needs to enter the compass correction command, it is determined that the drone enters the preset state. Of course, the step of determining that the drone enters a preset state may also be triggered by other means, which are not enumerated here.
- S103 The drone sends a control command to the pan/tilt of the drone.
- the UAV may send a control instruction to the PTZ.
- the control command is used to indicate that the gimbal moves from a current joint angle to a target joint angle and is maintained under the target joint angle, and the joint angle refers to a joint of the pan-tilt axis relative to the pan-tilt The angle of the coordinate system.
- S104 The pan/tilt receives the control instruction of the drone.
- the pan/tilt can receive the control command sent by the drone.
- the control command is further configured to control the pan/tilt to enter a joint angle closed-loop operation mode from the attitude closed-loop operation mode, and the pan-tilt moves from the current joint angle to the target joint angle in the joint-angle closed-loop operation mode.
- the pan/tilt is used to hang a load, and the pan/tilt includes at least one pan/tilt axis.
- the pan-tilt axis moves to achieve a desired attitude in the geodetic coordinate system; in the joint-angle closed-loop mode of operation, the pan-tilt axis moves such that the pan-tilt axis is in the joint angular coordinate system Achieve the desired angle.
- the closed-loop operation mode of the joint angle and the closed-loop operation mode of the attitude will not be described again.
- the pan/tilt controls the pan/tilt to move from the current joint angle to the target joint angle and remains under the target joint angle.
- the pan/tilt may control the pan/tilt to enter the joint angle closed-loop operation mode from the attitude closed-loop operation mode according to the received control instruction, and the pan-tilt is in the closed-loop operation mode of the joint angle from the current
- the joint angle moves to the target joint angle.
- the target joint angle is 0 degrees.
- the current joint angle of the gimbal may be acquired, and the interpretation of the joint angle is as described above.
- the pan/tilt may acquire a joint angle of 30° of the current gimbal axis of the gimbal relative to the joint coordinate system of the gimbal.
- the pan/tilt may plan a motion curve of the pan/tilt according to a current joint angle and a target joint angle of the gimbal, and control the pan-tilt from the current joint according to the motion curve.
- the angle moves to the target joint angle.
- the motion curve may be a curve of any shape, which is not limited in the embodiment of the present invention, and only needs to satisfy the adjustment of the pan head from the position corresponding to the current joint angle to the position corresponding to the target joint angle. For example, if the current joint angle of the pan/tilt acquired by the pan/tilt is 3° and the target joint angle is 0°, the pan/tilt can be planned to move from the current joint angle of 3° to the target joint angle of 0°. Movement curve.
- the pan/tilt may determine a motion parameter of the pan/tilt according to the current joint angle of the gimbal and the target joint angle in planning the motion curve of the pan/tilt, and According to the motion parameter of the pan/tilt, the motion curve of the pan/tilt is planned.
- the motion parameter includes any one or more of a motion time, an angular velocity, and an angular acceleration
- the pan/tilt may be according to any one of the pan/tilt motion time, an angular velocity, and an angular acceleration.
- the motion parameter of the pan/tilt is set as follows: the time information for completing the pan-tilt movement is 10 s, the angular acceleration within the first 2.5 s is constant 1.6 m/s 2 , the middle 5 s is moving at a constant angular acceleration, and the latter is within 2.5 s.
- the acceleration is -1.6m/s 2 .
- the pan/tilt may plan a motion curve of the pan/tilt moving from a current joint angle of 30° to the target joint angle of 0° according to the set motion parameters of the pan/tilt.
- the target joint angle may also be the current joint angle of the gimbal.
- the target joint angle is the current joint angle of the gimbal
- the gimbal enters the joint angle closed-loop operation mode, and when the drone is in the preset state, the gimbal maintains the current joint angle .
- the pan/tilt receives the end command sent by the drone, and controls the pan/tilt to enter the attitude closed-loop operation mode from the joint angle closed-loop operation mode.
- the pan/tilt may be controlled to enter the attitude closed-loop operation mode from the joint angle closed-loop operation mode.
- the attitude angle of the pan/tilt in the attitude closed-loop operation mode is an attitude angle or a preset attitude angle before the pan-tilt enters the closed-loop operation mode of the joint angle.
- the pan/tilt may control a position of the pan/tilt head from a position corresponding to the target joint angle to a position corresponding to the attitude angle or a preset attitude angle position in the attitude closed-loop operation mode. .
- the pan/tilt is controlled to move from the current joint angle to a position where the joint angle is zero.
- the T-shaped velocity planning can be performed according to the current joint angle of the gimbal, and the trapezoidal motion curve is automatically planned, so that the gimbal smoothly runs to a position where the joint angle is zero.
- the attitude closed-loop operation mode is controlled by the attitude of the gimbal. During the movement of the movable object, the attitude of the gimbal is controlled, so that the gimbal moves in accordance with the movement of the movable object, so that the gimbal is relatively movable.
- the automatic control process in which the moving object remains relatively stationary.
- the pan/tilt may also control the pan/tilt to be powered on again.
- the drone determines the current state of the drone by detecting whether the data in the storage device of the drone is copied, and if it is a preset state,
- the pan/tilt head of the drone sends a control command, and after receiving the control command, the pan/tilt head can control the pan/tilt head to move from the current joint angle to the target joint angle, and keep in the process of subsequently copying the data.
- the drone Under the target joint angle, the drone sends an end command to the pan/tilt if it detects that the preset state of the drone is over, and the pan/tilt controls according to the received end instruction.
- the pan/tilt enters the attitude closed-loop operation mode from the joint angle closed-loop operation mode, thereby ending the control of the pan/tilt in the joint angle closed-loop operation mode. It can be seen that, in this manner, the embodiment of the present invention can realize the protection control of the pan/tilt and ensure the security of the pan/tilt.
- FIG. 2 is a schematic flowchart of a PTZ control method according to an embodiment of the present invention.
- the method may be performed by a UAV.
- the method in the embodiment of the present invention includes the following steps.
- the drone can detect whether the drone enters a preset state. In one embodiment, the drone can detect whether data in the storage device of the drone is copied. If the detection result is yes, it can be determined that the current state of the drone is pre- Set the status.
- the data includes any one or more flight data of flight altitude, flight direction, flight speed, and acceleration.
- determining whether the drone enters the preset state may also be an instruction of whether the drone receives the sensor calibration. For example, when it is detected that the unmanned aerial vehicle needs to enter the compass correction command, it is determined that the drone enters the preset state.
- the step of determining that the drone enters a preset state may also be triggered by other means, which are not enumerated here.
- the UAV may send a control instruction to the PTZ.
- the control command is used to instruct a closed-loop operation mode from the attitude closed-loop operation mode, and the pan-tilt moves from the current joint angle to the target joint angle in the joint-angle closed-loop operation mode, and remains at the target Below the joint angle, wherein the joint angle refers to the angle of the gimbal axis relative to the joint coordinate system of the gimbal.
- the target joint angle is 0 degrees. In another embodiment, the target joint angle may also be the current joint angle of the gimbal.
- the target joint angle is the current joint angle of the gimbal
- the gimbal enters the joint angle closed-loop operation mode, and when the drone is in the preset state, the gimbal maintains the current joint angle .
- the current joint angle of the gimbal may be acquired, and the joint angle is explained as described above.
- the joint angle of the current pan-tilt axis of the gimbal relative to the joint coordinate system of the gimbal may be acquired as 30°.
- the UAV may further plan a motion curve of the PTZ according to the current joint angle of the PTZ and the target joint angle after sending a control instruction to the PTZ, and according to The motion curve controls movement of the pan/tilt from the current joint angle to the target joint angle.
- the motion curve may be a trapezoidal motion curve or a motion curve of other shapes.
- the embodiment of the present invention is not limited, and only needs to meet the smooth adjustment of the position of the gimbal from the current joint angle to The position corresponding to the target joint angle.
- an end command may be sent to the pan/tilt to control the pan-tilt closed-loop operation mode from the joint angle. Entering the attitude closed-loop operation mode, and controlling the position of the pan-tilt from the target joint angle movement in the joint angle closed-loop operation mode to the attitude angle in the attitude closed-loop operation mode.
- the attitude angle of the pan/tilt in the attitude closed-loop operation mode is an attitude angle or a preset attitude angle before the pan-tilt enters the closed-loop operation mode of the joint angle.
- the drone when the drone detects that the preset state of the drone is over, the drone can also be controlled to be powered back on.
- the UAV detects the current state of the UAV, and if it detects that the UAV enters the preset state, sends a control command to the PTZ to indicate the PTZ
- the attitude closed loop mode of operation enters a joint angle closed loop mode of operation and moves from the current joint angle to the target joint angle in the joint angle closed loop mode of operation and remains at the target during subsequent copying of data
- the position of the joint angle By controlling the movement of the gimbal from the current joint angle and maintaining the target joint angle, it is possible to effectively ensure that the gimbal does not reach the limit position, realize the protection control of the gimbal, and ensure the safety of the gimbal.
- FIG. 3 is a schematic flowchart of another method for controlling a pan/tilt according to an embodiment of the present invention.
- the method may be performed by a drone, wherein the difference between the embodiment of the present invention and the embodiment corresponding to FIG.
- the UAV can plan the motion curve of the PTZ according to the acquired current joint angle of the PTZ and the target joint angle, and control the PTZ from the current joint according to the motion curve. The angle moves to the target joint angle.
- the method of the embodiment of the present invention includes the following steps.
- S301 Detect whether the drone enters a preset state.
- the drone can detect whether the drone enters a preset state.
- the preset state of the drone is determined by whether data in the storage device of the drone is copied, if the drone detects the storage device of the drone The data is copied, and it can be determined that the state in which the drone is currently located is a preset state.
- the data includes any one or more flight data of flight altitude, flight direction, flight speed, and acceleration.
- determining whether the drone enters the preset state may also be an instruction of whether the drone receives the sensor calibration. For example, when it is detected that the unmanned aerial vehicle needs to enter the compass correction command, it is determined that the drone enters the preset state.
- the step of determining that the drone enters a preset state may also be triggered by other means, which are not enumerated here.
- the UAV may send a control instruction to the PTZ.
- the control instruction is used to instruct the pan/tilt to enter a joint angle closed-loop operation mode from the attitude closed-loop operation mode, and control the pan-tilt to move from the current joint angle to the target joint angle in the joint angle closed-loop operation mode, And remaining under the target joint angle, the joint angle is explained as described above.
- the target joint angle is 0 degrees.
- the UAV can acquire the current joint angle of the gimbal, and the interpretation of the joint angle is as described above.
- the joint angle of the current pan/tilt axis of the gimbal relative to the joint coordinate system of the gimbal may be acquired, for example, the joint angle is 3°.
- S304 Plan a motion curve of the pan/tilt according to the current joint angle of the gimbal and the target joint angle.
- the UAV may be based on the current joint angle of the PTZ.
- the target joint angle is planned for the movement curve of the gimbal.
- the motion curve may be a trapezoidal motion curve or a motion curve of other shapes.
- the embodiment of the present invention is not limited, and only needs to meet the smooth adjustment of the position of the gimbal from the current joint angle to The position corresponding to the target joint angle.
- the drone may plan a motion curve of the pan/tilt by determining a motion parameter of the pan/tilt. Specifically, the drone may be based on a current joint angle and a location of the gimbal. Describe a target joint angle, determine a motion parameter of the pan/tilt, and plan a motion curve of the pan/tilt according to the motion parameter.
- the motion parameter of the pan/tilt may include any one or more of a motion time, an angular velocity, and an angular acceleration
- the drone may be according to the pan/tilt motion time, the angular velocity, and the angular acceleration. Plan any one or more of the motion curves of the gimbal. For example, if the drone acquires the current joint angle of the gimbal is 30° and the target joint angle is 0°, the drone controls the corresponding position of the gimbal from the current joint angle of 30°. The position corresponding to the target joint angle 0° needs to be rotated by 30°.
- the motion parameter of the pan/tilt is set to: the time information for completing the pan/tilt movement is 10s, and the first 2.5s inner angle
- the acceleration is constant at 1.6 m/s 2
- the middle 5 s is moving at a constant angular acceleration
- the angular acceleration in the latter 2.5 s is -1.6 m/s 2 .
- the drone may plan a motion curve of the pan/tilt moving from a current joint angle of 30° to the target joint angle of 0° according to the set motion parameters of the pan/tilt.
- the target joint angle may also be the current joint angle of the gimbal.
- the target joint angle is the current joint angle of the gimbal
- the gimbal enters the joint angle closed-loop operation mode, and when the drone is in the preset state, the gimbal maintains the current joint angle .
- S305 Control, according to the motion curve, the pan/tilt moving from the current joint angle to the target joint angle.
- the drone may control the pan/tilt to move from the current joint angle to the target joint angle according to the planned motion curve.
- the motion curve planned by the drone is a trapezoidal motion curve
- the drone may control the pan/tilt corresponding to the current joint angle of 3° according to the planned trapezoidal motion curve. The position is smoothly moved to a position corresponding to the target joint angle of 0°.
- the drone may determine the pre-determination of the drone The state is ended, and an end command is sent to the pan/tilt to control the pan/tilt to enter the attitude closed-loop mode of operation from the joint angle closed-loop mode of operation.
- the attitude angle of the pan/tilt in the attitude closed-loop operation mode is an attitude angle or a preset attitude angle before the pan-tilt enters the closed-loop operation mode of the joint angle.
- the drone may control the position of the pan/tilt from the position corresponding to the target joint angle to the position corresponding to the attitude angle or the preset attitude angle in the attitude closed-loop operation mode. .
- the drone or pan/tilt can also be controlled to be powered back on.
- the UAV detects the current state of the UAV, and if it detects that the UAV enters the preset state, sends a control command to the PTZ to indicate the PTZ
- the attitude closed loop mode of operation enters a joint angle closed loop mode of operation and moves from the current joint angle to the target joint angle in the joint angle closed loop mode of operation and remains at the target joint angle during subsequent copying of the data position.
- FIG. 4 is a schematic flowchart diagram of still another method for controlling a PTZ according to an embodiment of the present invention, where the method may be performed by a PTZ. Specifically, the method of the embodiment of the present invention includes the following steps.
- S401 Receive a control instruction when the drone is in a preset state.
- the pan/tilt may receive a control instruction sent when the drone is in a preset state; or the pan/tilt may receive a control instruction input by the user.
- the control command is configured to control the pan/tilt to enter a joint angle closed-loop operation mode from the attitude closed-loop operation mode, and the pan-tilt moves from the current joint angle to the target joint angle in the joint-angle closed-loop operation mode.
- the pan/tilt may acquire the current joint angle of the gimbal through an angle sensor of the pan/tilt. For example, after receiving the control instruction, the pan/tilt may acquire, by the angle sensor, a joint angle of the current pan-tilt axis of the gimbal relative to the joint coordinate system of the pan-tilt head by 3°.
- S402 Control the pan/tilt to move from the current joint angle to the target joint angle and keep under the target joint angle.
- the pan/tilt may control the pan/tilt to enter a joint angle closed-loop operation mode from the attitude closed-loop operation mode according to the control instruction, and the pan-tilt is from the current joint in the joint-angle closed-loop operation mode.
- the horn moves to the target joint angle, and during the subsequent copying of the data, the gimbal remains below the target joint angle.
- the explanation of the joint angle is as described above. In one embodiment, the target joint angle is 0 degrees.
- the target joint angle may also be the current joint angle of the gimbal.
- the target joint angle is the current joint angle of the gimbal
- the gimbal enters the joint angle closed-loop operation mode, and when the drone is in the preset state, the gimbal maintains the current joint angle .
- the pan/tilt may receive an end command, and when the end command is received, control the pan-tilt from the joint angle closed-loop operation mode to the attitude closed-loop operation mode, and control the pan-tilt
- the target joint angle is moved to an attitude angle or a preset attitude angle in the attitude closed loop operation mode, or the pan/tilt is controlled to be powered on again.
- the end instruction may be sent by the drone; or the end instruction may be input by a user.
- the end instruction is used to notify the cloud station that the preset state of the drone is over.
- the pan/tilt may be controlled to enter the attitude closed-loop mode of operation from the joint angle closed-loop mode of operation.
- the attitude angle of the pan/tilt in the attitude closed-loop operation mode is an attitude angle or a preset attitude angle before the pan-tilt enters the closed-loop operation mode of the joint angle.
- the pan/tilt may control the position of the pan/tilt from the position corresponding to the target joint angle to the position corresponding to the attitude angle in the attitude closed-loop operation mode.
- the cloud platform controls the pan-tilt to move from the current joint angle to the target joint angle by receiving a control command sent by the drone in a preset state, and remains in the process of subsequent data copying.
- the position of the target joint angle By controlling the movement of the gimbal from the current joint angle to the target joint angle, it is possible to effectively ensure that the gimbal does not reach the limit position, realize the protection control of the gimbal, and ensure the safety of the gimbal.
- FIG. 5 is a schematic flowchart diagram of still another method for controlling a PTZ according to an embodiment of the present invention, where the method may be performed by a PTZ.
- the difference between the embodiment of the present invention and the corresponding embodiment of FIG. 4 is that the pan/tilt can plan the motion curve of the pan/tilt according to the acquired current joint angle of the gimbal and the target joint angle.
- the method of the embodiment of the present invention includes the following steps.
- S501 Receive a control command when the drone is in a preset state.
- the pan/tilt may receive a control instruction sent by the drone to the pan/tilt after entering the preset state; or the pan/tilt may receive a control instruction input by the user.
- the control command is configured to control the pan/tilt to enter a joint angle closed-loop operation mode from the attitude closed-loop operation mode, and the pan-tilt moves from the current joint angle to the target joint angle in the joint-angle closed-loop operation mode.
- the pan/tilt receives the control instruction about moving from the attitude closed loop operation mode to the joint angle closed loop operation mode, and moving from the current joint angle to the target joint angle in the joint angle closed loop operation mode.
- the current joint angle of the pan/tilt head may be acquired by an angle sensor of the pan/tilt head, wherein the angle sensor may be a Hall sensor or a magnetic encoder.
- the pan/tilt may acquire, by the angle sensor, a joint angle of the current pan-tilt axis of the gimbal relative to the joint coordinate system of the pan-tilt head by 3°.
- S503 Plan a motion curve of the pan/tilt according to the current joint angle of the gimbal and the target joint angle.
- the pan/tilt may plan the motion curve of the pan/tilt according to the acquired current joint angle of the gimbal and the target joint angle.
- the explanation of the motion curve is as described above, and details are not described herein again.
- the pan/tilt may plan a motion curve of the pan/tilt head by determining a motion parameter of the pan/tilt head, and the pan-tilt may determine a motion curve of the pan-tilt Determining the current joint angle of the gimbal and the target joint angle, determining a motion parameter of the pan/tilt, and planning a motion curve of the pan/tilt according to the motion parameter of the pan/tilt.
- the motion parameter may include any one or more of a motion time, an angular velocity, and an angular acceleration.
- the pan/tilt may plan the motion curve of the pan/tilt according to any one or more of the motion time, the angular velocity, and the angular acceleration of the pan-tilt movement. For example, if the pan/tilt acquires the current joint angle of the pan/tilt head at 30° and the target joint angle is 0°, the pan/tilt head controls the pan/tilt head to move from a position corresponding to the current joint angle of 30°. The position corresponding to the target joint angle of 0° needs to be rotated at an angle of 30°.
- the motion parameter of the pan/tilt is set as follows: the time information for completing the pan-tilt movement is 10 s, the angular acceleration within the first 2.5 s is constant 1.6 m/s 2 , the middle 5 s is moving at a constant angular acceleration, and the latter is within 2.5 s.
- the acceleration is -1.6m/s 2 .
- the pan/tilt may plan a motion curve of the pan/tilt from a current joint angle of 30° to a target joint angle of 0° according to the set motion parameters of the pan/tilt.
- the target joint angle may also be the current joint angle of the gimbal.
- the target joint angle is the current joint angle of the gimbal
- the gimbal enters the joint angle closed-loop operation mode, and when the drone is in the preset state, the gimbal maintains the current joint angle .
- S504 Control the pan/tilt to move from the current joint angle to the target joint angle and keep under the target joint angle.
- the pan/tilt may control the pan/tilt to smoothly move from the position corresponding to the current joint angle to the target joint angle according to the planned motion curve of the pan/tilt head. position.
- the pan/tilt may receive an end command, and when the end command is received, control the pan-tilt from the joint angle closed-loop operation mode to the attitude closed-loop operation mode, and control the pan-tilt
- the target joint angle is moved to an attitude angle or a preset attitude angle in the attitude closed loop operation mode, or the pan/tilt is controlled to be powered on again.
- the end instruction may be sent by the drone; or the end instruction may be input by a user. The explanation of the end instruction is as described above.
- the pan/tilt may receive an end command sent by the drone, and when the end command is received, control the pan/tilt to enter a gesture closed-loop operation mode from the joint angle closed-loop operation mode, And controlling an attitude angle or a preset attitude angle of the pan/tilt moving from the target joint angle to the attitude closed-loop operation mode.
- the attitude angle of the pan/tilt in the attitude closed-loop operation mode is an attitude angle or a preset attitude angle before the pan-tilt enters the closed-loop operation mode of the joint angle.
- the pan/tilt obtains the current joint angle of the gimbal by the control instruction sent by the drone in a preset state, and the current joint angle and the target joint angle of the gimbal, and the cloud is planned.
- the motion curve of the table thereby controlling the pan/tilt movement from the current joint angle to the target joint angle, and maintaining the position of the target joint angle during subsequent data copying. In this way, the protection and control of the gimbal is realized, and the security of the gimbal is guaranteed.
- FIG. 6 is a schematic block diagram of a drone according to an embodiment of the present invention.
- the drone in the embodiment of the present invention as shown in FIG. 6 may include: one or more processors 601; one or more input devices 602, one or more output devices 603, and memory 604.
- the above processor 601, input device 602, output device 603, and memory 604 are connected by a bus 605.
- the memory 604 is used to store a computer program, the computer program including program instructions, and the processor 601 is configured to execute program instructions stored in the memory 604.
- the processor 601 is configured to invoke the program instruction to execute:
- the control command is used to indicate that the gimbal moves from a current joint angle to a target joint angle and is maintained under the target joint angle, and the joint angle refers to a joint of the pan-tilt axis relative to the pan-tilt The angle of the coordinate system.
- the target joint angle is 0 degrees or the current joint angle of the gimbal or other preset joint angle.
- the preset state is whether data in the storage device of the drone is copied.
- control instruction is further configured to instruct the pan/tilt to enter a joint angle closed-loop operation mode from the attitude closed-loop operation mode, and the pan-tilt moves from the current joint angle to the target joint angle in the joint-angle closed-loop operation mode.
- the data includes any one or more of flight data of flight altitude, flight direction, flight speed, and acceleration.
- processor 601 calls the program instructions stored in the memory 604 to also perform the following steps:
- processor 601 calls a program instruction stored in the memory 604 for performing the following steps:
- processor 601 calls a program instruction stored in the memory 604 for performing the following steps:
- a motion curve of the pan/tilt is planned according to the motion parameter.
- the motion parameter includes one or more of a motion time, an angular velocity, and an angular acceleration.
- processor 601 calls a program instruction stored in the memory 604 for performing the following steps:
- the UAV detects the current state of the UAV, and if it detects that the UAV enters the preset state, sends a control command to the PTZ to indicate the PTZ
- the attitude closed loop mode of operation enters a joint angle closed loop mode of operation and moves from the current joint angle to the target joint angle in the joint angle closed loop mode of operation and remains at the target during subsequent copying of data
- the position of the joint angle By controlling the movement of the gimbal from the current joint angle and maintaining the target joint angle, it is possible to effectively ensure that the gimbal does not reach the limit position, realize the protection control of the gimbal, and ensure the safety of the gimbal.
- the processor 601 may be a central processing unit (CPU), and the processor may also be another general-purpose processor, a digital signal processor (DSP). , Application Specific Integrated Circuit (ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware component, etc.
- the general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
- Input device 602 can include a touchpad, microphone, etc.
- output device 603 can include a display (LCD, etc.), a speaker, and the like.
- the memory 604 can include read only memory and random access memory and provides instructions and data to the processor 601. A portion of the memory 604 may also include a non-volatile random access memory. For example, the memory 604 can also store information of the device type.
- the processor 601, the input device 602, and the output device 603 described in the embodiments of the present invention may perform the PTZ control method described in the embodiment of FIG. 1, FIG. 2 or FIG. 3 provided by the embodiment of the present invention.
- the implementation manner of the UAV described in the embodiment of the present invention may also be implemented, and details are not described herein again.
- FIG. 7 is a schematic block diagram of a cloud platform according to an embodiment of the present invention.
- the pan/tilt in the embodiment of the present invention as shown in FIG. 7 may include: one or more processors 701; one or more angle sensors 702.
- the processor 701 and the angle sensor 702 are connected by a bus 703.
- the processor 701 is configured to perform the following steps:
- the pan/tilt is controlled to move from the current joint angle to the target joint angle and is maintained at the target joint angle, which is the angle of the pan-tilt axis relative to the joint coordinate system of the pan-tilt.
- the target joint angle is 0 degrees or the current joint angle of the gimbal or other preset joint angle.
- processor 701 is configured to perform the following steps:
- control instruction is used to control the pan/tilt to enter a joint angle closed-loop operation mode from the attitude closed-loop operation mode, and the pan-tilt moves from the current joint angle to the target joint angle in the joint-angle closed-loop operation mode.
- processor 701 is configured to perform the following steps:
- the current joint angle of the gimbal is acquired by the angle sensor 702.
- angle sensor 702 is a Hall sensor, or a magnetic encoder.
- processor 701 is configured to perform the following steps:
- processor 701 is configured to perform the following steps:
- a motion curve of the pan/tilt is planned according to the motion parameter.
- the motion parameter includes one or more of time information, angular velocity, and angular acceleration.
- processor 701 is configured to perform the following steps:
- the pan/tilt is controlled to enter the attitude closed loop operation mode from the joint angle closed loop operation mode or to control the pan/tilt to be powered on again.
- the cloud platform controls the pan-tilt to move from the current joint angle to the target joint angle by receiving a control command sent by the drone in a preset state, and remains in the process of subsequent data copying.
- the position of the target joint angle By controlling the movement of the gimbal from the current joint angle to the target joint angle, it is possible to effectively ensure that the gimbal does not reach the limit position, realize the protection control of the gimbal, and ensure the safety of the gimbal.
- the processor 701 and the angle sensor 702 described in the embodiment of the present invention may implement the implementation manner of the PTZ control method described in the embodiment of FIG. 4 or FIG. 5 provided by the embodiment of the present invention, and may also execute the present embodiment.
- the implementation of the gimbal described in the embodiments of the present invention is not described herein again.
- An embodiment of the present invention further provides a drone, including: a fuselage; a power system disposed on the fuselage for providing flight power; a pan/tilt head mounted on the body; and a processor disposed at In the body, the processor is configured to detect whether the drone enters a preset state; if the drone is detected to enter a preset state, send a control instruction to the pan/tilt.
- a drone including: a fuselage; a power system disposed on the fuselage for providing flight power; a pan/tilt head mounted on the body; and a processor disposed at In the body, the processor is configured to detect whether the drone enters a preset state; if the drone is detected to enter a preset state, send a control instruction to the pan/tilt.
- the drone can be a four-rotor UAV, a six-rotor UAV, a multi-rotor UAV, and the like.
- the power system may include a motor, an ESC, a propeller, etc., wherein the motor is responsible for driving the aircraft propeller, and the ESC is responsible for controlling the speed of the motor of the aircraft.
- the embodiment of the present invention further provides a cloud platform, the cloud platform is mounted on the unmanned aerial vehicle, and includes: a pan/tilt axis; an angle sensor; a processor, and the processor is configured to: when the Receiving a control command; controlling the pan-tilt to move from a current joint angle to a target joint angle, and maintaining the target joint angle, the joint angle being a joint of the pan-tilt axis relative to the pan-tilt
- the angle sensor may be a Hall sensor or a magnetic encoder.
- the embodiment of the present invention further provides a computer readable storage medium, where the computer readable storage medium stores a computer program, and when the computer program is executed by the processor, the present invention implements FIG. 1, FIG. 2, FIG. 3, and FIG. 4 or the PTZ control method described in the embodiment corresponding to FIG. 5, the UAV described in the embodiment corresponding to FIG. 6 or the PTZ described in the embodiment corresponding to FIG. 7 may also be implemented. Narration.
- the computer readable storage medium may be an internal storage unit of a drone or pan/tilt as described in any of the preceding embodiments, such as a hard disk or a memory.
- the computer readable storage medium may also be an external storage device of the drone or pan/tilt, such as a plug-in hard disk equipped on the device, a smart memory card (SMC), and a secure digital (Secure) Digital, SD) cards, flash cards, etc.
- the computer readable storage medium may also include both an internal storage unit of the drone or pan/tilt and an external storage device.
- the computer readable storage medium is for storing the computer program and other programs and data required by the drone or pan/tilt.
- the computer readable storage medium can also be used to temporarily store data that has been output or is about to be output.
- the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).
Landscapes
- Engineering & Computer Science (AREA)
- Aviation & Aerospace Engineering (AREA)
- Radar, Positioning & Navigation (AREA)
- Remote Sensing (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Automation & Control Theory (AREA)
- Control Of Position, Course, Altitude, Or Attitude Of Moving Bodies (AREA)
- Toys (AREA)
Abstract
Description
本发明涉及控制技术领域,尤其涉及一种云台控制方法、无人机、云台及存储介质。The present invention relates to the field of control technologies, and in particular, to a cloud platform control method, a drone, a cloud platform, and a storage medium.
随着计算机技术的发展以及用户的需求,类似无人机这样的飞行器的发展越来越快,其中,无人机主要包括云台和机体。无人机在飞行过程中可能会因为无人机自身的原因或者用户操作不当等原因发生各种故障或者炸机。With the development of computer technology and the needs of users, the development of aircraft like drones is getting faster and faster. Among them, drones mainly include pan/tilt and body. During the flight, the drone may have various faults or bombings due to the reasons of the drone itself or improper operation of the user.
在无人机发生各种故障或者炸机后,需要对无人机进行相应的售后处理,通常是对无人机的飞行数据进行拷贝,以方便调查无人机产生故障或炸机的原因,在拷贝数据的过程中,无人机可能由于机体部分缺失,无法保持平衡,从而导致云台乱动、甚至直接撞到机械限位的情况,降低了云台的使用寿命,严重时甚至会烧毁电机。After various failures or bombings of the drone, it is necessary to perform corresponding after-sales treatment on the drone, usually copying the flight data of the drone to facilitate investigation of the cause of the malfunction or bombing of the drone. In the process of copying data, the drone may not be able to maintain balance due to the missing part of the body, which leads to the turbulence of the gimbal and even directly hit the mechanical limit, which reduces the service life of the gimbal. In severe cases, it may even burn out. Motor.
因此,如何在这种情况下更好地对云台进行控制成为研究的热点。Therefore, how to better control the gimbal in this situation has become a research hotspot.
发明内容Summary of the invention
本发明实施例提供了一种云台控制方法、无人机、云台、系统及存储介质,可提高云台的安全性。The embodiment of the invention provides a cloud platform control method, a drone, a cloud platform, a system and a storage medium, which can improve the security of the cloud platform.
第一方面,本发明实施例提供了一种云台控制方法,应用于无人机,所述无人机上装设有云台,所述方法包括:In a first aspect, an embodiment of the present invention provides a pan/tilt control method, which is applied to a drone, and the drone is provided with a pan/tilt. The method includes:
检测无人机是否进入预设状态;Detecting whether the drone enters a preset state;
如果检测到所述无人机进入预设状态,则向所述云台发送控制指令;If it is detected that the drone enters a preset state, sending a control instruction to the pan/tilt;
其中,所述控制指令用于指示所述云台从当前关节角运动到目标关节角,并保持在所述目标关节角下,所述关节角是指云台轴相对于所述云台的关节坐标系的角度。The control command is used to indicate that the gimbal moves from a current joint angle to a target joint angle and is maintained under the target joint angle, and the joint angle refers to a joint of the pan-tilt axis relative to the pan-tilt The angle of the coordinate system.
第二方面,本发明实施例还提供了另一种云台控制方法,应用于云台,所述云台设置在无人机上,所述方法包括:In a second aspect, the embodiment of the present invention further provides another pan/tilt control method, which is applied to a cloud platform, and the cloud platform is disposed on a drone, and the method includes:
当所述无人机处于预设状态时,接收控制指令;Receiving a control instruction when the drone is in a preset state;
控制所述云台从当前关节角运动到目标关节角,并保持在所述目标关节角下,所述关节角是指云台轴相对于所述云台的关节坐标系的角度。The pan/tilt is controlled to move from the current joint angle to the target joint angle and is maintained at the target joint angle, which is the angle of the pan-tilt axis relative to the joint coordinate system of the pan-tilt.
第三方面,本发明实施例提供了一种无人机,包括:In a third aspect, an embodiment of the present invention provides a drone, including:
机身;body;
设置在机身上的动力系统,用于提供飞行动力;a power system disposed on the fuselage for providing flight power;
云台,装设在所述机身上;a cloud platform mounted on the fuselage;
处理器,设置在所述机身内,所述处理器,用于执行如下步骤:a processor, disposed in the body, the processor, configured to perform the following steps:
检测无人机是否进入预设状态;Detecting whether the drone enters a preset state;
如果检测到所述无人机进入预设状态,则向所述云台发送控制指令;If it is detected that the drone enters a preset state, sending a control instruction to the pan/tilt;
其中,所述控制指令用于指示所述云台从当前关节角运动到目标关节角,并保持在所述目标关节角下,所述关节角是指云台轴相对于所述云台的关节坐标系的角度。The control command is used to indicate that the gimbal moves from a current joint angle to a target joint angle and is maintained under the target joint angle, and the joint angle refers to a joint of the pan-tilt axis relative to the pan-tilt The angle of the coordinate system.
第四方面,本发明实施例提供了一种云台,所述云台挂载与无人机上,包括:In a fourth aspect, an embodiment of the present invention provides a cloud platform, where the cloud platform is mounted on a drone, and includes:
云台轴;PTZ axis
角度传感器;Angle sensor;
处理器,所述处理器,用于执行如下步骤:a processor, the processor, configured to perform the following steps:
当所述无人机处于预设状态时,接收控制指令;Receiving a control instruction when the drone is in a preset state;
控制所述云台从当前关节角运动到目标关节角,并保持在所述目标关节角下,所述关节角是指云台轴相对于所述云台的关节坐标系的角度。The pan/tilt is controlled to move from the current joint angle to the target joint angle and is maintained at the target joint angle, which is the angle of the pan-tilt axis relative to the joint coordinate system of the pan-tilt.
第五方面,本发明实施例提供了一种计算机可读存储介质,该计算机可读存储介质存储有计算机程序,该计算机程序被处理器执行时实现如上述第一方面或第二方面所述的云台控制方法。In a fifth aspect, an embodiment of the present invention provides a computer readable storage medium, where the computer readable storage medium stores a computer program, and when the computer program is executed by a processor, implements the first aspect or the second aspect, PTZ control method.
本发明实施例中,无人机通过检测无人机当前所处的状态,如果检测到所述无人机处于预设状态,则向所述云台发送控制指令,以指示所述云台从当前关节角运动到目标关节角,并在后续拷取数据的过程中,保持在所述目标关节角下。通过控制云台运动到目标关节角的这种方式,可以有效地保证云台不达到限位位置,实现对云台的保护控制,保证了云台的安全。In the embodiment of the present invention, the UAV detects a state in which the UAV is currently located, and if it detects that the UAV is in a preset state, sends a control instruction to the PTZ to indicate the PTZ The current joint angle is moved to the target joint angle and remains under the target joint angle during subsequent copying of the data. By controlling the movement of the gimbal to the target joint angle, it is possible to effectively ensure that the gimbal does not reach the limit position, realize the protection control of the gimbal, and ensure the safety of the gimbal.
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments will be briefly described below. Obviously, the drawings in the following description are some implementations of the present invention. For example, other drawings may be obtained from those of ordinary skill in the art in light of the inventive work.
图1是本发明实施例提供的一种云台控制方法的交互流程示意图;1 is a schematic diagram of an interaction process of a PTZ control method according to an embodiment of the present invention;
图2是本发明实施例提供的一种云台控制方法的流程示意图;2 is a schematic flowchart of a PTZ control method according to an embodiment of the present invention;
图3是本发明实施例提供的另一种云台控制方法的流程示意图;3 is a schematic flowchart diagram of another PTZ control method according to an embodiment of the present invention;
图4是本发明实施例提供的又一种云台控制方法的流程示意图;4 is a schematic flowchart diagram of still another method for controlling a PTZ according to an embodiment of the present invention;
图5是本发明实施例提供的又一种云台控制方法的流程示意图;FIG. 5 is a schematic flowchart diagram of still another method for controlling a pan/tilt according to an embodiment of the present invention; FIG.
图6是本发明实施例提供的一种无人机的示意框图;6 is a schematic block diagram of a drone according to an embodiment of the present invention;
图7是本发明实施例提供的一种云台的示意框图。FIG. 7 is a schematic block diagram of a cloud platform according to an embodiment of the present invention.
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明的部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are part of the embodiments of the present invention, but not all embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
下面结合附图,对本发明的一些实施方式作详细说明。在不冲突的情况下,下述的实施例及实施例中的特征可以相互组合。Some embodiments of the present invention are described in detail below with reference to the accompanying drawings. The features of the embodiments and examples described below can be combined with each other without conflict.
本发明实施例提供的所述云台控制方法可应用于无人机发生故障或炸机之后,在无人机检测到所述无人机的存储装置中的数据被拷取时对云台的控制。其中,所述云台控制方法可应用于无人机,也可应用于无人汽车等其他智能终端;所述存储装置可以是所述无人机的黑匣子;所述数据可以包括飞行高度、飞行方向、飞行速度、加速度中任意一项或多项飞行数据。The pan/tilt control method provided by the embodiment of the present invention can be applied to a cloud station after the UAV detects that the data in the storage device of the drone is copied after the UAV malfunctions or flies. control. The pan/tilt control method can be applied to a drone, and can also be applied to other intelligent terminals such as an unmanned car; the storage device can be a black box of the drone; the data can include a flying height, a flight Any one or more of the flight data of direction, flight speed, and acceleration.
本发明实施例提供的所述云台控制方法可以根据该系统中的无人机和云台的交互来实现,下面结合附图对该无人机和云台的交互方法实施例,以及分别对应用于无人机和云台的控制方法进行详细说明。The PTZ control method provided by the embodiment of the present invention may be implemented according to the interaction between the UAV and the PTZ in the system, and the interaction method of the UAV and the PTZ is described below with reference to the accompanying drawings, and respectively The control methods applied to the drone and the pan/tilt are described in detail.
请参见图1,图1是本发明实施例提供的一种云台控制方法的交互流程示意图。具体地,本发明实施例的方法实现包括如下步骤。Referring to FIG. 1, FIG. 1 is a schematic diagram of an interaction process of a PTZ control method according to an embodiment of the present invention. Specifically, the method implementation of the embodiment of the present invention includes the following steps.
S101:无人机检测所述无人机的存储装置中的数据是否被拷取。S101: The drone detects whether data in the storage device of the drone is copied.
本发明实施例中,无人机可以检测所述无人机的存储装置的数据是否被拷取,其中,所述数据可以包括飞行高度、飞行方向、飞行速度、加速度中任意一项或多项飞行数据,所述存储装置的解释如上所述。例如,无人机可以检测无人机的黑匣子中存储的飞行高度、飞行方向、飞行速度、加速度中任意一项或多项飞行数据是否被拷取。In the embodiment of the present invention, the drone can detect whether the data of the storage device of the drone is copied, wherein the data may include any one or more of a flight height, a flight direction, a flight speed, and an acceleration. Flight data, the storage device is explained as described above. For example, the drone can detect whether any one or more of the flight altitudes, flight directions, flight speeds, and accelerations stored in the black box of the drone are copied.
S102:如果检测结果为是,则确定所述无人机进入预设状态。S102: If the detection result is yes, determine that the drone enters a preset state.
本发明实施例中,无人机如果检测到所述无人机的存储装置的数据被拷取,则可以确定所述无人机当前所处的状态为预设状态。例如,假设所述无人机检测到所述无人机的黑匣子中存储的飞行数据被拷取,则所述无人机可以确定所述无人机当前所处的状态为预设状态。可以理解的是,确定所述无人机进入预设状态也可以是无人机是否收到进入传感器校正的指令。例如,当检测到收到无人机需进入指南针校正的指令后,则确定所述无人机进入预设状态。当然,所述确定所述无人机进入预设状态的步骤也可以通过其他方式来触发,在此就不一一列举。In the embodiment of the present invention, if the UAV detects that the data of the storage device of the UAV is copied, the UAV may determine that the UAV is currently in a preset state. For example, if the drone detects that the flight data stored in the black box of the drone is copied, the drone may determine that the state of the drone is currently in a preset state. It can be understood that determining whether the drone enters the preset state may also be an instruction of whether the drone receives the sensor calibration. For example, when it is detected that the unmanned aerial vehicle needs to enter the compass correction command, it is determined that the drone enters the preset state. Of course, the step of determining that the drone enters a preset state may also be triggered by other means, which are not enumerated here.
S103:无人机向所述无人机的云台发送控制指令。S103: The drone sends a control command to the pan/tilt of the drone.
本发明实施例中,如果检测到所述无人机进入预设状态,则所述无人机可以向所述云台发送控制指令。其中,所述控制指令用于指示所述云台从当前关节角运动到目标关节角,并保持在所述目标关节角下,所述关节角是指云台轴相对于所述云台的关节坐标系的角度。In the embodiment of the present invention, if the UAV is detected to enter a preset state, the UAV may send a control instruction to the PTZ. The control command is used to indicate that the gimbal moves from a current joint angle to a target joint angle and is maintained under the target joint angle, and the joint angle refers to a joint of the pan-tilt axis relative to the pan-tilt The angle of the coordinate system.
S104:云台接收所述无人机的控制指令。S104: The pan/tilt receives the control instruction of the drone.
本发明实施例中,云台可以接收所述无人机发送的控制指令。其中,所述控制指令还用于控制所述云台从姿态闭环操作模式进入关节角闭环操作模式,所述云台在所述关节角闭环操作模式下从当前关节角运动到目标关节角。所述云台用于挂设负载,所述云台包括至少一个云台轴。在姿态闭环操作模式下,所述云台轴运动以使负载在大地坐标系下达到期望姿态;在关节角闭环操作模式下,所述云台轴运动以使云台轴在关节角坐标系下达到期望角度。后文中的关节角闭环操作模式和姿态闭环操作模式不再赘述。In the embodiment of the present invention, the pan/tilt can receive the control command sent by the drone. The control command is further configured to control the pan/tilt to enter a joint angle closed-loop operation mode from the attitude closed-loop operation mode, and the pan-tilt moves from the current joint angle to the target joint angle in the joint-angle closed-loop operation mode. The pan/tilt is used to hang a load, and the pan/tilt includes at least one pan/tilt axis. In the attitude closed-loop mode of operation, the pan-tilt axis moves to achieve a desired attitude in the geodetic coordinate system; in the joint-angle closed-loop mode of operation, the pan-tilt axis moves such that the pan-tilt axis is in the joint angular coordinate system Achieve the desired angle. The closed-loop operation mode of the joint angle and the closed-loop operation mode of the attitude will not be described again.
S105:云台控制所述云台从当前关节角运动到目标关节角,并保持在所述目标关节角下。S105: The pan/tilt controls the pan/tilt to move from the current joint angle to the target joint angle and remains under the target joint angle.
本发明实施例中,云台可以根据接收到的所述控制指令,控制所述云台从 姿态闭环操作模式进入关节角闭环操作模式,所述云台在所述关节角闭环操作模式下从当前关节角运动到目标关节角。在一个实施例中,所述目标关节角为0度。In the embodiment of the present invention, the pan/tilt may control the pan/tilt to enter the joint angle closed-loop operation mode from the attitude closed-loop operation mode according to the received control instruction, and the pan-tilt is in the closed-loop operation mode of the joint angle from the current The joint angle moves to the target joint angle. In one embodiment, the target joint angle is 0 degrees.
在一个实施例中,所述云台接收到所述控制指令之后,可以获取所述云台当前关节角,所述关节角的解释如上所述。例如,所述云台在接收到所述控制指令之后,可以获取到所述云台当前的云台轴相对于所述云台的关节坐标系的关节角为30°。In an embodiment, after the pan/tilt receives the control instruction, the current joint angle of the gimbal may be acquired, and the interpretation of the joint angle is as described above. For example, after receiving the control command, the pan/tilt may acquire a joint angle of 30° of the current gimbal axis of the gimbal relative to the joint coordinate system of the gimbal.
在一个实施例中,所述云台可以根据所述云台当前关节角和目标关节角,规划所述云台的运动曲线,并根据所述运动曲线,控制所述云台从所述当前关节角运动至所述目标关节角。其中,所述运动曲线可以是任意形状的曲线,本发明实施例不做限定,只需要满足将云台从当前关节角所对应的位置平滑的调节到目标关节角所对应的位置。例如,假设所述云台获取到的所述云台当前关节角为3°,目标关节角为0°,则可以规划所述云台从当前关节角3°向所述目标关节角0°运动的运动曲线。In an embodiment, the pan/tilt may plan a motion curve of the pan/tilt according to a current joint angle and a target joint angle of the gimbal, and control the pan-tilt from the current joint according to the motion curve. The angle moves to the target joint angle. The motion curve may be a curve of any shape, which is not limited in the embodiment of the present invention, and only needs to satisfy the adjustment of the pan head from the position corresponding to the current joint angle to the position corresponding to the target joint angle. For example, if the current joint angle of the pan/tilt acquired by the pan/tilt is 3° and the target joint angle is 0°, the pan/tilt can be planned to move from the current joint angle of 3° to the target joint angle of 0°. Movement curve.
在一个实施例中,所述云台在规划所述云台的运动曲线的过程中,可以根据所述云台当前关节角和所述目标关节角,确定出所述云台的运动参数,并根据所述云台的运动参数,规划所述云台的运动曲线。In an embodiment, the pan/tilt may determine a motion parameter of the pan/tilt according to the current joint angle of the gimbal and the target joint angle in planning the motion curve of the pan/tilt, and According to the motion parameter of the pan/tilt, the motion curve of the pan/tilt is planned.
在一个实施例中,所述运动参数包括运动时间、角速度、角加速度中的任意一项或多项,所述云台可以根据所述云台运动时间、角速度、角加速度中的任意一项或多项,规划所述云台的运动曲线。例如,假设所述云台获取到所述云台当前关节角为30°,所述目标关节角为0°,则所述云台控制所述云台从当前关节角30°所对应的位置运动至所述目标关节角0°所对应的位置需要转动的角度为30°。假设设定所述云台的运动参数为:完成所述云台运动的时间信息为10s,前2.5s内角加速度为恒定的1.6m/s 2,中间5s以恒定角加速度运动,后面2.5s内角加速度为-1.6m/s 2。所述云台可以根据设定的所述云台的这些运动参数,规划出所述云台从当前关节角30°运动到所述目标关节角0°的运动曲线。 In one embodiment, the motion parameter includes any one or more of a motion time, an angular velocity, and an angular acceleration, and the pan/tilt may be according to any one of the pan/tilt motion time, an angular velocity, and an angular acceleration. Multiple, plan the motion curve of the gimbal. For example, if the pan/tilt acquires the current joint angle of the pan/tilt head at 30° and the target joint angle is 0°, the pan/tilt head controls the pan/tilt head to move from a position corresponding to the current joint angle of 30°. The position corresponding to the target joint angle of 0° needs to be rotated at an angle of 30°. It is assumed that the motion parameter of the pan/tilt is set as follows: the time information for completing the pan-tilt movement is 10 s, the angular acceleration within the first 2.5 s is constant 1.6 m/s 2 , the middle 5 s is moving at a constant angular acceleration, and the latter is within 2.5 s. The acceleration is -1.6m/s 2 . The pan/tilt may plan a motion curve of the pan/tilt moving from a current joint angle of 30° to the target joint angle of 0° according to the set motion parameters of the pan/tilt.
在一个实施例中,目标关节角也可以是云台当前关节角。当所述目标关节角为云台当前关节角时,则无人机进入预设状态时,云台进入关节角闭环操作模式,无人机在预设状态中时,云台保持在当前关节角。In one embodiment, the target joint angle may also be the current joint angle of the gimbal. When the target joint angle is the current joint angle of the gimbal, when the drone enters the preset state, the gimbal enters the joint angle closed-loop operation mode, and when the drone is in the preset state, the gimbal maintains the current joint angle .
S106:云台接收所述无人机发送的结束指令,并控制所述云台从所述关节角闭环操作模式进入姿态闭环操作模式。S106: The pan/tilt receives the end command sent by the drone, and controls the pan/tilt to enter the attitude closed-loop operation mode from the joint angle closed-loop operation mode.
本发明实施例中,所述云台如果接收到所述无人机发送的结束指令,则可以控制所述云台从所述关节角闭环操作模式进入姿态闭环操作模式。其中,在所述姿态闭环操作模式下所述云台的姿态角为所述云台进入所述关节角闭环操作模式之前的姿态角或者预设的姿态角。在一个实施例中,所述云台可以控制所述云台从所述目标关节角所对应的位置运动到所述姿态闭环操作模式下所述姿态角所对应的位置或预设的姿态角位置。In the embodiment of the present invention, if the pan/tilt receives the end command sent by the drone, the pan/tilt may be controlled to enter the attitude closed-loop operation mode from the joint angle closed-loop operation mode. The attitude angle of the pan/tilt in the attitude closed-loop operation mode is an attitude angle or a preset attitude angle before the pan-tilt enters the closed-loop operation mode of the joint angle. In an embodiment, the pan/tilt may control a position of the pan/tilt head from a position corresponding to the target joint angle to a position corresponding to the attitude angle or a preset attitude angle position in the attitude closed-loop operation mode. .
在所述关节角闭环模式中,控制云台从当前的关节角运动到关节角为零的位置。具体地,可根据云台当前的关节角,进行T形速度规划,自动规划梯形的运动曲线,使云台平滑地运行到关节角为零的位置。而有姿态闭环操作模式是以云台的姿态为控制对象,在可移动物体的运动过程中,控制云台的姿态,使云台跟随可移动物体的运动而运动,从而使得云台相对于可移动物体保持相对静止的自动控制过程。In the joint angle closed loop mode, the pan/tilt is controlled to move from the current joint angle to a position where the joint angle is zero. Specifically, the T-shaped velocity planning can be performed according to the current joint angle of the gimbal, and the trapezoidal motion curve is automatically planned, so that the gimbal smoothly runs to a position where the joint angle is zero. The attitude closed-loop operation mode is controlled by the attitude of the gimbal. During the movement of the movable object, the attitude of the gimbal is controlled, so that the gimbal moves in accordance with the movement of the movable object, so that the gimbal is relatively movable. The automatic control process in which the moving object remains relatively stationary.
在另一个实施例中,云台接收到所述无人机发送的结束指令后,也可以控制所述云台重新上电。In another embodiment, after receiving the end command sent by the drone, the pan/tilt may also control the pan/tilt to be powered on again.
在本发明实施例中,无人机通过检测所述无人机的存储装置中的数据是否被拷取来确定所述无人机当前所处的状态,如果为预设状态,则向所述无人机的云台发送控制指令,所述云台接收到所述控制指令后,可以控制所述云台从当前关节角运动到目标关节角,并在后续拷取数据的过程中,保持在目标关节角下,所述无人机如果检测到所述无人机的所述预设状态结束,则向所述云台发送结束指令,所述云台根据接收到的所述结束指令,控制所述云台从所述关节角闭环操作模式进入姿态闭环操作模式,从而结束关节角闭环操作模式下对云台的控制。可见,本发明实施例通过这种方式,可以实现对云台的保护控制,保证云台的安全。In the embodiment of the present invention, the drone determines the current state of the drone by detecting whether the data in the storage device of the drone is copied, and if it is a preset state, The pan/tilt head of the drone sends a control command, and after receiving the control command, the pan/tilt head can control the pan/tilt head to move from the current joint angle to the target joint angle, and keep in the process of subsequently copying the data. Under the target joint angle, the drone sends an end command to the pan/tilt if it detects that the preset state of the drone is over, and the pan/tilt controls according to the received end instruction. The pan/tilt enters the attitude closed-loop operation mode from the joint angle closed-loop operation mode, thereby ending the control of the pan/tilt in the joint angle closed-loop operation mode. It can be seen that, in this manner, the embodiment of the present invention can realize the protection control of the pan/tilt and ensure the security of the pan/tilt.
请参见图2,图2是本发明实施例提供的一种云台控制方法的流程示意图,所述方法可以由无人机执行,具体地,本发明实施例的所述方法包括如下步骤。Referring to FIG. 2, FIG. 2 is a schematic flowchart of a PTZ control method according to an embodiment of the present invention. The method may be performed by a UAV. Specifically, the method in the embodiment of the present invention includes the following steps.
S201:检测无人机是否进入预设状态。S201: Detect whether the drone enters a preset state.
本发明实施例中,无人机可以检测所述无人机是否进入预设状态。在一个实施例中,所述无人机可以检测所述无人机的存储装置中的数据是否被拷取, 如果检测结果为是,则可以确定所述无人机当前所处的状态为预设状态。其中,所述数据包括飞行高度、飞行方向、飞行速度、加速度中任意一项或多项飞行数据。In the embodiment of the present invention, the drone can detect whether the drone enters a preset state. In one embodiment, the drone can detect whether data in the storage device of the drone is copied. If the detection result is yes, it can be determined that the current state of the drone is pre- Set the status. Wherein, the data includes any one or more flight data of flight altitude, flight direction, flight speed, and acceleration.
可以理解的是,确定所述无人机进入预设状态也可以是无人机是否收到进入传感器校正的指令。例如,当检测到收到无人机需进入指南针校正的指令后,则确定所述无人机进入预设状态。当然,所述确定所述无人机进入预设状态的步骤也可以通过其他方式来触发,在此就不一一列举。It can be understood that determining whether the drone enters the preset state may also be an instruction of whether the drone receives the sensor calibration. For example, when it is detected that the unmanned aerial vehicle needs to enter the compass correction command, it is determined that the drone enters the preset state. Of course, the step of determining that the drone enters a preset state may also be triggered by other means, which are not enumerated here.
S202:如果检测到所述无人机进入预设状态,则向所述云台发送控制指令。S202: If it is detected that the drone enters a preset state, send a control instruction to the pan/tilt.
本发明实施例中,如果检测到所述无人机进入预设状态,则所述无人机可以向所述云台发送控制指令。其中,所述控制指令用于指示从姿态闭环操作模式进入关节角闭环操作模式,所述云台在所述关节角闭环操作模式下从当前关节角运动到目标关节角,并保持在所述目标关节角下,其中,所述关节角是指云台轴相对于所述云台的关节坐标系的角度。在一个实施例中,所述目标关节角为0度。在另一个实施例中,目标关节角也可以是云台当前关节角。当所述目标关节角为云台当前关节角时,则无人机进入预设状态时,云台进入关节角闭环操作模式,无人机在预设状态中时,云台保持在当前关节角。In the embodiment of the present invention, if the UAV is detected to enter a preset state, the UAV may send a control instruction to the PTZ. The control command is used to instruct a closed-loop operation mode from the attitude closed-loop operation mode, and the pan-tilt moves from the current joint angle to the target joint angle in the joint-angle closed-loop operation mode, and remains at the target Below the joint angle, wherein the joint angle refers to the angle of the gimbal axis relative to the joint coordinate system of the gimbal. In one embodiment, the target joint angle is 0 degrees. In another embodiment, the target joint angle may also be the current joint angle of the gimbal. When the target joint angle is the current joint angle of the gimbal, when the drone enters the preset state, the gimbal enters the joint angle closed-loop operation mode, and when the drone is in the preset state, the gimbal maintains the current joint angle .
在一个实施例中,所述无人机在发送所述控制指令给所述云台之后,可以获取所述云台当前关节角,所述关节角的解释如上所述。例如,所述无人机在发送所述控制指令给所述云台之后,可以获取到所述云台当前的云台轴相对于所述云台的关节坐标系的关节角为30°。In one embodiment, after the drone sends the control command to the pan/tilt, the current joint angle of the gimbal may be acquired, and the joint angle is explained as described above. For example, after the drone sends the control command to the pan/tilt, the joint angle of the current pan-tilt axis of the gimbal relative to the joint coordinate system of the gimbal may be acquired as 30°.
在一个实施例中,所述无人机在向所述云台发送控制指令之后,还可以根据所述云台当前关节角和所述目标关节角,规划所述云台的运动曲线,并根据所述运动曲线,控制所述云台从所述当前关节角运动至所述目标关节角。其中,所述运动曲线可以是梯形的运动曲线、也可以是其他形状的运动曲线,此处本发明实施例不做限定,只需要满足将云台从当前关节角所对应的位置平滑的调节到目标关节角所对应的位置。In an embodiment, the UAV may further plan a motion curve of the PTZ according to the current joint angle of the PTZ and the target joint angle after sending a control instruction to the PTZ, and according to The motion curve controls movement of the pan/tilt from the current joint angle to the target joint angle. The motion curve may be a trapezoidal motion curve or a motion curve of other shapes. The embodiment of the present invention is not limited, and only needs to meet the smooth adjustment of the position of the gimbal from the current joint angle to The position corresponding to the target joint angle.
在一个实施例中,如果无人机检测到所述无人机的所述预设状态结束,则可以向所述云台发送结束指令,以控制所述云台从所述关节角闭环操作模式进入姿态闭环操作模式,并控制所述云台从所述关节角闭环操作模式下的目标关节角运动到所述姿态闭环操作模式下所述姿态角所对应的位置。其中,在所述 姿态闭环操作模式下所述云台的姿态角为所述云台进入所述关节角闭环操作模式之前的姿态角或预设的姿态角。在其它实施例中,当无人机检测到所述无人机的所述预设状态结束,也可以控制所述无人机重新上电。In an embodiment, if the drone detects that the preset state of the drone is over, an end command may be sent to the pan/tilt to control the pan-tilt closed-loop operation mode from the joint angle. Entering the attitude closed-loop operation mode, and controlling the position of the pan-tilt from the target joint angle movement in the joint angle closed-loop operation mode to the attitude angle in the attitude closed-loop operation mode. The attitude angle of the pan/tilt in the attitude closed-loop operation mode is an attitude angle or a preset attitude angle before the pan-tilt enters the closed-loop operation mode of the joint angle. In other embodiments, when the drone detects that the preset state of the drone is over, the drone can also be controlled to be powered back on.
本发明实施例中,无人机通过检测无人机当前所处的状态,如果检测到所述无人机进入预设状态,则向所述云台发送控制指令,以指示所述云台从姿态闭环操作模式进入关节角闭环操作模式,以及在所述关节角闭环操作模式下从所述当前关节角运动到所述目标关节角,并在后续拷取数据的过程中,保持在所述目标关节角的位置。通过控制云台从所述当前关节角运动并保持在目标关节角的这种方式,可以有效地保证云台不达到限位位置,实现对云台的保护控制,保证了云台的安全。In the embodiment of the present invention, the UAV detects the current state of the UAV, and if it detects that the UAV enters the preset state, sends a control command to the PTZ to indicate the PTZ The attitude closed loop mode of operation enters a joint angle closed loop mode of operation and moves from the current joint angle to the target joint angle in the joint angle closed loop mode of operation and remains at the target during subsequent copying of data The position of the joint angle. By controlling the movement of the gimbal from the current joint angle and maintaining the target joint angle, it is possible to effectively ensure that the gimbal does not reach the limit position, realize the protection control of the gimbal, and ensure the safety of the gimbal.
请参见图3,图3是本发明实施例提供的另一种云台控制方法的流程示意图,所述方法可以由无人机执行,其中,本发明实施例与图2所对应实施例的区别在于,无人机可以根据获取到的所述云台当前关节角和所述目标关节角,规划所述云台的运动曲线,并根据所述运动曲线,控制所述云台从所述当前关节角运动至所述目标关节角。具体地,本发明实施例的所述方法包括如下步骤。Referring to FIG. 3, FIG. 3 is a schematic flowchart of another method for controlling a pan/tilt according to an embodiment of the present invention. The method may be performed by a drone, wherein the difference between the embodiment of the present invention and the embodiment corresponding to FIG. The UAV can plan the motion curve of the PTZ according to the acquired current joint angle of the PTZ and the target joint angle, and control the PTZ from the current joint according to the motion curve. The angle moves to the target joint angle. Specifically, the method of the embodiment of the present invention includes the following steps.
S301:检测无人机是否进入预设状态。S301: Detect whether the drone enters a preset state.
本发明实施例中,无人机可以检测所述无人机是否进入预设状态。其中,所述无人机的预设状态是通过所述无人机的存储装置中的数据是否被拷取来确定的,如果所述无人机检测到所述无人机的存储装置中的数据被拷取,则可以确定所述无人机当前所处的状态为预设状态。其中,所述数据包括飞行高度、飞行方向、飞行速度、加速度中任意一项或多项飞行数据。In the embodiment of the present invention, the drone can detect whether the drone enters a preset state. Wherein the preset state of the drone is determined by whether data in the storage device of the drone is copied, if the drone detects the storage device of the drone The data is copied, and it can be determined that the state in which the drone is currently located is a preset state. Wherein, the data includes any one or more flight data of flight altitude, flight direction, flight speed, and acceleration.
可以理解的是,确定所述无人机进入预设状态也可以是无人机是否收到进入传感器校正的指令。例如,当检测到收到无人机需进入指南针校正的指令后,则确定所述无人机进入预设状态。当然,所述确定所述无人机进入预设状态的步骤也可以通过其他方式来触发,在此就不一一列举。It can be understood that determining whether the drone enters the preset state may also be an instruction of whether the drone receives the sensor calibration. For example, when it is detected that the unmanned aerial vehicle needs to enter the compass correction command, it is determined that the drone enters the preset state. Of course, the step of determining that the drone enters a preset state may also be triggered by other means, which are not enumerated here.
S302:如果检测到所述无人机进入预设状态,则向所述云台发送控制指令。S302: If it is detected that the UAV enters a preset state, send a control instruction to the PTZ.
本发明实施例中,所述无人机如果检测到所述无人机进入预设状态,则可以向所述云台发送控制指令。其中,所述控制指令用于指示所述云台从姿态闭环操作模式进入关节角闭环操作模式,并控制所述云台在所述关节角闭环操作模式下从当前关节角运动到目标关节角,并保持在所述目标关节角下,所述关 节角的解释如上所述。在一个实施例中,所述目标关节角为0度。In the embodiment of the present invention, if the UAV detects that the UAV enters a preset state, the UAV may send a control instruction to the PTZ. The control instruction is used to instruct the pan/tilt to enter a joint angle closed-loop operation mode from the attitude closed-loop operation mode, and control the pan-tilt to move from the current joint angle to the target joint angle in the joint angle closed-loop operation mode, And remaining under the target joint angle, the joint angle is explained as described above. In one embodiment, the target joint angle is 0 degrees.
S303:获取所述云台当前关节角。S303: Acquire a current joint angle of the gimbal.
本发明实施例中,无人机可以获取所述云台当前关节角,所述关节角的解释如上所述。例如,所述无人机在发送所述控制指令给所述云台之后,可以获取到所述云台当前的云台轴相对于所述云台的关节坐标系的关节角,如关节角为3°。In the embodiment of the present invention, the UAV can acquire the current joint angle of the gimbal, and the interpretation of the joint angle is as described above. For example, after the drone sends the control command to the pan/tilt, the joint angle of the current pan/tilt axis of the gimbal relative to the joint coordinate system of the gimbal may be acquired, for example, the joint angle is 3°.
S304:根据所述云台当前关节角和目标关节角,规划所述云台的运动曲线。S304: Plan a motion curve of the pan/tilt according to the current joint angle of the gimbal and the target joint angle.
本发明实施例中,所述无人机在发送所述控制指令给所述云台并获取到所述云台当前关节角和所述目标关节角之后,可以根据所述云台当前关节角和所述目标关节角,规划所述云台的运动曲线。其中,所述运动曲线可以是梯形的运动曲线、也可以是其他形状的运动曲线,此处本发明实施例不做限定,只需要满足将云台从当前关节角所对应的位置平滑的调节到目标关节角所对应的位置。In the embodiment of the present invention, after the UAV sends the control command to the PTZ and obtains the current joint angle of the PTZ and the target joint angle, the UAV may be based on the current joint angle of the PTZ. The target joint angle is planned for the movement curve of the gimbal. The motion curve may be a trapezoidal motion curve or a motion curve of other shapes. The embodiment of the present invention is not limited, and only needs to meet the smooth adjustment of the position of the gimbal from the current joint angle to The position corresponding to the target joint angle.
在一个实施例中,所述无人机可以通过确定所述云台的运动参数来规划所述云台的运动曲线,具体地,所述无人机可以根据所述云台当前关节角和所述目标关节角,确定所述云台的运动参数,并根据所述运动参数规划所述云台的运动曲线。In an embodiment, the drone may plan a motion curve of the pan/tilt by determining a motion parameter of the pan/tilt. Specifically, the drone may be based on a current joint angle and a location of the gimbal. Describe a target joint angle, determine a motion parameter of the pan/tilt, and plan a motion curve of the pan/tilt according to the motion parameter.
在一个实施例中,所述云台的运动参数可以包括运动时间、角速度、角加速度中的任意一项或多项,所述无人机可以根据所述云台运动时间、角速度、角加速度中的任意一项或多项,规划所述云台的运动曲线。例如,假设所述无人机获取到所述云台当前关节角为30°,所述目标关节角为0°,则所述无人机控制所述云台从当前关节角30°所对应的位置运动至所述目标关节角0°所对应的位置需要转动的角度为30°,假设设定所述云台的运动参数为:完成所述云台运动的时间信息为10s,前2.5s内角加速度为恒定的1.6m/s 2,中间5s以恒定角加速度运动,后面2.5s内角加速度为-1.6m/s 2。所述无人机可以根据设定的所述云台的这些运动参数,规划出所述云台从当前关节角30°运动到所述目标关节角0°的运动曲线。 In an embodiment, the motion parameter of the pan/tilt may include any one or more of a motion time, an angular velocity, and an angular acceleration, and the drone may be according to the pan/tilt motion time, the angular velocity, and the angular acceleration. Plan any one or more of the motion curves of the gimbal. For example, if the drone acquires the current joint angle of the gimbal is 30° and the target joint angle is 0°, the drone controls the corresponding position of the gimbal from the current joint angle of 30°. The position corresponding to the target joint angle 0° needs to be rotated by 30°. It is assumed that the motion parameter of the pan/tilt is set to: the time information for completing the pan/tilt movement is 10s, and the first 2.5s inner angle The acceleration is constant at 1.6 m/s 2 , the middle 5 s is moving at a constant angular acceleration, and the angular acceleration in the latter 2.5 s is -1.6 m/s 2 . The drone may plan a motion curve of the pan/tilt moving from a current joint angle of 30° to the target joint angle of 0° according to the set motion parameters of the pan/tilt.
在一个实施例中,目标关节角也可以是云台当前关节角。当所述目标关节角为云台当前关节角时,则无人机进入预设状态时,云台进入关节角闭环操作模式,无人机在预设状态中时,云台保持在当前关节角。In one embodiment, the target joint angle may also be the current joint angle of the gimbal. When the target joint angle is the current joint angle of the gimbal, when the drone enters the preset state, the gimbal enters the joint angle closed-loop operation mode, and when the drone is in the preset state, the gimbal maintains the current joint angle .
S305:根据所述运动曲线,控制所述云台从所述当前关节角运动至所述目标关节角。S305: Control, according to the motion curve, the pan/tilt moving from the current joint angle to the target joint angle.
本发明实施例中,所述无人机在对所述云台的运动曲线进行规划之后,可以控制所述云台按照所规划的运动曲线从所述当前关节角运动到所述目标关节角。例如,假设所述无人机规划的运动曲线为一个梯形运动曲线,则所述无人机可以根据规划的所述梯形运动曲线,控制所述云台从所述当前关节角3°所对应的位置平滑地运动至所述目标关节角0°所对应的位置。In the embodiment of the present invention, after planning the motion curve of the pan/tilt, the drone may control the pan/tilt to move from the current joint angle to the target joint angle according to the planned motion curve. For example, if the motion curve planned by the drone is a trapezoidal motion curve, the drone may control the pan/tilt corresponding to the current joint angle of 3° according to the planned trapezoidal motion curve. The position is smoothly moved to a position corresponding to the target joint angle of 0°.
在一个实施例中,如果所述无人机检测到所述无人机的预设的存储装置中的数据停止被拷取,则所述无人机可以确定所述无人机的所述预设状态结束,并向所述云台发送结束指令,以控制所述云台从所述关节角闭环操作模式进入姿态闭环操作模式。其中,在所述姿态闭环操作模式下所述云台的姿态角为所述云台进入所述关节角闭环操作模式之前的姿态角或者预设的姿态角。在一个实施例中,所述无人机可以控制所述云台从所述目标关节角所对应的位置运动到所述姿态闭环操作模式下所述姿态角或预设的姿态角所对应的位置。在其它实施例中,当无人机检测到所述无人机的所述预设状态结束,也可以控制所述无人机或云台重新上电。In one embodiment, if the drone detects that data in the preset storage device of the drone stops being copied, the drone may determine the pre-determination of the drone The state is ended, and an end command is sent to the pan/tilt to control the pan/tilt to enter the attitude closed-loop mode of operation from the joint angle closed-loop mode of operation. The attitude angle of the pan/tilt in the attitude closed-loop operation mode is an attitude angle or a preset attitude angle before the pan-tilt enters the closed-loop operation mode of the joint angle. In one embodiment, the drone may control the position of the pan/tilt from the position corresponding to the target joint angle to the position corresponding to the attitude angle or the preset attitude angle in the attitude closed-loop operation mode. . In other embodiments, when the drone detects that the preset state of the drone is over, the drone or pan/tilt can also be controlled to be powered back on.
本发明实施例中,无人机通过检测无人机当前所处的状态,如果检测到所述无人机进入预设状态,则向所述云台发送控制指令,以指示所述云台从姿态闭环操作模式进入关节角闭环操作模式并在所述关节角闭环操作模式下从当前关节角运动到所述目标关节角,并在后续拷取数据的过程中,保持在所述目标关节角的位置。通过控制云台从所述当前关节角运动到目标关节角的这种方式,可以有效地保证云台不达到限位位置,实现对云台的保护控制,保证了云台的安全。In the embodiment of the present invention, the UAV detects the current state of the UAV, and if it detects that the UAV enters the preset state, sends a control command to the PTZ to indicate the PTZ The attitude closed loop mode of operation enters a joint angle closed loop mode of operation and moves from the current joint angle to the target joint angle in the joint angle closed loop mode of operation and remains at the target joint angle during subsequent copying of the data position. By controlling the movement of the gimbal from the current joint angle to the target joint angle, it is possible to effectively ensure that the gimbal does not reach the limit position, realize the protection control of the gimbal, and ensure the safety of the gimbal.
请参见图4,图4是本发明实施例提供的又一种云台控制方法的流程示意图,所述方法可以由云台执行。具体地,本发明实施例的所述方法包括如下步骤。Referring to FIG. 4, FIG. 4 is a schematic flowchart diagram of still another method for controlling a PTZ according to an embodiment of the present invention, where the method may be performed by a PTZ. Specifically, the method of the embodiment of the present invention includes the following steps.
S401:当无人机处于预设状态时,接收控制指令。S401: Receive a control instruction when the drone is in a preset state.
本发明实施例中,所述云台可以接收无人机处于预设状态时发送的控制指令;或者,所述云台可以接收用户输入的控制指令。其中,所述控制指令用于控制所述云台从姿态闭环操作模式进入关节角闭环操作模式,所述云台在所述 关节角闭环操作模式下从当前关节角运动到目标关节角。在一个实施例中,所述云台在接收到所述控制指令之后,可以通过所述云台的角度传感器获取所述云台当前关节角。例如,所述云台在接收到所述控制指令之后,可以通过所述角度传感器获取到所述云台当前的云台轴相对于所述云台的关节坐标系的关节角为3°。In the embodiment of the present invention, the pan/tilt may receive a control instruction sent when the drone is in a preset state; or the pan/tilt may receive a control instruction input by the user. The control command is configured to control the pan/tilt to enter a joint angle closed-loop operation mode from the attitude closed-loop operation mode, and the pan-tilt moves from the current joint angle to the target joint angle in the joint-angle closed-loop operation mode. In an embodiment, after receiving the control instruction, the pan/tilt may acquire the current joint angle of the gimbal through an angle sensor of the pan/tilt. For example, after receiving the control instruction, the pan/tilt may acquire, by the angle sensor, a joint angle of the current pan-tilt axis of the gimbal relative to the joint coordinate system of the pan-tilt head by 3°.
S402:控制所述云台从当前关节角运动到目标关节角,并保持在所述目标关节角下。S402: Control the pan/tilt to move from the current joint angle to the target joint angle and keep under the target joint angle.
本发明实施例中,所述云台可以根据所述控制指令,控制所述云台从姿态闭环操作模式进入关节角闭环操作模式,所述云台在所述关节角闭环操作模式下从当前关节角运动到目标关节角,并在后续数据拷贝的过程中,云台保持在所述目标关节角下。其中,所述关节角的解释如上所述。在一个实施例中,所述目标关节角为0度。In the embodiment of the present invention, the pan/tilt may control the pan/tilt to enter a joint angle closed-loop operation mode from the attitude closed-loop operation mode according to the control instruction, and the pan-tilt is from the current joint in the joint-angle closed-loop operation mode. The horn moves to the target joint angle, and during the subsequent copying of the data, the gimbal remains below the target joint angle. Here, the explanation of the joint angle is as described above. In one embodiment, the target joint angle is 0 degrees.
在一个实施例中,目标关节角也可以是云台当前关节角。当所述目标关节角为云台当前关节角时,则无人机进入预设状态时,云台进入关节角闭环操作模式,无人机在预设状态中时,云台保持在当前关节角。In one embodiment, the target joint angle may also be the current joint angle of the gimbal. When the target joint angle is the current joint angle of the gimbal, when the drone enters the preset state, the gimbal enters the joint angle closed-loop operation mode, and when the drone is in the preset state, the gimbal maintains the current joint angle .
在一个实施例中,所述云台可以接收结束指令,并在接收到所述结束指令时控制所述云台从所述关节角闭环操作模式进入姿态闭环操作模式,以及控制所述云台从所述目标关节角运动到所述姿态闭环操作模式下的姿态角或预设的姿态角,或控制所述云台重新上电。其中,所述结束指令可以是所述无人机发送的;或者所述结束指令可以是用户输入的。所述结束指令是用于通知所述云台所述无人机的预设状态结束。In one embodiment, the pan/tilt may receive an end command, and when the end command is received, control the pan-tilt from the joint angle closed-loop operation mode to the attitude closed-loop operation mode, and control the pan-tilt The target joint angle is moved to an attitude angle or a preset attitude angle in the attitude closed loop operation mode, or the pan/tilt is controlled to be powered on again. The end instruction may be sent by the drone; or the end instruction may be input by a user. The end instruction is used to notify the cloud station that the preset state of the drone is over.
在一个实施例中,如果所述云台接收到无人机发送的结束指令,则可以控制所述云台从所述关节角闭环操作模式进入姿态闭环操作模式。其中,在所述姿态闭环操作模式下所述云台的姿态角为所述云台进入所述关节角闭环操作模式之前的姿态角或预设的姿态角。在一个实施例中,所述云台可以控制所述云台从所述目标关节角所对应的位置运动到所述姿态闭环操作模式下所述姿态角所对应的位置。In one embodiment, if the pan/tilt receives an end command sent by the drone, the pan/tilt may be controlled to enter the attitude closed-loop mode of operation from the joint angle closed-loop mode of operation. The attitude angle of the pan/tilt in the attitude closed-loop operation mode is an attitude angle or a preset attitude angle before the pan-tilt enters the closed-loop operation mode of the joint angle. In one embodiment, the pan/tilt may control the position of the pan/tilt from the position corresponding to the target joint angle to the position corresponding to the attitude angle in the attitude closed-loop operation mode.
本发明实施例中,云台通过接收无人机在预设状态下发送的控制指令,控制所述云台从当前关节角运动到目标关节角,并在后续数据拷贝的过程中,保持在所述目标关节角的位置。通过控制所述云台从所述当前关节角运动到目标 关节角的这种方式,可以有效地保证云台不达到限位位置,实现对云台的保护控制,保证了云台的安全。In the embodiment of the present invention, the cloud platform controls the pan-tilt to move from the current joint angle to the target joint angle by receiving a control command sent by the drone in a preset state, and remains in the process of subsequent data copying. The position of the target joint angle. By controlling the movement of the gimbal from the current joint angle to the target joint angle, it is possible to effectively ensure that the gimbal does not reach the limit position, realize the protection control of the gimbal, and ensure the safety of the gimbal.
请参见图5,图5是本发明实施例提供的又一种云台控制方法的流程示意图,所述方法可以由云台执行。本发明实施例与图4所对应实施例的区别在于,云台可以根据获取到的所述云台当前关节角和所述目标关节角,并规划所述云台的运动曲线。具体地,本发明实施例的所述方法包括如下步骤。Referring to FIG. 5, FIG. 5 is a schematic flowchart diagram of still another method for controlling a PTZ according to an embodiment of the present invention, where the method may be performed by a PTZ. The difference between the embodiment of the present invention and the corresponding embodiment of FIG. 4 is that the pan/tilt can plan the motion curve of the pan/tilt according to the acquired current joint angle of the gimbal and the target joint angle. Specifically, the method of the embodiment of the present invention includes the following steps.
S501:当无人机处于预设状态时,接收控制指令。S501: Receive a control command when the drone is in a preset state.
本发明实施例中,所述云台可以接收无人机在进入预设状态之后发送给所述云台的控制指令;或者,所述云台可以接收用户输入的控制指令。其中,所述控制指令用于控制所述云台从姿态闭环操作模式进入关节角闭环操作模式,所述云台在所述关节角闭环操作模式下从当前关节角运动到目标关节角。In the embodiment of the present invention, the pan/tilt may receive a control instruction sent by the drone to the pan/tilt after entering the preset state; or the pan/tilt may receive a control instruction input by the user. The control command is configured to control the pan/tilt to enter a joint angle closed-loop operation mode from the attitude closed-loop operation mode, and the pan-tilt moves from the current joint angle to the target joint angle in the joint-angle closed-loop operation mode.
S502:获取所述云台当前关节角。S502: Acquire a current joint angle of the gimbal.
本发明实施例中,所述云台在接收到关于从姿态闭环操作模式进入关节角闭环操作模式,并在所述关节角闭环操作模式下从当前关节角运动到目标关节角的所述控制指令之后,可以通过所述云台的角度传感器获取所述云台当前关节角,其中,所述角度传感器可以为霍尔传感器、磁编码器。例如,所述云台在接收到所述控制指令之后,可以通过所述角度传感器获取到所述云台当前的云台轴相对于所述云台的关节坐标系的关节角为3°。In the embodiment of the present invention, the pan/tilt receives the control instruction about moving from the attitude closed loop operation mode to the joint angle closed loop operation mode, and moving from the current joint angle to the target joint angle in the joint angle closed loop operation mode. Thereafter, the current joint angle of the pan/tilt head may be acquired by an angle sensor of the pan/tilt head, wherein the angle sensor may be a Hall sensor or a magnetic encoder. For example, after receiving the control instruction, the pan/tilt may acquire, by the angle sensor, a joint angle of the current pan-tilt axis of the gimbal relative to the joint coordinate system of the pan-tilt head by 3°.
S503:根据所述云台当前关节角和目标关节角,规划所述云台的运动曲线。S503: Plan a motion curve of the pan/tilt according to the current joint angle of the gimbal and the target joint angle.
本发明实施例中,所述云台可以根据获取到的所述云台当前关节角和所述目标关节角,规划所述云台的运动曲线。其中,所述运动曲线的解释如上所述,此处不再赘述。In the embodiment of the present invention, the pan/tilt may plan the motion curve of the pan/tilt according to the acquired current joint angle of the gimbal and the target joint angle. Wherein, the explanation of the motion curve is as described above, and details are not described herein again.
在一个实施例中,所述云台可以通过确定所述云台的运动参数来规划所述云台的运动曲线,所述云台在确定所述云台的运动曲线的过程中,可以根据所述云台当前关节角和所述目标关节角,确定所述云台的运动参数,并根据所述云台的运动参数,规划所述云台的运动曲线。其中,所述运动参数可以包括运动时间、角速度、角加速度中的任意一项或多项。例如,所述云台可以根据所述云台运动的运动时间、角速度、角加速度中的任意一项或多项,规划所述云台的运动曲线。例如,假设所述云台获取到所述云台当前关节角为30°,所述目标关节角为0°,则所述云台控制所述云台从当前关节角30°所对应的位置运 动至所述目标关节角0°所对应的位置需要转动的角度为30°。假设设定所述云台的运动参数为:完成所述云台运动的时间信息为10s,前2.5s内角加速度为恒定的1.6m/s 2,中间5s以恒定角加速度运动,后面2.5s内角加速度为-1.6m/s 2。所述云台可以根据设定的所述云台的这些运动参数,规划出所述云台从当前关节角为30°运动到所述目标关节角为0°的运动曲线。 In an embodiment, the pan/tilt may plan a motion curve of the pan/tilt head by determining a motion parameter of the pan/tilt head, and the pan-tilt may determine a motion curve of the pan-tilt Determining the current joint angle of the gimbal and the target joint angle, determining a motion parameter of the pan/tilt, and planning a motion curve of the pan/tilt according to the motion parameter of the pan/tilt. The motion parameter may include any one or more of a motion time, an angular velocity, and an angular acceleration. For example, the pan/tilt may plan the motion curve of the pan/tilt according to any one or more of the motion time, the angular velocity, and the angular acceleration of the pan-tilt movement. For example, if the pan/tilt acquires the current joint angle of the pan/tilt head at 30° and the target joint angle is 0°, the pan/tilt head controls the pan/tilt head to move from a position corresponding to the current joint angle of 30°. The position corresponding to the target joint angle of 0° needs to be rotated at an angle of 30°. It is assumed that the motion parameter of the pan/tilt is set as follows: the time information for completing the pan-tilt movement is 10 s, the angular acceleration within the first 2.5 s is constant 1.6 m/s 2 , the middle 5 s is moving at a constant angular acceleration, and the latter is within 2.5 s. The acceleration is -1.6m/s 2 . The pan/tilt may plan a motion curve of the pan/tilt from a current joint angle of 30° to a target joint angle of 0° according to the set motion parameters of the pan/tilt.
在一个实施例中,目标关节角也可以是云台当前关节角。当所述目标关节角为云台当前关节角时,则无人机进入预设状态时,云台进入关节角闭环操作模式,无人机在预设状态中时,云台保持在当前关节角。In one embodiment, the target joint angle may also be the current joint angle of the gimbal. When the target joint angle is the current joint angle of the gimbal, when the drone enters the preset state, the gimbal enters the joint angle closed-loop operation mode, and when the drone is in the preset state, the gimbal maintains the current joint angle .
S504:控制所述云台从当前关节角运动到目标关节角,并保持在所述目标关节角下。S504: Control the pan/tilt to move from the current joint angle to the target joint angle and keep under the target joint angle.
本发明实施例中,所述云台可以根据规划得到的所述云台的运动曲线,控制所述云台从所述当前关节角所对应的位置平滑地运动至所述目标关节角所对应的位置。In the embodiment of the present invention, the pan/tilt may control the pan/tilt to smoothly move from the position corresponding to the current joint angle to the target joint angle according to the planned motion curve of the pan/tilt head. position.
在一个实施例中,所述云台可以接收结束指令,并在接收到所述结束指令时控制所述云台从所述关节角闭环操作模式进入姿态闭环操作模式,以及控制所述云台从所述目标关节角运动到所述姿态闭环操作模式下的姿态角或预设的姿态角,或控制所述云台重新上电。其中,所述结束指令可以是所述无人机发送的;或者所述结束指令可以是用户输入的。所述结束指令的解释如上所述。In one embodiment, the pan/tilt may receive an end command, and when the end command is received, control the pan-tilt from the joint angle closed-loop operation mode to the attitude closed-loop operation mode, and control the pan-tilt The target joint angle is moved to an attitude angle or a preset attitude angle in the attitude closed loop operation mode, or the pan/tilt is controlled to be powered on again. The end instruction may be sent by the drone; or the end instruction may be input by a user. The explanation of the end instruction is as described above.
在一个实施例中,所述云台可以接收所述无人机发送的结束指令,并在接收到所述结束指令时控制所述云台从所述关节角闭环操作模式进入姿态闭环操作模式,并控制所述云台从所述目标关节角运动到所述姿态闭环操作模式下的姿态角或预设的姿态角。其中,在所述姿态闭环操作模式下所述云台的姿态角为所述云台进入所述关节角闭环操作模式之前的姿态角或预设的姿态角。In an embodiment, the pan/tilt may receive an end command sent by the drone, and when the end command is received, control the pan/tilt to enter a gesture closed-loop operation mode from the joint angle closed-loop operation mode, And controlling an attitude angle or a preset attitude angle of the pan/tilt moving from the target joint angle to the attitude closed-loop operation mode. The attitude angle of the pan/tilt in the attitude closed-loop operation mode is an attitude angle or a preset attitude angle before the pan-tilt enters the closed-loop operation mode of the joint angle.
本发明实施例中,云台通过所述无人机在预设状态下发送的控制指令,获取所述云台当前关节角,并所述云台当前关节角和目标关节角,规划所述云台的运动曲线,从而控制所述云台从当前关节角运动到目标关节角,并在后续数据拷贝的过程中,保持在所述目标关节角的位置。通过这种方式,实现对云台的保护控制,保证了云台的安全性。In the embodiment of the present invention, the pan/tilt obtains the current joint angle of the gimbal by the control instruction sent by the drone in a preset state, and the current joint angle and the target joint angle of the gimbal, and the cloud is planned. The motion curve of the table, thereby controlling the pan/tilt movement from the current joint angle to the target joint angle, and maintaining the position of the target joint angle during subsequent data copying. In this way, the protection and control of the gimbal is realized, and the security of the gimbal is guaranteed.
请参见图6,图6是本发明实施例提供的一种无人机的示意框图。如图6所示的本发明实施例中的无人机可以包括:一个或多个处理器601;一个或多 个输入设备602,一个或多个输出设备603和存储器604。上述处理器601、输入设备602、输出设备603和存储器604通过总线605连接。存储器604用于存储计算机程序,所述计算机程序包括程序指令,处理器601用于执行存储器604存储的程序指令。其中,处理器601被配置用于调用所述程序指令执行:Referring to FIG. 6, FIG. 6 is a schematic block diagram of a drone according to an embodiment of the present invention. The drone in the embodiment of the present invention as shown in FIG. 6 may include: one or
检测无人机是否进入预设状态;Detecting whether the drone enters a preset state;
如果检测到所述无人机进入预设状态,则向所述云台发送控制指令;If it is detected that the drone enters a preset state, sending a control instruction to the pan/tilt;
其中,所述控制指令用于指示所述云台从当前关节角运动到目标关节角,并保持在所述目标关节角下,所述关节角是指云台轴相对于所述云台的关节坐标系的角度。The control command is used to indicate that the gimbal moves from a current joint angle to a target joint angle and is maintained under the target joint angle, and the joint angle refers to a joint of the pan-tilt axis relative to the pan-tilt The angle of the coordinate system.
进一步地,所述目标关节角为0度或云台的当前关节角或其它预设的关节角。Further, the target joint angle is 0 degrees or the current joint angle of the gimbal or other preset joint angle.
进一步地,所述预设状态为所述无人机的存储装置中的数据是否被拷取。Further, the preset state is whether data in the storage device of the drone is copied.
进一步地,所述控制指令还用于指示所述云台从姿态闭环操作模式进入关节角闭环操作模式,所述云台在所述关节角闭环操作模式下从当前关节角运动到目标关节角。Further, the control instruction is further configured to instruct the pan/tilt to enter a joint angle closed-loop operation mode from the attitude closed-loop operation mode, and the pan-tilt moves from the current joint angle to the target joint angle in the joint-angle closed-loop operation mode.
进一步地,所述数据包括飞行高度、飞行方向、飞行速度、加速度中任意一项或多项飞行数据。Further, the data includes any one or more of flight data of flight altitude, flight direction, flight speed, and acceleration.
进一步地,所述处理器601调用存储器604中存储的程序指令还用于执行如下步骤:Further, the
获取所述云台当前关节角。Obtain the current joint angle of the gimbal.
进一步地,所述处理器601调用存储器604中存储的程序指令用于执行如下步骤:Further, the
根据所述云台当前关节角和目标关节角,规划所述云台的运动曲线;Planning a motion curve of the pan/tilt according to a current joint angle of the gimbal and a target joint angle;
根据所述运动曲线,控制所述云台从所述当前关节角运动到所述目标关节角。And controlling the pan/tilt to move from the current joint angle to the target joint angle according to the motion curve.
进一步地,所述处理器601调用存储器604中存储的程序指令用于执行如下步骤:Further, the
根据所述云台当前关节角和目标关节角,确定所述云台的运动参数;Determining a motion parameter of the pan/tilt according to a current joint angle of the pan/tilt and a target joint angle;
根据所述运动参数,规划所述云台的运动曲线。A motion curve of the pan/tilt is planned according to the motion parameter.
进一步地,所述运动参数包括运动时间、角速度、角加速度中的一项或多项。Further, the motion parameter includes one or more of a motion time, an angular velocity, and an angular acceleration.
进一步地,所述处理器601调用存储器604中存储的程序指令用于执行如下步骤:Further, the
如果检测到所述无人机的所述预设状态结束,则向所述云台发送结束指令,以控制所述云台从所述关节角闭环操作模式进入姿态闭环操作模式,或者控制所述无人机或云台重新上电。If it is detected that the preset state of the drone is over, sending an end instruction to the pan/tilt to control the pan-tilt to enter the attitude closed-loop operation mode from the joint angle closed-loop operation mode, or control the The drone or pan/tilt is powered back on.
本发明实施例中,无人机通过检测无人机当前所处的状态,如果检测到所述无人机进入预设状态,则向所述云台发送控制指令,以指示所述云台从姿态闭环操作模式进入关节角闭环操作模式,以及在所述关节角闭环操作模式下从所述当前关节角运动到所述目标关节角,并在后续拷取数据的过程中,保持在所述目标关节角的位置。通过控制云台从所述当前关节角运动并保持在目标关节角的这种方式,可以有效地保证云台不达到限位位置,实现对云台的保护控制,保证了云台的安全。In the embodiment of the present invention, the UAV detects the current state of the UAV, and if it detects that the UAV enters the preset state, sends a control command to the PTZ to indicate the PTZ The attitude closed loop mode of operation enters a joint angle closed loop mode of operation and moves from the current joint angle to the target joint angle in the joint angle closed loop mode of operation and remains at the target during subsequent copying of data The position of the joint angle. By controlling the movement of the gimbal from the current joint angle and maintaining the target joint angle, it is possible to effectively ensure that the gimbal does not reach the limit position, realize the protection control of the gimbal, and ensure the safety of the gimbal.
应当理解,在本发明实施例中,所称处理器601可以是中央处理单元(Central Processing Unit,CPU),该处理器还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。It should be understood that, in the embodiment of the present invention, the
输入设备602可以包括触控板、麦克风等,输出设备603可以包括显示器(LCD等)、扬声器等。
该存储器604可以包括只读存储器和随机存取存储器,并向处理器601提供指令和数据。存储器604的一部分还可以包括非易失性随机存取存储器。例如,存储器604还可以存储设备类型的信息。The
具体实现中,本发明实施例中所描述的处理器601、输入设备602、输出设备603可执行本发明实施例提供的图1、图2或图3实施例中所描述的云台控制方法的实现方式,也可执行本发明实施例所描述的无人机的实现方式,在 此不再赘述。In a specific implementation, the
请参见图7,图7是本发明实施例提供的一种云台的示意框图。如图7所示的本发明实施例中的云台可以包括:一个或多个处理器701;一个或多个角度传感器702。上述处理器701、角度传感器702通过总线703连接。其中,处理器701用于执行如下步骤:Referring to FIG. 7, FIG. 7 is a schematic block diagram of a cloud platform according to an embodiment of the present invention. The pan/tilt in the embodiment of the present invention as shown in FIG. 7 may include: one or
当所述无人机处于预设状态时,接收控制指令;Receiving a control instruction when the drone is in a preset state;
控制所述云台从当前关节角运动到目标关节角,并保持在所述目标关节角下,所述关节角是指云台轴相对于所述云台的关节坐标系的角度。The pan/tilt is controlled to move from the current joint angle to the target joint angle and is maintained at the target joint angle, which is the angle of the pan-tilt axis relative to the joint coordinate system of the pan-tilt.
进一步地,所述目标关节角为0度或云台的当前关节角或其它预设的关节角。Further, the target joint angle is 0 degrees or the current joint angle of the gimbal or other preset joint angle.
进一步地,所述处理器701用于执行如下步骤:Further, the
接收无人机发送的控制指令;Receiving a control command sent by the drone;
或者,接收用户输入的控制指令。Or, receive a control command input by the user.
进一步地,所述控制指令用于控制所述云台从姿态闭环操作模式进入关节角闭环操作模式,所述云台在所述关节角闭环操作模式下从当前关节角运动到目标关节角。Further, the control instruction is used to control the pan/tilt to enter a joint angle closed-loop operation mode from the attitude closed-loop operation mode, and the pan-tilt moves from the current joint angle to the target joint angle in the joint-angle closed-loop operation mode.
进一步地,所述处理器701用于执行如下步骤:Further, the
通过所述角度传感器702获取所述云台当前关节角。The current joint angle of the gimbal is acquired by the
进一步地,所述角度传感器702为霍尔传感器、或磁编码器。Further, the
进一步地,所述处理器701用于执行如下步骤:Further, the
根据所述云台当前关节角和目标关节角,规划所述云台的运动曲线;Planning a motion curve of the pan/tilt according to a current joint angle of the gimbal and a target joint angle;
根据所述运动曲线,控制所述云台从所述当前关节角运动到所述目标关节角。And controlling the pan/tilt to move from the current joint angle to the target joint angle according to the motion curve.
进一步地,所述处理器701用于执行如下步骤:Further, the
根据所述云台当前关节角和目标关节角,确定所述云台的运动参数;Determining a motion parameter of the pan/tilt according to a current joint angle of the pan/tilt and a target joint angle;
根据所述运动参数,规划所述云台的运动曲线。A motion curve of the pan/tilt is planned according to the motion parameter.
进一步地,所述运动参数包括时间信息、角速度、角加速度中的一项或多项。Further, the motion parameter includes one or more of time information, angular velocity, and angular acceleration.
进一步地,所述处理器701用于执行如下步骤:Further, the
如果接收到所述无人机发送的结束指令,则控制所述云台从所述关节角闭 环操作模式进入姿态闭环操作模式或控制所述云台重新上电。If the end command sent by the drone is received, the pan/tilt is controlled to enter the attitude closed loop operation mode from the joint angle closed loop operation mode or to control the pan/tilt to be powered on again.
本发明实施例中,云台通过接收无人机在预设状态下发送的控制指令,控制所述云台从当前关节角运动到目标关节角,并在后续数据拷贝的过程中,保持在所述目标关节角的位置。通过控制所述云台从所述当前关节角运动到目标关节角的这种方式,可以有效地保证云台不达到限位位置,实现对云台的保护控制,保证了云台的安全。In the embodiment of the present invention, the cloud platform controls the pan-tilt to move from the current joint angle to the target joint angle by receiving a control command sent by the drone in a preset state, and remains in the process of subsequent data copying. The position of the target joint angle. By controlling the movement of the gimbal from the current joint angle to the target joint angle, it is possible to effectively ensure that the gimbal does not reach the limit position, realize the protection control of the gimbal, and ensure the safety of the gimbal.
具体实现中,本发明实施例中所描述的处理器701、角度传感器702可执行本发明实施例提供的图4或图5实施例中所描述的云台控制方法的实现方式,也可执行本发明实施例所描述的云台的实现方式,在此不再赘述。In a specific implementation, the
本发明实施例还提供了一种无人机,包括:机身;设置在机身上的动力系统,用于提供飞行动力;云台,装设在所述机身上;处理器,设置在所述机身内,所述处理器,用于检测无人机是否进入预设状态;如果检测到所述无人机进入预设状态,则向所述云台发送控制指令。An embodiment of the present invention further provides a drone, including: a fuselage; a power system disposed on the fuselage for providing flight power; a pan/tilt head mounted on the body; and a processor disposed at In the body, the processor is configured to detect whether the drone enters a preset state; if the drone is detected to enter a preset state, send a control instruction to the pan/tilt.
所述无人机中处理器的具体实现可参考上述图2或图3所对应实施例的云台控制方法,在此不再赘述。其中,无人机可以是四旋翼无人机、六旋翼无人机、多旋翼无人机等类型的飞行器。所述动力系统可以包括电机、电调、螺旋桨等结构,其中,电机负责带动飞行器螺旋桨,电调负责控制飞行器的电机的转速。For the specific implementation of the processor in the UAV, reference may be made to the PTZ control method in the embodiment corresponding to FIG. 2 or FIG. 3, and details are not described herein again. Among them, the drone can be a four-rotor UAV, a six-rotor UAV, a multi-rotor UAV, and the like. The power system may include a motor, an ESC, a propeller, etc., wherein the motor is responsible for driving the aircraft propeller, and the ESC is responsible for controlling the speed of the motor of the aircraft.
本发明实施例还提供了一种云台,所述云台挂载与无人机上,包括:云台轴;角度传感器;处理器,所述处理器,用于当所述无人机处于预设状态时,接收控制指令;控制所述云台从当前关节角运动到目标关节角,并保持在所述目标关节角下,所述关节角是指云台轴相对于所述云台的关节坐标系的角度。所述云台中处理器的具体实现可参考上述图4或图5所对应实施例的云台控制方法,在此不再赘述。其中,所述角度传感器可以为霍尔传感器或磁编码器。The embodiment of the present invention further provides a cloud platform, the cloud platform is mounted on the unmanned aerial vehicle, and includes: a pan/tilt axis; an angle sensor; a processor, and the processor is configured to: when the Receiving a control command; controlling the pan-tilt to move from a current joint angle to a target joint angle, and maintaining the target joint angle, the joint angle being a joint of the pan-tilt axis relative to the pan-tilt The angle of the coordinate system. For the specific implementation of the processor in the PTZ, refer to the PTZ control method in the embodiment corresponding to FIG. 4 or FIG. 5, and details are not described herein again. Wherein, the angle sensor may be a Hall sensor or a magnetic encoder.
本发明实施例中还提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时实现本发明图1、图2、图3、图4或图5所对应实施例中描述的云台控制方法,也可实现本发明图6所对应实施例中描述的无人机或图7所对应实施例中描述的云台,在此不再赘述。The embodiment of the present invention further provides a computer readable storage medium, where the computer readable storage medium stores a computer program, and when the computer program is executed by the processor, the present invention implements FIG. 1, FIG. 2, FIG. 3, and FIG. 4 or the PTZ control method described in the embodiment corresponding to FIG. 5, the UAV described in the embodiment corresponding to FIG. 6 or the PTZ described in the embodiment corresponding to FIG. 7 may also be implemented. Narration.
所述计算机可读存储介质可以是前述任一实施例所述的无人机或云台的内部存储单元,例如硬盘或内存。所述计算机可读存储介质也可以是所述无人机或云台的外部存储设备,例如所述设备上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。进一步地,所述计算机可读存储介质还可以既包括所述无人机或云台的内部存储单元也包括外部存储设备。所述计算机可读存储介质用于存储所述计算机程序以及所述无人机或云台所需的其他程序和数据。所述计算机可读存储介质还可以用于暂时地存储已经输出或者将要输出的数据。The computer readable storage medium may be an internal storage unit of a drone or pan/tilt as described in any of the preceding embodiments, such as a hard disk or a memory. The computer readable storage medium may also be an external storage device of the drone or pan/tilt, such as a plug-in hard disk equipped on the device, a smart memory card (SMC), and a secure digital (Secure) Digital, SD) cards, flash cards, etc. Further, the computer readable storage medium may also include both an internal storage unit of the drone or pan/tilt and an external storage device. The computer readable storage medium is for storing the computer program and other programs and data required by the drone or pan/tilt. The computer readable storage medium can also be used to temporarily store data that has been output or is about to be output.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存储记忆体(Random Access Memory,RAM)等。One of ordinary skill in the art can understand that all or part of the process of implementing the foregoing embodiments can be completed by a computer program to instruct related hardware, and the program can be stored in a computer readable storage medium. When executed, the flow of an embodiment of the methods as described above may be included. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).
以上所揭露的仅为本发明部分实施例而已,当然不能以此来限定本发明之权利范围,因此依本发明权利要求所作的等同变化,仍属本发明所涵盖的范围。The above disclosure is only a part of the embodiments of the present invention, and the scope of the present invention is not limited thereto, and thus equivalent changes made in the claims of the present invention are still within the scope of the present invention.
Claims (40)
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| PCT/CN2017/116902 WO2019119201A1 (en) | 2017-12-18 | 2017-12-18 | Gimbal control method, unmanned aerial vehicle, gimbal, and storage medium |
| CN201780012720.1A CN108780328A (en) | 2017-12-18 | 2017-12-18 | A kind of cloud platform control method, unmanned plane, holder and storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| PCT/CN2017/116902 WO2019119201A1 (en) | 2017-12-18 | 2017-12-18 | Gimbal control method, unmanned aerial vehicle, gimbal, and storage medium |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2019119201A1 true WO2019119201A1 (en) | 2019-06-27 |
Family
ID=64034047
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2017/116902 Ceased WO2019119201A1 (en) | 2017-12-18 | 2017-12-18 | Gimbal control method, unmanned aerial vehicle, gimbal, and storage medium |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN108780328A (en) |
| WO (1) | WO2019119201A1 (en) |
Families Citing this family (12)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110832423B (en) * | 2018-11-28 | 2024-06-14 | 深圳市大疆创新科技有限公司 | Control method of pan/tilt platform, pan/tilt platform, mobile platform and computer-readable storage medium |
| WO2020220169A1 (en) * | 2019-04-28 | 2020-11-05 | 深圳市大疆创新科技有限公司 | Gimbal control method and device, mobile platform, and storage medium |
| WO2021026748A1 (en) * | 2019-08-13 | 2021-02-18 | 深圳市大疆创新科技有限公司 | Photography detection method and apparaus, and gimbal, system and storage medium |
| WO2021026791A1 (en) * | 2019-08-13 | 2021-02-18 | 深圳市大疆创新科技有限公司 | Control method, tripod head, mobile platform system, and computer readable storage medium |
| WO2021026752A1 (en) * | 2019-08-13 | 2021-02-18 | 深圳市大疆创新科技有限公司 | Tripod head control method, tripod head, and computer-readable storage medium |
| CN110825124A (en) * | 2019-11-15 | 2020-02-21 | 杭州电子科技大学 | PTZ control method and system |
| CN113692560B (en) * | 2020-03-23 | 2025-04-11 | 深圳市大疆创新科技有限公司 | Control method and device of movable platform, movable platform and storage medium |
| CN112955953A (en) * | 2020-06-05 | 2021-06-11 | 深圳市大疆创新科技有限公司 | Method for eliminating noise of handheld cloud deck, handheld cloud deck and storage medium |
| CN116234751B (en) * | 2020-12-18 | 2025-03-07 | 深圳市大疆创新科技有限公司 | Unmanned aerial vehicle systems and structures |
| WO2022134034A1 (en) * | 2020-12-25 | 2022-06-30 | 深圳市大疆创新科技有限公司 | Cradle head control method and mobile platform |
| CN113093814A (en) * | 2021-04-07 | 2021-07-09 | 浙江大华技术股份有限公司 | Method and device for controlling movement of holder |
| CN114489103B (en) * | 2022-01-21 | 2023-09-08 | 西南交通大学 | Mobile phone unmanned aerial vehicle coupled with single-axis cradle head and control method |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US5331413A (en) * | 1992-09-28 | 1994-07-19 | The United States Of America As Represented By The United States National Aeronautics And Space Administration | Adjustable control station with movable monitors and cameras for viewing systems in robotics and teleoperations |
| US20100152897A1 (en) * | 2008-12-16 | 2010-06-17 | MULLER Jeffrey | Method & apparatus for controlling the attitude of a camera associated with a robotic device |
| CN105116926A (en) * | 2015-08-20 | 2015-12-02 | 深圳一电科技有限公司 | Holder control method and device |
| CN107145157A (en) * | 2017-05-17 | 2017-09-08 | 深圳洲际通航投资控股有限公司 | Unmanned aerial vehicle (UAV) control method and system |
Family Cites Families (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| ES2345995T3 (en) * | 2006-09-15 | 2010-10-07 | Saab Ab | SIMULATION DEVICE AND ON-BOARD SIMULATION PROCEDURE. |
| KR20130111044A (en) * | 2012-03-30 | 2013-10-10 | 세종대학교산학협력단 | Control system and coulomb friction compensation method for uav-mounted camera gimbal subject to coulomb friction |
| WO2014140356A1 (en) * | 2013-03-15 | 2014-09-18 | Freefly Systems Inc. | Method for enabling manual adjustment of a pointing direction of an actively stabilized camera |
| CN103901897B (en) * | 2014-03-14 | 2017-09-26 | 深圳市大疆灵眸科技有限公司 | Control method of cloud platform and control system of cloud platform |
| WO2016000193A1 (en) * | 2014-06-30 | 2016-01-07 | 深圳市大疆创新科技有限公司 | Support parameter adjustment method, device and support device |
| CN104965527B (en) * | 2015-07-03 | 2018-07-10 | 深圳市大疆灵眸科技有限公司 | Cloud platform control method and cloud platform |
| CN205396568U (en) * | 2016-03-03 | 2016-07-27 | 零度智控(北京)智能科技有限公司 | Holder |
| WO2017206072A1 (en) * | 2016-05-31 | 2017-12-07 | 深圳市大疆灵眸科技有限公司 | Pan-tilt control method and apparatus, and pan-tilt |
| CN107074351B (en) * | 2016-09-30 | 2019-08-27 | 深圳市大疆创新科技有限公司 | Control method, device, flight controller and unmanned aerial vehicle of unmanned aerial vehicle |
-
2017
- 2017-12-18 WO PCT/CN2017/116902 patent/WO2019119201A1/en not_active Ceased
- 2017-12-18 CN CN201780012720.1A patent/CN108780328A/en active Pending
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US5331413A (en) * | 1992-09-28 | 1994-07-19 | The United States Of America As Represented By The United States National Aeronautics And Space Administration | Adjustable control station with movable monitors and cameras for viewing systems in robotics and teleoperations |
| US20100152897A1 (en) * | 2008-12-16 | 2010-06-17 | MULLER Jeffrey | Method & apparatus for controlling the attitude of a camera associated with a robotic device |
| CN105116926A (en) * | 2015-08-20 | 2015-12-02 | 深圳一电科技有限公司 | Holder control method and device |
| CN107145157A (en) * | 2017-05-17 | 2017-09-08 | 深圳洲际通航投资控股有限公司 | Unmanned aerial vehicle (UAV) control method and system |
Also Published As
| Publication number | Publication date |
|---|---|
| CN108780328A (en) | 2018-11-09 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN108780328A (en) | A kind of cloud platform control method, unmanned plane, holder and storage medium | |
| US11741842B2 (en) | Virtual wall mapping for aerial vehicle navigation | |
| US11693400B2 (en) | Unmanned aerial vehicle control system, unmanned aerial vehicle control method, and program | |
| CN111684384B (en) | Unmanned aerial vehicle flight control method and device and unmanned aerial vehicle | |
| US11245848B2 (en) | Method of controlling gimbal, gimbal and UAV | |
| WO2018218516A1 (en) | Unmanned aerial vehicle return route planning method and apparatus | |
| CN114578841B (en) | Unmanned aerial vehicle and pan/tilt control method thereof | |
| CN111566009B (en) | Method and apparatus for adjusting flight parameters of an aerial robotic vehicle | |
| WO2018214074A1 (en) | Return control method and apparatus of unmanned aerial vehicle, and unmanned aerial vehicle | |
| CN108281789B (en) | Blind area tracking method and device of directional antenna and mobile tracking system | |
| WO2020191647A1 (en) | Landing control method and flight control device for unmanned aerial vehicle, and unmanned aerial vehicle | |
| WO2020019331A1 (en) | Method for height measurement and compensation by barometer, and unmanned aerial vehicle | |
| US20200062388A1 (en) | Take off and landing system for drone for use with an autonomous vehicle | |
| US20210325886A1 (en) | Photographing method and device | |
| CN110337623A (en) | Cloud platform control method and device, clouds terrace system, unmanned plane and computer readable storage medium | |
| WO2020062255A1 (en) | Photographing control method and unmanned aerial vehicle | |
| JP6281720B2 (en) | Imaging system | |
| WO2018090494A1 (en) | Method and device for controlling apron for unmanned aerial vehicle | |
| WO2018053816A1 (en) | Control method of remote control, and remote control | |
| WO2020233607A1 (en) | Unmanned aerial vehicle control method and apparatus and computer-readable storage medium | |
| CN114270284B (en) | Control device, control method, unmanned aerial vehicle, information processing device, information processing method, and program | |
| WO2020220158A1 (en) | Unmanned aerial vehicle control method, unmanned aerial vehicle, and computer-readable storage medium | |
| CN110291013B (en) | Control method of cradle head, cradle head and unmanned aerial vehicle | |
| US20210223793A1 (en) | Control method and device for mobile platform, and mobile platform | |
| CN108778931A (en) | Rotation control method, control device and aircraft of a camera device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 17935581 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 17935581 Country of ref document: EP Kind code of ref document: A1 |