WO2022109801A1 - Cooperative control method and system for cradle head and aircraft - Google Patents

Cooperative control method and system for cradle head and aircraft Download PDF

Info

Publication number
WO2022109801A1
WO2022109801A1 PCT/CN2020/131204 CN2020131204W WO2022109801A1 WO 2022109801 A1 WO2022109801 A1 WO 2022109801A1 CN 2020131204 W CN2020131204 W CN 2020131204W WO 2022109801 A1 WO2022109801 A1 WO 2022109801A1
Authority
WO
WIPO (PCT)
Prior art keywords
gimbal
preset
avoidance
angle
aircraft
Prior art date
Application number
PCT/CN2020/131204
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 CN202080070618.9A priority Critical patent/CN115175854A/en
Priority to PCT/CN2020/131204 priority patent/WO2022109801A1/en
Publication of WO2022109801A1 publication Critical patent/WO2022109801A1/en

Links

Images

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B64AIRCRAFT; AVIATION; COSMONAUTICS
    • B64DEQUIPMENT FOR FITTING IN OR TO AIRCRAFT; FLIGHT SUITS; PARACHUTES; ARRANGEMENTS OR MOUNTING OF POWER PLANTS OR PROPULSION TRANSMISSIONS IN AIRCRAFT
    • B64D47/00Equipment not otherwise provided for
    • B64D47/08Arrangements of cameras
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B64AIRCRAFT; AVIATION; COSMONAUTICS
    • B64UUNMANNED AERIAL VEHICLES [UAV]; EQUIPMENT THEREFOR
    • B64U20/00Constructional aspects of UAVs
    • B64U20/80Arrangement of on-board electronics, e.g. avionics systems or wiring
    • B64U20/87Mounting of imaging devices, e.g. mounting of gimbals

Abstract

A cooperative control method and system for a cradle head (330) and an aircraft (310), the cradle head (330) being mounted on the aircraft (310), the method comprising: acquiring Euler angles of an aircraft (310) and joint angles of a cradle head (330); when detected that an angle corresponding to a first direction among the Euler angles of the aircraft (310) reaches a first preset angle, controlling the increase speed of the Euler angles of the aircraft (310) to not be greater than a first preset speed; and when detected that an angle corresponding to the first direction among the joint angles of the cradle head (330) reaches a second preset angle, controlling, according to a first preset avoidance parameter, the cradle head (330) to rotate in the same direction as the aircraft (310) in the first direction, the first preset avoidance parameter being related to the increase speed of the Euler angles of the aircraft (310). When the cradle head (330) needs to avoid a mechanical limit and avoid limiting the increase speed of the Euler angles of the aircraft (310) when paddles are observed, time is reserved for the cradle head (330) avoidance, so that the cradle head (330) may slowly avoid, thereby ensuring the smoothness of an image captured picture.

Description

云台和飞行器的协同控制方法和系统Cooperative control method and system of gimbal and aircraft
说明书manual
技术领域technical field
本申请涉及云台和飞行器控制领域,更具体地涉及一种云台和飞行器的协同控制方法和系统。The present application relates to the field of gimbal and aircraft control, and more particularly to a method and system for cooperative control of a gimbal and an aircraft.
背景技术Background technique
目前的飞行器上通常搭载有云台。云台可以为成像装置增稳,使架设在云台上的成像装置能够拍摄出流畅且稳定的画面。The current aircraft is usually equipped with a gimbal. The gimbal can stabilize the imaging device, so that the imaging device erected on the gimbal can shoot smooth and stable images.
云台的关节角通常具有一定的机械限位,当飞行器的倾角过大时,可能使云台关节角过大而撞击到云台的机械限位,或者引起架设在云台上的成像装置拍摄到飞行器的机身或桨叶而导致拍摄的图像不可用的情况。在这种情况下,若云台迅速反向规避,则会导致成像装置拍摄的画面突变;若规避速度过小,则又会造成规避不及时的问题。The joint angle of the gimbal usually has a certain mechanical limit. When the inclination angle of the aircraft is too large, the joint angle of the gimbal may be too large and may hit the mechanical limit of the gimbal, or cause the imaging device installed on the gimbal to shoot. A situation where the captured image is unavailable due to the aircraft's fuselage or blades. In this case, if the gimbal quickly evades in the reverse direction, the picture captured by the imaging device will suddenly change; if the evasion speed is too small, it will cause the problem of untimely evasion.
发明内容SUMMARY OF THE INVENTION
在发明内容部分中引入了一系列简化形式的概念,这将在具体实施方式部分中进一步详细说明。本发明的发明内容部分并不意味着要试图限定出所要求保护的技术方案的关键特征和必要技术特征,更不意味着试图确定所要求保护的技术方案的保护范围。A series of concepts in simplified form have been introduced in the Summary section, which are described in further detail in the Detailed Description section. The Summary of the Invention section of the present invention is not intended to attempt to limit the key features and essential technical features of the claimed technical solution, nor is it intended to attempt to determine the protection scope of the claimed technical solution.
本发明实施例第一方面提供了一种云台和飞行器的协同控制方法,所述云台搭载于所述飞行器上,所述方法包括:A first aspect of the embodiments of the present invention provides a method for cooperative control of a gimbal and an aircraft, where the gimbal is mounted on the aircraft, and the method includes:
获取所述飞行器的欧拉角和所述云台的关节角;Obtain the Euler angle of the aircraft and the joint angle of the gimbal;
当检测到所述飞行器的欧拉角中对应第一方向的角度达到第一预设角度时,控制所述飞行器的欧拉角的增加速度不大于第一预设速度;When it is detected that the angle corresponding to the first direction in the Euler angles of the aircraft reaches a first preset angle, controlling the increasing speed of the Euler angles of the aircraft not to be greater than the first preset speed;
当检测到所述云台的关节角中对应所述第一方向的角度达到第二预设角度时,根据第一预设规避参数控制所述云台在所述第一方向上与所述飞行器同向转动,所述第一预设规避参数与所述飞行器的欧拉角的增加速度相关。When it is detected that the angle of the joint angles of the gimbal corresponding to the first direction reaches a second preset angle, control the gimbal to align with the aircraft in the first direction according to the first preset avoidance parameter When rotating in the same direction, the first preset avoidance parameter is related to the increasing speed of the Euler angle of the aircraft.
本发明实施例第二方面提供了一种云台和飞行器的协同控制系统,所述协同控制系统包括云台、飞行器以及控制装置,所述云台搭载于所述飞行器上,所述控制装置用于:A second aspect of the embodiments of the present invention provides a cooperative control system of a pan-tilt and an aircraft, the cooperative control system includes a pan-tilt, an aircraft, and a control device, the pan-tilt is mounted on the aircraft, and the control device uses At:
获取所述飞行器的欧拉角和所述云台的关节角;Obtain the Euler angle of the aircraft and the joint angle of the gimbal;
当检测到所述飞行器的欧拉角中对应第一方向的角度达到第一预设角度时,控制所述飞行器的欧拉角的增加速度不大于第一预设速度;When it is detected that the angle corresponding to the first direction in the Euler angles of the aircraft reaches a first preset angle, controlling the increasing speed of the Euler angles of the aircraft not to be greater than the first preset speed;
当检测到所述云台的关节角中对应所述第一方向的角度达到第二预设角度时,根据第一预设规避参数控制所述云台在所述第一方向上与所述飞行器同向转动,所述第一预设规避参数与所述飞行器的欧拉角的增加速度相关。When it is detected that the angle of the joint angles of the gimbal corresponding to the first direction reaches a second preset angle, control the gimbal to align with the aircraft in the first direction according to the first preset avoidance parameter When rotating in the same direction, the first preset avoidance parameter is related to the increasing speed of the Euler angle of the aircraft.
根据本发明实施例的云台和飞行器的协同控制方法和系统,在云台需要规避机械限位或避免看桨时,限制飞行器的欧拉角的增加速度,为云台规避预留出时间,使云台能够缓慢规避,从而保证拍摄画面的流畅性。According to the cooperative control method and system of the gimbal and the aircraft, when the gimbal needs to avoid the mechanical limit or avoid looking at the paddle, the increase speed of the Euler angle of the aircraft is limited, and time is reserved for the gimbal to avoid, The gimbal can be slowly avoided, so as to ensure the smoothness of the shooting picture.
附图说明Description of drawings
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions in the embodiments of the present invention more clearly, the following briefly introduces the accompanying drawings used in the description of the embodiments. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For those of ordinary skill in the art, other drawings can also be obtained from these drawings without creative labor.
在附图中:In the attached image:
图1示出根据本发明一实施例的云台和飞行器的协同控制方法的示意性流程图;FIG. 1 shows a schematic flowchart of a cooperative control method for a gimbal and an aircraft according to an embodiment of the present invention;
图2A示出了本发明一实施例的飞行器悬停、云台保持水平的示意图;FIG. 2A shows a schematic diagram of hovering the aircraft and keeping the gimbal level in an embodiment of the present invention;
图2B示出了本发明一实施例的飞行器前倾、云台保持水平的示意图;FIG. 2B shows a schematic diagram of the aircraft leaning forward and the gimbal keeping level according to an embodiment of the present invention;
图3示出根据本发明一实施例的云台和飞行器的协同控制系统的示意性框图。FIG. 3 shows a schematic block diagram of a cooperative control system of a gimbal and an aircraft according to an embodiment of the present invention.
具体实施方式Detailed ways
为了使得本发明的目的、技术方案和优点更为明显,下面将参照附图详细描述根据本发明的示例实施例。显然,所描述的实施例仅仅是本发明的一部分实施例,而不是本发明的全部实施例,应理解,本发明不受这里描述的 示例实施例的限制。基于本发明中描述的本发明实施例,本领域技术人员在没有付出创造性劳动的情况下所得到的所有其它实施例都应落入本发明的保护范围之内。In order to make the objects, technical solutions and advantages of the present invention more apparent, exemplary embodiments according to the present invention will be described in detail below with reference to the accompanying drawings. Obviously, the described embodiments are only some, but not all, embodiments of the present invention, and it should be understood that the present invention is not limited by the example embodiments described herein. Based on the embodiments of the present invention described in the present invention, all other embodiments obtained by those skilled in the art without creative efforts shall fall within the protection scope of the present invention.
在下文的描述中,给出了大量具体的细节以便提供对本发明更为彻底的理解。然而,对于本领域技术人员而言显而易见的是,本发明可以无需一个或多个这些细节而得以实施。在其他的例子中,为了避免与本发明发生混淆,对于本领域公知的一些技术特征未进行描述。In the following description, numerous specific details are set forth in order to provide a more thorough understanding of the present invention. It will be apparent, however, to one skilled in the art that the present invention may be practiced without one or more of these details. In other instances, some technical features known in the art have not been described in order to avoid obscuring the present invention.
应当理解的是,本发明能够以不同形式实施,而不应当解释为局限于这里提出的实施例。相反地,提供这些实施例将使公开彻底和完全,并且将本发明的范围完全地传递给本领域技术人员。It should be understood that the present invention may be embodied in different forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.
在此使用的术语的目的仅在于描述具体实施例并且不作为本发明的限制。在此使用时,单数形式的“一”、“一个”和“所述/该”也意图包括复数形式,除非上下文清楚指出另外的方式。还应明白术语“组成”和/或“包括”,当在该说明书中使用时,确定所述特征、整数、步骤、操作、元件和/或部件的存在,但不排除一个或更多其它的特征、整数、步骤、操作、元件、部件和/或组的存在或添加。在此使用时,术语“和/或”包括相关所列项目的任何及所有组合。The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used herein, the singular forms "a," "an," and "the/the" are intended to include the plural forms as well, unless the context clearly dictates otherwise. It should also be understood that the terms "compose" and/or "include", when used in this specification, identify the presence of stated features, integers, steps, operations, elements and/or components, but do not exclude one or more other The presence or addition of features, integers, steps, operations, elements, parts and/or groups. As used herein, the term "and/or" includes any and all combinations of the associated listed items.
为了彻底理解本发明,将在下列的描述中提出详细的步骤以及详细的结构,以便阐释本发明提出的技术方案。本发明的较佳实施例详细描述如下,然而除了这些详细描述外,本发明还可以具有其他实施方式。For a thorough understanding of the present invention, detailed steps and detailed structures will be proposed in the following description to explain the technical solutions proposed by the present invention. Preferred embodiments of the present invention are described in detail below, however, the present invention may have other embodiments in addition to these detailed descriptions.
下面结合附图,对本申请的云台和飞行器的协同控制方法、航向测量系统、无人机和计算机可读存储介质进行详细说明。在不冲突的情况下,下述的实施例及实施方式中的特征可以相互组合。In the following, the cooperative control method of the pan/tilt and the aircraft, the heading measurement system, the unmanned aerial vehicle and the computer-readable storage medium of the present application will be described in detail with reference to the accompanying drawings. The features of the embodiments and implementations described below may be combined with each other without conflict.
首先,参照图1,对本发明实施例提供的云台和飞行器的协同控制方法进行描述。图1示出了根据本发明的一个实施例的云台和飞行器的协同控制方法100的流程图,其中,云台搭载在飞行器上。如图1所示,该云台和飞行器的协同控制方法100包括如下步骤:First, with reference to FIG. 1 , a method for cooperative control of a gimbal and an aircraft provided by an embodiment of the present invention will be described. FIG. 1 shows a flowchart of a method 100 for cooperative control of a gimbal and an aircraft according to an embodiment of the present invention, wherein the gimbal is mounted on the aircraft. As shown in FIG. 1 , the cooperative control method 100 of the gimbal and the aircraft includes the following steps:
在步骤S110,获取所述飞行器的欧拉角和所述云台的关节角;In step S110, obtain the Euler angle of the aircraft and the joint angle of the gimbal;
在步骤S120,当检测到所述飞行器的欧拉角中对应第一方向的角度达到第一预设角度时,控制所述飞行器的欧拉角的增加速度不大于第一预设速度;In step S120, when it is detected that the angle corresponding to the first direction in the Euler angles of the aircraft reaches a first preset angle, the increasing speed of the Euler angles of the aircraft is controlled to be no greater than the first preset speed;
在步骤S130,当检测到所述云台的关节角中对应所述第一方向的角度达到第二预设角度时,根据第一预设规避参数控制所述云台在所述第一方向上与所述飞行器同向转动,所述第一预设规避参数与所述飞行器的欧拉角的增加速度相关。In step S130, when it is detected that the angle of the joint angles of the gimbal corresponding to the first direction reaches a second preset angle, the gimbal is controlled in the first direction according to a first preset avoidance parameter Rotating in the same direction as the aircraft, the first preset avoidance parameter is related to the increasing speed of the Euler angle of the aircraft.
根据本发明实施例的云台和飞行器的协同控制方法100,在云台需要规避机械限位时限制飞行器的欧拉角的增加速度,为云台规避预留出时间,同时根据与飞行器的欧拉角的增加速度相关的第一预设规避参数控制云台规避,使云台能够缓慢规避,从而保证拍摄画面的流畅性,同时也能够避免规避不及时的问题。According to the cooperative control method 100 of the gimbal and the aircraft, when the gimbal needs to avoid the mechanical limit, the increasing speed of the Euler angle of the aircraft is limited, and time is reserved for the gimbal to avoid. The first preset avoidance parameter related to the increasing speed of the pull angle controls the avoidance of the gimbal, so that the gimbal can be slowly avoided, thereby ensuring the smoothness of the shooting picture and avoiding the problem of untimely avoidance.
本发明实施例的云台和飞行器的协同控制方法100的执行主体可以是控制装置。该控制装置具体可以是无人机的飞行控制器,也可以是其他通用或者专用的处理器。在步骤S110中,控制装置实时获取飞行器的欧拉角和云台的关节角,获取的飞行器的欧拉角和云台的关节角至少包括飞行器的欧拉角中对应第一方向的角度和云台的关节角中对应该第一方向的角度。The execution subject of the method 100 for coordinating control of a gimbal and an aircraft in this embodiment of the present invention may be a control device. Specifically, the control device may be a flight controller of an unmanned aerial vehicle, or may be other general-purpose or special-purpose processors. In step S110, the control device acquires the Euler angles of the aircraft and the joint angles of the gimbal in real time, and the obtained Euler angles of the aircraft and the joint angles of the gimbal at least include the Euler angles of the aircraft corresponding to the first direction and the cloud The angle in the joint angle of the stage corresponding to the first direction.
其中,飞行器可以是无人机。飞行器可以包括一个或多个动力单元,用于为飞行器在空中飞行提供动力。一个或多个动力单元能够使飞行器在一个或多个自由度内运动。飞行器可以为旋翼飞行器,其可以包括多个旋翼,以作为飞行的动力单元。多个旋翼能够以相同的速度转动,给予飞行器相同的提升力或推进力;多个旋翼还能够以多种不同的速度转动,以为飞行器提供不同的提升力或推进力,并且还可以使得飞行器旋转,从而改变飞行器的欧拉角。Wherein, the aircraft may be an unmanned aerial vehicle. The aircraft may include one or more power units for powering the airborne flight of the aircraft. One or more power units are capable of moving the aircraft in one or more degrees of freedom. The aircraft may be a rotorcraft, which may include a plurality of rotors as the power unit for flight. Multiple rotors can rotate at the same speed, giving the aircraft the same lift or propulsion; multiple rotors can also rotate at multiple different speeds to provide different lift or propulsion for the aircraft, and can also make the aircraft rotate , thereby changing the Euler angles of the aircraft.
飞行器的欧拉角可以用于表征飞行器的姿态角。飞行器的欧拉角是由机体坐标系与地理坐标系之间的关系确定的,用于表征飞行器在偏航方向上的偏航角、俯仰方向上的俯仰角和横滚方向上的横滚角,下文中的第一方向可以是偏航方向、俯仰方向和横滚方向中的任意一个。飞行器的欧拉角可以由机体传感器测得,机体传感器包括陀螺仪、加速度计、指南针等,机体传感器与控制装置通信连接,从而将测得的参数发送至控制装置。The Euler angles of the aircraft can be used to characterize the attitude angle of the aircraft. The Euler angle of the aircraft is determined by the relationship between the body coordinate system and the geographic coordinate system, and is used to characterize the yaw angle of the aircraft in the yaw direction, the pitch angle in the pitch direction, and the roll angle in the roll direction. , the first direction hereinafter may be any one of the yaw direction, the pitch direction and the roll direction. The Euler angle of the aircraft can be measured by the body sensor, the body sensor includes a gyroscope, an accelerometer, a compass, etc. The body sensor is connected to the control device in communication, so that the measured parameters are sent to the control device.
飞行器上搭载有云台,云台是用于对架设在云台上的负载增稳的装置,其中,云台的负载可以为成像装置,同时,云台还可以调节负载的作业方向,例如,云台可以调节成像装置的拍摄方向。本发明实施例中的云台可以为两轴云台或者多轴云台,以下主要以三轴云台为例进行描述。The aircraft is equipped with a gimbal. The gimbal is a device used to stabilize the load erected on the gimbal. The load of the gimbal can be an imaging device. At the same time, the gimbal can also adjust the working direction of the load. For example, The PTZ can adjust the shooting direction of the imaging device. The pan/tilt in this embodiment of the present invention may be a two-axis pan/tilt or a multi-axis pan/tilt, and the following description will mainly take a three-axis pan/tilt as an example.
示例性地,三轴云台具体由云台基座、俯仰轴电机、横滚轴电机、偏航轴电机、俯仰轴轴臂、横滚轴轴臂和成像装置固定机构等部分构成,云台基座可以与飞行器连接并支撑其他部件,成像装置固定机构可以设置在横滚轴轴臂上,用于固定成像装置。其中,俯仰轴电机用于驱动俯仰轴轴臂在俯仰方向上转动,从而改变云台的俯仰角;横滚轴电机用于驱动横滚轴轴臂在横滚方向上转动,从而改变云台的横滚角;偏航轴电机用于驱动偏航轴轴臂在偏航方向上转动,从而改变云台的偏航角。在云台转动的同时,成像装置跟随云台的转动而转动,使得成像装置的拍摄方向发生变化。Exemplarily, the three-axis pan/tilt is specifically composed of a pan/tilt base, a pitch axis motor, a roll axis motor, a yaw axis motor, a pitch axis arm, a roll axis arm, and an imaging device fixing mechanism. The base can be connected with the aircraft and support other components, and the imaging device fixing mechanism can be arranged on the roll axis arm for fixing the imaging device. Among them, the pitch axis motor is used to drive the pitch axis arm to rotate in the pitch direction, thereby changing the pitch angle of the gimbal; the roll axis motor is used to drive the roll axis arm to rotate in the roll direction, thereby changing the gimbal's pitch angle. Roll angle; the yaw axis motor is used to drive the yaw axis arm to rotate in the yaw direction, thereby changing the yaw angle of the gimbal. When the PTZ rotates, the imaging device rotates following the rotation of the PTZ, so that the shooting direction of the imaging device changes.
参见图2A和图2B,其中图2A示出了飞行器210悬停、云台220水平时的状态,此时云台220的关节角为0°;图2B示出了飞行器210前倾,云台220水平时的状态,此时飞行器210的姿态角发生变化,若要使云台220的姿态角保持水平,则需要调整云台220的云台关节,关节角将发生变化。示例性地,可以通过设置在云台上的惯性测量单元来获取云台的姿态角;可以通过设置在偏航轴电机、横滚轴电机及俯仰轴电机中的角度传感器来获取云台的各个转动轴所对应的关节角。在步骤S110中获取的云台的关节角至少包括云台在俯仰、横滚和偏航方向中的一个方向上的关节角,该方向即第一方向,例如,若步骤S110中获取的飞行器的欧拉角包括对应俯仰方向的角度,则获取的云台的关节角至少包括云台在俯仰方向上的关节角。2A and 2B, wherein FIG. 2A shows the state when the aircraft 210 is hovering and the gimbal 220 is horizontal, and the joint angle of the gimbal 220 is 0° at this time; FIG. 2B shows the aircraft 210 is tilted forward, the gimbal 220 When the 220 is horizontal, the attitude angle of the aircraft 210 changes. To keep the attitude angle of the gimbal 220 horizontal, the gimbal joints of the gimbal 220 need to be adjusted, and the joint angle will change. Exemplarily, the attitude angle of the gimbal can be obtained through the inertial measurement unit provided on the gimbal; the angle sensors of the yaw axis motor, the roll axis motor and the pitch axis motor can be used to obtain each angle of the gimbal. The joint angle corresponding to the rotation axis. The joint angle of the gimbal obtained in step S110 includes at least the joint angle of the gimbal in one of the pitch, roll and yaw directions, which is the first direction. For example, if the The Euler angle includes an angle corresponding to the pitch direction, and the acquired joint angle of the gimbal includes at least the joint angle of the gimbal in the pitch direction.
云台在偏航方向、俯仰方向和横滚方向中的一个或者多个方向设置了相应的机械限位,使得云台在该方向不能实现无限制的转动。此外,当云台的关节角达到一定角度时,云台上的成像装置将存在看桨的情况,例如,假设云台在俯仰方向上的关节角的限位为+45°和-130°,但是当云台的关节角达到+32°时,云台上架设的成像装置将可能会拍摄到飞行器左右侧方的桨叶。因此,当飞行器的欧拉角达到一定的角度时,不再保持云台的欧拉角不变,而是需要控制云台与飞行器同向转动,以规避机械限位和避免看桨。Corresponding mechanical limits are set on the gimbal in one or more of the yaw direction, pitch direction and roll direction, so that the gimbal cannot rotate unrestrictedly in this direction. In addition, when the joint angle of the gimbal reaches a certain angle, the imaging device on the gimbal will see the paddle. For example, assuming that the joint angle of the gimbal in the pitch direction is limited to +45° and -130°, However, when the joint angle of the gimbal reaches +32°, the imaging device set up on the gimbal may capture the blades on the left and right sides of the aircraft. Therefore, when the Euler angle of the aircraft reaches a certain angle, the Euler angle of the gimbal is no longer kept unchanged, but the gimbal and the aircraft need to be controlled to rotate in the same direction to avoid mechanical limitations and avoid looking at the paddles.
在本发明实施例中,在规避时需要对云台与飞行器进行协同控制。具体地,在步骤S120,当检测到飞行器的欧拉角中对应第一方向的角度达到第一预设角度时,控制飞行器的欧拉角的增加速度不大于第一预设速度。其中,当云台为三轴云台时,第一方向可以是俯仰方向、横滚方向和偏航方向中的任意一个。通过限制飞行器在第一方向上欧拉角的增加速度,可以为云台的规避预留更多的时间,使云台能够缓慢规避,避免云台固定的成像装置拍摄 的画面突变,同时又能够避免出现飞行器的欧拉角变化速度过快而使云台规避不及时的问题。In the embodiment of the present invention, the gimbal and the aircraft need to be controlled cooperatively during avoidance. Specifically, in step S120, when it is detected that the angle corresponding to the first direction in the Euler angles of the aircraft reaches the first preset angle, the increasing speed of the Euler angles of the aircraft is controlled to be no greater than the first preset speed. Wherein, when the gimbal is a three-axis gimbal, the first direction may be any one of a pitch direction, a roll direction, and a yaw direction. By limiting the increase speed of the Euler angle of the aircraft in the first direction, more time can be reserved for the avoidance of the gimbal, so that the gimbal can be slowly avoided, avoiding the sudden change of the picture captured by the imaging device fixed on the gimbal, and at the same time able to Avoid the problem that the Euler angle of the aircraft changes too fast and the gimbal is not avoided in time.
与此同时,在步骤S130,当检测到云台的关节角中对应该第一方向的角度达到第二预设角度时,根据第一预设规避参数控制云台在第一方向上与飞行器同向转动,以规避机械限位和避免看桨。其中,第一预设规避参数与飞行器的欧拉角的增加速度相关,例如,可以通过配置第一预设规避参数与飞行器的欧拉角的增加速度,使得云台既能够缓慢规避,同时又不会出现规避不及时而撞限位或看桨的问题。示例性地,在根据第一预设规避参数控制云台在第一方向上与飞行器同向转动的过程中,云台的关节角中对应第一方向的角度的增加速度不小于飞行器的欧拉角中对应所述第一方向的角度的增加速度,以避免出现规避不及时的问题。At the same time, in step S130, when it is detected that the angle of the joint angle of the gimbal corresponding to the first direction reaches the second preset angle, the gimbal is controlled to be the same as the aircraft in the first direction according to the first preset avoidance parameter turn to avoid mechanical stops and avoid looking at the paddles. The first preset avoidance parameter is related to the increase speed of the Euler angle of the aircraft. For example, by configuring the first preset avoidance parameter and the increase speed of the Euler angle of the aircraft, the gimbal can not only slowly avoid, but also There will be no problems of hitting the limit or watching the paddle if the avoidance is not timely. Exemplarily, in the process of controlling the gimbal to rotate in the same direction as the aircraft in the first direction according to the first preset avoidance parameter, the increasing speed of the angle corresponding to the first direction among the joint angles of the gimbal is not less than the Euler of the aircraft. The increasing speed of the angle corresponding to the first direction in the angle, so as to avoid the problem of untimely avoidance.
在一个实施例中,上述协同控制云台与飞行器的规避模式称为第一规避模式,即当检测到飞行器的欧拉角中对应第一方向的角度达到第一预设角度时,控制飞行器的欧拉角的增加速度不大于第一预设速度;当检测到云台的关节角中对应第一方向的角度达到第二预设角度时,根据与飞行器的欧拉角的增加速度相关的第一预设规避参数控制云台在第一方向上与飞行器同向转动,以规避机械限位和避免看桨。可选地,当检测到飞行器、云台和云台搭载的成像装置的状态满足预设条件时,进入上述第一规避模式,在限制飞行器的欧拉角增加速度的同时控制云台缓慢规避。反之,若检测到飞行器、云台和云台搭载的成像装置的状态不满足该预设条件,则可以进入第二规避模式,第二规避模式下不限制飞行器的欧拉角的增加速度,且云台的规避速度相对较快,第二规避模式的具体细节将在后文进行描述。In one embodiment, the avoidance mode of the above-mentioned cooperative control of the gimbal and the aircraft is called the first avoidance mode, that is, when it is detected that the angle corresponding to the first direction in the Euler angles of the aircraft reaches a first preset angle, the aircraft is controlled to The increasing speed of the Euler angle is not greater than the first preset speed; when it is detected that the angle corresponding to the first direction in the joint angle of the gimbal reaches the second preset angle, according to the second preset angle related to the increasing speed of the Euler angle of the aircraft. A preset avoidance parameter controls the gimbal to rotate in the same direction as the aircraft in the first direction to avoid mechanical limit and avoid looking at the paddles. Optionally, when it is detected that the state of the aircraft, the gimbal, and the imaging device mounted on the gimbal meets the preset conditions, enter the above-mentioned first avoidance mode, and control the gimbal to slowly avoid while limiting the Euler angle increase speed of the aircraft. Conversely, if it is detected that the state of the imaging device mounted on the aircraft, the gimbal and the gimbal does not meet the preset condition, the second avoidance mode can be entered. The second avoidance mode does not limit the increasing speed of the Euler angle of the aircraft, and The avoidance speed of the gimbal is relatively fast, and the specific details of the second avoidance mode will be described later.
示例性地,飞行器、云台和云台的成像装置的状态满足预设条件,包括:飞行器处于非刹车状态、云台的成像装置处于成像状态、并且云台的目标欧拉角在第一预设范围内。Exemplarily, the states of the aircraft, the gimbal, and the imaging device of the gimbal satisfy the preset conditions, including: the aircraft is in a non-braking state, the imaging device of the gimbal is in an imaging state, and the target Euler angle of the gimbal is in the first preset state. within the setting range.
具体地,首先,上述第一规避模式下需要限制飞行器的欧拉角的增加速度,因此,进入第一规避模式需要满足的条件之一为飞行器处于非刹车状态;而当飞行器处于刹车状态时,考虑到飞行安全,需要使得飞行器尽快刹停,不宜限制飞行器的欧拉角的增加速度,因此不进入上述第一规避模式。其中,飞行器的刹车状态包括松杆刹车、遥控按键触发刹车或者飞行器自动触发紧急刹车等。Specifically, firstly, the increase speed of the Euler angle of the aircraft needs to be limited in the above-mentioned first avoidance mode. Therefore, one of the conditions that needs to be satisfied to enter the first avoidance mode is that the aircraft is in a non-braking state; and when the aircraft is in a braking state, Considering the flight safety, it is necessary to make the aircraft stop as soon as possible, and it is not appropriate to limit the increase speed of the Euler angle of the aircraft, so the above-mentioned first avoidance mode is not entered. Among them, the braking state of the aircraft includes releasing the lever brake, triggering the braking by the remote control button, or triggering the emergency braking automatically by the aircraft.
第二,采用上述第一规避模式的主要目的在于避免云台的成像装置采集 的画面发生突变,因而可以实时检测云台的成像装置的状态,在云台的成像装置处于成像状态时进入该第一规避模式,反之,若云台的成像装置不处于成像状态时,可以不进入第一规避模式。Second, the main purpose of using the above-mentioned first avoidance mode is to avoid the sudden change of the picture captured by the imaging device of the gimbal, so that the state of the imaging device of the gimbal can be detected in real time, and the first avoidance mode can be entered when the imaging device of the gimbal is in the imaging state. One avoidance mode, on the contrary, if the imaging device of the gimbal is not in the imaging state, the first avoidance mode may not be entered.
第三,飞行器的欧拉角通常只能在一定范围内变化,当云台的欧拉角处于一定范围内时,不存在撞限位或看桨的可能性,因而可以不进入规避模式。具体地,可以综合考虑飞行器的最大欧拉角和最小欧拉角以及云台在第一方向上的正向和反向的机械限位,以确定存在撞限位的可能性的角度范围;在此基础上,还可以进一步考虑飞行器的机动性能,最终确定出避免飞行器的机动性能损失过大的第一预设范围。对于一般的飞行器和云台来说,将规避上限范围设置为5°~-8°,将规避下限范围设置为-70°~-90°较为合适。Third, the Euler angle of the aircraft can usually only change within a certain range. When the Euler angle of the gimbal is within a certain range, there is no possibility of hitting the limit or looking at the paddle, so it is not necessary to enter the avoidance mode. Specifically, the maximum Euler angle and the minimum Euler angle of the aircraft and the forward and reverse mechanical limits of the gimbal in the first direction can be comprehensively considered to determine the angular range where there is a possibility of hitting the limit; On this basis, the maneuvering performance of the aircraft can be further considered, and a first preset range that avoids excessive loss of maneuvering performance of the aircraft is finally determined. For general aircraft and gimbal, it is more appropriate to set the upper limit range of avoidance to 5°~-8° and the lower limit range of avoidance to be -70°~-90°.
进入第一规避模式之后,当飞行器在第一方向上的欧拉角达到第一预设角度时,开始限制飞行器的欧拉角的增加速度,即限制飞行器的欧拉角增加的速度。其中,该第一预设角度例如为-25°,飞行器的欧拉角的增加速度可以被限制到不大于-1°/s,其目的是减缓飞行器的欧拉角增加的速度,延长飞行器到达最大欧拉角(例如-35°)的时间,为云台主动向下规避预留充足的时间。其中,第一预设角度可以包括两个,例如可以包括一正向的第一预设角度和一负向的第一预设角度,飞行器前倾或后倾时均可以达到第一预设角度。After entering the first avoidance mode, when the Euler angle of the aircraft in the first direction reaches the first preset angle, the increase speed of the Euler angle of the aircraft is limited, that is, the increase speed of the Euler angle of the aircraft is limited. Wherein, the first preset angle is, for example, -25°, and the increase speed of the Euler angle of the aircraft can be limited to no more than -1°/s, the purpose of which is to slow down the increase speed of the Euler angle of the aircraft and prolong the arrival of the aircraft The time of the maximum Euler angle (eg -35°) reserves enough time for the gimbal to actively avoid downwards. Wherein, the first preset angle may include two, for example, may include a positive first preset angle and a negative first preset angle, and the first preset angle can be reached when the aircraft is tilted forward or backward .
示例性地,以第一方向为俯仰方向为例,若不进入第一规避模式,则飞行器俯仰角(pitch)的控制过程如下所示:Exemplarily, taking the first direction as the pitch direction as an example, if the first avoidance mode is not entered, the control process of the pitch angle (pitch) of the aircraft is as follows:
当fc_pitch_cmd>-PITCH_THRD时,When fc_pitch_cmd>-PITCH_THRD,
Fc_pitch_cmd=fc_pitch_cmd_last+pitch_cmd_spd*tick;Fc_pitch_cmd=fc_pitch_cmd_last+pitch_cmd_spd*tick;
其中,Fc_pitch_cmd为飞行器俯仰角的姿态指令,PITCH_THRD为俯仰方向上的第一预设角度,例如为-25°,fc_pitch_cmd_last为上一个运行周期的飞行器的俯仰角的姿态指令,pitch_cmd_spd为限制俯仰角增加速度前的俯仰角增加速度,其远大于第一预设速度,例如为200°/s,tick为运行周期。上述表达式表示当飞行器的俯仰角的姿态指令未达到第一预设角度时,不限制飞行器的俯仰角的增加速度。Among them, Fc_pitch_cmd is the attitude command of the pitch angle of the aircraft, PITCH_THRD is the first preset angle in the pitch direction, such as -25°, fc_pitch_cmd_last is the attitude command of the pitch angle of the aircraft in the previous operation cycle, and pitch_cmd_spd is the limit to increase the pitch angle The increase speed of the pitch angle before the speed, which is much greater than the first preset speed, for example, 200°/s, and the tick is the operation period. The above expression indicates that when the attitude command of the pitch angle of the aircraft does not reach the first preset angle, the increasing speed of the pitch angle of the aircraft is not limited.
与之相比,在第一规避模式下,飞行器俯仰角的控制过程如下所示:In contrast, in the first avoidance mode, the control process of the aircraft pitch angle is as follows:
当fc_pitch_cmd<-PITCH_THRD且fc_pitch_cmd_target<-PITCH_THRD时,When fc_pitch_cmd<-PITCH_THRD and fc_pitch_cmd_target<-PITCH_THRD,
Fc_pitch_cmd=fc_pitch_cmd_last+pitch_cmd_spd_smooth*tick;Fc_pitch_cmd=fc_pitch_cmd_last+pitch_cmd_spd_smooth*tick;
其中,Fc_pitch_cmd_target为飞行器的俯仰角最终的目标值,例如当飞行器以S档满杆最大速度前飞时,Fc_pitch_cmd_target为-35°。Pitch_cmd_spd_smooth为受限后的飞行器的俯仰角的增加速度,其不大于第一预设速度,例如可以为1°/s。上述表达式表示当飞行器的俯仰角的姿态指令以及飞行器的俯仰角最终的目标值均大于到第一预设角度时,将飞行器的俯仰角的增加速度限制为不大于第一预设速度,以受限后的速度控制飞行器的俯仰角缓慢增加,从而延长了飞行器到达目标欧拉角所用的时间。第一预设速度可以为不规避撞限位或看桨,正常打杆控制无人机的速度时,对应的无人机的欧拉角的设定变化速率。Among them, Fc_pitch_cmd_target is the final target value of the pitch angle of the aircraft. For example, when the aircraft flies forward at the maximum speed of the full stick in S gear, Fc_pitch_cmd_target is -35°. Pitch_cmd_spd_smooth is the increase speed of the pitch angle of the aircraft after the limitation, which is not greater than the first preset speed, for example, it may be 1°/s. The above expression indicates that when the attitude command of the pitch angle of the aircraft and the final target value of the pitch angle of the aircraft are both greater than the first preset angle, the increasing speed of the pitch angle of the aircraft is limited to be no greater than the first preset speed, with The limited speed controls the pitch angle of the aircraft to increase slowly, thus prolonging the time it takes for the aircraft to reach the target Euler angle. The first preset speed may be the set change rate of the Euler angle of the corresponding UAV when the speed of the UAV is controlled by using the stick normally without avoiding the collision limit or watching the paddle.
如上所述,由于在需要云台规避机械限位和避免看桨时对飞行器的欧拉角的增加速度进行了限制,延长了飞行器到达目标欧拉角所用的时间,因而可以控制云台缓慢规避,以避免成像装置拍摄的画面突变。以下示出了云台可以采用的三种示例性的第一规避模式,但云台也可以采用其他可行的第一规避模式进行缓慢规避。As mentioned above, since the increasing speed of the Euler angle of the aircraft is limited when the gimbal is required to avoid the mechanical limit and avoid looking at the paddles, the time it takes for the aircraft to reach the target Euler angle is prolonged, so the gimbal can be controlled to slowly evade , to avoid sudden changes in the picture captured by the imaging device. Three exemplary first avoidance modes that the gimbal can adopt are shown below, but the gimbal can also adopt other feasible first avoidance modes for slow avoidance.
其中,云台的第一种规避模式可以称为固定目标欧拉角规避模式。在固定目标欧拉角规避模式下,上述的根据第一预设规避参数控制云台在第一方向上与飞行器同向转动,包括:根据第一预设规避参数控制云台在第一方向上与飞行器同向转动,以使云台的欧拉角达到预设的目标欧拉角,其中,目标欧拉角可以包括两个,分别靠近规避上限范围和规避下限范围;目标欧拉角也可以为一个。具体地,在第一规避模式下,实时检测云台在第一方向上的关节角,如果云台在第一方向上的关节角达到第二预设角度,例如大于30°,或者小于-128°,则控制云台在第一方向上的欧拉角达到到固定的目标欧拉角。由于飞行器以正常的飞行姿态飞行时,其欧拉角具有一定范围,因而若云台运动到该固定的目标欧拉角,则当飞行器以正常姿态飞行时不会引起看桨或者撞限位的问题。Among them, the first avoidance mode of the gimbal can be called the fixed target Euler angle avoidance mode. In the fixed target Euler angle avoidance mode, the above-mentioned controlling the gimbal to rotate in the same direction as the aircraft in the first direction according to the first preset avoidance parameter includes: controlling the gimbal to rotate in the first direction according to the first preset avoidance parameter Rotate in the same direction as the aircraft to make the Euler angle of the gimbal reach the preset target Euler angle. The target Euler angle can include two, which are close to the upper limit range of avoidance and the lower limit range of avoidance; the target Euler angle can also be for one. Specifically, in the first avoidance mode, the joint angle of the gimbal in the first direction is detected in real time, and if the joint angle of the gimbal in the first direction reaches a second preset angle, for example, greater than 30°, or less than -128 °, then control the Euler angle of the gimbal in the first direction to reach the fixed target Euler angle. Since the Euler angle has a certain range when the aircraft is flying in a normal flight attitude, if the gimbal moves to the fixed target Euler angle, when the aircraft is flying in a normal attitude, it will not cause the sight of the paddles or the collision of the limit. question.
示例性地,在固定目标欧拉角规避模式下,根据第一预设规避参数控制云台在第一方向上与飞行器同向转动,以使云台的欧拉角达到预设的目标欧拉角,包括:确定云台的当前欧拉角与目标欧拉角之间的角度差;根据该角度差以及预设的规避运行时间确定最大规避速度;根据最大规避速度以及预设的规避加速时间和预设的规避减速时间对规避加速段和规避减速段进行规划;按照规划的规避加速段和规避减速段调整所述云台的欧拉角,使云台的规避速度减速为零时云台的欧拉角达到预设的目标欧拉角。其中,目标欧拉 角和预设的规避运行时间等参数是根据飞行器的欧拉角的增加速度确定的合理参数。当然,使云台的欧拉角达到预设的目标欧拉角的方法不限于此,只要能够在飞行器预留的规避时间内使云台的欧拉角达到目标欧拉角即可。Exemplarily, in the fixed target Euler angle avoidance mode, the gimbal is controlled to rotate in the same direction as the aircraft in the first direction according to the first preset avoidance parameter, so that the Euler angle of the gimbal reaches the preset target Euler. angle, including: determining the angle difference between the current Euler angle of the gimbal and the target Euler angle; determining the maximum avoidance speed according to the angle difference and the preset avoidance running time; according to the maximum avoidance speed and the preset avoidance acceleration time Plan the avoidance acceleration section and the avoidance deceleration section with the preset avoidance deceleration time; adjust the Euler angle of the gimbal according to the planned avoidance acceleration section and avoidance deceleration section, so that the gimbal's avoidance speed decelerates to zero when the gimbal The Euler angles reach the preset target Euler angles. Among them, the parameters such as the target Euler angle and the preset avoidance running time are reasonable parameters determined according to the increasing speed of the Euler angle of the aircraft. Of course, the method for making the Euler angle of the gimbal reach the preset target Euler angle is not limited to this, as long as the Euler angle of the gimbal can reach the target Euler angle within the avoidance time reserved by the aircraft.
继续以第一方向为俯仰方向,云台在第一方向上的欧拉角为俯仰角为例,当云台的关节角达到第二预设角度时,首先获取云台的目标欧拉角,例如,Continue to take the first direction as the pitch direction and the Euler angle of the gimbal in the first direction as the pitch angle as an example, when the joint angle of the gimbal reaches the second preset angle, first obtain the target Euler angle of the gimbal, E.g,
当云台的关节角joint_angle>30°时,云台的目标欧拉角gb_target_avoid_pitch=-8°;When the joint angle of the gimbal is >30°, the target Euler angle of the gimbal is gb_target_avoid_pitch=-8°;
当云台的关节角joint_angle<-128°时,云台的目标欧拉角gb_target_avoid_pitch=-85°;When the joint angle of the gimbal is <-128°, the target Euler angle of the gimbal is gb_target_avoid_pitch=-85°;
获取预设的规避运行时间,例如avoid_time=5s;Get the preset avoidance running time, such as avoid_time=5s;
获取预设的规避加速时间,例如avoid_time_acc=1s;Get the preset avoidance acceleration time, such as avoid_time_acc=1s;
获取预设的规避减速时间,例如avoid_time_dec=4s;Get the preset avoidance deceleration time, such as avoid_time_dec=4s;
示例性地,还可以在预设的规避加速时间与预设的规避减速时间之间设置预设的匀速运行时间avoid_time_avg,但预设的匀速运行时间只是可选的,匀速运行时间可以为0,即avoid_time_avg=0s;Exemplarily, a preset constant speed running time avoid_time_avg may also be set between the preset avoidance acceleration time and the preset avoidance deceleration time, but the preset constant speed running time is only optional, and the constant speed running time may be 0, That is, avoid_time_avg=0s;
总的规避时间为预设的规避加速时间、预设的规避减速时间和预设的匀速运行时间之和,即:The total avoidance time is the sum of the preset avoidance acceleration time, the preset avoidance deceleration time and the preset constant speed running time, namely:
avoid_time=avoid_time_acc+avoid_time_dec+avoid_time_avg。avoid_time=avoid_time_acc+avoid_time_dec+avoid_time_avg.
计算引起规避的时刻云台的当前欧拉角与目标欧拉角之间的角度差:Calculate the angle difference between the current Euler angle of the gimbal and the target Euler angle at the moment of avoidance:
Error=gb_target_cur–gb_target_avoid_pitch;Error=gb_target_cur–gb_target_avoid_pitch;
根据角度差和总的规避时间计算最大运动速度:Calculate the maximum movement speed based on the angle difference and the total avoidance time:
Pitch_spd_max=Error/avoid_time*2;Pitch_spd_max=Error/avoid_time*2;
根据最大运动速度和预设的规避加速时间计算加速段的加速度:Calculate the acceleration of the acceleration segment according to the maximum movement speed and the preset avoidance acceleration time:
Avoid_acc=pitch_spd_max/avoid_time_acc;Avoid_acc = pitch_spd_max/avoid_time_acc;
根据最大运动速度和预设的规避减速时间计算减速段加速度:Calculate the acceleration of the deceleration segment according to the maximum motion speed and the preset avoidance deceleration time:
Avoid_dec=pitch_spd_max/avoid_time_dec;Avoid_dec = pitch_spd_max/avoid_time_dec;
计算最大规避速度下的减速段距离:Calculate the deceleration segment distance at maximum avoidance speed:
Avoid_dec_distance=1/2*avoid_dec*avoid_time_dec^2。Avoid_dec_distance=1/2*avoid_dec*avoid_time_dec^2.
触发规避后,云台的目标欧拉角的实时更新过程为:After triggering avoidance, the real-time update process of the target Euler angle of the gimbal is:
实时计算云台的当前pitch与目标pitch之间的误差:Calculate the error between the current pitch of the gimbal and the target pitch in real time:
Error_current=gb_target_cur–gb_target_avoid_pitch;Error_current=gb_target_cur–gb_target_avoid_pitch;
实时计算当前减速距离:Calculate the current deceleration distance in real time:
Avoid_dec_distance_cur=1/2*pitch_avoid_spd_cur^2/avoid_dec^2;Avoid_dec_distance_cur=1/2*pitch_avoid_spd_cur^2/avoid_dec^2;
如果pitch_avoid_spd_cur<pitch_spd_max,且当前误差大于当前减速距离,则在规避的加速段,按上述的加速度Avoid_acc进行加速:If pitch_avoid_spd_cur<pitch_spd_max, and the current error is greater than the current deceleration distance, in the avoidance acceleration section, accelerate according to the above acceleration Avoid_acc:
Pitch_avoid_spd_cur=pitch_avoid_spd_cur_last+avoid_acc*tick;Pitch_avoid_spd_cur=pitch_avoid_spd_cur_last+avoid_acc*tick;
Gb_target_cur=gb_target_cur_last+pitch_avoid_spd_cur*tick;Gb_target_cur=gb_target_cur_last+pitch_avoid_spd_cur*tick;
如果当前规避速度pitch_avoid_spd_cur=pitch_spd_max,则在规避的匀速段,保持匀速运行:If the current avoidance speed pitch_avoid_spd_cur=pitch_spd_max, in the constant speed section of avoidance, keep running at a constant speed:
Gb_target_cur=gb_target_cur_last+pitch_avoid_spd_cur*tick;Gb_target_cur=gb_target_cur_last+pitch_avoid_spd_cur*tick;
如果当前误差小于或等于当前减速距离或最大规避速度下的减速距离,即Avoid_dec_distance_cur>=Error_current或avoid_dec_distanc>=Error_current,则在规避的减速段,按减速段进行减速:If the current error is less than or equal to the current deceleration distance or the deceleration distance at the maximum avoidance speed, that is, Avoid_dec_distance_cur>=Error_current or avoid_dec_distanc>=Error_current, then in the avoidance deceleration section, decelerate according to the deceleration section:
pitch_avoid_spd_cur=pitch_avodi_spd_cur_last–avoid_dec*tick;pitch_avoid_spd_cur=pitch_avodi_spd_cur_last–avoid_dec*tick;
gb_target_cur=gb_target_cur_last+pitch_avoid_spd_cur*tick;gb_target_cur=gb_target_cur_last+pitch_avoid_spd_cur*tick;
当当前规避速度减速到0时,认为规避结束,即Pitch_avoid_spd_cur=0;Gb_target_cur=gb_target_cur_last=gb_target_avoid_pitch;When the current avoidance speed decelerates to 0, the avoidance is considered to be over, that is, Pitch_avoid_spd_cur=0; Gb_target_cur=gb_target_cur_last=gb_target_avoid_pitch;
此时,云台的当前欧拉角已达到预设的目标欧拉角。At this point, the current Euler angle of the gimbal has reached the preset target Euler angle.
云台的第二种规避模式可以称为固定行程规避模式。在固定行程规避模式下,上述的根据第一预设规避参数控制云台在第一方向上与飞行器同向转动,包括:根据第一预设规避参数控制云台转动预设行程,从而规避限位。具体地,实时检测云台的关节角,当云台的关节角达到第二预设角度时,控制云台转动预设行程,即控制云台在第一方向上的欧拉角改变固定的角度,例如8°。在该模式下,每次触发云台规避时,云台转动的行程是一致的,因而云台的运行速度和运行时间也基本是一致的。The second avoidance mode of the gimbal can be called the fixed stroke avoidance mode. In the fixed travel avoidance mode, the above-mentioned controlling the gimbal to rotate in the same direction as the aircraft in the first direction according to the first preset avoidance parameter includes: controlling the gimbal to rotate the preset travel according to the first preset avoidance parameter, thereby avoiding the limit bit. Specifically, the joint angle of the gimbal is detected in real time, and when the joint angle of the gimbal reaches the second preset angle, the gimbal is controlled to rotate the preset stroke, that is, the Euler angle of the gimbal in the first direction is controlled to change a fixed angle , for example 8°. In this mode, every time the gimbal evasion is triggered, the travel of the gimbal is the same, so the running speed and running time of the gimbal are basically the same.
示例性地,在固定行程规避模式下,根据第一预设规避参数控制云台转动预设行程,包括:根据预设行程以及预设的规避运行时间确定最大规避速度;根据最大规避速度以及预设的规避加速时间和预设的规避减速时间对规避加速段和规避减速段进行规划;按照规划的规避加速段和规避减速段调整云台的欧拉角,使云台在规避速度减速为零时运行了预设行程。预设行程以及预设的规避运行时间等参数是根据飞行器的欧拉角的增加速度确定的合理参数。当然,使云台转动预设行程的方法不限于此,只要能够在飞行器预留的规避时间内使云台转动预设行程即可。Exemplarily, in the fixed-stroke avoidance mode, controlling the gimbal to rotate the preset travel according to the first preset avoidance parameter includes: determining the maximum avoidance speed according to the preset travel and the preset avoidance running time; Set the avoidance acceleration time and the preset avoidance deceleration time to plan the avoidance acceleration section and avoidance deceleration section; adjust the Euler angle of the gimbal according to the planned avoidance acceleration section and avoidance deceleration section, so that the gimbal decelerates to zero at the avoidance speed The preset itinerary has been run. Parameters such as the preset travel and the preset avoidance running time are reasonable parameters determined according to the increasing speed of the Euler angle of the aircraft. Of course, the method of rotating the gimbal to the preset stroke is not limited to this, as long as the gimbal can be rotated to the preset stroke within the avoidance time reserved by the aircraft.
继续以第一方向为俯仰方向,云台在第一方向上的欧拉角为俯仰角为例, 当云台在第一方向上的关节角达到第二预设角度时,首先获取云台的预设行程avoid_distance_total,例如avoid_distance_total=8°;Continue to take the first direction as the pitch direction and the Euler angle of the gimbal in the first direction as the pitch angle as an example, when the joint angle of the gimbal in the first direction reaches the second preset angle, first obtain the gimbal's joint angle. The preset travel avoid_distance_total, for example, avoid_distance_total=8°;
获取预设的规避运行时间avoid_time、获取预设的规避加速时间avoid_time_acc、获取预设的规避减速时间avoid_time_dec;可选地,还可以获取匀速运行时间avoid_time_avg;Obtain the preset avoidance running time avoid_time, obtain the preset avoidance acceleration time avoid_time_acc, obtain the preset avoidance deceleration time avoid_time_dec; optionally, you can also obtain the constant speed running time avoid_time_avg;
根据预设行程和预设的规避运行时间计算最大运动速度:Calculate the maximum movement speed based on the preset travel and the preset avoidance run time:
Pitch_spd_max=avoid_distance_total/avoid_time*2;Pitch_spd_max=avoid_distance_total/avoid_time*2;
根据最大运动速度和预设的规避加速时间计算加速段加速度:Calculate the acceleration of the acceleration segment according to the maximum motion speed and the preset avoidance acceleration time:
Avoid_acc=pitch_spd_max/avoid_time_acc;Avoid_acc = pitch_spd_max/avoid_time_acc;
根据最大运动速度和预设的规避减速时间计算减速段加速度:Calculate the acceleration of the deceleration segment according to the maximum motion speed and the preset avoidance deceleration time:
Avoid_dec=pitch_spd_max/avoid_time_dec;Avoid_dec = pitch_spd_max/avoid_time_dec;
计算最大规避速度下的减速段距离:Calculate the deceleration segment distance at maximum avoidance speed:
Avoid_dec_distance=1/2*avoid_dec*avoid_time_dec^2;Avoid_dec_distance=1/2*avoid_dec*avoid_time_dec^2;
触发规避后,云台目标pitch的实时更新过程为:After triggering evasion, the real-time update process of the gimbal target pitch is as follows:
实时计算云台当前pitch与目标pitch之间的误差:Calculate the error between the current pitch of the gimbal and the target pitch in real time:
Error_current=gb_target_cur–gb_target_avoid_pitch;Error_current=gb_target_cur–gb_target_avoid_pitch;
如果当前规避速度pitch_avoid_spd_cur小于最大运动速度pitch_spd_max,即pitch_avoid_spd_cur<pitch_spd_max,则在规避的加速段,按加速段的加速度avoid_acc进行加速:If the current avoidance speed pitch_avoid_spd_cur is less than the maximum motion speed pitch_spd_max, that is, pitch_avoid_spd_cur<pitch_spd_max, in the avoidance acceleration section, accelerate according to the acceleration avoid_acc of the acceleration section:
Pitch_avoid_spd_cur=pitch_avoid_spd_cur_last+avoid_acc*tick;Pitch_avoid_spd_cur=pitch_avoid_spd_cur_last+avoid_acc*tick;
Gb_target_cur=gb_target_cur_last+pitch_avoid_spd_cur*tick;Gb_target_cur=gb_target_cur_last+pitch_avoid_spd_cur*tick;
如果pitch_avoid_spd_cur=pitch_spd_max,则在规避的匀速段,保持匀速运行:If pitch_avoid_spd_cur=pitch_spd_max, in the constant speed section of avoidance, keep running at a constant speed:
Gb_target_cur=gb_target_cur_last+pitch_avoid_spd_cur*tick;Gb_target_cur=gb_target_cur_last+pitch_avoid_spd_cur*tick;
如果当前误差小于或等于最大规避速度下的限速距离,即avoid_dec_distanc>=Error_current,则在规避的减速段,按减速段加速度Avoid_dec进行减速:If the current error is less than or equal to the speed limit distance at the maximum avoidance speed, that is, avoid_dec_distanc>=Error_current, then in the avoidance deceleration segment, decelerate according to the deceleration segment acceleration Avoid_dec:
pitch_avoid_spd_cur=pitch_avodi_spd_cur_last–avoid_dec*tick;pitch_avoid_spd_cur=pitch_avodi_spd_cur_last–avoid_dec*tick;
gb_target_cur=gb_target_cur_last+pitch_avoid_spd_cur*tick;gb_target_cur=gb_target_cur_last+pitch_avoid_spd_cur*tick;
当云台的当前规避速度Pitch_avoid_spd_cur减速到0时,则规避结束,此时,云台运行了预设行程,即云台的pitch角相比于触发规避时向限位反方 向改变了预设角度。When the current avoidance speed of the gimbal, Pitch_avoid_spd_cur decelerates to 0, the avoidance ends. At this time, the gimbal runs the preset stroke, that is, the pitch angle of the gimbal changes the preset angle in the opposite direction to the limit when the avoidance is triggered. .
云台的第三种规避模式可以称为固定目标关节角规避模式。在固定目标关节角规避模式下,上述的根据第一预设规避参数控制云台在第一方向上与飞行器同向转动,包括:根据第一预设规避参数控制云台在第一方向上与飞行器同向转动,使云台的关节角达到目标关节角,目标关节角是基于预设余量和第二预设角度确定的。具体地,在该规避模式下,实时检测云台的当前关节角,如果当前关节角大于第二预设角度,则控制云台与飞行器同向转动,直到当前关节角小于第二预设角度,且留有一定的预设余量。在该规避模式下,可以实时检测云台的关节角,每当关节角达到第二预设角度,即控制云台与飞行器同向转动,使云台的关节角达到目标关节角,每次运行的行程较短。The third avoidance mode of the gimbal can be called the fixed target joint angle avoidance mode. In the fixed target joint angle avoidance mode, the above-mentioned controlling the gimbal to rotate in the same direction with the aircraft in the first direction according to the first preset avoidance parameter includes: controlling the gimbal to rotate in the first direction with the aircraft according to the first preset avoidance parameter The aircraft rotates in the same direction so that the joint angle of the gimbal reaches the target joint angle, and the target joint angle is determined based on the preset margin and the second preset angle. Specifically, in this avoidance mode, the current joint angle of the gimbal is detected in real time, and if the current joint angle is greater than the second preset angle, the gimbal and the aircraft are controlled to rotate in the same direction until the current joint angle is smaller than the second preset angle, And leave a certain preset margin. In this avoidance mode, the joint angle of the gimbal can be detected in real time. Whenever the joint angle reaches the second preset angle, the gimbal and the aircraft are controlled to rotate in the same direction, so that the joint angle of the gimbal reaches the target joint angle. the trip is shorter.
示例性地,在固定目标关节角规避模式下,根据第一预设规避参数控制云台在第一方向上与飞行器同向转动,以使云台的关节角达到预设的目标关节角,包括:实时获取云台的当前关节角超过第二预设角度的当前角度差;根据当前角度差和预设余量确定规避速度;根据规避速度控制云台在第一方向上与飞行器同向转动,使规避速度减速为零时云台的关节角达到目标关节角。当然,使云台的关节角达到预设的目标关节角的方法不限于此,只要能够在飞行器预留的规避时间内使云台的关节角达到目标关节角即可。Exemplarily, in the fixed target joint angle avoidance mode, the gimbal is controlled to rotate in the same direction as the aircraft in the first direction according to the first preset avoidance parameter, so that the joint angle of the gimbal reaches the preset target joint angle, including: : Obtain the current angle difference between the current joint angle of the gimbal and the second preset angle in real time; determine the avoidance speed according to the current angle difference and the preset margin; control the gimbal to rotate in the same direction as the aircraft in the first direction according to the avoidance speed, When the evasion speed is decelerated to zero, the joint angle of the gimbal reaches the target joint angle. Of course, the method of making the joint angle of the gimbal reach the preset target joint angle is not limited to this, as long as the joint angle of the gimbal can reach the target joint angle within the avoidance time reserved by the aircraft.
继续以第一方向为俯仰方向,云台在第一方向上的欧拉角为俯仰角为例,当云台的关节角达到第二预设角度时,即Joint_angle>joint_angle_limit_up(例如30deg)或Joint_angle<joint_angle_limit_down(例如-128deg)时,Continue to take the first direction as the pitch direction and the Euler angle of the gimbal in the first direction as the pitch angle as an example, when the joint angle of the gimbal reaches the second preset angle, that is, Joint_angle>joint_angle_limit_up (eg 30deg) or Joint_angle <joint_angle_limit_down (eg -128deg),
计算云台的关节角超过第二预设角度的角度值:Calculate the angle value at which the joint angle of the gimbal exceeds the second preset angle:
Avoid_over_angle=joint_angle–joint_angle_limit_up;Avoid_over_angle=joint_angle–joint_angle_limit_up;
(或者Avoid_over_angle=joint_angle–joint_angle_limit_down);(or Avoid_over_angle=joint_angle–joint_angle_limit_down);
获得预设余量:To get a preset margin:
Avoid_angle=3~5deg;Avoid_angle=3~5deg;
获得预设的速度系数:Get the preset speed factor:
Avoid_spd_coef=2~5;Avoid_spd_coef=2~5;
云台需要规避的角度为云台的关节角超过第二预设角度的角度值与预设余量之和,根据云台需要规避的角度和速度系数计算规避速度:The angle that the gimbal needs to avoid is the sum of the angle value at which the joint angle of the gimbal exceeds the second preset angle and the preset margin. The avoidance speed is calculated according to the angle and speed coefficient that the gimbal needs to avoid:
Avoid_spd=avoid_spd_coef*(avoid_over_angle+avoid_angle);Avoid_spd=avoid_spd_coef*(avoid_over_angle+avoid_angle);
根据规避速度实时更新云台的目标pitch角:Update the target pitch angle of the gimbal in real time according to the avoidance speed:
Gb_target_cur=gb_target_cur_last+avoid_spd*tick;Gb_target_cur=gb_target_cur_last+avoid_spd*tick;
当检测到规避速度avoid_spd=0时,规避结束,此时云台的关节角已达到目标关节角。When it is detected that the avoidance speed avoid_spd=0, the avoidance ends, and the joint angle of the gimbal has reached the target joint angle.
如上所述,当检测到飞行器和云台的状态不满足进入第一规避模式的预设条件时,可以进入第二规避模式。具体地,当飞行器处于非刹车状态、云台的成像装置处于成像状态、以及云台的目标欧拉角在第一预设范围内中的任意一个条件不满足时,进入第二规避模式。例如,若飞行器处于刹车状态,考虑到飞行安全,要使得飞行器尽快刹停,因而不进入需要限制飞行器的欧拉角的第一规避模式。As described above, when it is detected that the states of the aircraft and the gimbal do not meet the preset conditions for entering the first avoidance mode, the second avoidance mode may be entered. Specifically, when the aircraft is in the non-braking state, the imaging device of the gimbal is in the imaging state, and the target Euler angle of the gimbal is not satisfied within the first preset range, the second avoidance mode is entered. For example, if the aircraft is in a braking state, considering flight safety, the aircraft should be braked as soon as possible, so that the aircraft does not enter the first avoidance mode that needs to limit the Euler angle of the aircraft.
其中,第二规避模式包括:当检测到飞行器的欧拉角中对应第一方向的角度达到第一预设角度、并且云台的关节角中对应第一方向的角度达到第二预设角度时,根据第二预设规避参数控制云台在第一方向上与飞行器同向转动,以规避机械限位,在第二预设规避模式下,云台规避机械限位的时长小于第一预设规避模式下云台规避机械限位的时长。也就是说,第二规避模式不额外限制飞行器的欧拉角的增加速度,飞行器可以快递达到目标欧拉角,因而云台需要在短时间内快速规避。Wherein, the second avoidance mode includes: when it is detected that the Euler angle of the aircraft corresponding to the first direction reaches the first preset angle, and the joint angle of the gimbal and the angle corresponding to the first direction reaches the second preset angle , according to the second preset avoidance parameter, control the gimbal to rotate in the same direction as the aircraft in the first direction to avoid the mechanical limit. In the second preset avoidance mode, the duration of the gimbal to avoid the mechanical limit is shorter than the first preset The length of time for the gimbal to avoid the mechanical limit in avoidance mode. That is to say, the second avoidance mode does not limit the increase speed of the Euler angle of the aircraft, and the aircraft can quickly reach the target Euler angle, so the gimbal needs to quickly avoid it in a short time.
第二规避模式也可以实现为在触发规避时使云台的欧拉角达到固定的目标欧拉角,使云台运行固定的行程或使云台的关节角达到目标关节角,与第一规避模式不同的是,其规避速度更快,例如,当使云台的关节角达到目标关节角时,可以将预设的速度系数设置得更大,从而使云台能够快速地躲避限位。这种情况下,可能会引起成像装置拍摄的画面突变,但是可以快速地躲避限位,不会使云台撞到机械限位或者拍摄装置看到桨叶;同时,也不会影响飞行器的快速刹停。The second avoidance mode can also be implemented to make the Euler angle of the gimbal reach a fixed target Euler angle when triggering avoidance, make the gimbal run a fixed stroke or make the joint angle of the gimbal reach the target joint angle, which is different from the first avoidance mode. The difference between the modes is that its avoidance speed is faster. For example, when the joint angle of the gimbal reaches the target joint angle, the preset speed coefficient can be set to a larger value, so that the gimbal can quickly avoid the limit. In this case, it may cause sudden changes in the image captured by the imaging device, but the limit can be quickly avoided without causing the gimbal to hit the mechanical limit or the camera to see the blades; at the same time, it will not affect the speed of the aircraft. stop.
以上示例性地描述了根据本发明实施例的云台和飞行器的协同控制方法所包括的示例性步骤流程。本发明实施例的云台和飞行器的协同控制方法在云台需要规避机械限位和避免看桨时限制飞行器的欧拉角的增加速度,为云台规避预留出时间,同时根据与飞行器的欧拉角的增加速度相关的第一预设规避参数控制云台规避,使云台能够缓慢规避,从而保证拍摄画面的流畅性。The above has exemplarily described the exemplary flow of steps included in the cooperative control method for a gimbal and an aircraft according to an embodiment of the present invention. The coordinated control method of the gimbal and the aircraft according to the embodiment of the present invention limits the increase speed of the Euler angle of the aircraft when the gimbal needs to avoid mechanical limits and avoid looking at the paddles, so as to reserve time for the gimbal to avoid, and at the same time, according to the difference between the gimbal and the aircraft The first preset avoidance parameter related to the increasing speed of Euler angle controls the avoidance of the gimbal, so that the gimbal can be slowly avoided, thereby ensuring the smoothness of the shooting picture.
本发明实施例另一方面提供了一种云台和飞行器的协同控制系统,图3是本发明实施例的云台和飞行器的协同控制系统300的一个示意性框图。如 图3所示,该云台和飞行器的协同控制系统300包括飞行器310、控制装置320和云台330,云台330搭载在飞行器310上,云台330和飞行器310与控制装置320通信连接,以下仅对云台和飞行器的协同控制系统300的主要功能进行描述,而省略上文已描述的部分细节。Another aspect of an embodiment of the present invention provides a cooperative control system of a pan-tilt and an aircraft. FIG. 3 is a schematic block diagram of a cooperative control system 300 of a pan-tilt and an aircraft according to an embodiment of the present invention. As shown in FIG. 3 , the coordinated control system 300 of the gimbal and the aircraft includes an aircraft 310, a control device 320, and a gimbal 330. The gimbal 330 is mounted on the aircraft 310, and the gimbal 330 and the aircraft 310 are connected to the control device 320 in communication. Only the main functions of the cooperative control system 300 of the gimbal and the aircraft will be described below, and some details described above will be omitted.
其中,飞行器310可以是无人机,例如多旋翼无人飞行器。搭载在飞行器310上的云台330可以是两轴云台或三轴云台,控制装置320可以是飞行器310的飞行控制器,也可以是其他通用或者专用的处理器。The aircraft 310 may be an unmanned aerial vehicle, such as a multi-rotor unmanned aerial vehicle. The gimbal 330 mounted on the aircraft 310 may be a two-axis gimbal or a three-axis gimbal, and the control device 320 may be a flight controller of the aircraft 310 or other general-purpose or dedicated processors.
具体地,控制装置320用于:获取飞行器310的欧拉角和云台330的关节角;当检测到飞行器310的欧拉角中对应第一方向的角度达到第一预设角度时,控制飞行器310欧拉角的增加速度不大于第一预设速度;当检测到云台330的关节角中对应第一方向的角度达到第二预设角度时,根据第一预设规避参数控制云台330在第一方向上与飞行器310同向转动,第一预设规避参数与飞行器310的欧拉角的增加速度相关。Specifically, the control device 320 is configured to: obtain the Euler angle of the aircraft 310 and the joint angle of the gimbal 330; when it is detected that the Euler angle of the aircraft 310 corresponding to the first direction reaches the first preset angle, control the aircraft 310 The increasing speed of the Euler angle is not greater than the first preset speed; when it is detected that the angle corresponding to the first direction in the joint angle of the gimbal 330 reaches the second preset angle, the gimbal 330 is controlled according to the first preset avoidance parameter Rotating in the same direction as the aircraft 310 in the first direction, the first preset avoidance parameter is related to the increasing speed of the Euler angle of the aircraft 310 .
控制装置320还用于:当检测到飞行器310、云台330和云台330搭载的成像装置的状态满足预设条件时,进入第一规避模式;其中,第一规避模式包括:当检测到飞行器310的欧拉角中对应第一方向的角度达到第一预设角度时,控制飞行器310欧拉角的增加速度不大于第一预设速度;当检测到云台330的关节角中对应第一方向的角度达到第二预设角度时,根据第一预设规避参数控制云台330在第一方向上与飞行器310同向转动,第一预设规避参数与飞行器310的欧拉角的增加速度相关。The control device 320 is further configured to enter the first avoidance mode when it is detected that the state of the aircraft 310, the gimbal 330 and the imaging device carried on the gimbal 330 meets the preset condition; wherein, the first avoidance mode includes: when the aircraft is detected When the angle corresponding to the first direction in the Euler angle of 310 reaches the first preset angle, the increase speed of the Euler angle of the control aircraft 310 is not greater than the first preset speed; when it is detected that the joint angle of the gimbal 330 corresponds to the first When the angle of the direction reaches the second preset angle, the gimbal 330 is controlled to rotate in the same direction as the aircraft 310 in the first direction according to the first preset avoidance parameter, the first preset avoidance parameter and the increase speed of the Euler angle of the aircraft 310 related.
示例性地,飞行器310、云台330和云台330的成像装置的状态满足预设条件,包括:飞行器310处于非刹车状态、云台330的成像装置处于成像状态、并且云台330的目标欧拉角在第一预设范围内。Exemplarily, the states of the aircraft 310, the gimbal 330, and the imaging device of the gimbal 330 satisfy the preset conditions, including: the aircraft 310 is in the non-braking state, the imaging device of the gimbal 330 is in the imaging state, and the target object of the gimbal 330 is in the non-braking state. The draw angle is within the first preset range.
示例性地,第一预设范围包括规避上限范围和规避下限范围。规避上限范围和规避下限范围可以是根据飞行器310的最大欧拉角和最小欧拉角、云台330的机械限位以及飞行器310的机动性能确定的。例如,规避上限范围可以为5°~-8°,规避下限范围可以为-70°~-90°。Exemplarily, the first preset range includes an evasion upper limit range and an evasion lower limit range. The avoidance upper limit range and the avoidance lower limit range may be determined according to the maximum Euler angle and the minimum Euler angle of the aircraft 310 , the mechanical limit of the gimbal 330 and the maneuvering performance of the aircraft 310 . For example, the upper limit range of avoidance may be 5° to -8°, and the range of the lower limit of avoidance may be -70° to -90°.
示例性地,在根据第一预设规避参数控制云台330在第一方向上与飞行器310同向转动的过程中,云台330的关节角中对应第一方向的角度的增加速度不小于飞行器310的欧拉角中对应第一方向的角度的增加速度。Exemplarily, in the process of controlling the gimbal 330 to rotate in the same direction as the aircraft 310 in the first direction according to the first preset avoidance parameter, the increasing speed of the angle corresponding to the first direction among the joint angles of the gimbal 330 is not less than that of the aircraft. 310 The increasing speed of the angle corresponding to the first direction in the Euler angles.
示例性地,根据第一预设规避参数控制云台330在第一方向上与飞行器 310同向转动,包括:根据第一预设规避参数控制云台330与飞行器310同向转动,以使云台330的欧拉角达到预设的目标欧拉角。Exemplarily, controlling the gimbal 330 to rotate in the same direction as the aircraft 310 in the first direction according to the first preset avoidance parameters includes: controlling the gimbal 330 to rotate in the same direction as the aircraft 310 according to the first preset avoidance parameters, so that the cloud The Euler angles of the stage 330 reach the preset target Euler angles.
具体地,根据第一预设规避参数控制云台330在第一方向上与飞行器310同向转动,以使云台330的欧拉角达到预设的目标欧拉角,可以包括如下步骤:确定云台330的当前欧拉角与目标欧拉角之间的角度差;根据角度差以及预设的规避运行时间确定最大规避速度;根据最大规避速度以及预设的规避加速时间和预设的规避减速时间对规避加速段和规避减速段进行规划;按照规划的规避加速段和规避减速段调整云台330的欧拉角,使云台330的规避速度减速为零时云台330的欧拉角达到预设的目标欧拉角。Specifically, controlling the gimbal 330 to rotate in the same direction as the aircraft 310 in the first direction according to the first preset avoidance parameter, so that the Euler angle of the gimbal 330 reaches the preset target Euler angle, may include the following steps: determining The angle difference between the current Euler angle of the gimbal 330 and the target Euler angle; the maximum avoidance speed is determined according to the angle difference and the preset avoidance running time; according to the maximum avoidance speed, the preset avoidance acceleration time and the preset avoidance The deceleration time is to plan the avoidance acceleration section and the avoidance deceleration section; adjust the Euler angle of the gimbal 330 according to the planned avoidance acceleration section and avoidance deceleration section, so that the Euler angle of the gimbal 330 when the avoidance speed of the gimbal 330 decelerates to zero The preset target Euler angles are reached.
示例性地,根据第一预设规避参数控制云台330在第一方向上与飞行器310同向转动,包括:根据第一预设规避参数控制云台330转动预设行程。具体地,根据第一预设规避参数控制云台330转动预设行程,可以包括如下步骤:根据预设行程以及预设的规避运行时间确定最大规避速度;根据最大规避速度以及预设的规避加速时间和预设的规避减速时间对规避加速段和规避减速段进行规划;按照规划的规避加速段和规避减速段调整云台330的欧拉角,使云台330在规避速度减速为零时运行了预设行程。Exemplarily, controlling the gimbal 330 to rotate in the same direction as the aircraft 310 in the first direction according to the first preset avoidance parameter includes: controlling the gimbal 330 to rotate a preset stroke according to the first preset avoidance parameter. Specifically, controlling the pan/tilt 330 to rotate the preset travel according to the first preset avoidance parameter may include the following steps: determining the maximum avoidance speed according to the preset travel and the preset avoidance running time; according to the maximum avoidance speed and the preset avoidance acceleration Time and the preset avoidance deceleration time to plan the avoidance acceleration section and the avoidance deceleration section; adjust the Euler angle of the gimbal 330 according to the planned avoidance acceleration section and avoidance deceleration section, so that the gimbal 330 runs when the avoidance speed deceleration is zero preset itinerary.
示例性地,根据第一预设规避参数控制云台330在第一方向上与飞行器310同向转动,包括:根据第一预设规避参数控制云台330在第一方向上与飞行器310同向转动,使云台330的关节角达到目标关节角,目标关节角是基于预设余量和第二预设角度确定的。具体地,根据第一预设规避参数控制云台330在第一方向上与飞行器310同向转动,使云台330的关节角达到目标关节角,可以包括如下步骤:实时获取云台330的当前关节角超过第二预设角度的当前角度差;根据当前角度差和预设余量确定规避速度;根据规避速度控制云台330在第一方向上与飞行器310同向转动,使规避速度减速为零时云台330的关节角达到目标关节角。Exemplarily, controlling the gimbal 330 to rotate in the same direction as the aircraft 310 in the first direction according to the first preset avoidance parameters includes: controlling the gimbal 330 to rotate in the same direction as the aircraft 310 in the first direction according to the first preset avoidance parameters Rotate so that the joint angle of the pan/tilt head 330 reaches the target joint angle, and the target joint angle is determined based on the preset margin and the second preset angle. Specifically, controlling the gimbal 330 to rotate in the same direction as the aircraft 310 in the first direction according to the first preset avoidance parameter, so that the joint angle of the gimbal 330 reaches the target joint angle, may include the following steps: acquiring the current value of the gimbal 330 in real time. The joint angle exceeds the current angle difference of the second preset angle; the avoidance speed is determined according to the current angle difference and the preset margin; according to the avoidance speed, the gimbal 330 is controlled to rotate in the same direction as the aircraft 310 in the first direction, so that the avoidance speed is decelerated as The joint angle of the zero-hour gimbal 330 reaches the target joint angle.
在一个实施例中,控制装置320还用于:当检测到飞行器310和云台330的状态不满足预设条件时,进入第二规避模式;其中,第二规避模式包括:当检测到飞行器310的欧拉角中对应第一方向的角度达到第一预设角度、并且云台330的关节角中对应第一方向的角度达到第二预设角度时,根据第二预设规避参数控制云台330在第一方向上与飞行器310同向转动,以规避机械限位,在第二预设规避模式下,云台330规避机械限位的时长小于第一预 设规避模式下云台330规避机械限位的时长。In one embodiment, the control device 320 is further configured to enter the second avoidance mode when it is detected that the states of the aircraft 310 and the gimbal 330 do not meet the preset conditions; wherein the second avoidance mode includes: when the aircraft 310 is detected When the angle corresponding to the first direction in the Euler angles reaches the first preset angle, and the angle corresponding to the first direction in the joint angle of the gimbal 330 reaches the second preset angle, the gimbal is controlled according to the second preset avoidance parameter 330 rotates in the same direction as the aircraft 310 in the first direction to avoid the mechanical limit. In the second preset avoidance mode, the time period for the gimbal 330 to avoid the mechanical limit is shorter than that in the first preset avoidance mode. time limit.
以上描述了协同控制系统300各部件的主要功能,进一步的细节可以参照上文云台和飞行器的协同控制方法100中的相关描述,在此不做赘述。The main functions of the components of the cooperative control system 300 are described above. For further details, reference may be made to the relevant description in the cooperative control method 100 of the gimbal and the aircraft above, which will not be repeated here.
另外,本发明实施例还提供了一种计算机存储介质,其上存储有计算机程序。当所述计算机程序由处理器执行时,可以实现前述云台和飞行器的协同控制方法100的步骤。In addition, an embodiment of the present invention further provides a computer storage medium, on which a computer program is stored. When the computer program is executed by the processor, the steps of the aforementioned method 100 for cooperative control of the gimbal and the aircraft can be implemented.
例如,该计算机存储介质为计算机可读存储介质。计算机存储介质例如可以包括智能电话的存储卡、平板电脑的存储部件、个人计算机的硬盘、只读存储器(ROM)、可擦除可编程只读存储器(EPROM)、便携式紧致盘只读存储器(CD-ROM)、USB存储器、或者上述存储介质的任意组合。计算机可读存储介质可以是一个或多个计算机可读存储介质的任意组合。For example, the computer storage medium is a computer-readable storage medium. Computer storage media may include, for example, memory cards for smartphones, storage components for tablet computers, hard drives for personal computers, read only memory (ROM), erasable programmable read only memory (EPROM), portable compact disk read only memory ( CD-ROM), USB memory, or any combination of the above storage media. A computer-readable storage medium can be any combination of one or more computer-readable storage media.
综上所述,根据本发明实施例的云台和飞行器的协同控制方法和系统在云台需要规避机械限位和避免看桨时限制飞行器的欧拉角的增加速度,为云台规避预留出时间,使云台能够缓慢规避,从而保证拍摄画面的流畅性。To sum up, the method and system for the coordinated control of the gimbal and the aircraft according to the embodiments of the present invention limit the increase speed of the Euler angle of the aircraft when the gimbal needs to avoid the mechanical limit and avoid looking at the paddles, and is reserved for the gimbal avoidance. Time out, so that the gimbal can slowly evade, so as to ensure the smoothness of the shooting picture.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Those of ordinary skill in the art can realize that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each particular application, but such implementations should not be considered beyond the scope of the present invention.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the above-described systems, devices and units may refer to the corresponding processes in the foregoing method embodiments, which will not be repeated here.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the apparatus embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not implemented. On the other hand, the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作 为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and components shown as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit.
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。The functions, if implemented in the form of software functional units and sold or used as independent products, may be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention can be embodied in the form of a software product in essence, or the part that contributes to the prior art or the part of the technical solution. The computer software product is stored in a storage medium, including Several instructions are used to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk and other media that can store program codes .
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以权利要求的保护范围为准。The above are only specific embodiments of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention. should be included within the protection scope of the present invention. Therefore, the protection scope of the present invention should be subject to the protection scope of the claims.
尽管这里已经参考附图描述了示例实施例,应理解上述示例实施例仅仅是示例性的,并且不意图将本发明的范围限制于此。本领域普通技术人员可以在其中进行各种改变和修改,而不偏离本发明的范围和精神。所有这些改变和修改意在被包括在所附权利要求所要求的本发明的范围之内。Although example embodiments have been described herein with reference to the accompanying drawings, it should be understood that the above-described example embodiments are exemplary only, and are not intended to limit the scope of the invention thereto. Various changes and modifications can be made therein by those of ordinary skill in the art without departing from the scope and spirit of the invention. All such changes and modifications are intended to be included within the scope of the invention as claimed in the appended claims.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Those of ordinary skill in the art can realize that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each particular application, but such implementations should not be considered beyond the scope of the present invention.
在本申请所提供的几个实施例中,应该理解到,所揭露的设备和方法,可以通过其它的方式实现。例如,以上所描述的设备实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外 的划分方式,例如多个单元或组件可以结合或者可以集成到另一个设备,或一些特征可以忽略,或不执行。In the several embodiments provided in this application, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components may be combined or May be integrated into another device, or some features may be omitted, or not implemented.
在此处所提供的说明书中,说明了大量具体细节。然而,能够理解,本发明的实施例可以在没有这些具体细节的情况下实践。在一些实例中,并未详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。In the description provided herein, numerous specific details are set forth. It will be understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
类似地,应当理解,为了精简本发明并帮助理解各个发明方面中的一个或多个,在对本发明的示例性实施例的描述中,本发明的各个特征有时被一起分组到单个实施例、图、或者对其的描述中。然而,并不应将该本发明的方法解释成反映如下意图:即所要求保护的本发明要求比在每个权利要求中所明确记载的特征更多的特征。更确切地说,如相应的权利要求书所反映的那样,其发明点在于可以用少于某个公开的单个实施例的所有特征的特征来解决相应的技术问题。因此,遵循具体实施方式的权利要求书由此明确地并入该具体实施方式,其中每个权利要求本身都作为本发明的单独实施例。Similarly, it is to be understood that in the description of the exemplary embodiments of the invention, various features of the invention are sometimes grouped together , or in its description. However, this method of the invention should not be interpreted as reflecting the intention that the invention as claimed requires more features than are expressly recited in each claim. Rather, as the corresponding claims reflect, the invention lies in the fact that the corresponding technical problem may be solved with less than all features of a single disclosed embodiment. Thus, the claims following the Detailed Description are hereby expressly incorporated into this Detailed Description, with each claim standing on its own as a separate embodiment of this invention.
本领域的技术人员可以理解,除了特征之间相互排斥之外,可以采用任何组合对本说明书(包括伴随的权利要求、摘要和附图)中公开的所有特征以及如此公开的任何方法或者设备的所有过程或单元进行组合。除非另外明确陈述,本说明书(包括伴随的权利要求、摘要和附图)中公开的每个特征可以由提供相同、等同或相似目的替代特征来代替。It will be understood by those skilled in the art that all features disclosed in this specification (including the accompanying claims, abstract and drawings) and any method or apparatus so disclosed may be used in any combination, except that the features are mutually exclusive. Processes or units are combined. Each feature disclosed in this specification (including accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
此外,本领域的技术人员能够理解,尽管在此所述的一些实施例包括其它实施例中所包括的某些特征而不是其它特征,但是不同实施例的特征的组合意味着处于本发明的范围之内并且形成不同的实施例。例如,在权利要求书中,所要求保护的实施例的任意之一都可以以任意的组合方式来使用。Furthermore, those skilled in the art will appreciate that although some of the embodiments described herein include certain features, but not others, included in other embodiments, that combinations of features of different embodiments are intended to be within the scope of the invention within and form different embodiments. For example, in the claims, any of the claimed embodiments may be used in any combination.
本发明的各个部件实施例可以以硬件实现,或者以在一个或者多个处理器上运行的软件模块实现,或者以它们的组合实现。本领域的技术人员应当理解,可以在实践中使用微处理器或者数字信号处理器(DSP)来实现根据本发明实施例的一些模块的一些或者全部功能。本发明还可以实现为用于执行这里所描述的方法的一部分或者全部的装置程序(例如,计算机程序和计算机程序产品)。这样的实现本发明的程序可以存储在计算机可读介质上,或者可以具有一个或者多个信号的形式。这样的信号可以从因特网网站上下载得到,或者在载体信号上提供,或者以任何其他形式提供。Various component embodiments of the present invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art should understand that a microprocessor or a digital signal processor (DSP) may be used in practice to implement some or all of the functions of some modules according to the embodiments of the present invention. The present invention may also be implemented as apparatus programs (eg, computer programs and computer program products) for performing part or all of the methods described herein. Such a program implementing the present invention may be stored on a computer-readable medium, or may be in the form of one or more signals. Such signals may be downloaded from Internet sites, or provided on carrier signals, or in any other form.
应该注意的是上述实施例对本发明进行说明而不是对本发明进行限制, 并且本领域技术人员在不脱离所附权利要求的范围的情况下可设计出替换实施例。在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。本发明可以借助于包括有若干不同元件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。单词第一、第二、以及第三等的使用不表示任何顺序。可将这些单词解释为名称。It should be noted that the above-described embodiments illustrate rather than limit the invention, and that alternative embodiments may be devised by those skilled in the art without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The invention can be implemented by means of hardware comprising several different elements and by means of a suitably programmed computer. In a unit claim enumerating several means, several of these means may be embodied by one and the same item of hardware. The use of the words first, second, and third, etc. do not denote any order. These words can be interpreted as names.
以上所述,仅为本发明的具体实施方式或对具体实施方式的说明,本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。本发明的保护范围应以权利要求的保护范围为准。The above is only the specific embodiment of the present invention or the description of the specific embodiment, and the protection scope of the present invention is not limited thereto. Any changes or substitutions should be included within the protection scope of the present invention. The protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (28)

  1. 一种云台和飞行器的协同控制方法,所述云台搭载于所述飞行器上,其特征在于,所述方法包括:A collaborative control method for a gimbal and an aircraft, wherein the gimbal is mounted on the aircraft, wherein the method comprises:
    获取所述飞行器的欧拉角和所述云台的关节角;Obtain the Euler angle of the aircraft and the joint angle of the gimbal;
    当检测到所述飞行器的欧拉角中对应第一方向的角度达到第一预设角度时,控制所述飞行器的欧拉角的增加速度不大于第一预设速度;When it is detected that the angle corresponding to the first direction in the Euler angles of the aircraft reaches a first preset angle, controlling the increasing speed of the Euler angles of the aircraft not to be greater than the first preset speed;
    当检测到所述云台的关节角中对应所述第一方向的角度达到第二预设角度时,根据第一预设规避参数控制所述云台在所述第一方向上与所述飞行器同向转动,所述第一预设规避参数与所述飞行器的欧拉角的增加速度相关。When it is detected that the angle of the joint angles of the gimbal corresponding to the first direction reaches a second preset angle, control the gimbal to align with the aircraft in the first direction according to the first preset avoidance parameter When rotating in the same direction, the first preset avoidance parameter is related to the increasing speed of the Euler angle of the aircraft.
  2. 如权利要求1所述的协同控制方法,其特征在于,所述方法还包括:The collaborative control method according to claim 1, wherein the method further comprises:
    当检测到所述飞行器、所述云台和所述云台搭载的成像装置的状态满足预设条件时,进入第一规避模式;When it is detected that the state of the aircraft, the gimbal and the imaging device mounted on the gimbal meets a preset condition, enter the first avoidance mode;
    其中,所述第一规避模式,包括:当检测到所述飞行器的欧拉角中对应第一方向的角度达到第一预设角度时,控制所述飞行器的欧拉角的增加速度不大于第一预设速度;当检测到所述云台的关节角中对应所述第一方向的角度达到第二预设角度时,根据第一预设规避参数控制所述云台在所述第一方向上与所述飞行器同向转动,所述第一预设规避参数与所述飞行器的欧拉角的增加速度相关。Wherein, the first avoidance mode includes: when it is detected that the angle corresponding to the first direction in the Euler angles of the aircraft reaches a first preset angle, controlling the increase speed of the Euler angles of the aircraft to be no greater than the third a preset speed; when it is detected that the angle of the joint angles of the gimbal corresponding to the first direction reaches a second preset angle, the gimbal is controlled in the first direction according to the first preset avoidance parameter Rotating upward in the same direction as the aircraft, the first preset avoidance parameter is related to the increasing speed of the Euler angle of the aircraft.
  3. 如权利要求2所述的协同控制方法,其特征在于,所述飞行器、所述云台和所述云台的成像装置的状态满足预设条件,包括:The collaborative control method according to claim 2, wherein the states of the aircraft, the gimbal and the imaging device of the gimbal satisfy a preset condition, comprising:
    所述飞行器处于非刹车状态、所述云台的成像装置处于成像状态、并且所述云台的目标欧拉角在第一预设范围内。The aircraft is in a non-braking state, the imaging device of the gimbal is in an imaging state, and the target Euler angle of the gimbal is within a first preset range.
  4. 如权利要求3所述的协同控制方法,其特征在于,所述第一预设范围包括规避上限范围和规避下限范围。The cooperative control method according to claim 3, wherein the first preset range includes an avoidance upper limit range and an avoidance lower limit range.
  5. 如权利要求4所述的协同控制方法,其特征在于,所述规避上限范围和所述规避下限范围是根据所述飞行器的最大欧拉角和最小欧拉角、所述云台的机械限位以及所述飞行器的机动性能确定的。The cooperative control method according to claim 4, wherein the avoidance upper limit range and the avoidance lower limit range are based on the maximum Euler angle and the minimum Euler angle of the aircraft, and the mechanical limit of the gimbal. and the maneuverability of the aircraft is determined.
  6. 如权利要求5所述的协同控制方法,其特征在于,所述规避上限范围为5°~-8°,所述规避下限范围为-70°~-90°。The collaborative control method according to claim 5, wherein the upper limit of avoidance is in the range of 5° to -8°, and the lower limit of avoidance is in the range of -70° to -90°.
  7. 如权利要求1所述的协同控制方法,其特征在于,在所述根据第一预设规避参数控制所述云台在所述第一方向上与所述飞行器同向转动的过程中,所述云台的关节角中对应所述第一方向的角度的增加速度不小于所述飞行器的欧拉角中对应所述第一方向的角度的增加速度。The cooperative control method according to claim 1, wherein in the process of controlling the gimbal to rotate in the same direction with the aircraft in the first direction according to the first preset avoidance parameter, the The increasing speed of the angle corresponding to the first direction among the joint angles of the gimbal is not less than the increasing speed of the angle corresponding to the first direction among the Euler angles of the aircraft.
  8. 如权利要求1所述的协同控制方法,其特征在于,所述根据第一预设规避参数控制所述云台在所述第一方向上与所述飞行器同向转动,包括:The cooperative control method according to claim 1, wherein the controlling the gimbal to rotate in the same direction with the aircraft in the first direction according to a first preset avoidance parameter comprises:
    根据第一预设规避参数控制所述云台在所述第一方向上与所述飞行器同向转动,以使所述云台的欧拉角达到预设的目标欧拉角。The gimbal is controlled to rotate in the same direction as the aircraft in the first direction according to the first preset avoidance parameter, so that the Euler angle of the gimbal reaches a preset target Euler angle.
  9. 如权利要求8所述的协同控制方法,其特征在于,所述根据第一预设规避参数控制所述云台在所述第一方向上与所述飞行器同向转动,以使所述云台的欧拉角达到预设的目标欧拉角,包括:The cooperative control method according to claim 8, wherein the gimbal is controlled to rotate in the same direction as the aircraft in the first direction according to a first preset avoidance parameter, so that the gimbal is controlled to rotate in the same direction as the aircraft. The Euler angles reach the preset target Euler angles, including:
    确定所述云台的当前欧拉角与所述目标欧拉角之间的角度差;determining the angle difference between the current Euler angle of the gimbal and the target Euler angle;
    根据所述角度差以及预设的规避运行时间确定最大规避速度;Determine the maximum avoidance speed according to the angle difference and the preset avoidance running time;
    根据所述最大规避速度以及预设的规避加速时间和预设的规避减速时间对规避加速段和规避减速段进行规划;planning the avoidance acceleration segment and the avoidance deceleration segment according to the maximum avoidance speed and the preset avoidance acceleration time and the preset avoidance deceleration time;
    按照规划的规避加速段和规避减速段调整所述云台的欧拉角,使所述云台的规避速度减速为零时所述云台的欧拉角达到所述预设的目标欧拉角。Adjust the Euler angle of the gimbal according to the planned avoidance acceleration section and avoidance deceleration section, so that the Euler angle of the gimbal reaches the preset target Euler angle when the avoidance speed of the gimbal is decelerated to zero .
  10. 如权利要求1所述的协同控制方法,其特征在于,所述根据第一预设规避参数控制所述云台在所述第一方向上与所述飞行器同向转动,包括:The cooperative control method according to claim 1, wherein the controlling the gimbal to rotate in the same direction with the aircraft in the first direction according to a first preset avoidance parameter comprises:
    根据第一预设规避参数控制所述云台转动预设行程。The gimbal is controlled to rotate a preset stroke according to the first preset avoidance parameter.
  11. 如权利要求10所述的协同控制方法,其特征在于,所述根据第一预设规避参数控制所述云台转动预设行程,包括:The collaborative control method according to claim 10, wherein the controlling the rotation preset stroke of the gimbal according to the first preset avoidance parameter comprises:
    根据所述预设行程以及预设的规避运行时间确定最大规避速度;Determine the maximum avoidance speed according to the preset travel and the preset avoidance running time;
    根据所述最大规避速度以及预设的规避加速时间和预设的规避减速时间对规避加速段和规避减速段进行规划;planning the avoidance acceleration segment and the avoidance deceleration segment according to the maximum avoidance speed and the preset avoidance acceleration time and the preset avoidance deceleration time;
    按照规划的规避加速段和规避减速段调整所述云台的欧拉角,使所述云台在规避速度减速为零时运行了所述预设行程。Adjust the Euler angle of the gimbal according to the planned avoidance acceleration section and avoidance deceleration section, so that the gimbal runs the preset stroke when the avoidance speed decelerates to zero.
  12. 如权利要求1所述的协同控制方法,其特征在于,所述根据第一预设规避参数控制所述云台在所述第一方向上与所述飞行器同向转动,包括:The cooperative control method according to claim 1, wherein the controlling the gimbal to rotate in the same direction with the aircraft in the first direction according to a first preset avoidance parameter comprises:
    根据第一预设规避参数控制所述云台在所述第一方向上与所述飞行器同向转动,使所述云台的关节角达到目标关节角,所述目标关节角是基于预设余量和所述第二预设角度确定的。The gimbal is controlled to rotate in the same direction as the aircraft in the first direction according to the first preset avoidance parameter, so that the joint angle of the gimbal reaches the target joint angle, and the target joint angle is based on the preset residual angle. amount and the second preset angle are determined.
  13. 如权利要求12所述的协同控制方法,其特征在于,所述根据第一预设规避参数控制所述云台在所述第一方向上与所述飞行器同向转动,使所述云台的关节角达到目标关节角,包括:The cooperative control method according to claim 12, wherein the control of the gimbal to rotate in the same direction with the aircraft in the first direction according to the first preset avoidance parameter, so that the gimbal is controlled to rotate in the same direction as the aircraft. The joint angle reaches the target joint angle, including:
    实时获取所述云台的当前关节角超过所述第二预设角度的当前角度差;Acquiring in real time the current angle difference between the current joint angle of the gimbal and the second preset angle;
    根据所述当前角度差和所述预设余量确定规避速度;determining an avoidance speed according to the current angle difference and the preset margin;
    根据所述规避速度控制所述云台在所述第一方向上与所述飞行器同向转动,使所述规避速度减速为零时所述云台的关节角达到所述目标关节角。The gimbal is controlled to rotate in the same direction as the aircraft in the first direction according to the avoidance speed, so that the joint angle of the gimbal reaches the target joint angle when the avoidance speed is decelerated to zero.
  14. 如权利要求2所述的协同控制方法,其特征在于,所述方法还包括:The collaborative control method according to claim 2, wherein the method further comprises:
    当检测到所述飞行器和所述云台的状态不满足所述预设条件时,进入第二规避模式;When it is detected that the state of the aircraft and the gimbal does not meet the preset condition, enter the second avoidance mode;
    其中,所述第二规避模式包括:当检测到所述飞行器的欧拉角中对应所述第一方向的角度达到第一预设角度、并且所述云台的关节角中对应所述第一方向的角度达到所述第二预设角度时,根据第二预设规避参数控制所述云台在所述第一方向上与所述飞行器同向转动,在所述第二预设规避模式下,所述云台规避机械限位的时长小于所述第一预设规避模式下所述云台规避机械限位的时长。The second avoidance mode includes: when it is detected that the Euler angles of the aircraft corresponding to the first direction reach a first preset angle, and the joint angles of the gimbal correspond to the first When the angle of the direction reaches the second preset angle, the gimbal is controlled to rotate in the same direction as the aircraft in the first direction according to the second preset avoidance parameter, and in the second preset avoidance mode , the duration of the gimbal avoiding the mechanical limit is shorter than the duration of the gimbal avoiding the mechanical limit in the first preset avoidance mode.
  15. 一种云台和飞行器的协同控制系统,其特征在于,所述协同控制系统包括云台、飞行器以及控制装置,所述云台搭载于所述飞行器上,所述控制装置用于:A collaborative control system of a pan-tilt and an aircraft, characterized in that the collaborative control system comprises a pan-tilt, an aircraft and a control device, the pan-tilt is mounted on the aircraft, and the control device is used for:
    获取所述飞行器的欧拉角和所述云台的关节角;Obtain the Euler angle of the aircraft and the joint angle of the gimbal;
    当检测到所述飞行器的欧拉角中对应第一方向的角度达到第一预设角度时,控制所述飞行器的欧拉角的增加速度不大于第一预设速度;When it is detected that the angle corresponding to the first direction in the Euler angles of the aircraft reaches a first preset angle, controlling the increasing speed of the Euler angles of the aircraft not to be greater than the first preset speed;
    当检测到所述云台的关节角中对应所述第一方向的角度达到第二预设角度时,根据第一预设规避参数控制所述云台在所述第一方向上与所述飞行器同向转动,所述第一预设规避参数与所述飞行器的欧拉角的增加速度相关。When it is detected that the angle of the joint angles of the gimbal corresponding to the first direction reaches a second preset angle, control the gimbal to align with the aircraft in the first direction according to the first preset avoidance parameter When rotating in the same direction, the first preset avoidance parameter is related to the increasing speed of the Euler angle of the aircraft.
  16. 如权利要求15所述的协同控制系统,其特征在于,所述控制装置还用于:The cooperative control system according to claim 15, wherein the control device is further used for:
    当检测到所述飞行器、所述云台和所述云台搭载的成像装置的状态满足预设条件时,进入第一规避模式;When it is detected that the state of the aircraft, the gimbal and the imaging device mounted on the gimbal meets a preset condition, enter the first avoidance mode;
    其中,所述第一规避模式,包括:当检测到所述飞行器的欧拉角中对应第一方向的角度达到第一预设角度时,控制所述飞行器的欧拉角的增加速度不大于第一预设速度;当检测到所述云台的关节角中对应所述第一方向的角度达到第二预设角度时,根据第一预设规避参数控制所述云台在所述第一方向上与所述飞行器同向转动,所述第一预设规避参数与所述飞行器的欧拉角的增加速度相关。Wherein, the first avoidance mode includes: when it is detected that the angle corresponding to the first direction in the Euler angles of the aircraft reaches a first preset angle, controlling the increase speed of the Euler angles of the aircraft to be no greater than the third a preset speed; when it is detected that the angle of the joint angles of the gimbal corresponding to the first direction reaches a second preset angle, the gimbal is controlled in the first direction according to the first preset avoidance parameter Rotating upward in the same direction as the aircraft, the first preset avoidance parameter is related to the increasing speed of the Euler angle of the aircraft.
  17. 如权利要求16所述的协同控制系统,其特征在于,所述飞行器、所述云台和所述云台的成像装置的状态满足预设条件,包括:The collaborative control system according to claim 16, wherein the states of the aircraft, the gimbal and the imaging device of the gimbal satisfy a preset condition, comprising:
    所述飞行器处于非刹车状态、所述云台的成像装置处于成像状态、并且 所述云台的目标欧拉角在第一预设范围内。The aircraft is in a non-braking state, the imaging device of the gimbal is in an imaging state, and the target Euler angle of the gimbal is within a first preset range.
  18. 如权利要求17所述的协同控制系统,其特征在于,所述第一预设范围包括规避上限范围和规避下限范围。The cooperative control system according to claim 17, wherein the first preset range includes an avoidance upper limit range and an avoidance lower limit range.
  19. 如权利要求18所述的协同控制系统,其特征在于,所述规避上限范围和所述规避下限范围是根据所述飞行器的最大欧拉角和最小欧拉角、所述云台的机械限位以及所述飞行器的机动性能确定的。The cooperative control system according to claim 18, wherein the avoidance upper limit range and the avoidance lower limit range are based on the maximum Euler angle and the minimum Euler angle of the aircraft, and the mechanical limit of the gimbal. and the maneuverability of the aircraft is determined.
  20. 如权利要求19所述的协同控制系统,其特征在于,所述规避上限范围为5°~-8°,所述规避下限范围为-70°~-90°。The cooperative control system according to claim 19, wherein the upper limit of avoidance is in the range of 5° to -8°, and the lower limit of avoidance is in the range of -70° to -90°.
  21. 如权利要求15所述的协同控制系统,其特征在于,在所述根据第一预设规避参数控制所述云台在所述第一方向上与所述飞行器同向转动的过程中,所述云台的关节角中对应所述第一方向的角度的增加速度不小于所述飞行器的欧拉角中对应所述第一方向的角度的增加速度。The cooperative control system according to claim 15, wherein in the process of controlling the gimbal to rotate in the same direction with the aircraft in the first direction according to the first preset avoidance parameter, the The increasing speed of the angle corresponding to the first direction among the joint angles of the gimbal is not less than the increasing speed of the angle corresponding to the first direction among the Euler angles of the aircraft.
  22. 如权利要求15所述的协同控制系统,其特征在于,所述根据第一预设规避参数控制所述云台在所述第一方向上与所述飞行器同向转动,包括:The cooperative control system according to claim 15, wherein the controlling the gimbal to rotate in the same direction with the aircraft in the first direction according to the first preset avoidance parameter comprises:
    根据第一预设规避参数控制所述云台在所述第一方向上与所述飞行器同向转动,以使所述云台的欧拉角达到预设的目标欧拉角。The gimbal is controlled to rotate in the same direction as the aircraft in the first direction according to the first preset avoidance parameter, so that the Euler angle of the gimbal reaches a preset target Euler angle.
  23. 如权利要求22所述的协同控制系统,其特征在于,所述根据第一预设规避参数控制所述云台在所述第一方向上与所述飞行器同向转动,以使所述云台的欧拉角达到预设的目标欧拉角,包括:The cooperative control system according to claim 22, wherein the gimbal is controlled to rotate in the same direction as the aircraft in the first direction according to a first preset avoidance parameter, so that the gimbal rotates in the same direction as the aircraft. The Euler angles reach the preset target Euler angles, including:
    确定所述云台的当前欧拉角与所述目标欧拉角之间的角度差;determining the angle difference between the current Euler angle of the gimbal and the target Euler angle;
    根据所述角度差以及预设的规避运行时间确定最大规避速度;Determine the maximum avoidance speed according to the angle difference and the preset avoidance running time;
    根据所述最大规避速度以及预设的规避加速时间和预设的规避减速时间对规避加速段和规避减速段进行规划;planning the avoidance acceleration segment and the avoidance deceleration segment according to the maximum avoidance speed and the preset avoidance acceleration time and the preset avoidance deceleration time;
    按照规划的规避加速段和规避减速段调整所述云台的欧拉角,使所述云台的规避速度减速为零时所述云台的欧拉角达到所述预设的目标欧拉角。Adjust the Euler angle of the gimbal according to the planned avoidance acceleration section and avoidance deceleration section, so that the Euler angle of the gimbal reaches the preset target Euler angle when the avoidance speed of the gimbal is decelerated to zero .
  24. 如权利要求15所述的协同控制系统,其特征在于,所述根据第一预设规避参数控制所述云台在所述第一方向上与所述飞行器同向转动,包括:The cooperative control system according to claim 15, wherein the controlling the gimbal to rotate in the same direction with the aircraft in the first direction according to the first preset avoidance parameter comprises:
    根据第一预设规避参数控制所述云台转动预设行程。The gimbal is controlled to rotate a preset stroke according to the first preset avoidance parameter.
  25. 如权利要求24所述的协同控制系统,其特征在于,所述根据第一预设规避参数控制所述云台转动预设行程,包括:The cooperative control system according to claim 24, wherein the controlling the rotation preset travel of the pan/tilt according to the first preset avoidance parameter comprises:
    根据所述预设行程以及预设的规避运行时间确定最大规避速度;Determine the maximum avoidance speed according to the preset travel and the preset avoidance running time;
    根据所述最大规避速度以及预设的规避加速时间和预设的规避减速时间对规避加速段和规避减速段进行规划;planning the avoidance acceleration segment and the avoidance deceleration segment according to the maximum avoidance speed and the preset avoidance acceleration time and the preset avoidance deceleration time;
    按照规划的规避加速段和规避减速段调整所述云台的欧拉角,使所述云台在规避速度减速为零时运行了所述预设行程。Adjust the Euler angle of the gimbal according to the planned avoidance acceleration section and avoidance deceleration section, so that the gimbal runs the preset stroke when the avoidance speed decelerates to zero.
  26. 如权利要求15所述的协同控制系统,其特征在于,所述根据第一预设规避参数控制所述云台在所述第一方向上与所述飞行器同向转动,包括:The cooperative control system according to claim 15, wherein the controlling the gimbal to rotate in the same direction with the aircraft in the first direction according to the first preset avoidance parameter comprises:
    根据第一预设规避参数控制所述云台与所述飞行器同向转动,使所述云台的关节角达到目标关节角,所述目标关节角是基于预设余量和所述第二预设角度确定的。The gimbal and the aircraft are controlled to rotate in the same direction according to the first preset avoidance parameter, so that the joint angle of the gimbal reaches the target joint angle, and the target joint angle is based on the preset margin and the second preset The angle is determined.
  27. 如权利要求26所述的协同控制系统,其特征在于,所述根据第一预设规避参数控制所述云台在所述第一方向上与所述飞行器同向转动,使所述云台的关节角达到目标关节角,包括:The cooperative control system according to claim 26, wherein the control of the gimbal to rotate in the same direction as the aircraft in the first direction according to the first preset avoidance parameter makes the gimbal rotate in the same direction as the aircraft. The joint angle reaches the target joint angle, including:
    实时获取所述云台的当前关节角超过所述第二预设角度的当前角度差;Acquiring in real time the current angle difference between the current joint angle of the gimbal and the second preset angle;
    根据所述当前角度差和所述预设余量确定规避速度;determining an avoidance speed according to the current angle difference and the preset margin;
    根据所述规避速度控制所述云台在所述第一方向上与所述飞行器同向转动,使所述规避速度减速为零时所述云台的关节角达到所述目标关节角。The gimbal is controlled to rotate in the same direction as the aircraft in the first direction according to the avoidance speed, so that the joint angle of the gimbal reaches the target joint angle when the avoidance speed is decelerated to zero.
  28. 如权利要求16所述的协同控制系统,其特征在于,所述控制装置还用于:The cooperative control system according to claim 16, wherein the control device is further used for:
    当检测到所述飞行器和所述云台的状态不满足所述预设条件时,进入第二规避模式;When it is detected that the state of the aircraft and the gimbal does not meet the preset condition, enter the second avoidance mode;
    其中,所述第二规避模式包括:当检测到所述飞行器的欧拉角中对应所述第一方向的角度达到第一预设角度、并且所述云台的关节角中对应所述第一方向的角度达到所述第二预设角度时,根据第二预设规避参数控制所述云台在所述第一方向上与所述飞行器同向转动,在所述第二预设规避模式下,所述云台规避机械限位的时长小于所述第一预设规避模式下所述云台规避机械限位的时长。The second avoidance mode includes: when it is detected that the Euler angles of the aircraft corresponding to the first direction reach a first preset angle, and the joint angles of the gimbal correspond to the first When the angle of the direction reaches the second preset angle, the gimbal is controlled to rotate in the same direction as the aircraft in the first direction according to the second preset avoidance parameter, and in the second preset avoidance mode , the duration of the gimbal avoiding the mechanical limit is shorter than the duration of the gimbal avoiding the mechanical limit in the first preset avoidance mode.
PCT/CN2020/131204 2020-11-24 2020-11-24 Cooperative control method and system for cradle head and aircraft WO2022109801A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202080070618.9A CN115175854A (en) 2020-11-24 2020-11-24 Cooperative control method and system for holder and aircraft
PCT/CN2020/131204 WO2022109801A1 (en) 2020-11-24 2020-11-24 Cooperative control method and system for cradle head and aircraft

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2020/131204 WO2022109801A1 (en) 2020-11-24 2020-11-24 Cooperative control method and system for cradle head and aircraft

Publications (1)

Publication Number Publication Date
WO2022109801A1 true WO2022109801A1 (en) 2022-06-02

Family

ID=81753746

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/131204 WO2022109801A1 (en) 2020-11-24 2020-11-24 Cooperative control method and system for cradle head and aircraft

Country Status (2)

Country Link
CN (1) CN115175854A (en)
WO (1) WO2022109801A1 (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5448144A (en) * 1991-11-22 1995-09-05 Kabushiki Kaisha Yaskawa Denki Method and apparatus for controlling a robot
CN108521777A (en) * 2017-11-22 2018-09-11 深圳市大疆创新科技有限公司 Control method, holder and the unmanned vehicle of holder
CN108778932A (en) * 2017-12-29 2018-11-09 深圳市大疆创新科技有限公司 The method and apparatus of control holder reset, holder, unmanned vehicle
CN110649365A (en) * 2019-10-29 2020-01-03 北京联恒众达科技中心(有限合伙) 360 degrees stop gear of cloud platform single circle
CN110869283A (en) * 2018-08-30 2020-03-06 深圳市大疆创新科技有限公司 Control method and device of cloud deck, cloud deck system and unmanned aerial vehicle
CN111447362A (en) * 2020-04-02 2020-07-24 浙江大华技术股份有限公司 Pan-tilt motor limiting method and device, pan-tilt camera and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5448144A (en) * 1991-11-22 1995-09-05 Kabushiki Kaisha Yaskawa Denki Method and apparatus for controlling a robot
CN108521777A (en) * 2017-11-22 2018-09-11 深圳市大疆创新科技有限公司 Control method, holder and the unmanned vehicle of holder
CN108778932A (en) * 2017-12-29 2018-11-09 深圳市大疆创新科技有限公司 The method and apparatus of control holder reset, holder, unmanned vehicle
CN110869283A (en) * 2018-08-30 2020-03-06 深圳市大疆创新科技有限公司 Control method and device of cloud deck, cloud deck system and unmanned aerial vehicle
CN110649365A (en) * 2019-10-29 2020-01-03 北京联恒众达科技中心(有限合伙) 360 degrees stop gear of cloud platform single circle
CN111447362A (en) * 2020-04-02 2020-07-24 浙江大华技术股份有限公司 Pan-tilt motor limiting method and device, pan-tilt camera and storage medium

Also Published As

Publication number Publication date
CN115175854A (en) 2022-10-11

Similar Documents

Publication Publication Date Title
US11222549B2 (en) Collision detection and avoidance
WO2018053877A1 (en) Control method, control device, and delivery system
US10824149B2 (en) System and method for automated aerial system operation
WO2018098784A1 (en) Unmanned aerial vehicle controlling method, device, equipment and unmanned aerial vehicle controlling system
US20200346753A1 (en) Uav control method, device and uav
US20170336805A1 (en) Method an apparatus for controlling unmanned aerial vehicle to land on landing platform
WO2018098678A1 (en) Aircraft control method, device, and apparatus, and aircraft
ES2902469T3 (en) Methods and systems for the control of the movement of flying devices
WO2018107419A1 (en) Control method, device and apparatus, and movable platform
US11245848B2 (en) Method of controlling gimbal, gimbal and UAV
WO2021078165A1 (en) Flight control method and apparatus for unmanned aerial vehicle, and unmanned aerial vehicle and storage medium
WO2018058320A1 (en) Method and apparatus for controlling unmanned aerial vehicle
WO2022033307A1 (en) Obstacle avoidance method and apparatus, and unmanned aerial vehicle
JP2011511736A (en) A method of maneuvering a rotary wing drone with automatic hovering flight stabilization
WO2018040006A1 (en) Control method, device and system, aerial vehicle, carrier, and operating device
WO2019128275A1 (en) Photographing control method and device, and aircraft
WO2020087349A1 (en) Unmanned aerial vehicle and gimbal control method therefor
WO2019210467A1 (en) Pan-tilt control method and apparatus, pan-tilt system, unmanned aerial vehicle and computer-readable storage medium
WO2019051640A1 (en) Control method for pan-tilt, controller, and pan-tilt
WO2019047073A1 (en) Aerial vehicle landing method, aerial vehicle, and computer readable storage medium
WO2020000402A1 (en) Method and apparatus for manipulating movable platform, and movable platform
WO2023036260A1 (en) Image acquisition method and apparatus, and aerial vehicle and storage medium
WO2018068193A1 (en) Control method, control device, flight control system, and multi-rotor unmanned aerial vehicle
WO2020042159A1 (en) Rotation control method and apparatus for gimbal, control device, and mobile platform
WO2022109801A1 (en) Cooperative control method and system for cradle head and aircraft

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

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

Country of ref document: EP

Kind code of ref document: A1