WO2019126932A1 - Cradle head control method and control device - Google Patents

Cradle head control method and control device Download PDF

Info

Publication number
WO2019126932A1
WO2019126932A1 PCT/CN2017/118272 CN2017118272W WO2019126932A1 WO 2019126932 A1 WO2019126932 A1 WO 2019126932A1 CN 2017118272 W CN2017118272 W CN 2017118272W WO 2019126932 A1 WO2019126932 A1 WO 2019126932A1
Authority
WO
WIPO (PCT)
Prior art keywords
joint angle
axis
range
pan
angle range
Prior art date
Application number
PCT/CN2017/118272
Other languages
French (fr)
Chinese (zh)
Inventor
刘帅
王映知
林光远
Original Assignee
深圳市大疆创新科技有限公司
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by 深圳市大疆创新科技有限公司 filed Critical 深圳市大疆创新科技有限公司
Priority to CN201780018008.2A priority Critical patent/CN109313454A/en
Priority to PCT/CN2017/118272 priority patent/WO2019126932A1/en
Publication of WO2019126932A1 publication Critical patent/WO2019126932A1/en

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05DSYSTEMS FOR CONTROLLING OR REGULATING NON-ELECTRIC VARIABLES
    • G05D3/00Control of position or direction
    • G05D3/12Control of position or direction using feedback

Definitions

  • the present invention relates to the field of control technologies, and in particular, to a control method and a control device for a pan/tilt.
  • the head of the drone generally adopts the architecture of the PTZ processor and the ESC processor.
  • the ESC processor is set on the ESC board.
  • the firmware of the ESC processor is generally upgraded first.
  • upgrade the firmware of the PTZ processor After the firmware upgrade of the PTZ processor is completed in this process, since the firmware upgrade of the ESC processor is completed and the self-test has been completed, the attitude of the PTZ is random, and the axes of the PTZ are not at the joint angle.
  • Zero position hereinafter referred to as "joint angle zero position”
  • the ESC will feed back a large joint angle to the PTZ processor. If the PTZ processor directly uses the joint angle to perform closed-loop adjustment, the cloud
  • the platform may generate a large overshoot during the exercise, that is, the gimbal will reverberate around the expected posture, affecting the user experience.
  • Embodiments of the present invention provide a control method and a control device for a pan/tilt to improve the stability of the pan-tilt motion and reduce overshoot during pan-tilt motion.
  • the invention provides a method for controlling a pan/tilt.
  • the control methods of the gimbal include:
  • the joint angle of the shaft is adjusted to be within the first preset joint angle range.
  • the invention provides a control device for a pan/tilt.
  • the control device includes a memory and a processor.
  • the memory is for storing program code.
  • the processor is configured to execute the program code. When the program code is executed, it is used to perform the following operations:
  • the joint angle of the shaft is adjusted to be within the first preset joint angle range.
  • the control method and the control device of the embodiment of the present invention determine whether the joint angle of the axis of the pan/tilt is within the first preset joint angle range, and is not within the first preset joint angle range. Adjusting the joint angle of the shaft to the first preset joint angle range, thereby avoiding the overshoot that the pan/tilt may generate when moving from the current random attitude to the expected posture after receiving the attitude control amount, preventing the pan/tilt Produce overshoot and reverberation to improve the user experience.
  • FIG. 1 is a flow chart of a control method of some embodiments of the present invention.
  • FIG. 2 is a block diagram of a cloud platform and a control device in accordance with some embodiments of the present invention.
  • FIG. 3 is a flow chart of a control method of some embodiments of the present invention.
  • FIG. 4 is a schematic structural view of a three-axis pan/tilt head according to some embodiments of the present invention.
  • FIG. 5 is a schematic flow chart of a control method according to some embodiments of the present invention.
  • FIG. 6 is a flow chart of a control method of some embodiments of the present invention.
  • FIG. 7 is a schematic diagram of the principle of a control method in accordance with some embodiments of the present invention.
  • FIG. 8 is a schematic diagram of the principle of a control method in accordance with some embodiments of the present invention.
  • FIG. 9 is a flow chart of a control method of some embodiments of the present invention.
  • FIG. 10 is a flow chart of a control method of some embodiments of the present invention.
  • the present invention provides a control method for the pan/tilt head 100.
  • the control method of the cloud platform 100 includes:
  • the present invention also provides a control device 10 for the pan/tilt head 100.
  • the control method of the pan/tilt 100 according to the embodiment of the present invention can be implemented by the control device 10 of the pan/tilt 100 according to the embodiment of the present invention.
  • the control device 10 of the pan/tilt 100 includes a memory 11 and a processor 12.
  • the memory 11 is used to store the program code 111.
  • the processor 12 is operative to execute program code 111 stored in the memory 11.
  • step S1, step S2, and step S3 can be implemented. That is to say, when the program code 111 is executed by the processor 12, the following operations can be implemented:
  • the joint angle of the axis of the pan-tilt head 100 can be detected by an angle sensor, that is, the angle sensor can measure the actual joint angle of each axis of the gimbal, which will be described in detail below.
  • the upgrade is performed by upgrading the PTZ firmware, that is, the PTZ.
  • the processor 12 of 100 is upgraded, wherein the processor 12 can be a pan/tilt processor.
  • the user will inevitably touch the gimbal 100, so that the joint angle of the gimbal 100 is not at the joint angle zero.
  • the user touches the pan/tilt 100 or the gimbal 100 in gravity during the upgrade process. Rotation under action may result in a deviation from the joint angle zero, at which point the ESC may feed back a large joint angle to the processor 12.
  • the subsequent user controls the pan-tilt head 100 to rotate to drive the camera mounted on the pan-tilt head 100 to rotate from the current random posture.
  • the expected attitude there may be a large difference in posture between the expected attitude and the current random attitude.
  • the pan-tilt 100 may first go to the joint angle zero position and then go to the expected attitude.
  • the PTZ 100 goes to the expected attitude, the PTZ 100 will have overshoot and reverberate at the expected posture, which will cause the camera to shoot images with instant jitter, affecting the quality of the shooting and the user experience.
  • the control method and the control device 10 of the pan/tilt 100 determine whether the joint angle of the axis of the pan-tilt 100 is within the first preset joint angle range, and is not in the first When the preset joint angle range is within the range, the joint angle of the shaft is adjusted to be within a first preset joint angle range, wherein the first preset joint angle range may be a range close to the joint angle zero position, thereby preventing the pan/tilt head 100 from being processed.
  • the problem of overshoot and reverberation that may occur when the pan/tilt 100 receives the attitude control amount from the current random posture to the expected posture improves the user experience.
  • the pan/tilt head 100 has a plurality of axes, and the step S1 acquires the joint angle of the axis of the pan-tilt head 100 includes:
  • Step S3 determines whether the joint angle of the shaft is within the first preset joint angle range, including:
  • Step S5 When the joint angle of the shaft is not within the first preset joint angle range, adjusting the joint angle of the shaft to the first preset joint angle range includes:
  • the program code 111 when the program code 111 is executed to implement the step S1 to acquire the joint angle of the axis of the platform 100, the operation of performing the step S11 to acquire the joint angle of each axis of the platform 100 is performed. .
  • the step S31 is performed to determine whether the joint angle of each of the axes is at the first preset joint angle. The operation within the scope.
  • step S5 When the program code 111 is executed to implement the operation of step S5 when the joint angle of the shaft is not within the first preset joint angle range, when the joint angle of the shaft is adjusted to within the first preset joint angle range, the step S51 is performed.
  • the joint angle of one or more axes of the pan-tilt 100 is not within the range of the first predetermined joint angle, the joint angle of one or more axes is adjusted to the operation within the first predetermined joint angle range.
  • the platform 100 has three, namely a Roll axis, a Yaw axis, and a Pitch axis.
  • the pan-tilt 100 rotates around the Roll axis, the pan-tilt 100 moves in the roll direction; when the pan-tilt 100 rotates around the Yaw axis, the pan-tilt 100 moves in the yaw direction; when the pan-tilt 100 rotates around the Pitch axis, the pan-tilt 100 is pitched Move in the direction.
  • the joint angle of the axis of the pan/tilt head 100 in step S1 is not within the first preset joint angle range, and the joint angle of any one or more of the Roll axis, the Yaw axis or the Pitch axis of the pan-tilt head 100 is not in the first Within a predetermined joint angle range.
  • the joint angle of the Roll axis of the pan-tilt 100 is not within the first preset joint angle range, or the joint angle of the Yaw axis of the pan-tilt 100 is not within the first preset joint angle range, or the pan-tilt 100
  • the joint angle of the Pitch axis is not within the first preset joint angle range, or the joint angle of the Roll axis of the pan-tilt 100 and the joint angle of the Yaw axis of the pan-tilt 100 are not within the first preset joint angle range, or
  • the joint angle of the Roll axis of the pan-tilt 100 and the joint angle of the Pitch axis of the pan-tilt 100 are not within the first predetermined joint angle range, or the joint angle of the Yaw axis of the pan-tilt 100 and the joint of the Pitch axis of the pan-tilt 100
  • the angles are not within the first predetermined joint angle range, or the joint angle of the Roll axis of the pan/t
  • the processor 12 reads from the angle sensor. The value of the joint angle of each axis. Subsequently, the processor 12 determines whether the joint angle of each axis of the platform 100 is within the first preset joint angle range based on the read data.
  • an angle sensor for example, a potentiometer, a Hall sensor, or a photoelectric encoder
  • the processor 12 When detecting that the joint angle of one or more of the axes is not within the first preset joint angle range, the processor 12 adjusts the axis whose joint angle is not within the first preset joint angle range to join the joint The angle is adjusted to within the first predetermined joint angle range. For example, if the joint angle of the Roll axis of the pan-tilt 100 and the joint angle of the Yaw axis are not within the first preset joint angle range, the processor 12 sequentially connects the joint angle of the Roll axis of the pan-tilt 100 and the joint of the Yaw axis.
  • the angle is adjusted to the first preset joint angle range, or the processor 12 sequentially adjusts the joint angle of the Yaw axis of the pan/tilt 100 and the joint angle of the Roll axis to the first preset joint angle range, or the processor 12 simultaneously
  • the joint angle of the Yaw axis of the pan/tilt 100 and the joint angle of the Roll axis are adjusted to the first preset joint angle range.
  • the joint angle of each axis of the pan/tilt head 100 is within the first preset joint angle range.
  • the pan-tilt head 100 does not appear at the expected posture. In the case of reverberation, the user's experience is better.
  • the number of the shafts of the pan/tilt head 100 may be one axis, two axes, four axes, five axes, or the like in addition to the three axes in the above embodiment.
  • the first predetermined joint angle range referred to in the above embodiments includes a range in which the joint angle is 0°.
  • the first predetermined joint angle range mentioned in the above embodiments is [-0.5°, 0.5°]. It can be understood that when the joint angle of the axis of the pan-tilt 100 is adjusted to the range of [-0.5°, 0.5°], although the joint angle of the axis of the pan-tilt 100 may not be at the 0° position, since -0.5° and 0.5 The joint angle of ° is relatively small, so it can be considered that the joint angle of the gimbal is already at the joint angle zero. Therefore, adjusting the joint angle of the shaft of the pan/tilt head 100 to the range of [-0.5°, 0.5°] can also solve the problem that the pan-tilt head 100 reverberates at the intended posture.
  • step S51 adjusts the joint angle of the shaft to a first preset joint angle range including:
  • S512 Closely adjust the joint angle of the first axis of the platform 100 to the first preset joint angle range according to the target joint angle.
  • step S511 is performed when one or more When the joint angle of the first axis of the plurality of axes is within the second predetermined joint angle range, the target joint angle of the first axis is set to 0°, and step S512 sets the first axis of the pan/tilt 100 according to the target joint angle.
  • the joint angle is closed to an operation within the first predetermined joint angle range.
  • the one or more axes are axes of the platform 100 whose joint angle is not within the first preset joint angle, and the first axis is the joint angle of the one or more axes being the second preset joint angle Any one of the axes.
  • the processor 12 further determines whether the joint angle of the Roll axis is within the second predetermined joint angle range. When the joint angle of the Roll axis is within the second predetermined joint angle range, the Roll is the first axis, the processor 12 sets the target joint angle of the Roll axis to 0°, and then, the processor 12 targets according to 0°.
  • the joint angle adjusts the joint angle of the Roll axis to the first preset joint angle.
  • the first preset joint angle range may be [-0.5°, 0.5°].
  • the processor 12 includes an electrical adjustment (as shown in Figure 8) for adjusting the rotation of the servo motor of each axis.
  • the processor 12 adjusts the closed angle of the Roll axis to the first preset joint angle according to the target joint angle of 0°.
  • the rotation of the Roller servo motor is controlled by the ESC to adjust the joint angle of the Roll axis of the PTZ 100. To the first preset joint angle range.
  • the Roll axis servo motor can first perform acceleration rotation with a fixed or varying angular acceleration, and then perform a deceleration rotation with a fixed or varying angular acceleration to adjust the joint angle of the Roll axis to the first preset joint angle range.
  • Roll-axis servo motor can be accelerated at a fixed or varying angular acceleration, then rotated at a constant speed, and finally rotated at a fixed or varying angular acceleration to adjust the joint angle of the Roll axis to the first Within a predetermined joint angle range.
  • step S511 sets the target joint angle of the first axis to 0°, including:
  • step S5111 when the program code 111 is executed to complete the operation of setting the target joint angle of the first axis to 0° in step S511, the first axis in the joint angle of the one or more axes is performed in step S5111.
  • the target joint angle of the first axis is set to 0°.
  • the preset absolute value range refers to [0.5°, 8°], that is, the second preset joint angle range is [-8°, -0.5°] ⁇ [0.5° , 8°].
  • the processor 12 determines that the joint angle ⁇ m of the Roll axis is within the second preset joint angle range.
  • step S51 adjusts the joint angle of the shaft to the first preset joint angle range to further include:
  • S514 Perform closed-loop adjustment on the joint angle of the first axis according to the target joint angle of the first axis at a plurality of times.
  • the step S513 is performed when the joint angle of one or more axes is not at When the second preset joint angle range is within, the target joint angle of the first axis at a plurality of times is determined, and the step S524 performs closed-loop adjustment of the joint angle of the first axis according to the target joint angle of the first axis at the plurality of times .
  • the target posture is fixed to 0° differently, and the target posture of the first axis at a plurality of times can be determined in time sequence, and the closed-loop adjustment is performed according to the target posture of the first axis at different times.
  • the difference control cloud platform 100 adjusts the joint angle of the first axis; at the second moment, determines the target joint angle of the pan/tilt According to the target joint angle at the second moment Actual joint angle with the second moment The difference control cloud platform 100 adjusts the joint angle of the first axis, and so on, until a certain moment, the actual joint angle of the first axis is within the second predetermined joint angle range.
  • the target joint angle of at least one of the plurality of times is determined based on the target joint angle of the previous moment.
  • each of a plurality of times among them Can be the target pose of the current moment
  • ⁇ k can be the angular velocity at time k
  • ⁇ k can be based on the actual joint angle of the first axis at time k determine
  • the acquisition can be measured by the angular velocity sensor at time k
  • ⁇ t is the control period.
  • the target joint angle is set in multiple stages to adjust the joint angle of the first axis to the first preset joint angle range until the actual joint angle of the first joint is within the second preset joint angle range.
  • the target joint angle of the first axis is set to 0°.
  • the joint angle of the first axis of the platform 100 is too large (ie, not within the first preset joint angle range and not within the second preset joint angle range), if the first axis is directly If the target joint angle is set to 0°, the joint angle of the first axis needs to be adjusted to be larger, and the servo motor will run at a higher speed. Therefore, it is very likely that the joint angle of the first axis is adjusted to the 0° position because If the rotational speed of the servo motor is too large, the joint angle of the first shaft reverberates at the 0° position, which affects the user experience.
  • the joint angle of the first axis of the pan-tilt head 100 is too large, the joint angle of the first axis of the pan-tilt 100 is gradually adjusted to the first preset joint in a segmented manner.
  • the servo motor runs at a relatively slow speed, and the target joint angle of the first axis is not adjusted to 0°. The problem that the joint angle reverberates at the 0° position can effectively improve the user experience.
  • the method for controlling the platform 100 of the embodiment of the present invention further includes:
  • the program code 111 when executed, it is also used to perform the step S7 to receive the attitude control command of the external device, and in step S9, the joint angle of each axis of the platform 100 is adjusted. After the first preset joint angle range is reached, the attitude of the pan/tilt head 100 is controlled according to the attitude control command.
  • the external device may be a flight controller of the UAV equipped with the PTZ 100, or may be a remote controller for controlling the attitude of the PTZ 100, or may be a smart terminal for installing the PTZ 100 control software, such as a mobile phone or a tablet. Computer, smart bracelet, etc.
  • the processor 12 can receive an attitude control command of the external device.
  • the processor 12 is provided with a wired communication interface or a wireless communication module for receiving an attitude control instruction sent by the external device.
  • the attitude control command can be sent to the pan/tilt head 100 through the external device to control and adjust the posture of the gimbal 100. Since the control device 10 adjusts the joint angle of the axis of the pan-tilt 100 to the first preset joint angle within a short time after the user activates the pan-tilt 100, the user subsequently sends a gesture to the pan-tilt 100 through the external device.
  • the control command is used to adjust the attitude of the PTZ 100, the PTZ 100 will not reverberate at the joint angle zero, which greatly improves the user experience.
  • a "computer-readable medium” can be any apparatus that can contain, store, communicate, propagate, or transport a program for use in an instruction execution system, apparatus, or device, or in conjunction with the instruction execution system, apparatus, or device.
  • computer readable media include the following: electrical connections (electronic devices) having one or more wires, portable computer disk cartridges (magnetic devices), random access memory (RAM), Read only memory (ROM), erasable editable read only memory (EPROM or flash memory), fiber optic devices, and portable compact disk read only memory (CDROM).
  • the computer readable medium may even be a paper or other suitable medium on which the program can be printed, as it may be optically scanned, for example by paper or other medium, followed by editing, interpretation or, if appropriate, other suitable The method is processed to obtain the program electronically and then stored in computer memory.
  • portions of the invention may be implemented in hardware, software, firmware or a combination thereof.
  • multiple steps or methods may be performed by software or firmware stored in a memory and executed by a suitable instruction execution system.
  • a suitable instruction execution system For example, if executed in hardware, as in another embodiment, it can be performed by any one of the following techniques or combinations thereof known in the art: having logic gates for performing logic functions on data signals Discrete logic circuits, application specific integrated circuits with suitable combinational logic gates, programmable gate arrays (PGAs), field programmable gate arrays (FPGAs), etc.
  • each functional unit in each embodiment of the present invention may be integrated into one processing module, or each unit may exist physically separately, or two or more units may be integrated into one module.
  • the above integrated modules can be executed in the form of hardware or in the form of software functional modules.
  • the integrated modules, if executed in the form of software functional modules and sold or used as separate products, may also be stored in a computer readable storage medium.
  • the above mentioned storage medium may be a read only memory, a magnetic disk or an optical disk or the like.

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Studio Devices (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

Disclosed by the present invention are a control method and control device for a cradle head (100), the control method for the cradle head (100) comprising: after a processor (100) completes upgrading, acquiring a joint angle of a shaft of a cradle head (100); determining whether the joint angle of the shaft is within a first preset joint angle range; when the joint angle of the shaft is not within the first preset joint angle range, adjusting the joint angle of the shaft to be within the first preset joint angle range. Further disclosed by the present invention is a control device (10) for a cradle head.

Description

云台的控制方法和控制设备PTZ control method and control device 技术领域Technical field
本发明涉及控制技术领域,特别涉及一种云台的控制方法和控制设备。The present invention relates to the field of control technologies, and in particular, to a control method and a control device for a pan/tilt.
背景技术Background technique
无人机的云台,一般采用云台处理器和电调处理器的构架,电调处理器设置在电调板上,云台在升级时,一般是先升级电调处理器的固件,然后再升级云台处理器的固件。在这个过程中存在云台处理器的固件升级完成后,由于之前电调处理器的固件升级完成并且已经自检完毕,云台的姿态随机,很大程度上云台的各轴未处于关节角为零的位置(下称“关节角零位”),此时,电调板会反馈一个很大的关节角给云台处理器,如果云台处理器直接采用该关节角去闭环调整,云台在运动时可能会产生很大的超调,即云台会在预期姿态附近回荡,影响用户的使用体验。The head of the drone generally adopts the architecture of the PTZ processor and the ESC processor. The ESC processor is set on the ESC board. When the PTZ is upgraded, the firmware of the ESC processor is generally upgraded first. Then upgrade the firmware of the PTZ processor. After the firmware upgrade of the PTZ processor is completed in this process, since the firmware upgrade of the ESC processor is completed and the self-test has been completed, the attitude of the PTZ is random, and the axes of the PTZ are not at the joint angle. Zero position (hereinafter referred to as "joint angle zero position"), at this time, the ESC will feed back a large joint angle to the PTZ processor. If the PTZ processor directly uses the joint angle to perform closed-loop adjustment, the cloud The platform may generate a large overshoot during the exercise, that is, the gimbal will reverberate around the expected posture, affecting the user experience.
发明内容Summary of the invention
本发明的实施例提供一种云台的控制方法和控制设备,以提高云台运动的平稳性,减小云台运动时的超调。Embodiments of the present invention provide a control method and a control device for a pan/tilt to improve the stability of the pan-tilt motion and reduce overshoot during pan-tilt motion.
本发明提供一种云台的控制方法。云台的控制方法包括:The invention provides a method for controlling a pan/tilt. The control methods of the gimbal include:
在处理器完成升级之后,获取所述云台的轴的关节角;After the processor completes the upgrade, acquiring the joint angle of the axis of the pan/tilt;
判断所述轴的关节角是否处于第一预设关节角范围内;和Determining whether the joint angle of the shaft is within a first predetermined joint angle range; and
当所述轴的关节角不在所述第一预设关节角范围内时,将所述轴的关节角调整到所述第一预设关节角范围内。When the joint angle of the shaft is not within the first predetermined joint angle range, the joint angle of the shaft is adjusted to be within the first preset joint angle range.
本发明提供一种云台的控制设备。控制设备包括存储器和处理器。所述存储器用于存储程序代码。所述处理器用于执行所述程序代码。当所述程序代码被执行时,用于执行以下操作:The invention provides a control device for a pan/tilt. The control device includes a memory and a processor. The memory is for storing program code. The processor is configured to execute the program code. When the program code is executed, it is used to perform the following operations:
在所述处理器完成升级之后,获取所述云台的轴的关节角;After the processor completes the upgrade, acquiring a joint angle of the axis of the pan/tilt;
判断所述轴的关节角是否处于第一预设关节角范围内;和Determining whether the joint angle of the shaft is within a first predetermined joint angle range; and
当所述轴的关节角不在所述第一预设关节角范围内时,将所述轴的关节角调整到所述第一预设关节角范围内。When the joint angle of the shaft is not within the first predetermined joint angle range, the joint angle of the shaft is adjusted to be within the first preset joint angle range.
本发明实施方式的控制方法和控制设备在处理器完成升级后,会判断云台的轴的关节角是否处于第一预设关节角范围内,并在不处于第一预设关节角范围内时,将轴的关节角调整至第一预设关节角范围内,从而避免云台在接收到姿态控制量后云台从当前随机的姿 态运动到预期姿态时可能会产生的超调,防止云台产生超调而发生回荡,改善用户的使用体验。After the processor completes the upgrade, the control method and the control device of the embodiment of the present invention determine whether the joint angle of the axis of the pan/tilt is within the first preset joint angle range, and is not within the first preset joint angle range. Adjusting the joint angle of the shaft to the first preset joint angle range, thereby avoiding the overshoot that the pan/tilt may generate when moving from the current random attitude to the expected posture after receiving the attitude control amount, preventing the pan/tilt Produce overshoot and reverberation to improve the user experience.
本发明的实施方式的附加方面和优点将在下面的描述中部分给出,部分将从下面的描述中变得明显,或通过本发明的实施方式的实践了解到。The additional aspects and advantages of the embodiments of the present invention will be set forth in part in the description which follows.
附图说明DRAWINGS
本发明的上述和/或附加的方面和优点从结合下面附图对实施方式的描述中将变得明显和容易理解,其中:The above and/or additional aspects and advantages of the present invention will become apparent and readily understood from
图1是本发明某些实施方式的控制方法的流程示意图。1 is a flow chart of a control method of some embodiments of the present invention.
图2是本发明某些实施方式的云台和控制设备的模块示意图。2 is a block diagram of a cloud platform and a control device in accordance with some embodiments of the present invention.
图3是本发明某些实施方式的控制方法的流程示意图。3 is a flow chart of a control method of some embodiments of the present invention.
图4是本发明某些实施方式的三轴云台的结构示意图。4 is a schematic structural view of a three-axis pan/tilt head according to some embodiments of the present invention.
图5是本发明某些实施方式的控制方法的流程示意图。FIG. 5 is a schematic flow chart of a control method according to some embodiments of the present invention.
图6是本发明某些实施方式的控制方法的流程示意图。6 is a flow chart of a control method of some embodiments of the present invention.
图7是本发明某些实施方式的控制方法的原理示意图。7 is a schematic diagram of the principle of a control method in accordance with some embodiments of the present invention.
图8是本发明某些实施方式的控制方法的原理示意图。8 is a schematic diagram of the principle of a control method in accordance with some embodiments of the present invention.
图9是本发明某些实施方式的控制方法的流程示意图。9 is a flow chart of a control method of some embodiments of the present invention.
图10是本发明某些实施方式的控制方法的流程示意图。10 is a flow chart of a control method of some embodiments of the present invention.
具体实施方式Detailed ways
下面详细描述本发明的实施方式,所述实施方式的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施方式是示例性的,仅用于解释本发明,而不能理解为对本发明的限制。The embodiments of the present invention are described in detail below, and the examples of the embodiments are illustrated in the drawings, wherein the same or similar reference numerals indicate the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the drawings are intended to be illustrative of the invention and are not to be construed as limiting.
请一并参阅图1至2,本发明提供一种云台100的控制方法。云台100的控制方法包括:Referring to FIG. 1 to FIG. 2 together, the present invention provides a control method for the pan/tilt head 100. The control method of the cloud platform 100 includes:
S1:在处理器12完成升级之后,获取云台100的轴的关节角;S1: acquiring the joint angle of the axis of the pan/tilt head 100 after the processor 12 completes the upgrade;
S3:判断轴的关节角是否处于第一预设关节角范围内;和S3: determining whether the joint angle of the shaft is within the first preset joint angle range; and
S5:当轴的关节角不在第一预设关节角范围内时,将轴的关节角调整到第一预设关节角范围内。S5: When the joint angle of the shaft is not within the first preset joint angle range, the joint angle of the shaft is adjusted to be within the first preset joint angle range.
请再参阅图2,本发明还提供一种云台100的控制设备10。本发明实施方式的云台100的控制方法可以由本发明实施方式的云台100的控制设备10实现。云台100的控制设备10包括存储器11和处理器12。存储器11用于存储程序代码111。处理器12用于执行存储 在存储器11中的程序代码111。当程序代码111被处理器12执行时,可实现步骤S1、步骤S2和步骤S3。也即是说,当程序代码111被处理器12执行时,可实现以下操作:Referring to FIG. 2 again, the present invention also provides a control device 10 for the pan/tilt head 100. The control method of the pan/tilt 100 according to the embodiment of the present invention can be implemented by the control device 10 of the pan/tilt 100 according to the embodiment of the present invention. The control device 10 of the pan/tilt 100 includes a memory 11 and a processor 12. The memory 11 is used to store the program code 111. The processor 12 is operative to execute program code 111 stored in the memory 11. When the program code 111 is executed by the processor 12, step S1, step S2, and step S3 can be implemented. That is to say, when the program code 111 is executed by the processor 12, the following operations can be implemented:
S1:在处理器12完成升级之后,获取云台100的轴的关节角;S1: acquiring the joint angle of the axis of the pan/tilt head 100 after the processor 12 completes the upgrade;
S3:判断轴的关节角是否处于第一预设关节角范围内;和S3: determining whether the joint angle of the shaft is within the first preset joint angle range; and
S5:当轴的关节角不在第一预设关节角范围内时,将轴的关节角调整到第一预设关节角范围内。S5: When the joint angle of the shaft is not within the first preset joint angle range, the joint angle of the shaft is adjusted to be within the first preset joint angle range.
其中,云台100的轴的关节角可采用角度传感器进行检测,即角度传感器可以测量云台各轴的实际关节角,下文将详细描述。Wherein, the joint angle of the axis of the pan-tilt head 100 can be detected by an angle sensor, that is, the angle sensor can measure the actual joint angle of each axis of the gimbal, which will be described in detail below.
可以理解,云台100出厂后,商家往往会对云台100进行性能提升、BUG修复或者添加新功能等方面的维护,通常采用升级云台固件的方式进行升级维护,也即是说对云台100的处理器12进行升级,其中,处理器12可以是云台处理器。在处理器12升级过程中,用户难免会触碰到云台100从而导致云台100的关节角不处于关节角零位,例如用户在升级过程中触动了云台100或者云台100在重力的作用下转动都可能会导致偏离关节角零位,此时电调板可能会向处理器12反馈一个很大的关节角。若在处理器12升级完成之后未将云台100的各轴的关节角调整至关节角零位,则后续用户控制云台100转动以带动搭载在云台100上的摄像头从当前随机的姿态转动到预期姿态时,预期姿态与当前随机的姿态可能存在较大的姿态差,云台100可能会先到关节角零位,再去到预期姿态,在云台100去到预期姿态时,云台100会有超调,在预期姿态处产生回荡,如此会导致摄像头拍摄的画面也有瞬间的抖动,影响拍摄质量和用户的使用体验。It can be understood that after the Yuntai 100 is shipped from the factory, the merchants often perform maintenance on the performance improvement, BUG repair or adding new functions of the PTZ. Usually, the upgrade is performed by upgrading the PTZ firmware, that is, the PTZ. The processor 12 of 100 is upgraded, wherein the processor 12 can be a pan/tilt processor. During the upgrade process of the processor 12, the user will inevitably touch the gimbal 100, so that the joint angle of the gimbal 100 is not at the joint angle zero. For example, the user touches the pan/tilt 100 or the gimbal 100 in gravity during the upgrade process. Rotation under action may result in a deviation from the joint angle zero, at which point the ESC may feed back a large joint angle to the processor 12. If the joint angle of each axis of the pan-tilt head 100 is not adjusted to the joint angle zero after the upgrade of the processor 12 is completed, the subsequent user controls the pan-tilt head 100 to rotate to drive the camera mounted on the pan-tilt head 100 to rotate from the current random posture. When the expected attitude is reached, there may be a large difference in posture between the expected attitude and the current random attitude. The pan-tilt 100 may first go to the joint angle zero position and then go to the expected attitude. When the PTZ 100 goes to the expected attitude, the PTZ 100 will have overshoot and reverberate at the expected posture, which will cause the camera to shoot images with instant jitter, affecting the quality of the shooting and the user experience.
本发明实施方式的云台100的控制方法和控制设备10在处理器12完成升级后,会判断云台100的轴的关节角是否处于第一预设关节角范围内,并在不处于第一预设关节角范围内时,将轴的关节角调整至第一预设关节角范围内,其中,第一预设关节角范围可以是靠近关节角零位的范围,从而避免云台100在处理器12升级完成后处于随机姿态,并在云台100接收到姿态控制量后从当前随机的姿态运动到预期姿态时可能产生的超调以及回荡的问题,改善用户的使用体验。After the processor 12 completes the upgrade, the control method and the control device 10 of the pan/tilt 100 according to the embodiment of the present invention determine whether the joint angle of the axis of the pan-tilt 100 is within the first preset joint angle range, and is not in the first When the preset joint angle range is within the range, the joint angle of the shaft is adjusted to be within a first preset joint angle range, wherein the first preset joint angle range may be a range close to the joint angle zero position, thereby preventing the pan/tilt head 100 from being processed. After the upgrade of the device 12 is completed, the problem of overshoot and reverberation that may occur when the pan/tilt 100 receives the attitude control amount from the current random posture to the expected posture improves the user experience.
请一并参阅图2和图3,在某些实施方式中,云台100具有多个轴,步骤S1获取云台100的轴的关节角包括:Referring to FIG. 2 and FIG. 3 together, in some embodiments, the pan/tilt head 100 has a plurality of axes, and the step S1 acquires the joint angle of the axis of the pan-tilt head 100 includes:
S11:获取云台100每一个轴的关节角。S11: Obtain the joint angle of each axis of the pan/tilt head 100.
步骤S3判断轴的关节角是否处于第一预设关节角范围内包括:Step S3 determines whether the joint angle of the shaft is within the first preset joint angle range, including:
S31:判断每一个轴的关节角是否处于所述第一预设关节角范围内。S31: Determine whether the joint angle of each axis is within the first preset joint angle range.
步骤S5当轴的关节角不在第一预设关节角范围内时,将轴的关节角调整到第一预设关节角范围内包括:Step S5: When the joint angle of the shaft is not within the first preset joint angle range, adjusting the joint angle of the shaft to the first preset joint angle range includes:
S51:当云台100的一个或多个轴的关节角不处于第一预设关节角范围内时,将一个或多个轴的关节角调整到第一预设关节角范围内。S51: When the joint angle of one or more axes of the pan-tilt 100 is not within the first preset joint angle range, the joint angle of the one or more axes is adjusted to be within a first preset joint angle range.
请再参阅图2,在某些实施方式中,当程序代码111被执行以实现步骤S1获取云台100的轴的关节角时,包括执行步骤S11获取云台100每一个轴的关节角的操作。当程序代码111被执行以实现步骤S3判断轴的关节角是否处于第一预设关节角范围内的操作时,包括执行步骤S31判断每一个轴的关节角是否处于所述第一预设关节角范围内的操作。当程序代码111被执行以实现步骤S5当轴的关节角不在第一预设关节角范围内的操作时,将轴的关节角调整到第一预设关节角范围内时,包括执行步骤S51当云台100的一个或多个轴的关节角不处于第一预设关节角范围内的操作时,将一个或多个轴的关节角调整到第一预设关节角范围内的操作。Referring to FIG. 2 again, in some embodiments, when the program code 111 is executed to implement the step S1 to acquire the joint angle of the axis of the platform 100, the operation of performing the step S11 to acquire the joint angle of each axis of the platform 100 is performed. . When the program code 111 is executed to implement the step S3 to determine whether the joint angle of the shaft is within the first preset joint angle range, the step S31 is performed to determine whether the joint angle of each of the axes is at the first preset joint angle. The operation within the scope. When the program code 111 is executed to implement the operation of step S5 when the joint angle of the shaft is not within the first preset joint angle range, when the joint angle of the shaft is adjusted to within the first preset joint angle range, the step S51 is performed. When the joint angle of one or more axes of the pan-tilt 100 is not within the range of the first predetermined joint angle, the joint angle of one or more axes is adjusted to the operation within the first predetermined joint angle range.
请结合图4,在本发明的具体实施例中,云台100具有三个,分别为Roll轴、Yaw轴和Pitch轴。云台100绕Roll轴转动时,云台100在横滚方向运动;云台100绕Yaw轴转动时,云台100在偏航方向运动;云台100绕Pitch轴转动时,云台100在俯仰方向上运动。步骤S1中云台100的轴的关节角不处于第一预设关节角范围内指的是云台100的Roll轴、Yaw轴或Pitch轴中的任意一个或多个轴的关节角不处于第一预设关节角范围内。具体地,例如,云台100的Roll轴的关节角不处于第一预设关节角范围内,或者云台100的Yaw轴的关节角不处于第一预设关节角范围内,或者云台100的Pitch轴的关节角不处于第一预设关节角范围内,或者云台100的Roll轴的关节角和云台100的Yaw轴的关节角均不处于第一预设关节角范围内,或者云台100的Roll轴的关节角和云台100的Pitch轴的关节角均不处于第一预设关节角范围内,或者云台100的Yaw轴的关节角和云台100的Pitch轴的关节角均不处于第一预设关节角范围内,或者云台100的Roll轴的关节角、Yaw轴的关节角和Pitch轴的关节角均不处于第一预设关节角范围内。Referring to FIG. 4, in a specific embodiment of the present invention, the platform 100 has three, namely a Roll axis, a Yaw axis, and a Pitch axis. When the pan-tilt 100 rotates around the Roll axis, the pan-tilt 100 moves in the roll direction; when the pan-tilt 100 rotates around the Yaw axis, the pan-tilt 100 moves in the yaw direction; when the pan-tilt 100 rotates around the Pitch axis, the pan-tilt 100 is pitched Move in the direction. The joint angle of the axis of the pan/tilt head 100 in step S1 is not within the first preset joint angle range, and the joint angle of any one or more of the Roll axis, the Yaw axis or the Pitch axis of the pan-tilt head 100 is not in the first Within a predetermined joint angle range. Specifically, for example, the joint angle of the Roll axis of the pan-tilt 100 is not within the first preset joint angle range, or the joint angle of the Yaw axis of the pan-tilt 100 is not within the first preset joint angle range, or the pan-tilt 100 The joint angle of the Pitch axis is not within the first preset joint angle range, or the joint angle of the Roll axis of the pan-tilt 100 and the joint angle of the Yaw axis of the pan-tilt 100 are not within the first preset joint angle range, or The joint angle of the Roll axis of the pan-tilt 100 and the joint angle of the Pitch axis of the pan-tilt 100 are not within the first predetermined joint angle range, or the joint angle of the Yaw axis of the pan-tilt 100 and the joint of the Pitch axis of the pan-tilt 100 The angles are not within the first predetermined joint angle range, or the joint angle of the Roll axis of the pan/tilt head 100, the joint angle of the Yaw axis, and the joint angle of the Pitch axis are not within the first preset joint angle range.
假设采用角度传感器(例如电位计、霍尔传感器、光电编码器中的至少一种)测量云台100的Roll轴、Yaw轴和Pitch轴的关节角,则处理器12会从角度传感器中读取各个轴的关节角的值。随后,处理器12根据读取到的数据判断云台100的各个轴的关节角是否处于第一预设关节角范围内。当检测到其中一个轴或多个轴的关节角不处于第一预设关节角范围内时,处理器12将关节角不处于第一预设关节角范围内的轴进行调整,以将其关节角调整到第一预设关节角范围内。例如,云台100的Roll轴的关节角和Yaw轴的关节角均不处于第一预设关节角范围内,则处理器12会依次将云台100的Roll轴的关节角、Yaw轴的关节角调整到第一预设关节角范围内,或者处理器12依次将云台100的Yaw轴的关节角和Roll轴的关节角调整到第一预设关节角范围内,或者处理器12同时将云台100的Yaw轴的关节角和Roll轴的关节角调整到第一预设关节角范围内。Assuming that an angle sensor (for example, a potentiometer, a Hall sensor, or a photoelectric encoder) is used to measure the joint angle of the Roll axis, the Yaw axis, and the Pitch axis of the platform 100, the processor 12 reads from the angle sensor. The value of the joint angle of each axis. Subsequently, the processor 12 determines whether the joint angle of each axis of the platform 100 is within the first preset joint angle range based on the read data. When detecting that the joint angle of one or more of the axes is not within the first preset joint angle range, the processor 12 adjusts the axis whose joint angle is not within the first preset joint angle range to join the joint The angle is adjusted to within the first predetermined joint angle range. For example, if the joint angle of the Roll axis of the pan-tilt 100 and the joint angle of the Yaw axis are not within the first preset joint angle range, the processor 12 sequentially connects the joint angle of the Roll axis of the pan-tilt 100 and the joint of the Yaw axis. The angle is adjusted to the first preset joint angle range, or the processor 12 sequentially adjusts the joint angle of the Yaw axis of the pan/tilt 100 and the joint angle of the Roll axis to the first preset joint angle range, or the processor 12 simultaneously The joint angle of the Yaw axis of the pan/tilt 100 and the joint angle of the Roll axis are adjusted to the first preset joint angle range.
如此,调整后云台100的每一个轴的关节角均处于第一预设关节角范围内,用户启用云台100并对云台100进行姿态控制时,不会出现云台100在预期姿态处回荡的情况,用户的使用体验较佳。In this way, the joint angle of each axis of the pan/tilt head 100 is within the first preset joint angle range. When the user activates the pan-tilt head 100 and performs attitude control on the pan-tilt head 100, the pan-tilt head 100 does not appear at the expected posture. In the case of reverberation, the user's experience is better.
当然,需要说明的是,云台100的轴的数量除了上述实施方式中的3个轴之外,还可以是1个轴、2个轴、4个轴、5个轴等。Of course, it should be noted that the number of the shafts of the pan/tilt head 100 may be one axis, two axes, four axes, five axes, or the like in addition to the three axes in the above embodiment.
在某些实施方式中,上述实施方式中提及的第一预设关节角范围包括关节角为0°的范围。在用户启用云台100并对云台100进行姿态控制时,由于云台100从第一预设关节角范围内向预期姿态转动,相对于现有技术中处理器12升级完成后云台从当前随机姿态转动到预期姿态,在很多情况中,可以减小超调,保持拍摄画面的稳定,进一步地改善用户的使用体验。In certain embodiments, the first predetermined joint angle range referred to in the above embodiments includes a range in which the joint angle is 0°. When the user enables the pan-tilt 100 and performs the attitude control on the pan-tilt 100, since the pan-tilt 100 rotates from the first preset joint angle range to the expected posture, the pan-tilt is randomly selected from the current state after the upgrade of the processor 12 in the prior art is completed. The posture is rotated to the desired posture, and in many cases, the overshoot can be reduced, the shooting picture is stabilized, and the user experience is further improved.
在某些实施方式中,上述实施方式中提及的第一预设关节角范围为[-0.5°,0.5°]。可以理解,将云台100的轴的关节角调整到[-0.5°,0.5°]的范围内时,虽然云台100的轴的关节角可能未处于0°位置,但由于-0.5°与0.5°的关节角相对较小,因此,可以认为云台的关节角已经处于关节角零位。因此,将云台100的轴的关节角调整至[-0.5°,0.5°]范围内也可解决云台100在预期姿态处回荡的问题。In certain embodiments, the first predetermined joint angle range mentioned in the above embodiments is [-0.5°, 0.5°]. It can be understood that when the joint angle of the axis of the pan-tilt 100 is adjusted to the range of [-0.5°, 0.5°], although the joint angle of the axis of the pan-tilt 100 may not be at the 0° position, since -0.5° and 0.5 The joint angle of ° is relatively small, so it can be considered that the joint angle of the gimbal is already at the joint angle zero. Therefore, adjusting the joint angle of the shaft of the pan/tilt head 100 to the range of [-0.5°, 0.5°] can also solve the problem that the pan-tilt head 100 reverberates at the intended posture.
请一并参阅图2和图5,在某些实施方式中,步骤S51将轴的关节角调整到第一预设关节角范围内包括:Referring to FIG. 2 and FIG. 5 together, in some embodiments, step S51 adjusts the joint angle of the shaft to a first preset joint angle range including:
S511:当一个或多个轴中的第一轴的关节角处于第二预设关节角范围内时,将第一轴的目标关节角设置为0°;和S511: when the joint angle of the first axis of the one or more axes is within the second preset joint angle range, setting the target joint angle of the first axis to 0°; and
S512:根据目标关节角将云台100的第一轴的关节角闭环调整到第一预设关节角范围内。S512: Closely adjust the joint angle of the first axis of the platform 100 to the first preset joint angle range according to the target joint angle.
请再参阅图2,在某些实施方式中,当程序代码111被执行以完成步骤S51将轴的关节角调整到第一预设关节角范围内的操作时,包括执行步骤S511当一个或多个轴中的第一轴的关节角处于第二预设关节角范围内时,将第一轴的目标关节角设置为0°,以及步骤S512根据目标关节角将云台100的第一轴的关节角闭环调整到第一预设关节角范围内的操作。Referring to FIG. 2 again, in some embodiments, when the program code 111 is executed to complete the operation of adjusting the joint angle of the shaft to the first preset joint angle range in step S51, the step S511 is performed when one or more When the joint angle of the first axis of the plurality of axes is within the second predetermined joint angle range, the target joint angle of the first axis is set to 0°, and step S512 sets the first axis of the pan/tilt 100 according to the target joint angle. The joint angle is closed to an operation within the first predetermined joint angle range.
其中,所述一个或多个轴为关节角未处于第一预设关节角范围内的云台100的轴,第一轴为所述一个或多轴中关节角为第二预设关节角内的任意一个轴。具体地,假设Roll轴的关节角未处于第一预设关节角范围内,则处理器12进一步判断Roll轴的关节角是否处于第二预设关节角范围内。当Roll轴的关节角处于第二预设关节角范围内时,所述Roll为第一轴,处理器12将Roll轴的目标关节角设置为0°,随后,处理器12根据0°的目标关节角将Roll轴的关节角闭环调整到第一预设关节角范围内。其中,第一预设关节角范围 可为[-0.5°,0.5°]。处理器12包括用于调整各个轴的伺服电机转动的电调(如图8所示)。处理器12根据0°的目标关节角将Roll轴的关节角闭环调整到第一预设关节角范围内是通过电调来控制Roll轴伺服电机转动以使得云台100的Roll轴的关节角调整到第一预设关节角范围内的。具体地,Roll轴伺服电机可先以固定的或变化的角加速度做加速转动,再以固定的或变化的角加速度做减速转动,以将Roll轴的关节角调整到第一预设关节角范围内;或者,Roll轴伺服电机可先以固定的或变化的角加速度做加速转动,再做匀速转动,最后以固定的或变化的角加速度做减速转动,以将Roll轴的关节角调整到第一预设关节角范围内。Wherein the one or more axes are axes of the platform 100 whose joint angle is not within the first preset joint angle, and the first axis is the joint angle of the one or more axes being the second preset joint angle Any one of the axes. Specifically, assuming that the joint angle of the Roll axis is not within the first predetermined joint angle range, the processor 12 further determines whether the joint angle of the Roll axis is within the second predetermined joint angle range. When the joint angle of the Roll axis is within the second predetermined joint angle range, the Roll is the first axis, the processor 12 sets the target joint angle of the Roll axis to 0°, and then, the processor 12 targets according to 0°. The joint angle adjusts the joint angle of the Roll axis to the first preset joint angle. Wherein, the first preset joint angle range may be [-0.5°, 0.5°]. The processor 12 includes an electrical adjustment (as shown in Figure 8) for adjusting the rotation of the servo motor of each axis. The processor 12 adjusts the closed angle of the Roll axis to the first preset joint angle according to the target joint angle of 0°. The rotation of the Roller servo motor is controlled by the ESC to adjust the joint angle of the Roll axis of the PTZ 100. To the first preset joint angle range. Specifically, the Roll axis servo motor can first perform acceleration rotation with a fixed or varying angular acceleration, and then perform a deceleration rotation with a fixed or varying angular acceleration to adjust the joint angle of the Roll axis to the first preset joint angle range. Or; Roll-axis servo motor can be accelerated at a fixed or varying angular acceleration, then rotated at a constant speed, and finally rotated at a fixed or varying angular acceleration to adjust the joint angle of the Roll axis to the first Within a predetermined joint angle range.
进一步地,请一并参阅图2和图6,步骤S511将第一轴的目标关节角设置为0°包括:Further, please refer to FIG. 2 and FIG. 6 together, and step S511 sets the target joint angle of the first axis to 0°, including:
S5111:当一个或多个轴的关节角中的第一轴的关节角的绝对值在预设绝对值范围内时,将第一轴的目标关节角设置为0°。S5111: When the absolute value of the joint angle of the first axis of the joint angle of one or more axes is within a preset absolute value range, the target joint angle of the first axis is set to 0°.
请再参阅图2,当程序代码111被执行以完成步骤S511将第一轴的目标关节角设置为0°的操作时,包括执行步骤S5111当一个或多个轴的关节角中的第一轴的关节角的绝对值在预设绝对值范围内时,将第一轴的目标关节角设置为0°的操作。Referring to FIG. 2, when the program code 111 is executed to complete the operation of setting the target joint angle of the first axis to 0° in step S511, the first axis in the joint angle of the one or more axes is performed in step S5111. When the absolute value of the joint angle is within the preset absolute value range, the target joint angle of the first axis is set to 0°.
请结合图7和图8,预设绝对值范围指的是[0.5°,8°],也即是说,第二预设关节角范围为[-8°,-0.5°]∪[0.5°,8°]。以云台100的Roll轴为例,若检测到Roll轴的关节角为6°,即θ m=6°,则处理器12判定Roll轴的关节角θ m处于第二预设关节角范围内,处理器12将目标关节角θ t设定为0°,并根据θ m和θ t的值计算出Roll轴的关节角需要调整的角度err,其中,err=θ tm=-6°。随后,处理器12根据err的值向电调发出控制指令,由电调控制Roll轴伺服电机转动以使关节角调整到第一预设关节角范围内。若检测到Roll轴的关节角为-7.5°,即θ m=-7.5°,则处理器12判定Roll轴的关节角θ m处于第二预设关节角范围内,处理器12将目标关节角θ t设定为0°,并根据θ m和θ t的值计算出Roll轴的关节角需要调整的角度err,其中,err=θ tm=7.5°。随后,处理器12根据err的值向电调发出控制指令,由电调控制Roll轴伺服电机转动err的角度以使关节角回到第一预设关节角范围内。 Please refer to FIG. 7 and FIG. 8. The preset absolute value range refers to [0.5°, 8°], that is, the second preset joint angle range is [-8°, -0.5°] ∪ [0.5° , 8°]. Taking the Roll axis of the PTZ 100 as an example, if the joint angle of the Roll axis is detected to be 6°, that is, θ m = 6°, the processor 12 determines that the joint angle θ m of the Roll axis is within the second preset joint angle range. The processor 12 sets the target joint angle θ t to 0°, and calculates an angle err at which the joint angle of the Roll axis needs to be adjusted according to the values of θ m and θ t , where err=θ t −θ m =-6 °. Subsequently, the processor 12 issues a control command to the ESC according to the value of err, and the Roller servo motor is rotated by the ESC to adjust the joint angle to the first preset joint angle range. If the joint angle of the Roll axis is detected to be -7.5°, that is, θ m =−7.5°, the processor 12 determines that the joint angle θ m of the Roll axis is within the second preset joint angle range, and the processor 12 sets the target joint angle θ t is set to 0°, and the angle err at which the joint angle of the Roll axis needs to be adjusted is calculated from the values of θ m and θ t , where err=θ t −θ m =7.5°. Subsequently, the processor 12 issues a control command to the ESC according to the value of err, and the angle of the Roll axis servo motor rotates err by the ESC to return the joint angle to the first preset joint angle range.
进一步地,请参阅图9,步骤S51将轴的关节角调整到第一预设关节角范围内还包括:Further, referring to FIG. 9, step S51 adjusts the joint angle of the shaft to the first preset joint angle range to further include:
S513:当一个或多个轴中的第一轴的关节角不处于第二预设关节角范围内时,确定多个时刻的第一轴的目标关节角;和S513: determining a target joint angle of the first axis at multiple times when the joint angle of the first axis of the one or more axes is not within the second preset joint angle range; and
S514:根据多个时刻的第一轴的目标关节角对第一轴的关节角进行闭环调整。S514: Perform closed-loop adjustment on the joint angle of the first axis according to the target joint angle of the first axis at a plurality of times.
请再结合图2,当程序代码111被执行以实现步骤S51将轴的关节角调整到第一预设关节角范围内的操作时,包括执行步骤S513当一个或多个轴的关节角不处于第二预设关节角范围内时,确定多个时刻的第一轴的目标关节角,以及步骤S524根据多个时刻的第一轴的目标关节角对第一轴的关节角进行闭环调整的操作。Referring to FIG. 2 again, when the program code 111 is executed to implement the operation of adjusting the joint angle of the shaft to the first preset joint angle range in step S51, the step S513 is performed when the joint angle of one or more axes is not at When the second preset joint angle range is within, the target joint angle of the first axis at a plurality of times is determined, and the step S524 performs closed-loop adjustment of the joint angle of the first axis according to the target joint angle of the first axis at the plurality of times .
具体地,请结合图8,当云台100中的任意一个轴的关节角既不处于第一预设关节角范围内,也不处于第二预设关节角范围内时,与第一轴的关节角处于预设范围内时将目标姿态固定为0°不同,可以按照时间顺序,确定第一轴在多个时刻的目标姿态,并按照不同时刻的第一轴的目标姿态进行闭环调整。Specifically, please refer to FIG. 8 , when the joint angle of any one of the axes in the platform 100 is neither within the first preset joint angle range nor within the second preset joint angle range, and the first axis When the joint angle is within the preset range, the target posture is fixed to 0° differently, and the target posture of the first axis at a plurality of times can be determined in time sequence, and the closed-loop adjustment is performed according to the target posture of the first axis at different times.
例如,在第一时刻时,确定云台的目标关节角
Figure PCTCN2017118272-appb-000001
根据第一时刻的目标关节角
Figure PCTCN2017118272-appb-000002
与第一时刻的实际关节角之间
Figure PCTCN2017118272-appb-000003
的差值控制云台100调整第一轴的关节角;在第二时刻时,确定云台的目标关节角
Figure PCTCN2017118272-appb-000004
根据第二时刻的目标关节角
Figure PCTCN2017118272-appb-000005
与第二时刻的实际关节角
Figure PCTCN2017118272-appb-000006
的差值控制云台100调整第一轴的关节角,以此类推,直至某一个时刻,第一轴的实际关节角处于第二预设关节角范围内。
For example, at the first moment, determine the target joint angle of the gimbal
Figure PCTCN2017118272-appb-000001
According to the target joint angle at the first moment
Figure PCTCN2017118272-appb-000002
Between the actual joint angle at the first moment
Figure PCTCN2017118272-appb-000003
The difference control cloud platform 100 adjusts the joint angle of the first axis; at the second moment, determines the target joint angle of the pan/tilt
Figure PCTCN2017118272-appb-000004
According to the target joint angle at the second moment
Figure PCTCN2017118272-appb-000005
Actual joint angle with the second moment
Figure PCTCN2017118272-appb-000006
The difference control cloud platform 100 adjusts the joint angle of the first axis, and so on, until a certain moment, the actual joint angle of the first axis is within the second predetermined joint angle range.
在某些实施例中,多个时刻中的至少一个时刻的目标关节角是根据上一时刻的目标关节角确定的。具体地,多个时刻中的每一个时刻的
Figure PCTCN2017118272-appb-000007
其中
Figure PCTCN2017118272-appb-000008
可以为当前时刻的目标姿态,
Figure PCTCN2017118272-appb-000009
为上一时刻的目标姿态,ω k可以为k时刻的角速度,其中,ω k可以根据k时刻第一轴的实际关节角
Figure PCTCN2017118272-appb-000010
确定,
Figure PCTCN2017118272-appb-000011
可以由角速度传感器在k时刻测量获取,Δt为控制周期。
In some embodiments, the target joint angle of at least one of the plurality of times is determined based on the target joint angle of the previous moment. Specifically, each of a plurality of times
Figure PCTCN2017118272-appb-000007
among them
Figure PCTCN2017118272-appb-000008
Can be the target pose of the current moment,
Figure PCTCN2017118272-appb-000009
For the target pose at the previous moment, ω k can be the angular velocity at time k, where ω k can be based on the actual joint angle of the first axis at time k
Figure PCTCN2017118272-appb-000010
determine,
Figure PCTCN2017118272-appb-000011
The acquisition can be measured by the angular velocity sensor at time k, and Δt is the control period.
如此,分多段地设定目标关节角将第一轴的关节角向第一预设关节角范围调整直至第一关节实际关节角处于第二预设关节角范围内时,此时,可以按照如前所述的方式,将第一轴的目标关节角设置为0°。In this way, the target joint angle is set in multiple stages to adjust the joint angle of the first axis to the first preset joint angle range until the actual joint angle of the first joint is within the second preset joint angle range. In the manner described above, the target joint angle of the first axis is set to 0°.
可以理解,当云台100的第一轴的关节角过大(即不处于第一预设关节角范围内,也不处于第二预设关节角范围内)时,若直接将第一轴的目标关节角设为0°,则第一轴的关节角需要调整的err的较大,伺服电机会以较大的速度运转,如此很可能出现第一轴的关节角调到0°位置时因为伺服电机的转动速度过大导致第一轴的关节角在0°位置处回荡的问题,影响用户的使用体验。本发明实施方式的云台100的控制方法和姿态调整设备在云台100的第一轴的关节角过大时,将第一轴的关节角以分段的方式逐步调整到第一预设关节角范围内,由于第一轴的关节角在每一段调整过程中需要调整的err的值较小,伺服电机的运转速度相对缓慢,在第一轴的目标关节角调到0°位置时不会出现关节角在0°位置处回荡的问题,可以有效改善用户的使用体验。It can be understood that when the joint angle of the first axis of the platform 100 is too large (ie, not within the first preset joint angle range and not within the second preset joint angle range), if the first axis is directly If the target joint angle is set to 0°, the joint angle of the first axis needs to be adjusted to be larger, and the servo motor will run at a higher speed. Therefore, it is very likely that the joint angle of the first axis is adjusted to the 0° position because If the rotational speed of the servo motor is too large, the joint angle of the first shaft reverberates at the 0° position, which affects the user experience. When the joint angle of the first axis of the pan-tilt head 100 is too large, the joint angle of the first axis of the pan-tilt 100 is gradually adjusted to the first preset joint in a segmented manner. In the angular range, since the joint angle of the first axis has a small value of err to be adjusted during each adjustment process, the servo motor runs at a relatively slow speed, and the target joint angle of the first axis is not adjusted to 0°. The problem that the joint angle reverberates at the 0° position can effectively improve the user experience.
请参阅图10,在某些实施方式中,本发明实施方式的云台100的控制方法还包括:Referring to FIG. 10, in some embodiments, the method for controlling the platform 100 of the embodiment of the present invention further includes:
S7:接收外部设备的姿态控制指令;和S7: receiving an attitude control instruction of an external device; and
S9:将云台100的每一个轴的关节角调整到第一预设关节角范围内后,根据姿态控制指令对云台100的姿态进行控制。S9: After adjusting the joint angle of each axis of the pan/tilt 100 to the first preset joint angle range, the posture of the pan/tilt head 100 is controlled according to the attitude control command.
请再参阅图2,在某些实施方式中,当程序代码111被执行时,还用于执行步骤S7接收外部设备的姿态控制指令,以及步骤S9将云台100的每一个轴的关节角调整到第一预设 关节角范围内后,根据姿态控制指令对云台100的姿态进行控制的操作。Referring to FIG. 2 again, in some embodiments, when the program code 111 is executed, it is also used to perform the step S7 to receive the attitude control command of the external device, and in step S9, the joint angle of each axis of the platform 100 is adjusted. After the first preset joint angle range is reached, the attitude of the pan/tilt head 100 is controlled according to the attitude control command.
其中,外部设备可以是搭载云台100的无人机的飞行控制器,也可以是用于控制云台100姿态的遥控器,还可以是安装云台100控制软件的智能终端,如手机、平板电脑、智能手环等。The external device may be a flight controller of the UAV equipped with the PTZ 100, or may be a remote controller for controlling the attitude of the PTZ 100, or may be a smart terminal for installing the PTZ 100 control software, such as a mobile phone or a tablet. Computer, smart bracelet, etc.
处理器12可以接收外部设备的姿态控制指令,具体地,例如,处理器12上设置有有线通信接口或无线通信模组以用于接收外部设备发送的姿态控制指令。The processor 12 can receive an attitude control command of the external device. Specifically, for example, the processor 12 is provided with a wired communication interface or a wireless communication module for receiving an attitude control instruction sent by the external device.
如此,用户启用云台100后,可以通过外部设备给云台100发送姿态控制指令以对云台100的姿态进行控制调整。由于用户启用云台100后的较短时间内,控制设备10会即时调整云台100的轴的关节角至第一预设关节角范围内,因此,用户后续通过外部设备给云台100发送姿态控制指令来调整云台100姿态时,不会出现云台100在关节角零位回荡的情况,极大改善用户使用体验。In this way, after the user enables the gimbal 100, the attitude control command can be sent to the pan/tilt head 100 through the external device to control and adjust the posture of the gimbal 100. Since the control device 10 adjusts the joint angle of the axis of the pan-tilt 100 to the first preset joint angle within a short time after the user activates the pan-tilt 100, the user subsequently sends a gesture to the pan-tilt 100 through the external device. When the control command is used to adjust the attitude of the PTZ 100, the PTZ 100 will not reverberate at the joint angle zero, which greatly improves the user experience.
在本说明书的描述中,参考术语“一个实施方式”、“一些实施方式”、“示意性实施方式”、“示例”、“具体示例”、或“一些示例”等的描述意指结合所述实施方式或示例描述的具体特征、结构、材料或者特点包含于本发明的至少一个实施方式或示例中。在本说明书中,对上述术语的示意性表述不一定指的是相同的实施方式或示例。而且,描述的具体特征、结构、材料或者特点可以在任何的一个或多个实施方式或示例中以合适的方式结合。In the description of the present specification, the description with reference to the terms "one embodiment", "some embodiments", "illustrative embodiment", "example", "specific example", or "some examples", etc. Particular features, structures, materials or features described in the embodiments or examples are included in at least one embodiment or example of the invention. In the present specification, the schematic representation of the above terms does not necessarily mean the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in a suitable manner in any one or more embodiments or examples.
流程图中或在此以其他方式描述的任何过程或方法描述可以被理解为,表示包括一个或更多个用于执行特定逻辑功能或过程的步骤的可执行指令的代码的模块、片段或部分,并且本发明的优选实施方式的范围包括另外的执行,其中可以不按所示出或讨论的顺序,包括根据所涉及的功能按基本同时的方式或按相反的顺序,来执行功能,这应被本发明的实施例所属技术领域的技术人员所理解。Any process or method description in the flowcharts or otherwise described herein may be understood to represent a module, segment or portion of code that includes one or more executable instructions for performing the steps of a particular logical function or process. And the scope of the preferred embodiments of the invention includes additional implementations, which may be performed in a substantially simultaneous manner or in an reverse order, depending on the functions involved, in the order shown or discussed, which should It will be understood by those skilled in the art to which the embodiments of the present invention pertain.
在流程图中表示或在此以其他方式描述的逻辑和/或步骤,例如,可以被认为是用于执行逻辑功能的可执行指令的定序列表,可以具体执行在任何计算机可读介质中,以供指令执行系统、装置或设备(如基于计算机的系统、包括处理器的系统或其他可以从指令执行系统、装置或设备取指令并执行指令的系统)使用,或结合这些指令执行系统、装置或设备而使用。就本说明书而言,"计算机可读介质"可以是任何可以包含、存储、通信、传播或传输程序以供指令执行系统、装置或设备或结合这些指令执行系统、装置或设备而使用的装置。计算机可读介质的更具体的示例(非穷尽性列表)包括以下:具有一个或多个布线的电连接部(电子装置),便携式计算机盘盒(磁装置),随机存取存储器(RAM),只读存储器(ROM),可擦除可编辑只读存储器(EPROM或闪速存储器),光纤装置,以及便携式光盘只读存储器(CDROM)。另外,计算机可读介质甚至可以是可在其上打印所述程序的纸或其他合适的介质,因为可以例如通过对纸或其他介质进行光学扫描,接着进行编辑、解译或必要时以其 他合适方式进行处理来以电子方式获得所述程序,然后将其存储在计算机存储器中。The logic and/or steps represented in the flowchart or otherwise described herein, for example, may be considered as an ordered list of executable instructions for performing logical functions, and may be embodied in any computer readable medium, Used in conjunction with, or in conjunction with, an instruction execution system, apparatus, or device (eg, a computer-based system, a system including a processor, or other system that can fetch instructions and execute instructions from an instruction execution system, apparatus, or device) Or use with equipment. For the purposes of this specification, a "computer-readable medium" can be any apparatus that can contain, store, communicate, propagate, or transport a program for use in an instruction execution system, apparatus, or device, or in conjunction with the instruction execution system, apparatus, or device. More specific examples (non-exhaustive list) of computer readable media include the following: electrical connections (electronic devices) having one or more wires, portable computer disk cartridges (magnetic devices), random access memory (RAM), Read only memory (ROM), erasable editable read only memory (EPROM or flash memory), fiber optic devices, and portable compact disk read only memory (CDROM). In addition, the computer readable medium may even be a paper or other suitable medium on which the program can be printed, as it may be optically scanned, for example by paper or other medium, followed by editing, interpretation or, if appropriate, other suitable The method is processed to obtain the program electronically and then stored in computer memory.
应当理解,本发明的各部分可以用硬件、软件、固件或它们的组合来执行。在上述实施方式中,多个步骤或方法可以用存储在存储器中且由合适的指令执行系统执行的软件或固件来执行。例如,如果用硬件来执行,和在另一实施方式中一样,可用本领域公知的下列技术中的任一项或他们的组合来执行:具有用于对数据信号执行逻辑功能的逻辑门电路的离散逻辑电路,具有合适的组合逻辑门电路的专用集成电路,可编程门阵列(PGA),现场可编程门阵列(FPGA)等。It should be understood that portions of the invention may be implemented in hardware, software, firmware or a combination thereof. In the above-described embodiments, multiple steps or methods may be performed by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if executed in hardware, as in another embodiment, it can be performed by any one of the following techniques or combinations thereof known in the art: having logic gates for performing logic functions on data signals Discrete logic circuits, application specific integrated circuits with suitable combinational logic gates, programmable gate arrays (PGAs), field programmable gate arrays (FPGAs), etc.
本技术领域的普通技术人员可以理解执行上述实施方法携带的全部或部分步骤是可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,该程序在执行时,包括方法实施例的步骤之一或其组合。Those skilled in the art can understand that all or part of the steps carried in carrying out the above implementation method can be completed by a program to instruct related hardware, and the program can be stored in a computer readable storage medium, and the program is executed. Including one or a combination of the steps of the method embodiments.
此外,在本发明各个实施例中的各功能单元可以集成在一个处理模块中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个模块中。上述集成的模块既可以采用硬件的形式执行,也可以采用软件功能模块的形式执行。所述集成的模块如果以软件功能模块的形式执行并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above integrated modules can be executed in the form of hardware or in the form of software functional modules. The integrated modules, if executed in the form of software functional modules and sold or used as separate products, may also be stored in a computer readable storage medium.
上述提到的存储介质可以是只读存储器,磁盘或光盘等。尽管上面已经示出和描述了本发明的实施例,可以理解的是,上述实施例是示例性的,不能理解为对本发明的限制,本领域的普通技术人员在本发明的范围内可以对上述实施例进行变化、修改、替换和变型。The above mentioned storage medium may be a read only memory, a magnetic disk or an optical disk or the like. Although the embodiments of the present invention have been shown and described, it is understood that the above-described embodiments are illustrative and are not to be construed as limiting the scope of the invention. The embodiments are subject to variations, modifications, substitutions and variations.

Claims (20)

  1. 一种云台的控制方法,其特征在于,包括:A method for controlling a gimbal, characterized in that it comprises:
    在处理器完成升级之后,获取所述云台的轴的关节角;After the processor completes the upgrade, acquiring the joint angle of the axis of the pan/tilt;
    判断所述轴的关节角是否处于第一预设关节角范围内;和Determining whether the joint angle of the shaft is within a first predetermined joint angle range; and
    当所述轴的关节角不在所述第一预设关节角范围内时,将所述轴的关节角调整到所述第一预设关节角范围内。When the joint angle of the shaft is not within the first predetermined joint angle range, the joint angle of the shaft is adjusted to be within the first preset joint angle range.
  2. 根据权利要求1所述的控制方法,其特征在于,所述云台具有多个轴,所述获取所述云台的轴的关节角包括:The control method according to claim 1, wherein the pan/tilt has a plurality of axes, and the joint angle of the axis for acquiring the pan/tilt head comprises:
    获取所述云台每一个轴的关节角;Obtaining a joint angle of each axis of the pan/tilt;
    所述判断所述轴的关节角是否处于第一预设关节角范围内包括:The determining whether the joint angle of the shaft is within a first preset joint angle range comprises:
    判断所述每一个轴的关节角是否处于所述第一预设关节角范围内;Determining whether the joint angle of each of the axes is within the first predetermined joint angle range;
    所述当所述轴的关节角不处于所述第一预设关节角范围内时,将所述轴的关节角调整到所述第一预设关节角范围内包括:Adjusting the joint angle of the shaft to the first preset joint angle range when the joint angle of the shaft is not within the first preset joint angle range includes:
    当所述云台的一个或多个轴的关节角不处于所述第一预设关节角范围内时,将所述一个或多个轴的关节角调整到所述第一预设关节角范围内。Adjusting a joint angle of the one or more axes to the first predetermined joint angle range when a joint angle of one or more axes of the pan/tilt is not within the first predetermined joint angle range Inside.
  3. 根据权利要求1或2所述的控制方法,其特征在于,所述第一预设关节角范围为包括关节角为0°的范围。The control method according to claim 1 or 2, wherein the first predetermined joint angle range is a range including a joint angle of 0°.
  4. 根据权利要求1-3任一项所述的控制方法,其特征在于,所述第一预设关节角范围为[-0.5°,0.5°]。The control method according to any one of claims 1 to 3, wherein the first predetermined joint angle range is [-0.5°, 0.5°].
  5. 根据权利要求2所述的控制方法,其特征在于,所述将所述一个或多个轴的关节角调整到所述第一预设关节角范围内包括:The control method according to claim 2, wherein the adjusting the joint angle of the one or more axes to the first predetermined joint angle range comprises:
    当所述一个或多个轴中的第一轴的关节角处于第二预设关节角范围内时,将所述第一轴的目标关节角设置为0°;和Setting a target joint angle of the first axis to 0° when a joint angle of the first one of the one or more axes is within a second predetermined joint angle range; and
    根据所述目标关节角将所述云台的第一轴的关节角闭环调整到所述第一预设关节角范围内。The joint angle of the first axis of the pan/tilt is closed-loop adjusted to the first predetermined joint angle range according to the target joint angle.
  6. 根据权利要求5所述的控制方法,其特征在于,所述当所述一个或多个轴中的第一轴的关节角处于第二预设关节角范围内时,将所述第一轴的目标关节角设置为0°包括:The control method according to claim 5, wherein said first axis is when said joint angle of said first one of said one or more axes is within a second predetermined joint angle range The target joint angle is set to 0° including:
    当所述一个或多个轴中的第一轴的关节角的绝对值在预设绝对值范围内时,将所述第一轴的目标关节角设置为0°。The target joint angle of the first axis is set to 0° when the absolute value of the joint angle of the first one of the one or more axes is within a preset absolute value range.
  7. 根据权利要求5或6所述的控制方法,其特征在于,所述将所述一个或多个轴的关节角调整到所述第一预设关节角范围内包括:The control method according to claim 5 or 6, wherein the adjusting the joint angle of the one or more axes to the first predetermined joint angle range comprises:
    当所述一个或多个轴中的第一轴的关节角不处于所述第二预设关节角范围内时,确定多个时刻的所述第一轴的目标关节角;和Determining a target joint angle of the first axis at a plurality of times when a joint angle of the first one of the one or more axes is not within the second predetermined joint angle range; and
    根据所述多个时刻的所述第一轴的目标关节角对所述第一轴的关节角进行闭环调整。Closed-loop adjustment of the joint angle of the first axis according to a target joint angle of the first axis at the plurality of times.
  8. 根据权利要求7所述的控制方法,其特征在于,所述多个时刻中的至少一个时刻的目标关节角是根据上一时刻的所述第一轴的目标关节角确定的。The control method according to claim 7, wherein the target joint angle of at least one of the plurality of times is determined based on a target joint angle of the first axis at a previous time.
  9. 根据权利要求7或8所述的控制方法,其特征在于,所述多个时刻中的至少一个时刻的目标关节角是根据该时刻所述第一轴的实际关节角确定的。The control method according to claim 7 or 8, wherein the target joint angle of at least one of the plurality of times is determined based on an actual joint angle of the first axis at the time.
  10. 根据权利要求1所述的控制方法,其特征在于,所述控制方法还包括:The control method according to claim 1, wherein the control method further comprises:
    接收外部设备的姿态控制指令;和Receiving an attitude control command of an external device; and
    将所述轴的关节角调整到所述第一预设关节角范围内后,根据所述姿态控制指令对所述云台的姿态进行控制。After adjusting the joint angle of the shaft to the first preset joint angle range, the attitude of the pan/tilt is controlled according to the attitude control command.
  11. 一种云台的控制设备,其特征在于,包括:A control device for a gimbal, comprising:
    存储器,所述存储器用于存储程序代码;a memory for storing program code;
    处理器,所述处理器用于执行所述程序代码,当所述程序代码被执行时,用于执行以下操作:a processor for executing the program code, when the program code is executed, for performing the following operations:
    在所述处理器完成升级之后,获取所述云台的轴的关节角;After the processor completes the upgrade, acquiring a joint angle of the axis of the pan/tilt;
    判断所述轴的关节角是否处于第一预设关节角范围内;和Determining whether the joint angle of the shaft is within a first predetermined joint angle range; and
    当所述轴的关节角不在所述第一预设关节角范围内时,将所述轴的关节角调整到所述第一预设关节角范围内。When the joint angle of the shaft is not within the first predetermined joint angle range, the joint angle of the shaft is adjusted to be within the first preset joint angle range.
  12. 根据权利要求11所述的控制设备,其特征在于,所述云台具有多个轴,当所述程序代码被执行以实现获取所述云台的轴的关节角的操作时,包括执行以下操作:The control apparatus according to claim 11, wherein said pan/tilt has a plurality of axes, and when said program code is executed to implement an operation of acquiring a joint angle of an axis of said pan/tilt head, comprising performing the following operations :
    获取所述云台每一个轴的关节角;Obtaining a joint angle of each axis of the pan/tilt;
    当所述程序代码被执行以实现判断所述轴的关节角是否处于第一预设关节角范围内的操作时,包括执行以下操作:When the program code is executed to implement an operation of determining whether the joint angle of the shaft is within a first predetermined joint angle range, the following operations are performed:
    判断所述每一个轴的关节角是否处于所述第一预设关节角范围内;Determining whether the joint angle of each of the axes is within the first predetermined joint angle range;
    当所述程序代码被执行以实现当所述轴的关节角不处于所述第一预设关节角范围内时,将所述轴的关节角调整到所述第一预设关节角范围内的操作时,包括执行以下操作:When the program code is executed to achieve adjustment of the joint angle of the shaft to the first predetermined joint angle range when the joint angle of the shaft is not within the first predetermined joint angle range When you do this, you do the following:
    当所述云台的一个或多个轴的关节角不处于所述第一预设关节角范围内时,将所述一个或多个轴的关节角调整到所述第一预设关节角范围内。Adjusting a joint angle of the one or more axes to the first predetermined joint angle range when a joint angle of one or more axes of the pan/tilt is not within the first predetermined joint angle range Inside.
  13. 根据权利要求11或12所述的控制设备,其特征在于,所述第一预设关节角范围为包括关节角为0°的范围。The control apparatus according to claim 11 or 12, wherein the first predetermined joint angle range is a range including a joint angle of 0°.
  14. 根据权利要求11-13任一项所述的控制设备,其特征在于,所述第一预设关节角范围为[-0.5°,0.5°]。The control apparatus according to any one of claims 11 to 13, wherein the first predetermined joint angle ranges from [-0.5°, 0.5°].
  15. 根据权利要求12所述的控制设备,其特征在于,当所述程序代码被执行以实现将所述一个或多个轴的关节角调整到所述第一预设关节角范围内的操作时,包括执行以下操作:The control device according to claim 12, wherein when said program code is executed to effect an operation of adjusting a joint angle of said one or more axes to said first predetermined joint angle range, This includes doing the following:
    当所述一个或多个轴中的第一轴的关节角处于第二预设关节角范围内时,将所述第一轴的目标关节角设置为0°;和Setting a target joint angle of the first axis to 0° when a joint angle of the first one of the one or more axes is within a second predetermined joint angle range; and
    根据所述目标关节角将所述云台的第一轴的关节角闭环调整到所述第一预设关节角范围内。The joint angle of the first axis of the pan/tilt is closed-loop adjusted to the first predetermined joint angle range according to the target joint angle.
  16. 根据权利要求15所述的控制设备,其特征在于,当所述程序代码被执行以实现当所述一个或多个轴中的第一轴的关节角处于第二预设关节角范围内时,将所述第一轴的目标关节角设置为0°的操作时,包括执行以下操作:The control apparatus according to claim 15, wherein when said program code is executed to achieve when a joint angle of a first one of said one or more axes is within a second predetermined joint angle range, When the operation of setting the target joint angle of the first axis to 0°, the following operations are performed:
    当所述一个或多个轴中的第一轴的关节角的绝对值在预设绝对值范围内时,将所述第一轴的目标关节角设置为0°。The target joint angle of the first axis is set to 0° when the absolute value of the joint angle of the first one of the one or more axes is within a preset absolute value range.
  17. 根据权利要求15或16所述的控制设备,其特征在于,当所述程序代码被执行以实现将所述一个或多个轴的关节角调整到所述第一预设关节角范围内的操作时,包括执行以下操作:A control apparatus according to claim 15 or 16, wherein when said program code is executed to effect adjustment of a joint angle of said one or more axes to said first predetermined joint angle range When you do the following:
    当所述一个或多个轴中的第一轴的关节角不处于所述第二预设关节角范围内时,确定 多个时刻的所述第一轴的目标关节角;和Determining a target joint angle of the first axis at a plurality of times when a joint angle of the first one of the one or more axes is not within the second predetermined joint angle range; and
    根据所述多个时刻的所述第一轴的目标关节角对所述第一轴的关节角进行闭环调整。Closed-loop adjustment of the joint angle of the first axis according to a target joint angle of the first axis at the plurality of times.
  18. 根据权利要求17所述的控制设备,其特征在于,所述多个时刻中的至少一个时刻的目标关节角是根据上一时刻的所述第一轴的目标关节角确定的。The control apparatus according to claim 17, wherein the target joint angle of at least one of said plurality of times is determined based on a target joint angle of said first axis at a previous time.
  19. 根据权利要求17或18所述的控制设备,其特征在于,所述多个时刻中的至少一个时刻的目标关节角是根据该时刻所述第一轴的实际关节角确定的。The control apparatus according to claim 17 or 18, wherein the target joint angle of at least one of the plurality of times is determined based on an actual joint angle of the first axis at the time.
  20. 根据权利要求11所述的控制设备,其特征在于,当所述程序代码被执行时,还用于执行以下操作:The control device according to claim 11, wherein when said program code is executed, it is further configured to:
    接收外部设备的姿态控制指令;和Receiving an attitude control command of an external device; and
    将所述轴的关节角调整到所述第一预设关节角范围内后,根据所述姿态控制指令对所述云台的姿态进行控制。After adjusting the joint angle of the shaft to the first preset joint angle range, the attitude of the pan/tilt is controlled according to the attitude control command.
PCT/CN2017/118272 2017-12-25 2017-12-25 Cradle head control method and control device WO2019126932A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201780018008.2A CN109313454A (en) 2017-12-25 2017-12-25 The control method and control equipment of holder
PCT/CN2017/118272 WO2019126932A1 (en) 2017-12-25 2017-12-25 Cradle head control method and control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/118272 WO2019126932A1 (en) 2017-12-25 2017-12-25 Cradle head control method and control device

Publications (1)

Publication Number Publication Date
WO2019126932A1 true WO2019126932A1 (en) 2019-07-04

Family

ID=65205366

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/118272 WO2019126932A1 (en) 2017-12-25 2017-12-25 Cradle head control method and control device

Country Status (2)

Country Link
CN (1) CN109313454A (en)
WO (1) WO2019126932A1 (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109947138A (en) * 2019-03-29 2019-06-28 西安工业大学 Cloud platform control method and holder
CN111656299A (en) * 2019-04-28 2020-09-11 深圳市大疆创新科技有限公司 Cloud deck control method, equipment, movable platform and storage medium
CN110187721A (en) * 2019-05-05 2019-08-30 湖北久之洋红外系统股份有限公司 One kind thousand indexes accurate holder motion control device and method
CN110825124A (en) * 2019-11-15 2020-02-21 杭州电子科技大学 Holder control method and system
WO2022021092A1 (en) * 2020-07-28 2022-02-03 深圳市大疆创新科技有限公司 Gimbal control method and apparatus, device, and computer-readable storage medium
CN114489103B (en) * 2022-01-21 2023-09-08 西南交通大学 Mobile phone unmanned aerial vehicle coupled with single-axis cradle head and control method

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110042459A1 (en) * 2009-02-06 2011-02-24 Jacob Ryan Sullivan Weapons Stabilization and Compensation System
CN104089529A (en) * 2014-05-22 2014-10-08 陈远春 Method and equipment for calibrating fighter weapon system by fiber-optic gyroscope
CN203928892U (en) * 2014-05-22 2014-11-05 焦锋利 The equipment that uses fibre optic gyroscope to calibrate fighter plane armament systems
CN204628997U (en) * 2015-05-19 2015-09-09 毛翔 3D remote control The Cloud Terrace
CN105144695A (en) * 2013-03-15 2015-12-09 费福利系统公司 Method and system for enabling pointing control of an actively stabilized camera
CN106444859A (en) * 2016-11-10 2017-02-22 广州市景沃电子有限公司 Transverse-rolling-angular-motion-isolated single-axis stable holder and control method

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
NL8101668A (en) * 1981-04-03 1982-11-01 Philips Nv DEVICE FOR DETECTING THE POSITION OF AN OBJECT.
CN103268124B (en) * 2013-04-22 2016-02-03 天津市亚安科技股份有限公司 A kind of control method of The Cloud Terrace motion and The Cloud Terrace thereof
CN106133631B (en) * 2015-04-02 2017-09-29 深圳市大疆灵眸科技有限公司 Stabilized platform and its following control system and method
CN107079103B (en) * 2016-05-31 2019-04-02 深圳市大疆灵眸科技有限公司 Cloud platform control method, device and holder

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110042459A1 (en) * 2009-02-06 2011-02-24 Jacob Ryan Sullivan Weapons Stabilization and Compensation System
CN105144695A (en) * 2013-03-15 2015-12-09 费福利系统公司 Method and system for enabling pointing control of an actively stabilized camera
CN104089529A (en) * 2014-05-22 2014-10-08 陈远春 Method and equipment for calibrating fighter weapon system by fiber-optic gyroscope
CN203928892U (en) * 2014-05-22 2014-11-05 焦锋利 The equipment that uses fibre optic gyroscope to calibrate fighter plane armament systems
CN204628997U (en) * 2015-05-19 2015-09-09 毛翔 3D remote control The Cloud Terrace
CN106444859A (en) * 2016-11-10 2017-02-22 广州市景沃电子有限公司 Transverse-rolling-angular-motion-isolated single-axis stable holder and control method

Also Published As

Publication number Publication date
CN109313454A (en) 2019-02-05

Similar Documents

Publication Publication Date Title
WO2019126932A1 (en) Cradle head control method and control device
WO2018072717A1 (en) Photography composition method and device thereof, movable object, and computer readable storage medium
WO2018098784A1 (en) Unmanned aerial vehicle controlling method, device, equipment and unmanned aerial vehicle controlling system
WO2019127344A1 (en) Pan-tilt head reset control method and device, pan-tilt head, and unmanned aerial vehicle
US20150288857A1 (en) Mount that facilitates positioning and orienting a mobile computing device
US11041588B2 (en) Method and system for controlling a gimbal
CN108780324B (en) Unmanned aerial vehicle, and unmanned aerial vehicle control method and device
WO2019061295A1 (en) Video processing method and device, unmanned aerial vehicle and system
CN106982324B (en) Unmanned aerial vehicle, video shooting method and device
WO2018191963A1 (en) Remote control, camera mount, and camera mount control method, device, and system
WO2020215215A1 (en) Gimbal control method and device, gimbal, system and storage medium
WO2020019106A1 (en) Gimbal and unmanned aerial vehicle control method, gimbal, and unmanned aerial vehicle
WO2019227384A1 (en) Pan-tilt control method and pan-tilt
WO2016000194A1 (en) Photographing control method, device and pan-tilt device
WO2019210467A1 (en) Pan-tilt control method and apparatus, pan-tilt system, unmanned aerial vehicle and computer-readable storage medium
WO2019095210A1 (en) Smart glasses, method for controlling gimbal by means of same, gimbal, control method and unmanned aerial vehicle
WO2017177369A1 (en) Tracking shooting control method and system for stabilizer
WO2018191971A1 (en) Cradle head control method and cradle head
JP6026695B1 (en) Control device, moving body, control method, and program
WO2017181930A1 (en) Method and device for displaying flight direction, and unmanned aerial vehicle
WO2020000423A1 (en) Control method for gimbal, gimbal, aerial vehicle, and computer-readable storage medium
WO2019148348A1 (en) Tripod head control method and apparatus
WO2020019350A1 (en) Control method and apparatus for unmanned aerial vehicle and unmanned aerial vehicle
CN103713655A (en) Rotary-deflection-angle correction system and rotary-deflection-angle correction method of digital aerial-surveying camera
WO2020087354A1 (en) Vertical stability augmentation mechanism and control method therefor, as well as movable 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: 17936106

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: 17936106

Country of ref document: EP

Kind code of ref document: A1