The present disclosure relates to the technical field of gimbal control and, more particularly, to a method and device for controlling reset of a gimbal, a gimbal, and an unmanned aerial vehicle (UAV).
Currently, a gimbal uses a slip ring or a rotating structure having mechanical limits and an angle range greater than 360 degrees to achieve 360-degree shooting during a shooting process. When the rotating structure is used, a rotation region of the gimbal includes a forward rotation region and a backward rotation region. A joint angle of the gimbal for the forward rotation region and a joint angle of the gimbal for the backward rotation region are both greater than 180 degrees and less than 360 degrees, and the mechanical limits are arranged at a maximum joint angle of the forward rotation region and a maximum joint angle of the backward rotation region, such that a joint angle of gimbal for the rotation region of the gimbal is greater than 360 degrees. When rotating the gimbal in a specific direction, sometimes the angle cannot be rotated by 360 degrees. When the gimbal is locked at an angle that cannot be rotated by 360 degrees and is manually pushed to rotate greater than 180 degrees, if the gimbal is reset using a shortest path after releasing the hand, the gimbal collides with the mechanical limit due to the shortest path and cannot be reset.
In accordance with the disclosure, there is provided a method for controlling reset of a gimbal including calculating a difference between a joint angle of the gimbal at a first position and a joint angle of the gimbal at a second position in response to the gimbal passively rotating from the first position to the second position along a passive rotation direction, controlling the gimbal to return to the first position from the second position by rotating along a direction opposite to the passive rotation direction in response to the difference satisfying a first condition, and controlling the gimbal to return to the first position from the second position by rotating along a shortest path or along the direction opposite to the passive rotation direction according to a target sub-region in which the first position is located in response to the difference satisfying a second condition. A rotation region of the gimbal has a joint angle range larger than 360 degrees, and the target sub-region is one of a plurality of sub-regions of the rotation region.
Also in accordance with the disclosure, there is provided a device for controlling reset of a gimbal including one or more processors working individually or collectively and a storage device storing program instructions that, when executed by the one or more processors, cause the one or more processors to calculate a difference between a joint angle of the gimbal at a first position and a joint angle of the gimbal at a second position in response to the gimbal passively rotating from the first position to the second position along a passive rotation direction, control the gimbal to return to the first position from the second position by rotating along a direction opposite to the passive rotation direction in response to the difference satisfying a first condition, and control the gimbal to return to the first position from the second position by rotating along a shortest path or along the direction opposite to the passive rotation direction according to a target sub-region in which the first position is located in response to the difference satisfying a second condition. A rotation region of the gimbal has a joint angle range larger than 360 degrees, and the target sub-region is one of a plurality of sub-regions of the rotation region.
Also in accordance with the disclosure, there is provided a gimbal including a shaft assembly and one or more processors electrically coupled to the shaft assembly and individually or collectively configured to calculate a difference between a joint angle of the gimbal at a first position and a joint angle of the gimbal at a second position in response to the gimbal passively rotating from the first position to the second position along a passive rotation direction, control the gimbal to return to the first position from the second position by rotating along a direction opposite to the passive rotation direction in response to the difference satisfying a first condition, and control the gimbal to return to the first position from the second position by rotating along a shortest path or along the direction opposite to the passive rotation direction according to a target sub-region in which the first position is located in response to the difference satisfying a second condition. A rotation region of the gimbal has a joint angle range larger than 360 degrees, and the target sub-region is one of a plurality of sub-regions of the rotation region.
In order to provide a clearer illustration of technical solutions of disclosed embodiments, the drawings used in the description of the disclosed embodiments are briefly described below. It will be appreciated that the disclosed drawings are merely examples and other drawings conceived by those having ordinary skills in the art on the basis of the described drawings without inventive efforts should fall within the scope of the present disclosure.
In order to provide a clearer illustration of technical solutions of disclosed embodiments, example embodiments will be described with reference to the accompanying drawings. It will be appreciated that the described embodiments are some rather than all of the embodiments of the present disclosure. Other embodiments conceived by those having ordinary skills in the art on the basis of the described embodiments without inventive efforts should fall within the scope of the present disclosure.
A method and device for controlling reset of gimbal, a gimbal, and an unmanned aerial vehicle (UAV) consistent with the present disclosure will be described with reference to the accompanying drawings. Unless conflicting, the exemplary embodiments and features in the exemplary embodiments can be combined with each other.
Consistent with the disclosure, a joint angle of the gimbal for a rotation region of the gimbal can be greater than 360 degrees, i.e., the gimbal can rotate more than 360 degrees in the rotation region of the gimbal, i.e., a range of the joint angle, also referred to as a joint angle range, can be more than 360 degrees. In this disclosure, a “region” can refer to, e.g., an angular region between two lines (half lines or line segments) each with a rotation center (e.g., rotation center of the gimbal) as an end thereof.
In some embodiments, when the gimbal is at the zero position, the gimbal can rotate from the zero position to the maximum limit position of the forward rotation region along the forward rotation direction. When the gimbal is at the zero position, the gimbal can rotate from the zero position to the maximum limit position of the backward rotation region along the backward rotation direction. Under a same coordinate system, the clockwise direction can be defined as the forward rotation direction (as indicated by the curved arrow in
The gimbal may include a two-axis gimbal or a three-axis gimbal. Here, a three-axis gimbal is used as an example for further description.
As shown in
Passively rotating the gimbal 200 from the first position to the second position along the first direction can refer to that a change of the attitude of the gimbal 200 is not caused by the control of the yaw axis motor, the roll axis motor, and/or the pitch axis motor of the gimbal 200. The first rotation is also referred to as a “passive rotation direction.” The change of the attitude of the gimbal 200 can be monitored in real time by an inertial measurement unit (IMU) arranged at the gimbal 200. After the IMU detects the change of the attitude of the gimbal 200, whether any of the yaw axis motor, the roll axis motor, and the pitch axis motor has received a driving signal sent by a processor 110 of the gimbal 200 or a flight controller of the UAV can be determined. If none of the yaw axis motor, the roll axis motor, and the pitch axis motor have received the driving signal sent by the processor 110 of the gimbal 200 or the flight controller of the UAV, it can be determined that the change of the attitude of the gimbal 200 is realized passively. Passively rotating the gimbal 200 from the first position to the second position along the first direction may include manually rotating, by a user, the gimbal 200 from the first position to the second position along the first direction, or rotating, under other external forces, the gimbal 200 from the first position to the second position along the first direction.
The meaning of the joint angle of the gimbal 200 at the first position will be explained as follows. When the first position is in the forward rotation region, the joint angle of the gimbal 200 at the first position can refer to a rotation angle corresponding to the gimbal 200 rotating from the zero position to the first position along the forward rotation direction, and the joint angle of the gimbal 200 at the first position can have a positive value. When the first position is in the backward rotation region, the joint angle of the gimbal 200 at the first position can refer to a rotation angle corresponding to the gimbal 200 rotating from the zero position to the first position along the backward rotation direction, and the joint angle of the gimbal 200 at the first position can have a negative value. The meaning of the joint angle of the gimbal 200 at the second position is similar to the meaning of the joint angle of the gimbal 200 at the first position, and detailed description thereof is omitted herein.
At S302, when the difference satisfies a first specific condition, the gimbal 200 is controlled to return to the first position from the second position by rotating along a direction opposite to the first direction. This is also referred to as a “first reset strategy.”
In some embodiments, the first specific condition can include that an absolute value of the difference is less than or equal to 180 degrees. For example, when the absolute value of the difference is 30 degrees, 45 degrees, 90 degrees, 120 degrees, 180 degrees, or the like, the gimbal 200 can be automatically controlled to return from the second position to the first position by rotating along the direction opposite to the first direction. The gimbal 200 can be reset successfully without requiring the user to manually reset the gimbal 200. If the gimbal 200 needs to rotate at a larger angle along the first direction to return to the first position from the second position, and the gimbal may collide with the mechanical limit at the forward rotation region or the mechanical limit at the backward rotation region. As a result, the gimbal 200 cannot be reset successfully, and the user needs to manually control the reset of the gimbal 200, thereby resulting in a poor user experience. Moreover, the gimbal 200 may be worn by frequently colliding with the mechanical limits.
When the absolute value of the difference is less than or equal to 180 degrees, the process at S302 can be executed. The process at S302 can be equivalent to controlling the gimbal 200 to return from the second position to the first position by rotating along a shortest path. A magnitude and direction of the joint angle of the gimbal 200 at the first position after the execution of the process at S302 can be the same as those of the joint angle of the gimbal 200 at the first position before the execution of the process at S301.
The joint angle may include a yaw axis angle of the gimbal 200, a roll axis angle of the gimbal 200, or a pitch axis angle of the gimbal 200.
At S303, when the difference satisfies a second specific condition, according to a sub-region where the first position is located, the gimbal 200 is controlled to return to the first position from the second position by rotating along the shortest path or along the direction opposite to the first direction. This is also referred to as a “second reset strategy.” In this disclosure, this sub-region where the first position is located is also referred to as a “target sub-region.”
Controlling the gimbal 200 to return to the first position from the second position by rotating along the shortest path or along the direction opposite can be automatically realized by controlling the yaw axis motor, the roll axis motor, and/or the pitch axis motor of the gimbal 200 by the processor 110 of the gimbal 200 or by the flight controller of the UAV. For example, when the yaw axis of the gimbal 200 is passively rotated from the first position to the second position, the yaw axis motor can be controlled by the processor 110 of the gimbal 200 to return to the first position from the second position by rotating along the shortest path or along the direction opposite to the first direction, or the yaw axis motor can be controlled by the flight controller of the UAV to return to the first position from the second position by rotating along the shortest path or along the direction opposite to the first direction.
In some embodiments, the second specific condition can include that the absolute value of the difference is greater than 180 degrees.
Consistent with the disclosure, when the gimbal 200 is passively triggered at an angle that cannot rotate 360 degrees to rotate from the first position to the second position, an automatic reset manner of the gimbal 200 can be selected according to the difference between the joint angle of the gimbal 200 at the first position and the joint angle of the gimbal 200 at the second position. The issue of the gimbal 200 colliding with the mechanical limits due to the shortest path problem can be avoided, such that a user confusion can be reduced and the user experience can be better.
In some embodiments, the rotation region can be divided into a plurality of sub-regions according to a preset rule. For example, the rotation region can be divided into the plurality of sub-regions according to an equal division principle. As another example, the rotation region can be divided into the plurality of the sub-regions according to the maximum joint angle position 201 of the forward rotation region, the maximum joint angle position 202 of the backward rotation region, and a rotation center of the gimbal 200 (represented by 0 in
Dividing the rotation region into the plurality of the sub-regions according to the maximum joint angle position 201 of the forward rotation region, the maximum joint angle position 202 of the backward rotation region, and the rotation center of the gimbal 200 is taken as an example to further describe the method for controlling reset of the gimbal 200.
Dividing the rotation region into the plurality of the sub-regions according to the maximum joint angle position 201 of the forward rotation region, the maximum joint angle position 202 of the backward rotation region, and the rotation center of the gimbal 200 can include two situations, e.g., the maximum joint angle position 201 of the forward rotation region, the maximum joint angle position 202 of the backward rotation region, and the rotation center of the gimbal 200 being not collinear, and the maximum joint angle position 201 of the forward rotation region, the maximum joint angle position 202 of the backward rotation region, and the rotation center of the gimbal 200 being collinear.
When the maximum joint angle position 201 of the forward rotation region, the maximum joint angle position 202 of the backward rotation region, and the rotation center of the gimbal 200 are not collinear, as shown in
When the sub-region where the first position is located is region 1, the process at S303 may include controlling the gimbal 200 to return to the first position from the second position by rotating along the direction opposite to the first direction. Position A in region 1 as shown in
When the sub-region where the first position is located is region 2, the joint angle of the gimbal 200 at the first position can have a positive value or a negative value. When the joint angle of the gimbal 200 at the first position has the positive value, the process at S303 may include, if the first direction is the forward rotation direction, controlling the gimbal 200 to return to the first position from the second position by rotating along the backward rotation direction, and if the first direction is the backward rotation direction, controlling the gimbal 200 to return to the first position from the second position by rotating along the shortest path. Position B in region 2 as shown in
When the joint angle of the gimbal 200 at the first position has the negative value, the process at S303 may include, if the first direction is the forward rotation direction, controlling the gimbal 200 to return to the first position from the second position by rotating along the shortest path. Position b in region 2 as shown in
When the sub-region where the first position is located is region 3, the joint angle of the gimbal 200 at the first position can have a positive value or a negative value. When the joint angle of the gimbal 200 at the first position has the positive value, the process at S303 may include, if the first direction is the backward rotation direction, controlling the gimbal 200 to return to the first position from the second position by rotating along the shortest path. Position C in region 3 as shown in
When the joint angle of the gimbal 200 at the first position has the negative value, the process at S303 may include, if the first direction is the forward rotation direction, controlling the gimbal 200 to return to the first position from the second position by rotating along the shortest path, and if the first direction is the backward rotation direction, controlling the gimbal 200 to return to the first position from the second position by rotating along the forward rotation direction. Position c in region 3 as shown in
When the sub-region where the first position is located is region 4, the joint angle of the gimbal 200 at the first position can have a positive value or a negative value. In some embodiments, the process at S303 can include controlling the gimbal 200 to return to the first position from the second position by rotating along the shortest path. When the joint angle of the gimbal 200 at the first position has the positive value, position D in region 4 as shown in
When the joint angle of the gimbal 200 at the first position has the negative value, position d in region 4 as shown in
When the maximum joint angle position 201 of the forward rotation region, the maximum joint angle position 202 of the backward rotation region, and the rotation center of the gimbal 200 are collinear, as shown in
When the sub-region where the first position is located is region 5, the process at S303 may include controlling the gimbal 200 to return to the first position from the second position by rotating along the direction opposite to the first direction. Position E in region 5 as shown in
When the sub-region where the first position is located is region 6, the process at S303 may include controlling the gimbal 200 to return to the first position from the second position by rotating along the shortest path. The joint angle of the gimbal 200 at the first position can have a positive value or a negative value.
When the joint angle of the gimbal 200 at the first position has the positive value, position F in region 6 as shown in
When the joint angle of the gimbal 200 at the first position has the negative value, position fin region 6 as shown in
After the gimbal 200 is controlled to return to the first position from the second position by rotating along the shortest path at S303, the direction of the joint angle of the gimbal 200 at the first position can be opposite from that of the gimbal 200 before passively rotating the gimbal 200 from the first position to the second position by rotating along the first direction, which is similar to the embodiments described above and detailed description thereof is omitted herein.
In some embodiments, controlling the gimbal 200 to return to the first position from the second position by rotating along the direction opposite to the first direction may include: controlling the gimbal 200 to return to the first position from the second position by rotating along the direction opposite to the first direction at a first preset speed. The first preset speed can be greater than 0°/s and less than 180°/s. The gimbal 200 can be smoothly reset from the second position to the first position by setting the speed at which the gimbal 200 is reset.
In some embodiments, controlling the gimbal 200 to return to the first position by rotating along the shortest path may include: controlling the gimbal 200 to return to the first position by rotating along the shortest path at a second preset speed. The second preset speed can be greater than 0°/s and less than 180°/s. The gimbal 200 can be smoothly reset from the second position to the first position by setting the speed at which the gimbal 200 is reset. The second preset speed may be equal or not equal to the first preset speed, which can be selected according to needs.
Determining the sub-region where the first position is located may include: determining an attitude of a gimbal base 220 (shown in
Obtaining the attitude of the gimbal base 200 may include the following processes. In some embodiments, when the gimbal 200 is mounted at the UAV via the gimbal base 220, determining the attitude of the gimbal base 220 may include: obtaining a real-time attitude of the UAV at which the gimbal 200 is mounted, and determining the attitude of the gimbal base 220 according to the real-time attitude of the UAV. In some embodiments, the attitude of the gimbal base 220 can be the same as the real-time attitude of the UAV. In some other embodiments, there may be a fixed transformation relationship between the attitude of the gimbal base 220 and the real-time attitude of the UAV. The real-time attitude of the UAV can be directly monitored by an attitude sensor mounted at a body of the UAV.
In some embodiments, the attitude of the gimbal 200 can be obtained by a detection of an attitude sensor arranged at the gimbal 200. The attitude of the gimbal 200 at the first position can be directly obtained according to the detection of the attitude sensor arranged at the gimbal 200.
In some embodiments, determining the sub-region where the first position is located according to the attitude of the gimbal base 220 and the attitude of the gimbal 200 at the first position may include: determining a rotational attitude of the gimbal base 220 at the first position according to the attitude of the gimbal base 220 and the attitude of the gimbal 200 at the first position, calculating the joint angle of the gimbal 200 at the first position (i.e., the angle that the gimbal 200 has rotated relative to the gimbal base 220) according to the rotational attitude, and determining the sub-region where the first position is located according to the joint angle of the gimbal 200 at the first position and the plurality of sub-regions. After the rotation region is divided into the plurality of sub-regions, each sub-region corresponding to a joint angel range. According to the calculated joint angle of the gimbal 200 at the first position and the joint angle range corresponding to each sub-region, the sub-region where the gimbal 200 is currently located can be determined.
Herein, the attitude can be represented by quaternion or Euler angle, and the quaternion and Euler angle can be converted to each other using a corresponding formula.
The processor 110 may include a central processing unit (CPU). The processor 110 may further include a hardware chip. The hardware chip may include an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or any combination thereof. The PLD may include a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a general array logic (GAL), or any combination thereof.
In some embodiments, the device 100 can include one or more processors 110 working individually or collectively.
In some embodiments, the processor 110 can be configured, when the gimbal 200 passively rotates from the first position to the second position along the first direction, to calculate the difference between the joint angle of the gimbal 200 at the first position and the joint angle of the gimbal 200 at the second position, when the difference satisfies the first specific condition, to control the gimbal 200 to return to the first position from the second position by rotating along the direction opposite to the first direction, when the difference satisfies the second specific condition, according to the sub-region where the first position is located, to control the gimbal 200 to return to the first position from the second position by rotating along the shortest path or along the direction opposite to the first direction.
Consistent with the disclosure, when the gimbal 200 is passively triggered at the angle that cannot rotate 360 degrees to rotate from the first position to the second position, the automatic reset manner of the gimbal 200 can be selected according to the difference between the joint angle of the gimbal 200 at the first position and the joint angle of the gimbal 200 at the second position. The issue of the gimbal 200 colliding with the mechanical limits due to the shortest path problem can be avoided, such that the user confusion can be reduced and the user experience can be better.
In some embodiments, the first specific condition can include that the absolute value of the difference is less than or equal to 180 degrees. In some embodiments, the second specific condition can include that the absolute value of the difference is greater than 180 degrees. In some embodiments, the rotation region can be divided into the plurality of sub-regions according to the equal division principle.
In some embodiments, the rotation region of the gimbal can include the forward rotation region and the backward rotation region. The joint angle of the gimbal for the forward rotation region and the joint angle of the gimbal for the backward rotation region can be both greater than 180 degrees and less than 360 degrees. The rotation region can be divided into the plurality of the sub-regions according to the maximum joint angle position 201 of the forward rotation region, the maximum joint angle position 202 of the backward rotation region, and the rotation center of the gimbal 200. In some embodiments, the maximum joint angle position 201 of the forward rotation region, the maximum joint angle position 202 of the backward rotation region, and the rotation center of the gimbal 200 can be not collinear.
In some embodiments, the sub-region where the first position is located can be the sub-region between the line connecting the maximum joint angle position 201 of the forward rotation region and the rotation center and the line connecting the maximum joint angle position 202 of the backward rotation region and the rotation center, and the processor 110 can be configured to control the gimbal 200 to return to the first position from the second position by rotating along the direction opposite to the first direction.
In some embodiments, the sub-region where the first position is located can be the sub-region between the extension of the line connecting the maximum joint angle position 201 of the forward rotation region and the rotation center and the line connecting the maximum joint angle position 202 of the backward rotation region and the rotation center. When the joint angle of the gimbal 200 at the first position has the positive value, the processor 110 can be configured, if the first direction is the forward rotation direction, to control the gimbal 200 to return to the first position from the second position by rotating along the backward rotation direction, and if the first direction is the backward rotation direction, to control the gimbal 200 to return to the first position from the second position by rotating along the shortest path. When the joint angle of the gimbal 200 at the first position has the negative value, the processor 110 can be configured, if the first direction is the forward rotation direction, to control the gimbal 200 to return to the first position from the second position by rotating along the shortest path.
In some embodiments, the sub-region where the first position is located can be the sub-region between of the line connecting the maximum joint angle position 201 of the forward rotation region and the rotation center and the extension of the line connecting the maximum joint angle position 202 of the backward rotation region and the rotation center. When the joint angle of the gimbal 200 at the first position has the positive value, the processor 110 can be configured, if the first direction is the backward rotation direction, to control the gimbal 200 to return to the first position from the second position by rotating along the shortest path. When the joint angle of the gimbal 200 at the first position has the negative value, the processor 110 can be configured, if the first direction is the forward rotation direction, to control the gimbal 200 to return to the first position from the second position by rotating along the shortest path, and if the first direction is the backward rotation direction, to control the gimbal 200 to return to the first position from the second position by rotating along the forward rotation direction.
In some embodiments, the sub-region where the first position is located can be the sub-region between the extension of the line connecting the maximum joint angle position 201 of the forward rotation region and the rotation center and the extension of the line connecting the maximum joint angle position 202 of the backward rotation region and the rotation center, and the processor 110 can be configured to control the gimbal 200 to return to the first position from the second position by rotating along the shortest path.
In some embodiments, the maximum joint angle position 201 of the forward rotation region, the maximum joint angle position 202 of the backward rotation region, and the rotation center of the gimbal 200 can be collinear. In some embodiments, the sub-region where the first position is located can be the portion where the forward rotation region and the backward rotation region do not overlap, and the processor 110 can be configured to control the gimbal 200 to return to the first position from the second position by rotating along the direction opposite to the first direction. In some embodiments, the sub-region where the first position is located can be the portion where the forward rotation region and the backward rotation region overlap, and the processor 110 can be configured to control the gimbal 200 to return to the first position from the second position by rotating along the shortest path.
In some embodiments, after the gimbal 200 is controlled to return to the first position from the second position by rotating along the shortest path, the direction of the joint angle of the gimbal 200 at the first position can be opposite from that of the gimbal 200 before passively rotating the gimbal 200 from the first position to the second position by rotating along the first direction.
In some embodiments, the processor 110 can be configured to control the gimbal 200 to return to the first position from the second position by rotating along the direction opposite to the first direction at the first preset speed. The first preset speed can be greater than 0°/s and less than 180°/s.
In some embodiments, the processor 110 can be configured to control the gimbal 200 to return to the first position by rotating along the shortest path at the second preset speed. The second preset speed can be greater than 0°/s and less than 180°/s.
In some embodiments, the processor 110 can be configured to determine the attitude of the gimbal base 220 and the attitude of the gimbal 200 at the first position, and determine the sub-region where the first position is located according to the attitude of the gimbal base 220 and the attitude of the gimbal 200 at the first position.
In some embodiments, the processor 110 can be configured to determine the rotational attitude of the gimbal base 220 at the first position according to the attitude of the gimbal base 220 and the attitude of the gimbal 200 at the first position, calculate the joint angle of the gimbal 200 at the first position according to the rotational attitude, and determine the sub-region where the first position is located according to the joint angle of the gimbal 200 at the first position and the plurality of sub-regions.
In some embodiments, the processor 110 can be configured to obtain the real-time attitude of the UAV at which the gimbal 200 is mounted, and determine the attitude of the gimbal base 220 according to the real-time attitude of the UAV. In some embodiments, the joint angle may include the yaw axis angle of the gimbal 200.
As shown in
The implementation of the processor 110 is similar to that of the method in
Referring again to
The processor 110 may include a central processing unit (CPU). The processor 110 may further include a hardware chip. The hardware chip may include an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or any combination thereof. The PLD may include a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a general array logic (GAL), or any combination thereof.
In some embodiments, the gimbal 200 can include one or more processors 110 working individually or collectively.
In some embodiments, the processor 110 can be configured, when the shaft assembly 210 passively rotates from the first position to the second position along the first direction, to calculate the difference between a joint angle of the shaft assembly 210 at the first position and the joint angle of the shaft assembly 210 at the second position, when the difference satisfies the first specific condition, to control the shaft assembly 210 to return to the first position from the second position by rotating along the direction opposite to the first direction, when the difference satisfies the second specific condition, according to the sub-region where the first position is located, to control the shaft assembly 210 to return to the first position from the second position by rotating along the shortest path or along the direction opposite to the first direction. In some embodiments, the joint angle of the shaft assembly 210 can be the joint angle of the gimbal 200.
Consistent with the disclosure, when the gimbal 200 is passively triggered at the angle that cannot rotate 360 degrees to rotate from the first position to the second position, the automatic reset manner of the gimbal 200 can be selected according to the difference between the joint angle of the gimbal 200 at the first position and the joint angle of the gimbal 200 at the second position. The issue of the gimbal 200 colliding with the mechanical limits due to the shortest path problem can be avoided, such that the user confusion can be reduced and the user experience can be better.
In some embodiments, the first specific condition can include that the absolute value of the difference is less than or equal to 180 degrees. In some embodiments, the second specific condition can include that the absolute value of the difference is greater than 180 degrees. In some embodiments, the rotation region can be divided into the plurality of sub-regions according to the equal division principle.
In some embodiments, the rotation region of the gimbal can include the forward rotation region and the backward rotation region. The joint angle of the gimbal for the forward rotation region and the joint angle of the gimbal for the backward rotation region can be both greater than 180 degrees and less than 360 degrees. The rotation region can be divided into the plurality of the sub-regions according to the maximum joint angle position 201 of the forward rotation region, the maximum joint angle position 202 of the backward rotation region, and the rotation center of the gimbal 200. In some embodiments, the maximum joint angle position 201 of the forward rotation region, the maximum joint angle position 202 of the backward rotation region, and the rotation center can be not collinear.
In some embodiments, the sub-region where the first position is located can be the sub-region between the line connecting the maximum joint angle position 201 of the forward rotation region and the rotation center and the line connecting the maximum joint angle position 202 of the backward rotation region and the rotation center, and the processor 110 can be configured to control the shaft assembly 210 to return to the first position from the second position by rotating along the direction opposite to the first direction.
In some embodiments, the sub-region where the first position is located can be the sub-region between the extension of the line connecting the maximum joint angle position 201 of the forward rotation region and the rotation center and the line connecting the maximum joint angle position 202 of the backward rotation region and the rotation center. When the joint angle of the shaft assembly 210 at the first position has the positive value, the processor 110 can be configured, if the first direction is the forward rotation direction, to control the shaft assembly 210 to return to the first position from the second position by rotating along the backward rotation direction, and if the first direction is the backward rotation direction, to control the shaft assembly 210 to return to the first position from the second position by rotating along the shortest path. When the joint angle of the shaft assembly 210 at the first position has the negative value, the processor 110 can be configured, if the first direction is the forward rotation direction, to control the shaft assembly 210 to return to the first position from the second position by rotating along the shortest path.
In some embodiments, the sub-region where the first position is located can be the sub-region between of the line connecting the maximum joint angle position 201 of the forward rotation region and the rotation center and the extension of the line connecting the maximum joint angle position 202 of the backward rotation region and the rotation center. When the joint angle of the shaft assembly 210 at the first position has the positive value, the processor 110 can be configured, if the first direction is the backward rotation direction, to control the shaft assembly 210 to return to the first position from the second position by rotating along the shortest path. When the joint angle of the shaft assembly 210 at the first position has the negative value, the processor 110 can be configured, if the first direction is the forward rotation direction, to control the shaft assembly 210 to return to the first position from the second position by rotating along the shortest path, and if the first direction is the backward rotation direction, to control the shaft assembly 210 to return to the first position from the second position by rotating along the forward rotation direction.
In some embodiments, the sub-region where the first position is located can be the sub-region between the extension of the line connecting the maximum joint angle position 201 of the forward rotation region and the rotation center and the extension of the line connecting the maximum joint angle position 202 of the backward rotation region and the rotation center, and the processor 110 can be configured to control the shaft assembly 210 to return to the first position from the second position by rotating along the shortest path.
In some embodiments, the maximum joint angle position 201 of the forward rotation region, the maximum joint angle position 202 of the backward rotation region, and the rotation center can be collinear. In some embodiments, the sub-region where the first position is located can be the portion where the forward rotation region and the backward rotation region do not overlap, and the processor 110 can be configured to control the shaft assembly 210 to return to the first position from the second position by rotating along the direction opposite to the first direction. In some embodiments, the sub-region where the first position is located can be the portion where the forward rotation region and the backward rotation region overlap, and the processor 110 can be configured to control the shaft assembly 210 to return to the first position from the second position by rotating along the shortest path.
In some embodiments, after the shaft assembly 210 is controlled to return to the first position from the second position by rotating along the shortest path, the direction of the joint angle of the shaft assembly 210 at the first position can be opposite from that of the shaft assembly 210 before passively rotating the shaft assembly 210 from the first position to the second position by rotating along the first direction.
In some embodiments, the processor 110 can be configured to control the shaft assembly 210 to return to the first position from the second position by rotating along the direction opposite to the first direction at the first preset speed. The first preset speed can be greater than 0°/s and less than 180°/s.
In some embodiments, the processor 110 can be configured to control the shaft assembly 210 to return to the first position by rotating along the shortest path at the second preset speed. The second preset speed can be greater than 0°/s and less than 180°/s.
Referring again to
In some embodiments, the processor 110 can be configured to determine the rotational attitude of the gimbal base 220 at the first position according to the attitude of the gimbal base 220 and the attitude of the shaft assembly 210 at the first position, calculate the joint angle of the shaft assembly 210 at the first position according to the rotational attitude, and determine the sub-region where the first position is located according to the joint angle of the shaft assembly 210 at the first position and the plurality of sub-regions.
In some embodiments, the processor 110 can be configured to obtain the real-time attitude of the UAV at which the gimbal 200 is mounted, and determine the attitude of the gimbal base 220 according to the real-time attitude of the UAV. In some embodiments, the shaft assembly 210 can include the yaw axis shaft, and the joint angle may include the yaw axis angle of the shaft assembly 210.
The implementation of the processor 110 is similar to that of the method in
In some embodiments, the processor 110 can be the controller of the gimbal 200. In some other embodiments, when the gimbal 200 is carried by the UAV, the processor 110 can be the flight controller of the UAV.
In some embodiments, the gimbal 200 may include a two-axis gimbal or a three-axis gimbal. Herein, a three-axis gimbal is taken as an example of the gimbal 200 for further description. The shaft assembly 220 may include the yaw axis shaft, the roll axis shaft, and the pitch axis shaft. The shaft assembly 220 may further include the yaw axis motor for controlling the rotation about the yaw axis, the roll axis motor for controlling the rotation about the roll axis, and the pitch axis motor for controlling the rotation about the pitch axis. In some embodiments, the processor 110 is a flight controller, and the yaw axis motor, the roll axis motor, and the pitch axis motor can be electrically coupled to the flight controller, such that the flight controller can control the rotation of the yaw axis motor, the rotation of the roll axis motor, and the rotation of the pitch axis motor, thereby controlling the attitude of the three-axis gimbal.
As shown in
As shown in
The processor 110 may include a central processing unit (CPU). The processor 110 may further include a hardware chip. The hardware chip may include an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or any combination thereof. The PLD may include a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a general array logic (GAL), or any combination thereof.
In some embodiments, the UAV can include one or more processors 110 working individually or collectively.
In some embodiments, the processor 110 can be configured, when the gimbal 200 passively rotates from the first position to the second position along the first direction, to calculate the difference between the joint angle of the gimbal 200 at the first position and the joint angle of the gimbal 200 at the second position, when the difference satisfies the first specific condition, to control the gimbal 200 to return to the first position from the second position by rotating along the direction opposite to the first direction, when the difference satisfies the second specific condition, according to the sub-region where the first position is located, to control the gimbal 200 to return to the first position from the second position by rotating along the shortest path or along the direction opposite to the first direction.
Consistent with the disclosure, when the gimbal 200 is passively triggered at the angle that cannot rotate 360 degrees to rotate from the first position to the second position, the automatic reset manner of the gimbal 200 can be selected according to the difference between the joint angle of the gimbal 200 at the first position and the joint angle of the gimbal 200 at the second position. The issue of the gimbal 200 colliding with the mechanical limits due to the shortest path problem can be avoided, such that the user confusion can be reduced and the user experience can be better.
In some embodiments, the first specific condition can include that the absolute value of the difference is less than or equal to 180 degrees. In some embodiments, the second specific condition can include that the absolute value of the difference is greater than 180 degrees. In some embodiments, the rotation region can be divided into the plurality of sub-regions according to the equal division principle.
In some embodiments, the rotation region of the gimbal can include the forward rotation region and the backward rotation region. The joint angle of the gimbal for the forward rotation region and the joint angle of the gimbal for the backward rotation region can be both greater than 180 degrees and less than 360 degrees. The rotation region can be divided into the plurality of the sub-regions according to the maximum joint angle position 201 of the forward rotation region, the maximum joint angle position 202 of the backward rotation region, and the rotation center of the gimbal 200. In some embodiments, the maximum joint angle position 201 of the forward rotation region, the maximum joint angle position 202 of the backward rotation region, and the rotation center of the gimbal 200 can be not collinear.
In some embodiments, the sub-region where the first position is located can be the sub-region between the line connecting the maximum joint angle position 201 of the forward rotation region and the rotation center and the line connecting the maximum joint angle position 202 of the backward rotation region and the rotation center, and the processor 110 can be configured to control the gimbal 200 to return to the first position from the second position by rotating along the direction opposite to the first direction.
In some embodiments, the sub-region where the first position is located can be the sub-region between the extension of the line connecting the maximum joint angle position 201 of the forward rotation region and the rotation center and the line connecting the maximum joint angle position 202 of the backward rotation region and the rotation center. When the joint angle of the gimbal 200 at the first position has the positive value, the processor 110 can be configured, if the first direction is the forward rotation direction, to control the gimbal 200 to return to the first position from the second position by rotating along the backward rotation direction, and if the first direction is the backward rotation direction, to control the gimbal 200 to return to the first position from the second position by rotating along the shortest path. When the joint angle of the gimbal 200 at the first position has the negative value, the processor 110 can be configured, if the first direction is the forward rotation direction, to control the gimbal 200 to return to the first position from the second position by rotating along the shortest path.
In some embodiments, the sub-region where the first position is located can be the sub-region between the line connecting the maximum joint angle position 201 of the forward rotation region and the rotation center and the extension of the line connecting the maximum joint angle position 202 of the backward rotation region and the rotation center. When the joint angle of the gimbal 200 at the first position has the positive value, the processor 110 can be configured, if the first direction is the backward rotation direction, to control the gimbal 200 to return to the first position from the second position by rotating along the shortest path. When the joint angle of the gimbal 200 at the first position has the negative value, the processor 110 can be configured, if the first direction is the forward rotation direction, to control the gimbal 200 to return to the first position from the second position by rotating along the shortest path, and if the first direction is the backward rotation direction, to control the gimbal 200 to return to the first position from the second position by rotating along the forward rotation direction.
In some embodiments, the sub-region where the first position is located can be the sub-region between the extension of the line connecting the maximum joint angle position 201 of the forward rotation region and the rotation center and the extension of the line connecting the maximum joint angle position 202 of the backward rotation region and the rotation center, and the processor 110 can be configured to control the gimbal 200 to return to the first position from the second position by rotating along the shortest path.
In some embodiments, the maximum joint angle position 201 of the forward rotation region, the maximum joint angle position 202 of the backward rotation region, and the rotation center of the gimbal 200 can be collinear. In some embodiments, the sub-region where the first position is located can be the portion where the forward rotation region and the backward rotation region do not overlap, and the processor 110 can be configured to control the gimbal 200 to return to the first position from the second position by rotating along the direction opposite to the first direction. In some embodiments, the sub-region where the first position is located can be the portion where the forward rotation region and the backward rotation region overlap, and the processor 110 can be configured to control the gimbal 200 to return to the first position from the second position by rotating along the shortest path.
In some embodiments, after the gimbal 200 to is controlled return to the first position from the second position by rotating along the shortest path, the direction of the joint angle of the gimbal 200 at the first position can be opposite from that of the gimbal 200 before passively rotating the gimbal 200 from the first position to the second position by rotating along the first direction.
In some embodiments, the processor 110 can be configured to control the gimbal 200 to return to the first position from the second position by rotating along the direction opposite to the first direction at the first preset speed. The first preset speed can be greater than 0°/s and less than 180°/s.
In some embodiments, the processor 110 can be configured to control the gimbal 200 to return to the first position by rotating along the shortest path at the second preset speed. The second preset speed can be greater than 0°/s and less than 180°/s.
In some embodiments, referring again to
In some embodiments, the processor 110 can be configured to determine the rotational attitude of the gimbal base 220 at the first position according to the attitude of the gimbal base 220 and the attitude of the gimbal 200 at the first position, calculate the joint angle of the gimbal 200 at the first position according to the rotational attitude, and determine the sub-region where the first position is located according to the joint angle of the gimbal 200 at the first position and the plurality of sub-regions.
In some embodiments, the processor 110 can be configured to obtain the real-time attitude of the UAV at which the gimbal 200 is mounted, and determine the attitude of the gimbal base 220 according to the real-time attitude of the UAV. In some embodiments, the joint angle may include the yaw axis angle of the gimbal 200.
In some embodiments, the gimbal 200 can include the yaw axis, and the joint angle may include the yaw axis angle of the gimbal 200.
The implementation of the processor 110 is similar to that of the method in
In some embodiments, the processor 110 can be the flight controller of the UAV or a controller of the gimbal 200.
In some embodiments, the gimbal 200 may include a two-axis gimbal or a three-axis gimbal. Herein, takes a three-axis gimbal as an example of the gimbal 200 for further description. The shaft assembly 220 may include the yaw axis shaft, the roll axis shaft, and the pitch axis shaft. The shaft assembly 220 may further include the yaw axis motor for controlling the rotation about the yaw axis, the roll axis motor for controlling the rotation about the roll axis, and the pitch axis motor for controlling the rotation about the pitch axis. The yaw axis motor, the roll axis motor, and the pitch axis motor are electrically coupled to the flight controller, such that the flight controller can control the rotation of the yaw axis motor, the rotation of the roll axis motor, and the rotation of the pitch axis motor, thereby controlling the attitude of the three-axis gimbal 200.
As shown in
As shown in
The power mechanism 500 may be mounted at the UAV by any suitable means, for example, through a supporting element (e.g., a driving shaft). The power mechanism 500 can be mounted at any suitable position of the UAV, such as a top end of the UAV, a lower end of the UAV, a front end of the UAV, a rear end of the UAV, a side of the UAV, or any combination thereof. A flight of the UAV can be controlled by controlling the one or more power mechanisms 500.
As shown in
In some embodiments, the UAV can communicate with other remote devices other than the terminal 400, and the terminal 400 can also communicate with other remote devices other than the UAV. For example, the UAV and/or terminal 400 may communicate with another UAV or the carrier or the load 300 of the another UAV. For example, another remote device may be a second terminal 400 or other computing device (e.g., a computer, a desktop computer, a tablet computer, a smart phone, or other mobile device). The another remote device may send data to the UAV, receive data from the UAV, send data to the terminal 400, and/or receive data from the terminal 400. In some embodiments, the another remote device may be connected to the Internet or other telecommunications network to upload the data received from the UAV and/or the terminal 400 to a web site or a server.
In some embodiments, a movement of the UAV, the carrier, or the load 300 relative to a fixed reference object (e.g., the external environment), and/or between each other, can be controlled by the terminal 400. The terminal 400 may be a remote control terminal 400, which is located away from the UAV, the carrier, and/or the load 300. The terminal 400 may be located or pasted on a support platform. In some embodiments, the terminal 400 may be handheld or wearable. For example, the terminal 400 may include a smartphone, a tablet computer, a desktop computer, a computer, glasses, gloves, a helmet, a microphone, or any combination thereof. The terminal 400 may include a user interface, such as a keyboard, a mouse, a joystick, a touch screen, or a display. Any suitable user input, for example, manually inputting instructions, a voice control, a gesture control, or a position control (e.g., through movement, position, or tilt of the terminal 400), may interact with the terminal 400.
The present disclosure further provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the processes of the method for controlling reset of the gimbal consistent with the disclosure (e.g., the method in
Detailed descriptions of the operations of exemplary systems, devices, and units may be omitted and references can be made to the descriptions of the exemplary methods. The units described as separate components may or may not be physically separate, and a component shown as a unit may or may not be a physical unit. That is, the units may be located in one place or may be distributed over a plurality of network elements. Some or all of the components may be selected according to the actual needs to achieve the object of the present disclosure. Those skilled in the art can understand and implement without creative effort.
As used herein, the terms “certain example,” “some examples,” or the like, refer to that the specific features, structures, materials, or characteristics described in connection with the embodiments or examples are included in at least one embodiment or example of the disclosure. The illustrative representations of the above terms are not necessarily referring to the same embodiments or examples. Furthermore, the specific features, structures, materials, or characteristics described may be combined in a suitable manner in any one or more embodiments or examples.
The processes and/or methods described in the flowcharts or in other manners may be a module, a segment, or a portion of codes including one or more executable instructions for implementing specific logical functions or steps of the processes. It can be appreciated by those skilled in the art that the preferred embodiments of the present disclosure may include additional implementations that are performing functions in a substantially simultaneous manner or in a reverse order according to the functions involved.
The logics and/or processes described in the flowcharts or in other manners may be, for example, an order list of the executable instructions for implementing logical functions, which may be implemented in any computer-readable storage medium and used by an instruction execution system, apparatus, or device, such as a computer-based system, a system including a processor, or another system that can fetch and execute instructions from an instruction execution system, apparatus, or device, or used in a combination of the instruction execution system, apparatus, or device. The computer-readable storage medium may be any apparatus that can contain, store, communicate, propagate, or transmit the program for using by or in a combination of the instruction execution system, apparatus, or device. The computer readable medium may include, for example, an electrical assembly having one or more wires, e.g., electronic apparatus, a portable computer disk cartridge. e.g., magnetic disk, a random access memory (RAM), a read only memory (ROM), an erasable programmable read only memory (EPROM or flash memory), an optical fiber device, or a compact disc read only memory (CDROM). In addition, the computer readable medium may be a paper or another suitable medium upon which the program can be printed. The program may be obtained electronically, for example, by optically scanning the paper or another medium, and editing, interpreting, or others processes, and then stored in a computer memory.
Those of ordinary skill in the art will appreciate that the example elements and steps described above can be implemented in electronic hardware, computer software, firmware, or a combination thereof. Multiple processes or methods may be implemented in a software or firmware stored in the memory and executed by a suitable instruction execution system. When being implemented in an electronic hardware, the example elements and processes described above may be implemented using any one or a combination of: discrete logic circuits having logic gate circuits for implementing logic functions on data signals, specific integrated circuits having suitable combinational logic gate circuits, programmable gate arrays (PGA), field programmable gate arrays (FPGAs), and the like.
Some or all of the processes of the method described above can be executed by hardware running program instructions. The program may be stored in a computer-readable storage medium. When the program is executed, one or any combination of the processes of the method are executed.
In addition, the functional units in the various embodiments of the present disclosure may be integrated in one processing unit, or each unit may be an individual physically unit, or two or more units may be integrated in one unit. The integrated unit described above may be implemented in electronic hardware or computer software. The integrated unit may be stored in a computer readable medium, which can be sold or used as a standalone product.
The computer-readable storage medium can include a read-only memory (ROM), a magnetic disk, an optical disk, or the like. It is intended that the disclosed embodiments be considered as exemplary only and not to limit the scope of the disclosure. Changes, modifications, alterations, and variations of the above-described embodiments may be made by those skilled in the art within the scope of the disclosure.
This application is a continuation of International Application No. PCT/CN2017/119774, filed on Dec. 29, 2017, the entire content of which is incorporated herein by reference.
Number | Date | Country | |
---|---|---|---|
Parent | PCT/CN2017/119774 | Dec 2017 | US |
Child | 16911947 | US |