WO2022193075A1 - Unmanned aerial vehicle control method, unmanned aerial vehicle, and storage medium - Google Patents

Unmanned aerial vehicle control method, unmanned aerial vehicle, and storage medium Download PDF

Info

Publication number
WO2022193075A1
WO2022193075A1 PCT/CN2021/080815 CN2021080815W WO2022193075A1 WO 2022193075 A1 WO2022193075 A1 WO 2022193075A1 CN 2021080815 W CN2021080815 W CN 2021080815W WO 2022193075 A1 WO2022193075 A1 WO 2022193075A1
Authority
WO
WIPO (PCT)
Prior art keywords
motor
motors
power output
matrix
failed
Prior art date
Application number
PCT/CN2021/080815
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 PCT/CN2021/080815 priority Critical patent/WO2022193075A1/en
Priority to CN202180092247.9A priority patent/CN116848485A/en
Publication of WO2022193075A1 publication Critical patent/WO2022193075A1/en

Links

Images

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B64AIRCRAFT; AVIATION; COSMONAUTICS
    • B64CAEROPLANES; HELICOPTERS
    • B64C19/00Aircraft control not otherwise provided for
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05DSYSTEMS FOR CONTROLLING OR REGULATING NON-ELECTRIC VARIABLES
    • G05D1/00Control of position, course, altitude or attitude of land, water, air or space vehicles, e.g. using automatic pilots
    • G05D1/08Control of attitude, i.e. control of roll, pitch, or yaw
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05DSYSTEMS FOR CONTROLLING OR REGULATING NON-ELECTRIC VARIABLES
    • G05D1/00Control of position, course, altitude or attitude of land, water, air or space vehicles, e.g. using automatic pilots
    • G05D1/10Simultaneous control of position or course in three dimensions

Definitions

  • the present application relates to the technical field of unmanned aerial vehicles, and in particular, to a control method of an unmanned aerial vehicle, an unmanned aerial vehicle and a storage medium.
  • Unmanned aerial vehicles typically have multiple power shafts, each powered by a corresponding motor. When the power output of the motor fails, the corresponding power shaft also fails. If the power output of a single or multiple motors of the unmanned aerial vehicle fails, it will cause the attitude of the unmanned aerial vehicle to become unstable, which will cause the aircraft to explode and cause certain property losses to the user.
  • the unmanned aerial vehicle can maintain a certain attitude stability, but the heading of the unmanned aerial vehicle will drift. Heading drift will cause problems in the speed and position control of the UAV, which is not conducive to the UAV to perform subsequent actions, such as allowing the UAV to make a safe forced landing or continue to complete the remaining flight tasks.
  • the power output of multiple motors of the unmanned aerial vehicle fails, the unmanned aerial vehicle cannot maintain the attitude stability, and the unmanned aerial vehicle will explode due to the instability of the attitude.
  • Embodiments of the present application provide an unmanned aerial vehicle control method, an unmanned aerial vehicle, and a storage medium, which can ensure that the unmanned aerial vehicle continues to perform subsequent actions in a stable attitude when the power output of a single or multiple motors of the unmanned aerial vehicle fails.
  • an embodiment of the present application provides a method for controlling an unmanned aerial vehicle.
  • the unmanned aerial vehicle is equipped with a plurality of motors, and the method includes:
  • the number of the failed motors is single, and according to the power information, controlling other motors in the plurality of motors except the failed motors to perform power output, including:
  • the motors other than the failed motor and the coaxial motor among the plurality of motors are controlled to output power.
  • the power information includes a required torque matrix for maintaining the preset attitude, and the motors other than the failed motor and the coaxial motor among the plurality of motors are controlled according to the power information.
  • Power takeoff including:
  • the motors other than the failed motor and the coaxial motor are controlled to perform power output according to the corresponding power output value.
  • the determining, according to the demand torque matrix and the mixing control mapping matrix, a power output value corresponding to each of the motors except the failed motor and the coaxial motor includes:
  • a power output value corresponding to each of the motors except the failed motor and the coaxial motor is determined.
  • each motor in the motors except the failed motor and the coaxial motor is determined.
  • Corresponding power output values including:
  • the product of the required torque matrix and the mixing control mapping matrix is used as the addition to the failure
  • each motor in the motors except the failed motor and the coaxial motor is determined.
  • Corresponding power output values including:
  • the rotation is the rotation angle of the preset configuration
  • the power information includes a required torque matrix for maintaining the preset attitude, and according to the power information, controlling other motors in the plurality of motors except the failed motor to perform power output, including:
  • the weight matrix and the demand torque matrix determine the power output value corresponding to each motor in the other motors except the failed motor in the plurality of motors;
  • Each of the other motors is controlled to output power according to the corresponding power output value.
  • determining the power output value corresponding to each motor in the other motors except the failed motor in the plurality of motors includes:
  • each set of possible power output values including a power output value greater than a preset value corresponding to each of the motors in the multiple motors except the failed motor , and the power output value corresponding to the failed motor that is set to the preset value;
  • a power output value corresponding to each of the other electric machines is determined based on a set of possible power output values corresponding to the minimum product value among the plurality of sets of possible power output values.
  • an embodiment of the present application provides an unmanned aerial vehicle, including a memory and a processor; wherein, executable code is stored on the memory, and when the executable code is executed by the processor, it is used to implement Do as follows:
  • the number of the failed motors is single, and the processor is used for:
  • the motors other than the failed motor and the coaxial motor among the plurality of motors are controlled to output power.
  • the power information includes a required torque matrix for maintaining the preset attitude
  • the processor is configured to:
  • the mixing control mapping matrix determine the power output value corresponding to each motor in the motors other than the failed motor and the coaxial motor;
  • the motors other than the failed motor and the coaxial motor are controlled to perform power output according to the corresponding power output value.
  • the processor is used for:
  • a power output value corresponding to each of the motors except the failed motor and the coaxial motor is determined.
  • the processor is used for:
  • the product of the required torque matrix and the mixing control mapping matrix is used as the addition to the failure
  • the processor is used for:
  • the power information includes a required torque matrix for maintaining the preset attitude
  • the processor is configured to:
  • the weight matrix and the demand torque matrix determine the power output value corresponding to each motor in the other motors except the failed motor in the plurality of motors;
  • Each of the other motors is controlled to output power according to the corresponding power output value.
  • the processor is used for:
  • each set of possible power output values including a power output value greater than a preset value corresponding to each of the motors in the multiple motors except the failed motor , and the power output value corresponding to the failed motor that is set to the preset value;
  • a power output value corresponding to each of the other electric machines is determined based on a set of possible power output values corresponding to the minimum product value among the plurality of sets of possible power output values.
  • an embodiment of the present application provides a computer-readable storage medium, where the storage medium is a computer-readable storage medium, and program instructions are stored in the computer-readable storage medium, and the program instructions are used to implement the present application
  • Embodiments provide a method for controlling an unmanned aerial vehicle provided in the first aspect.
  • the unmanned aerial vehicle when the power output of a single or multiple motors of the unmanned aerial vehicle fails, the unmanned aerial vehicle can be controlled according to the power information required by the unmanned aerial vehicle to maintain the preset attitude to eliminate the failure.
  • Other motors other than the motor perform power output, and because other motors are controlled to perform power output according to the power information required by the UAV to maintain the preset attitude, it can ensure the aerodynamic balance of the UAV and ensure that the UAV can operate in a stable manner. The pose continues to perform subsequent actions.
  • FIG. 1 is a schematic flowchart of a method for controlling an unmanned aerial vehicle according to an embodiment of the present application
  • FIG. 2 is a schematic diagram of the arrangement of motors corresponding to each power shaft in a six-axis configuration provided by an embodiment of the present application;
  • FIG. 3 is a schematic structural diagram of a four-axis typical configuration reconstructed in the case of a single motor failure according to an embodiment of the present application;
  • FIG. 5 is a schematic diagram of a coordinate axis rotation provided by an embodiment of the present application.
  • FIG. 6 is a schematic diagram of failure of two adjacent motors according to an embodiment of the present application.
  • FIG. 7 is a schematic structural diagram of an unmanned aerial vehicle according to an embodiment of the present application.
  • the words “if”, “if” as used herein may be interpreted as “at” or “when” or “in response to determining” or “in response to detecting”.
  • the phrases “if determined” or “if detected (the stated condition or event)” can be interpreted as “when determined” or “in response to determining” or “when detected (the stated condition or event),” depending on the context )” or “in response to detection (a stated condition or event)”.
  • FIG. 1 is a flowchart of a method for controlling an unmanned aerial vehicle provided by an embodiment of the present application. As shown in FIG. 1 , the method includes:
  • the unmanned aerial vehicles described in the embodiments of this application include, but are not limited to, unmanned aerial vehicles of types such as agricultural machinery, industrial aircraft, etc.
  • the power shaft configurations of the unmanned aerial vehicle include but are not limited to four-axis configuration, six-axis configuration, eight-axis configuration, etc. Axial configuration, twelve-axis configuration, etc.
  • the above-mentioned power output information may include information for indicating whether the power shaft corresponding to the motor has power loss, and the severity of the power loss when the power shaft has power loss.
  • UAVs may fail, such as communication failures, mechanical failures, electrical failures, and so on.
  • Unmanned aerial vehicles typically have multiple power shafts, each powered by a corresponding motor. If the motor fails, it will cause the corresponding power shaft to fail. Whether the power shaft fails completely can be determined by detecting whether the power shaft has power loss and the severity of the power loss when the power shaft has power loss. If the power shaft fails completely, the corresponding motor has a power output failure, and the motor is correspondingly a failed motor.
  • the use of the failed motor can be stopped, and then the power information required by the UAV to maintain the preset attitude can be obtained, and according to the power information, control the multiple motors.
  • Other motors except the failed motor perform power output, so that the other motors continue to operate and the dynamic balance of the unmanned aerial vehicle can be guaranteed.
  • the power information may be a demand torque matrix, and then a power output value corresponding to each of the other motors may be calculated according to the demand torque matrix.
  • the above demand torque matrix can be expressed as u, which is composed of the corresponding demand torques in the x, y, and z axis directions and the demand lift force in the z axis direction in the body coordinate system of the unmanned aerial vehicle.
  • u is composed of the corresponding demand torques in the x, y, and z axis directions and the demand lift force in the z axis direction in the body coordinate system of the unmanned aerial vehicle.
  • the x-axis direction refers to the direction directly in front of the UAV
  • the y-axis direction refers to the direction directly to the right of the UAV
  • the z-axis direction refers to the direction directly below the UAV.
  • the corresponding demand torques in the directions of the x, y, and z axes can be expressed as M x , My y , and M z in turn.
  • M x , My y , and M z can be normalized to a value between -50 and 50. in the interval.
  • the required lift in the z-axis direction can be expressed as F, which can be normalized to a value interval of 0 to 100 for the convenience of calculation.
  • u can be represented by M x , My , M z , F, and u can be represented as [M x , My y , M z , F] T .
  • u can be calculated by the flight control system, so the value of u can be obtained from the flight control system.
  • the power output value corresponding to each of the other motors can be calculated according to the value of u. Control other motors to perform power output at the corresponding power output value, so that the UAV can continue to perform subsequent actions under the premise of still maintaining dynamic balance, such as allowing the UAV to make a safe forced landing or continue to complete the remaining flight tasks.
  • the first calculation method is suitable for the failure of a single motor, the calculation process of this calculation method is simple, and the calculation speed is relatively fast;
  • the calculation method is suitable for the failure of single or multiple motors, and the calculation method has strong applicability.
  • the number of the failed motor is single, and accordingly, according to the power information, the process of controlling other motors in the multiple motors to output power except the failed motor can be implemented as follows: determining that the multiple motors and the failed motor are arranged on the same preset axis The coaxial motor; according to the power information, control the motors other than the failed motor and the coaxial motor among the multiple motors to perform power output.
  • multiple preset axes may be divided in a plane formed by the x-axis and the y-axis of the body coordinate system.
  • Each preset axis passes through the coordinate origin of the body coordinate system, and a motor can be set at a position where the distance between the two ends of each preset axis and the coordinate origin is the preset distance. Motors set on all preset axes The distance from the coordinate origin can be a preset distance.
  • the coaxial motor set on the same preset axis as the failed motor can be determined, the operation of the failed motor and the coaxial motor can be stopped, and the operation of the failed motor and the coaxial motor can be stopped, and control of the multiple motors except the failed motor and the coaxial motor Motors other than the motor run, which means that the power shaft corresponding to the motor other than the failed motor and the coaxial motor has a new N-axis configuration. For example, assuming that a single motor in a six-axis UAV fails, then in addition to the single failed motor and its corresponding coaxial motor, there are still four motors left, and the power shafts corresponding to the four motors can be combined into a New quad-axis configuration.
  • the process of controlling the motors other than the failed motor and the coaxial motor to output power among the plurality of motors may be implemented as follows: determining the corresponding setting positions of the motors other than the failed motor and the coaxial motor. Presetting the configuration; acquiring the mixing control mapping matrix corresponding to the preset configuration; determining the power output value corresponding to each motor in the motors except the failed motor and the coaxial motor according to the demand torque matrix and the mixing control mapping matrix; Control the motors other than the failed motor and the coaxial motor to perform power output according to the corresponding power output value.
  • each mixing control mapping matrix corresponds to a preset configuration
  • the mixing control mapping matrix may be stored in association with the preset configuration. In this way, after the preset configuration corresponding to the setting positions of the motors other than the failed motor and the coaxial motor is determined, the mixing control mapping matrix corresponding to the preset configuration can be directly obtained, and then the required torque matrix and the mixing control mapping matrix can be directly obtained.
  • the control mapping matrix calculates the corresponding power output values of the motors except the failed motor and the coaxial motor.
  • the mixing mapping matrix corresponding to the six-axis configuration may be (wherein, K 6 represents the mixing mapping matrix corresponding to the six-axis configuration):
  • the mixing mapping matrix corresponding to the four-axis configuration can be (wherein, K 4 represents the mixing mapping matrix corresponding to the four-axis configuration):
  • the above process of determining the power output value corresponding to each motor in the motors except the failed motor and the coaxial motor according to the demand torque matrix and the mixing control mapping matrix may be implemented as follows: determining that the failed motor is in the unmanned aerial vehicle. According to the setting position of the failed motor, according to the demand torque matrix and the mixing control mapping matrix, determine the power output value corresponding to each motor except the failed motor and the coaxial motor.
  • the setting position of the failed motor directly affects the specific calculation method for calculating the power output values corresponding to the motors other than the failed motor and the coaxial motor.
  • the arrangement positions of the motors other than the failed motor and the coaxial motor can constitute a preset configuration, if the failed motor is arranged on the target axis among the plurality of preset axes On an axis other than the target axis, it is difficult to form a preset configuration for the setting positions of the motors other than the failed motor and the coaxial motor.
  • the target axis may be the y-axis in the body coordinate system.
  • the process of determining the power output value corresponding to each of the motors except the failed motor and the coaxial motor can be realized. That is: if the setting positions of the motors other than the failed motor and the coaxial motor can form a preset configuration, the product of the required torque matrix and the mixing control mapping matrix is used as the motor except the failed motor and the coaxial motor. The corresponding power output value of each motor.
  • the power shaft corresponding to the other motor can form a typical configuration of four shafts. Then in this case, the power output value corresponding to the motor except the failed motor and the coaxial motor can be calculated by the following formula:
  • T is the power output value corresponding to the motors other than the failed motor and the coaxial motor
  • K is the mixing control mapping matrix corresponding to the preset configuration
  • u is the demand torque matrix
  • FIG. 2 is a schematic diagram of the arrangement of the motors corresponding to each power shaft in the six-axis configuration.
  • the icons numbered 1 to 6 in the figure each represent a motor. It is assumed that a single motor in the UAV with six-axis configuration fails and the failed motor is set on the y-axis in the body coordinate system. In this figure, motors No. 3 and No. 6 are set on the y-axis in the body coordinate system. , then the failed motor is the No. 3 motor or the No. 6 motor, and the motors other than the failed motor and the coaxial motor are the No. 1, No. 2, No. 4, and No. 5 motors. As shown in Figure 3, the power shafts corresponding to the No. 1, No. 2, No. 4, and No. 5 motors can form a typical four-axis configuration, then the following formula can be used to calculate the corresponding power of the motors other than the failed motor and the coaxial motor. Power output value:
  • the corresponding variables in the power output value calculation formula can be adjusted according to the specific preset configuration to adapt to the calculation process of the power output value of a specific preset configuration. This will not give examples one by one.
  • the power output value can be calculated in the following ways:
  • the process of determining the power output value corresponding to each motor in the motors except the failed motor and the coaxial motor can be implemented as follows: if The setting positions of the motors other than the failed motor and the coaxial motor fail to form the preset configuration, then it is determined to rotate the setting positions of the motors other than the failed motor and the coaxial motor to the rotation angle of the preset configuration; The rotation angle determines the rotation matrix of the body coordinate system before rotation to the body coordinate system after rotation; the product of the rotation matrix, the demand torque matrix and the mixing control mapping matrix is used as the motor except the failed motor and the coaxial motor. The corresponding power output value of each motor.
  • the rotation operation of the body coordinate system can be used to make the target axis in the rotated body coordinate system and the body coordinate system.
  • the setting positions of the failed motors are overlapped, so that the setting positions of the motors other than the failed motors and the coaxial motors can form a preset configuration again, and then the power output values corresponding to the motors other than the failed motors and the coaxial motors can be calculated. .
  • the icons numbered 1 to 6 in the figure represent a motor respectively.
  • the No. 3 motor and No. 6 motor are both set on the y-axis in the body coordinate system. If one of the No. 1, No. 2, No. 4, and No. 5 motors fails, then except for the failed motor and the same motor Motors other than shaft motors are difficult to form a typical four-axis configuration. In this example, assuming that the No. 2 motor fails, the operation of the No. 2 and No. 5 motors is stopped, and the motors other than the failed motor and the coaxial motor are No. 1, No. 3, No. 4, and No. 6.
  • the rotation matrix of the system can be expressed as R, and then the power output value can be calculated by the following formula:
  • the method for calculating the power output value is not limited to the case where a single motor fails, and can be applied regardless of whether the failed motor is a single motor or a plurality of motors. It should be noted that if multiple motors fail and the setting positions of the multiple failed motors are adjacent, it is difficult to maintain the balance of the output torque no matter how the power output values of the other motors are set, and thus it is difficult to ensure that no one is left.
  • the attitude of the aircraft is stable, which is not considered in the embodiments of the present application. For example, as shown in Figure 6, it is assumed that the No. 1 motor and the No. 2 motor in the six-axis UAV fail at the same time. Since the No. 1 motor and the No. 2 motor are set adjacent to each other, it is not sufficient to maintain the UAV. The condition that the attitude is stable, and then this situation is not considered.
  • the process of controlling other motors in the multiple motors to perform power output except the failed motor may be implemented as follows: obtaining a preset weight matrix; Power output value corresponding to each motor in other motors except the failed motor; control each motor in other motors to output power according to the corresponding power output value.
  • the above preset weight matrix can be regarded as a constant, and can be set according to the actual control requirements of the UAV. For example, if you focus on the stability of the attitude of the unmanned aerial vehicle, you can increase the first parameter in the weight matrix and decrease other parameters accordingly. If you focus on the precise control of the altitude and heading angle of the unmanned aerial vehicle, you can increase the weight matrix. the second parameter and reduce the other parameters accordingly. After the weight matrix is determined, the weight matrix can be stored in the memory and directly obtained for use when used.
  • weight matrix can be set as:
  • W represents the weight matrix
  • the power output values may be calculated by solving an optimization problem. Based on this, the above process of determining the power output value corresponding to each motor in the other motors except the failed motor according to the weight matrix and the demand torque matrix can be implemented as follows: obtaining multiple sets of possible power outputs corresponding to the multiple motors.
  • Each set of possible power output values includes a power output value greater than the preset value corresponding to each of the motors in the multiple motors except the failed motor, and the power output value corresponding to the failed motor set to a preset value ;
  • the product of any group of power output values and the preset mixing control mapping matrix is used as the possible output torque matrix; determine the demand torque matrix and the possible output torque matrix The difference matrix between the difference matrixes; determine the product of the go-to matrix, the weight matrix and the difference matrix of the difference matrix; The power output value corresponding to each motor in the motor.
  • min J is the target value.
  • u 0 is the demand torque matrix.
  • u is the possible output torque matrix.
  • W is the weight matrix.
  • u 0 can be directly obtained by the flight control system.
  • K is the mixing control mapping matrix corresponding to the preset configuration
  • T is the power output value corresponding to the multiple motors.
  • T x represents the power output value corresponding to the x-th failed motor
  • Ty represents the power output value corresponding to the y-th failed motor. Since the x-th motor fails and the y-th motor fails, they cannot provide the actual power output value, so the power output value corresponding to the x-th failed motor and the power output value corresponding to the y-th failed motor can be set as 0.
  • multiple sets of possible power output values corresponding to multiple motors can be set, and then each set of possible power output values can be substituted into the formula to calculate the corresponding J. If the J calculated by substituting a certain set of possible power output values is the minimum value of all J, then the group of possible power output values is the optimal solution sought, and the group of possible power output values T i except T x and Ty y is the final power output value of other motors .
  • the unmanned aerial vehicle when the power output of a single or multiple motors of the unmanned aerial vehicle fails, the unmanned aerial vehicle can be controlled according to the power information required by the unmanned aerial vehicle to maintain the preset attitude to eliminate the failure.
  • Other motors other than the motor perform power output, and because other motors are controlled to perform power output according to the power information required by the UAV to maintain the preset attitude, it can ensure the aerodynamic balance of the UAV and ensure that the UAV can operate in a stable manner. The pose continues to perform subsequent actions.
  • the unmanned aerial vehicle includes:
  • memory 1910 for storing executable code
  • the processor 1920 when the executable code is executed by the processor 1920, is configured to implement the following operations:
  • the other motors except the failed motor among the plurality of motors are controlled to output power.
  • the number of the failed motors is single, and the processor 1920 is used for:
  • the motors other than the failed motor and the coaxial motor among the plurality of motors are controlled to output power.
  • the power information includes a required torque matrix for maintaining a preset attitude
  • the processor 1920 is configured to:
  • processor 1920 for:
  • the power output value corresponding to each motor in the motors except the failed motor and the coaxial motor is determined.
  • processor 1920 for:
  • the product of the required torque matrix and the mixing control mapping matrix is used as each of the motors except the failed motor and the coaxial motor.
  • processor 1920 for:
  • the product of the rotation matrix, the demand torque matrix and the mixing control mapping matrix is used as the power output value corresponding to each motor in the motors except the failed motor and the coaxial motor.
  • the power information includes a required torque matrix for maintaining a preset attitude
  • the processor 1920 is configured to:
  • the weight matrix and the demand torque matrix determine the power output value corresponding to each motor in the multiple motors except the failed motor
  • processor 1920 for:
  • each set of possible power output values includes a power output value greater than a preset value corresponding to each of the other motors in the multiple motors except the failed motor, and the failed motor
  • the corresponding power output value is set to the preset value
  • the product of any group of power output values and the preset mixing mapping matrix is used as the possible output torque matrix
  • a power output value corresponding to each of the other motors is determined.
  • the unmanned aerial vehicle shown in FIG. 7 can execute the method of the embodiment shown in FIG. 1 to FIG. 6 .
  • the unmanned aerial vehicle shown in FIG. 7 can execute the method of the embodiment shown in FIG. 1 to FIG. 6 .
  • parts not described in detail in this embodiment reference may be made to the related description of the embodiment shown in FIG. 1 to FIG. 6 .
  • For the execution process and technical effect of the technical solution refer to the descriptions in the embodiments shown in FIG. 1 to FIG. 6 , which will not be repeated here.
  • an embodiment of the present application further provides a computer-readable storage medium, where executable codes are stored in the computer-readable storage medium, and the executable codes are used to implement the unmanned aerial vehicle control methods provided by the foregoing embodiments. .

Landscapes

  • Engineering & Computer Science (AREA)
  • Aviation & Aerospace Engineering (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Control Of Multiple Motors (AREA)
  • Electric Propulsion And Braking For Vehicles (AREA)

Abstract

An unmanned aerial vehicle control method, an unmanned aerial vehicle, and a storage medium, capable of ensuring the aerodynamic balance of an unmanned aerial vehicle and ensuring that the unmanned aerial vehicle continues to perform subsequent actions in a stable attitude. A plurality of motors are mounted on the unmanned aerial vehicle. The method comprises: obtaining power output information corresponding to each of the plurality of motors (101); determining, according to the power output information corresponding to each motor, whether a failed motor in which power output fails exists in the plurality of motors (102); when a failed motor in which the power output fails exists in the plurality of motors, obtaining power information required by the unmanned aerial vehicle to maintain a preset attitude (103); and controlling, according to the power information, motors in the plurality of motors other than the failed motor to perform power output (104).

Description

无人飞行器控制方法、无人飞行器和存储介质Unmanned aerial vehicle control method, unmanned aerial vehicle and storage medium 技术领域technical field
本申请涉及无人飞行器技术领域,尤其涉及一种无人飞行器控制方法、无人飞行器和存储介质。The present application relates to the technical field of unmanned aerial vehicles, and in particular, to a control method of an unmanned aerial vehicle, an unmanned aerial vehicle and a storage medium.
背景技术Background technique
无人飞行器通常具有多个动力轴,每个动力轴由对应的电机提供动力。当电机发生动力输出失效的情况时,对应的动力轴也就失效了。如果无人飞行器的单个或者多个电机发生动力输出失效的情况,则会导致无人飞行器姿态失稳,从而发生炸机并造成用户一定的财产损失。Unmanned aerial vehicles typically have multiple power shafts, each powered by a corresponding motor. When the power output of the motor fails, the corresponding power shaft also fails. If the power output of a single or multiple motors of the unmanned aerial vehicle fails, it will cause the attitude of the unmanned aerial vehicle to become unstable, which will cause the aircraft to explode and cause certain property losses to the user.
当无人飞行器单个电机动力输出失效时,无人飞行器能够保持一定的姿态稳定,但是无人飞行器的航向会出现漂移的状况,尽管此时无人飞行器不会由于姿态失稳而炸机,但是航向漂移会导致无人飞行器的速度与位置控制都出现问题,不利于无人飞行器执行后续动作,例如让无人飞行器进行安全的迫降或者继续完成剩余的飞行任务。当无人飞行器多个电机动力输出失效时,无人飞行器无法维持姿态稳定,无人飞行器会由于姿态失稳而炸机。When the power output of the single motor of the unmanned aerial vehicle fails, the unmanned aerial vehicle can maintain a certain attitude stability, but the heading of the unmanned aerial vehicle will drift. Heading drift will cause problems in the speed and position control of the UAV, which is not conducive to the UAV to perform subsequent actions, such as allowing the UAV to make a safe forced landing or continue to complete the remaining flight tasks. When the power output of multiple motors of the unmanned aerial vehicle fails, the unmanned aerial vehicle cannot maintain the attitude stability, and the unmanned aerial vehicle will explode due to the instability of the attitude.
申请内容Application content
本申请实施例提供一种无人飞行器控制方法、无人飞行器和存储介质,用以在无人飞行器单个或者多个电机动力输出失效时,能够保障无人飞行器以稳定的姿态继续执行后续动作。Embodiments of the present application provide an unmanned aerial vehicle control method, an unmanned aerial vehicle, and a storage medium, which can ensure that the unmanned aerial vehicle continues to perform subsequent actions in a stable attitude when the power output of a single or multiple motors of the unmanned aerial vehicle fails.
第一方面,本申请实施例提供一种无人飞行器控制方法,所述无人飞行器搭载有多个电机,该方法包括:In a first aspect, an embodiment of the present application provides a method for controlling an unmanned aerial vehicle. The unmanned aerial vehicle is equipped with a plurality of motors, and the method includes:
获取所述多个电机中的每个电机对应的动力输出信息;obtaining power output information corresponding to each of the plurality of motors;
根据所述每个电机对应的动力输出信息确定所述多个电机中是否存在动力 输出失效的失效电机;Determine, according to the power output information corresponding to each motor, whether there is a failed motor with power output failure in the plurality of motors;
当所述多个电机中存在动力输出失效的电机时,获取所述无人飞行器保持预设姿态所需的动力信息;When there is a motor with a power output failure among the plurality of motors, acquiring power information required by the unmanned aerial vehicle to maintain a preset attitude;
根据所述动力信息,控制所述多个电机中除失效电机外的其它电机进行动力输出。According to the power information, other motors in the plurality of motors except the failed motor are controlled to output power.
可选地,所述失效电机的数量为单个,所述根据所述动力信息,控制所述多个电机中除失效电机外的其它电机进行动力输出,包括:Optionally, the number of the failed motors is single, and according to the power information, controlling other motors in the plurality of motors except the failed motors to perform power output, including:
确定所述多个电机中与所述失效电机设置在同一预设轴线上的同轴电机;determining a coaxial motor of the plurality of motors that is disposed on the same preset axis as the failed motor;
根据所述动力信息,控制所述多个电机中除所述失效电机和所述同轴电机之外的电机进行动力输出。According to the power information, the motors other than the failed motor and the coaxial motor among the plurality of motors are controlled to output power.
可选地,所述动力信息包括保持所述预设姿态的需求力矩矩阵,所述根据所述动力信息,控制所述多个电机中除所述失效电机和所述同轴电机之外的电机进行动力输出,包括:Optionally, the power information includes a required torque matrix for maintaining the preset attitude, and the motors other than the failed motor and the coaxial motor among the plurality of motors are controlled according to the power information. Power takeoff, including:
确定除所述失效电机和所述同轴电机之外的电机的设置位置对应的预设构型;determining a preset configuration corresponding to the setting positions of the motors other than the failed motor and the coaxial motor;
获取所述预设构型对应的混控映射矩阵;obtaining a mixing control mapping matrix corresponding to the preset configuration;
根据所述需求力矩矩阵以及所述混控映射矩阵,确定除所述失效电机和所述同轴电机之外的电机中的每个电机对应的动力输出值;determining a power output value corresponding to each of the motors except the failed motor and the coaxial motor according to the required torque matrix and the mixing control mapping matrix;
控制除所述失效电机和所述同轴电机之外的电机按照对应的动力输出值进行动力输出。The motors other than the failed motor and the coaxial motor are controlled to perform power output according to the corresponding power output value.
可选地,所述根据所述需求力矩矩阵以及所述混控映射矩阵,确定除所述失效电机和所述同轴电机之外的电机中的每个电机对应的动力输出值,包括:Optionally, the determining, according to the demand torque matrix and the mixing control mapping matrix, a power output value corresponding to each of the motors except the failed motor and the coaxial motor, includes:
确定所述失效电机在所述无人飞行器中的设置位置;determining the setting position of the failed motor in the unmanned aerial vehicle;
按照所述失效电机的设置位置,根据所述需求力矩矩阵以及所述混控映射矩阵,确定除所述失效电机和所述同轴电机之外的电机中的每个电机对应的动力输出值。According to the setting position of the failed motor, according to the required torque matrix and the mixing control mapping matrix, a power output value corresponding to each of the motors except the failed motor and the coaxial motor is determined.
可选地,所述按照所述失效电机的设置位置,根据所述需求力矩矩阵以及 所述混控映射矩阵,确定除所述失效电机和所述同轴电机之外的电机中的每个电机对应的动力输出值,包括:Optionally, according to the setting position of the failed motor, according to the required torque matrix and the mixing control mapping matrix, each motor in the motors except the failed motor and the coaxial motor is determined. Corresponding power output values, including:
若除所述失效电机和所述同轴电机之外的电机的设置位置能够构成所述预设构型,则以所述需求力矩矩阵与所述混控映射矩阵的乘积,作为除所述失效电机和所述同轴电机之外的电机中的各电机对应的动力输出值。If the installation positions of the motors other than the failed motor and the coaxial motor can form the preset configuration, the product of the required torque matrix and the mixing control mapping matrix is used as the addition to the failure The power output value corresponding to each motor in the motor and the motors other than the coaxial motor.
可选地,所述按照所述失效电机的设置位置,根据所述需求力矩矩阵以及所述混控映射矩阵,确定除所述失效电机和所述同轴电机之外的电机中的每个电机对应的动力输出值,包括:Optionally, according to the setting position of the failed motor, according to the required torque matrix and the mixing control mapping matrix, each motor in the motors except the failed motor and the coaxial motor is determined. Corresponding power output values, including:
若除所述失效电机和所述同轴电机之外的电机的设置位置未能构成所述预设构型,则确定将除所述失效电机和所述同轴电机之外的电机的设置位置旋转为所述预设构型的旋转角度;If the setting positions of the motors other than the failed motor and the coaxial motor fail to form the preset configuration, determine the setting positions of the motors other than the failed motor and the coaxial motor The rotation is the rotation angle of the preset configuration;
根据所述旋转角度,确定旋转前的机体坐标系变换到旋转后的机体坐标系的旋转矩阵;According to the rotation angle, determine the rotation matrix of the body coordinate system before rotation to the body coordinate system after rotation;
以所述旋转矩阵、所述需求力矩矩阵以及所述混控映射矩阵的乘积,作为除所述失效电机和所述同轴电机之外的电机中的各电机对应的动力输出值。Taking the product of the rotation matrix, the demand torque matrix and the mixing control mapping matrix as a power output value corresponding to each of the motors except the failed motor and the coaxial motor.
可选地,所述动力信息包括保持所述预设姿态的需求力矩矩阵,所述根据所述动力信息,控制所述多个电机中除失效电机外的其它电机进行动力输出,包括:Optionally, the power information includes a required torque matrix for maintaining the preset attitude, and according to the power information, controlling other motors in the plurality of motors except the failed motor to perform power output, including:
获取预设的权重矩阵;Get the preset weight matrix;
根据所述权重矩阵以及所述需求力矩矩阵,确定所述多个电机中除失效电机外的其它电机中每个电机对应的动力输出值;According to the weight matrix and the demand torque matrix, determine the power output value corresponding to each motor in the other motors except the failed motor in the plurality of motors;
控制所述其他电机中的每个电机按照对应的动力输出值进行动力输出。Each of the other motors is controlled to output power according to the corresponding power output value.
可选地,所述根据所述权重矩阵以及所述需求力矩矩阵,确定所述多个电机中除失效电机外的其它电机中每个电机对应的动力输出值,包括:Optionally, according to the weight matrix and the demand torque matrix, determining the power output value corresponding to each motor in the other motors except the failed motor in the plurality of motors includes:
获取所述多个电机对应的多组可能动力输出值,每组可能动力输出值包括所述多个电机中除失效电机外的其它电机中的每个电机对应的大于预设数值的动力输出值、以及所述失效电机对应的设置为所述预设数值的动力输出值;Obtaining multiple sets of possible power output values corresponding to the multiple motors, each set of possible power output values including a power output value greater than a preset value corresponding to each of the motors in the multiple motors except the failed motor , and the power output value corresponding to the failed motor that is set to the preset value;
对于所述多组可能动力输出值中的任一组动力输出值,以所述任一组动力输出值与预设的混控映射矩阵的乘积,作为可能输出力矩矩阵;For any group of power output values in the multiple groups of possible power output values, taking the product of the any group of power output values and a preset mixing mapping matrix as a possible output torque matrix;
确定所述需求力矩矩阵与所述可能输出力矩矩阵的之间的差值矩阵;determining a difference matrix between the demand torque matrix and the possible output torque matrix;
确定所述差值矩阵的转至矩阵、所述权重矩阵以及所述差值矩阵之间的乘积;determining the product of the go-to matrix of the difference matrix, the weight matrix and the difference matrix;
基于所述多组可能动力输出值中乘积最小值对应的一组可能动力输出值,确定所述其他电机中的每个电机对应的动力输出值。A power output value corresponding to each of the other electric machines is determined based on a set of possible power output values corresponding to the minimum product value among the plurality of sets of possible power output values.
第二方面,本申请实施例提供一种无人飞行器,包括存储器和处理器;其中,所述存储器上存储有可执行代码,当所述可执行代码被所述处理器执行时,用于实现如下操作:In a second aspect, an embodiment of the present application provides an unmanned aerial vehicle, including a memory and a processor; wherein, executable code is stored on the memory, and when the executable code is executed by the processor, it is used to implement Do as follows:
获取所述多个电机中的每个电机对应的动力输出信息;obtaining power output information corresponding to each of the plurality of motors;
根据所述每个电机对应的动力输出信息确定所述多个电机中是否存在动力输出失效的失效电机;Determine, according to the power output information corresponding to each motor, whether there is a failed motor with power output failure in the plurality of motors;
当所述多个电机中存在动力输出失效的电机时,获取所述无人飞行器保持预设姿态所需的动力信息;When there is a motor with a power output failure among the plurality of motors, acquiring power information required by the unmanned aerial vehicle to maintain a preset attitude;
根据所述动力信息,控制所述多个电机中除失效电机外的其它电机进行动力输出。According to the power information, other motors in the plurality of motors except the failed motor are controlled to output power.
可选地,所述失效电机的数量为单个,所述处理器,用于:Optionally, the number of the failed motors is single, and the processor is used for:
确定所述多个电机中与所述失效电机设置在同一预设轴线上的同轴电机;determining a coaxial motor of the plurality of motors that is disposed on the same preset axis as the failed motor;
根据所述动力信息,控制所述多个电机中除所述失效电机和所述同轴电机之外的电机进行动力输出。According to the power information, the motors other than the failed motor and the coaxial motor among the plurality of motors are controlled to output power.
可选地,所述动力信息包括保持所述预设姿态的需求力矩矩阵,所述处理器,用于:Optionally, the power information includes a required torque matrix for maintaining the preset attitude, and the processor is configured to:
确定除所述失效电机和所述同轴电机之外的电机的设置位置对应的预设构型;determining a preset configuration corresponding to the setting positions of the motors other than the failed motor and the coaxial motor;
获取所述预设构型对应的混控映射矩阵;obtaining a mixing control mapping matrix corresponding to the preset configuration;
根据所述需求力矩矩阵以及所述混控映射矩阵,确定除所述失效电机和所 述同轴电机之外的电机中的每个电机对应的动力输出值;According to the demand torque matrix and the mixing control mapping matrix, determine the power output value corresponding to each motor in the motors other than the failed motor and the coaxial motor;
控制除所述失效电机和所述同轴电机之外的电机按照对应的动力输出值进行动力输出。The motors other than the failed motor and the coaxial motor are controlled to perform power output according to the corresponding power output value.
可选地,所述处理器,用于:Optionally, the processor is used for:
确定所述失效电机在所述无人飞行器中的设置位置;determining the setting position of the failed motor in the unmanned aerial vehicle;
按照所述失效电机的设置位置,根据所述需求力矩矩阵以及所述混控映射矩阵,确定除所述失效电机和所述同轴电机之外的电机中的每个电机对应的动力输出值。According to the setting position of the failed motor, according to the required torque matrix and the mixing control mapping matrix, a power output value corresponding to each of the motors except the failed motor and the coaxial motor is determined.
可选地,所述处理器,用于:Optionally, the processor is used for:
当除所述失效电机和所述同轴电机之外的电机的设置位置能够构成所述预设构型时,以所述需求力矩矩阵与所述混控映射矩阵的乘积,作为除所述失效电机和所述同轴电机之外的电机中的各电机对应的动力输出值。When the setting positions of the motors other than the failed motor and the coaxial motor can form the preset configuration, the product of the required torque matrix and the mixing control mapping matrix is used as the addition to the failure The power output value corresponding to each motor in the motor and the motors other than the coaxial motor.
可选地,所述处理器,用于:Optionally, the processor is used for:
当除所述失效电机和所述同轴电机之外的电机的设置位置未能构成所述预设构型时,确定将除所述失效电机和所述同轴电机之外的电机的设置位置旋转为所述预设构型的旋转角度;When the setting positions of the motors other than the failed motor and the coaxial motor fail to constitute the preset configuration, determine the setting positions of the motors other than the failed motor and the coaxial motor The rotation is the rotation angle of the preset configuration;
根据所述旋转角度,确定旋转前的机体坐标系变换到旋转后的机体坐标系的旋转矩阵;According to the rotation angle, determine the rotation matrix of the body coordinate system before rotation to the body coordinate system after rotation;
以所述旋转矩阵、所述需求力矩矩阵以及所述混控映射矩阵的乘积,作为除所述失效电机和所述同轴电机之外的电机中的各电机对应的动力输出值。Taking the product of the rotation matrix, the demand torque matrix and the mixing control mapping matrix as a power output value corresponding to each of the motors except the failed motor and the coaxial motor.
可选地,所述动力信息包括保持所述预设姿态的需求力矩矩阵,所述处理器,用于:Optionally, the power information includes a required torque matrix for maintaining the preset attitude, and the processor is configured to:
获取预设的权重矩阵;Get the preset weight matrix;
根据所述权重矩阵以及所述需求力矩矩阵,确定所述多个电机中除失效电机外的其它电机中每个电机对应的动力输出值;According to the weight matrix and the demand torque matrix, determine the power output value corresponding to each motor in the other motors except the failed motor in the plurality of motors;
控制所述其他电机中的每个电机按照对应的动力输出值进行动力输出。Each of the other motors is controlled to output power according to the corresponding power output value.
可选地,所述处理器,用于:Optionally, the processor is used for:
获取所述多个电机对应的多组可能动力输出值,每组可能动力输出值包括所述多个电机中除失效电机外的其它电机中的每个电机对应的大于预设数值的动力输出值、以及所述失效电机对应的设置为所述预设数值的动力输出值;Obtaining multiple sets of possible power output values corresponding to the multiple motors, each set of possible power output values including a power output value greater than a preset value corresponding to each of the motors in the multiple motors except the failed motor , and the power output value corresponding to the failed motor that is set to the preset value;
对于所述多组可能动力输出值中的任一组动力输出值,以所述任一组动力输出值与预设的混控映射矩阵的乘积,作为可能输出力矩矩阵;For any group of power output values in the multiple groups of possible power output values, taking the product of the any group of power output values and a preset mixing mapping matrix as a possible output torque matrix;
确定所述需求力矩矩阵与所述可能输出力矩矩阵的之间的差值矩阵;determining a difference matrix between the demand torque matrix and the possible output torque matrix;
确定所述差值矩阵的转至矩阵、所述权重矩阵以及所述差值矩阵之间的乘积;determining the product of the go-to matrix of the difference matrix, the weight matrix and the difference matrix;
基于所述多组可能动力输出值中乘积最小值对应的一组可能动力输出值,确定所述其他电机中的每个电机对应的动力输出值。A power output value corresponding to each of the other electric machines is determined based on a set of possible power output values corresponding to the minimum product value among the plurality of sets of possible power output values.
第三方面,本申请实施例提供了一种计算机可读存储介质,所述存储介质为计算机可读存储介质,该计算机可读存储介质中存储有程序指令,所述程序指令用于实现本申请实施例第一方面提供的无人飞行器控制方法。In a third aspect, an embodiment of the present application provides a computer-readable storage medium, where the storage medium is a computer-readable storage medium, and program instructions are stored in the computer-readable storage medium, and the program instructions are used to implement the present application Embodiments provide a method for controlling an unmanned aerial vehicle provided in the first aspect.
本申请实施例提供的无人飞行器控制方法当无人飞行器单个或者多个电机出现动力输出失效的情况时,可以根据无人飞行器保持预设姿态所需的动力信息,控制多个电机中除失效电机外的其它电机进行动力输出,且由于根据无人飞行器保持预设姿态所需的动力信息控制了其它电机进行动力输出,能够保障无人飞行器的空气动力学平衡,保障无人飞行器以稳定的姿态继续执行后续动作。In the unmanned aerial vehicle control method provided by the embodiment of the present application, when the power output of a single or multiple motors of the unmanned aerial vehicle fails, the unmanned aerial vehicle can be controlled according to the power information required by the unmanned aerial vehicle to maintain the preset attitude to eliminate the failure. Other motors other than the motor perform power output, and because other motors are controlled to perform power output according to the power information required by the UAV to maintain the preset attitude, it can ensure the aerodynamic balance of the UAV and ensure that the UAV can operate in a stable manner. The pose continues to perform subsequent actions.
附图说明Description of drawings
图1为本申请实施例提供的一种无人飞行器控制方法的流程图示意图;1 is a schematic flowchart of a method for controlling an unmanned aerial vehicle according to an embodiment of the present application;
图2为本申请实施例提供的一种六轴构型中各个动力轴对应的电机的设置示意图;2 is a schematic diagram of the arrangement of motors corresponding to each power shaft in a six-axis configuration provided by an embodiment of the present application;
图3为本申请实施例提供的一种单个电机失效情况下重新构成的四轴典型构型的结构示意图;3 is a schematic structural diagram of a four-axis typical configuration reconstructed in the case of a single motor failure according to an embodiment of the present application;
图4为本申请实施例提供的另一种单个电机失效情况下重新构型的结构示 意图;4 is a schematic structural diagram of reconfiguration under another single motor failure situation provided by the embodiment of the present application;
图5为本申请实施例提供的一种坐标轴旋转示意图;5 is a schematic diagram of a coordinate axis rotation provided by an embodiment of the present application;
图6为本申请实施例提供的一种相邻两个电机失效示意图;FIG. 6 is a schematic diagram of failure of two adjacent motors according to an embodiment of the present application;
图7为本申请实施例提供的一种无人飞行器的结构示意图。FIG. 7 is a schematic structural diagram of an unmanned aerial vehicle according to an embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述。The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application.
在本申请实施例中使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本申请。在本申请实施例和所附权利要求书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义,“多种”一般包含至少两种。The terms used in the embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to limit the present application. As used in the examples of this application and the appended claims, the singular forms "a," "the," and "the" are intended to include the plural forms as well, unless the context clearly dictates otherwise, "a plurality" Generally at least two are included.
取决于语境,如在此所使用的词语“如果”、“若”可以被解释成为“在……时”或“当……时”或“响应于确定”或“响应于检测”。类似地,取决于语境,短语“如果确定”或“如果检测(陈述的条件或事件)”可以被解释成为“当确定时”或“响应于确定”或“当检测(陈述的条件或事件)时”或“响应于检测(陈述的条件或事件)”。Depending on the context, the words "if", "if" as used herein may be interpreted as "at" or "when" or "in response to determining" or "in response to detecting". Similarly, the phrases "if determined" or "if detected (the stated condition or event)" can be interpreted as "when determined" or "in response to determining" or "when detected (the stated condition or event)," depending on the context )" or "in response to detection (a stated condition or event)".
另外,下述各方法实施例中的步骤时序仅为一种举例,而非严格限定。In addition, the sequence of steps in the following method embodiments is only an example, and is not strictly limited.
本申请实施例提供的无人飞行器控制方法可以实现于无人飞行器中,无人飞行器中可以搭载有多个电机。图1为本申请实施例提供的一种无人飞行器控制方法的流程图,如图1所示,该方法包括:The unmanned aerial vehicle control method provided by the embodiments of the present application can be implemented in an unmanned aerial vehicle, and the unmanned aerial vehicle can be equipped with a plurality of motors. FIG. 1 is a flowchart of a method for controlling an unmanned aerial vehicle provided by an embodiment of the present application. As shown in FIG. 1 , the method includes:
101、获取多个电机中的每个电机对应的动力输出信息。101. Acquire power output information corresponding to each motor in the plurality of motors.
102、根据每个电机对应的动力输出信息确定多个电机中是否存在动力输出失效的失效电机。102. Determine, according to the power output information corresponding to each motor, whether there is a failed motor whose power output fails among the plurality of motors.
103、当多个电机中存在动力输出失效的电机时,获取无人飞行器保持预设姿态所需的动力信息。103. When there is a motor whose power output fails among the plurality of motors, obtain power information required by the unmanned aerial vehicle to maintain a preset attitude.
104、根据动力信息,控制多个电机中除失效电机外的其它电机进行动力输 出。104. According to the power information, control other motors in the plurality of motors except the failed motor to perform power output.
本申请实施例中所述的无人飞行器包括但不限于农机、行业机等类型的无人飞行器,且无人飞行器的动力轴构型包括但不限于四轴构型、六轴构型、八轴构型、十二轴构型等。The unmanned aerial vehicles described in the embodiments of this application include, but are not limited to, unmanned aerial vehicles of types such as agricultural machinery, industrial aircraft, etc., and the power shaft configurations of the unmanned aerial vehicle include but are not limited to four-axis configuration, six-axis configuration, eight-axis configuration, etc. Axial configuration, twelve-axis configuration, etc.
上述动力输出信息可以包括用于指示电机对应的动力轴是否存在动力损失的情况的信息、以及在该动力轴存在动力损失的情况下动力损失的严重程度。The above-mentioned power output information may include information for indicating whether the power shaft corresponding to the motor has power loss, and the severity of the power loss when the power shaft has power loss.
实际应用中,无人飞行器中的电机可能会发生故障,例如通信故障、机械故障、电气故障等。无人飞行器通常具有多个动力轴,每个动力轴由对应的电机提供动力。如果电机发生了故障,则会导致对应的动力轴失效。通过检测动力轴是否存在动力损失的情况、以及在动力轴存在动力损失的情况下动力损失的严重程度,可以判断动力轴是否完全失效。如果动力轴完全失效,则对应的电机存在动力输出失效的情况,该电机相应为失效电机。In practical applications, the motors in UAVs may fail, such as communication failures, mechanical failures, electrical failures, and so on. Unmanned aerial vehicles typically have multiple power shafts, each powered by a corresponding motor. If the motor fails, it will cause the corresponding power shaft to fail. Whether the power shaft fails completely can be determined by detecting whether the power shaft has power loss and the severity of the power loss when the power shaft has power loss. If the power shaft fails completely, the corresponding motor has a power output failure, and the motor is correspondingly a failed motor.
如果无人飞行器中多个电机中存在动力输出失效的失效电机,则可以停止失效电机的使用,然后可以获取无人飞行器保持预设姿态所需的动力信息,根据动力信息,控制多个电机中除失效电机外的其它电机进行动力输出,以使得该其他电机继续运转且能够保障无人飞行器的动力学平衡。If there is a failed motor with power output failure among the multiple motors in the UAV, the use of the failed motor can be stopped, and then the power information required by the UAV to maintain the preset attitude can be obtained, and according to the power information, control the multiple motors. Other motors except the failed motor perform power output, so that the other motors continue to operate and the dynamic balance of the unmanned aerial vehicle can be guaranteed.
在对其他电机进行控制的过程中,需要知道每个电机对应的动力输出值,这样可以控制其他电机以对应的动力输出值进行动力输出,同时在所有其他电机在以各自对应的动力输出值进行动力输出的情况下,能够保障无人飞行器的动力学平衡,保持无人飞行器的姿态稳定以及防止航向漂移。具体来说,动力信息可以是需求力矩矩阵,进而可以根据需求力矩矩阵计算其他电机中的每个电机对应的动力输出值。In the process of controlling other motors, it is necessary to know the power output value corresponding to each motor, so that other motors can be controlled to perform power output with the corresponding power output value, and at the same time, all other motors are performing power output with their corresponding power output values. In the case of power output, the dynamic balance of the UAV can be guaranteed, the attitude stability of the UAV can be maintained, and the heading drift can be prevented. Specifically, the power information may be a demand torque matrix, and then a power output value corresponding to each of the other motors may be calculated according to the demand torque matrix.
上述需求力矩矩阵可以表示为u,由无人飞行器的机体坐标系中的x、y、z轴方向上各自对应的需求力矩以及z轴方向上的需求升力构成。其中,x轴方向指的是无人飞行器的正前方的方向,y轴方向指的是无人飞行器的正右方的方向,z轴方向指的是无人飞行器的正下方的方向。x、y、z轴方向上各自对应的需求力矩依次可以表示为M x、M y、M z,为了便于计算,可以将M x、M y、M z归一化在-50 至50的数值区间中。z轴方向上的需求升力可以表示为F,为了便于计算,可以将F归一化在0至100的数值区间中。u就可以通过M x、M y、M z、F进行表示,u可以表示为[M x,M y,M z,F] T。u可以通过飞行控制系统计算得到,因此可以从飞行控制系统获取u的值。 The above demand torque matrix can be expressed as u, which is composed of the corresponding demand torques in the x, y, and z axis directions and the demand lift force in the z axis direction in the body coordinate system of the unmanned aerial vehicle. Among them, the x-axis direction refers to the direction directly in front of the UAV, the y-axis direction refers to the direction directly to the right of the UAV, and the z-axis direction refers to the direction directly below the UAV. The corresponding demand torques in the directions of the x, y, and z axes can be expressed as M x , My y , and M z in turn. For the convenience of calculation, M x , My y , and M z can be normalized to a value between -50 and 50. in the interval. The required lift in the z-axis direction can be expressed as F, which can be normalized to a value interval of 0 to 100 for the convenience of calculation. u can be represented by M x , My , M z , F, and u can be represented as [M x , My y , M z , F] T . u can be calculated by the flight control system, so the value of u can be obtained from the flight control system.
在获取到u的值之后,可以根据u的值计算其他电机中的每个电机对应的动力输出值。控制其他电机以对应的动力输出值进行动力输出,这样无人飞行器可以在依然保持动力学平衡的前提下,继续执行后续动作,例如让无人飞行器进行安全的迫降或者继续完成剩余的飞行任务。After the value of u is obtained, the power output value corresponding to each of the other motors can be calculated according to the value of u. Control other motors to perform power output at the corresponding power output value, so that the UAV can continue to perform subsequent actions under the premise of still maintaining dynamic balance, such as allowing the UAV to make a safe forced landing or continue to complete the remaining flight tasks.
在本申请实施例中提供两种计算其他电机对应的动力输出值的方法,其中第一种计算方法适用于单个电机失效的情况,该计算方法的计算过程简单,计算速度较快;第二种计算方法适用于单个或者多个电机失效的情况,该计算方法的适用性较强。Two methods for calculating the power output values corresponding to other motors are provided in the embodiments of the present application, wherein the first calculation method is suitable for the failure of a single motor, the calculation process of this calculation method is simple, and the calculation speed is relatively fast; The calculation method is suitable for the failure of single or multiple motors, and the calculation method has strong applicability.
(一)第一种计算其他电机对应的动力输出值的方法(1) The first method to calculate the power output value corresponding to other motors
失效电机的数量为单个,相应地,根据动力信息,控制多个电机中除失效电机外的其它电机进行动力输出的过程可以实现为:确定多个电机中与失效电机设置在同一预设轴线上的同轴电机;根据动力信息,控制多个电机中除失效电机和同轴电机之外的电机进行动力输出。The number of the failed motor is single, and accordingly, according to the power information, the process of controlling other motors in the multiple motors to output power except the failed motor can be implemented as follows: determining that the multiple motors and the failed motor are arranged on the same preset axis The coaxial motor; according to the power information, control the motors other than the failed motor and the coaxial motor among the multiple motors to perform power output.
实际应用中,可以在机体坐标系的x轴和y轴组成的平面内划分多个预设轴线。每个预设轴线穿过机体坐标系的坐标原点,在每个预设轴线两端与坐标原点之间的距离为预设距离的位置处可以分别设置一个电机,所有预设轴线上设置的电机与坐标原点之间的距离都可以是预设距离。In practical applications, multiple preset axes may be divided in a plane formed by the x-axis and the y-axis of the body coordinate system. Each preset axis passes through the coordinate origin of the body coordinate system, and a motor can be set at a position where the distance between the two ends of each preset axis and the coordinate origin is the preset distance. Motors set on all preset axes The distance from the coordinate origin can be a preset distance.
如果多个电机中的任一电机失效,则可以确定与失效电机设置在同一预设轴线上的同轴电机,停止失效电机和同轴电机的运转,控制多个电机中除失效电机和同轴电机之外的电机进行运转,这样相当于除失效电机和同轴电机之外的电机对应的动力轴具有了新的N轴构型。例如,假设六轴构型的无人飞行器中的单个电机失效,那么除去单个失效电机和与其对应的同轴电机之外,还剩四个电机,该四个电机对应的动力轴又可以组合成新的四轴构型。If any one of the multiple motors fails, the coaxial motor set on the same preset axis as the failed motor can be determined, the operation of the failed motor and the coaxial motor can be stopped, and the operation of the failed motor and the coaxial motor can be stopped, and control of the multiple motors except the failed motor and the coaxial motor Motors other than the motor run, which means that the power shaft corresponding to the motor other than the failed motor and the coaxial motor has a new N-axis configuration. For example, assuming that a single motor in a six-axis UAV fails, then in addition to the single failed motor and its corresponding coaxial motor, there are still four motors left, and the power shafts corresponding to the four motors can be combined into a New quad-axis configuration.
可选地,根据动力信息,控制多个电机中除失效电机和同轴电机之外的电机进行动力输出的过程可以实现为:确定除失效电机和同轴电机之外的电机的设置位置对应的预设构型;获取预设构型对应的混控映射矩阵;根据需求力矩矩阵以及混控映射矩阵,确定除失效电机和同轴电机之外的电机中的每个电机对应的动力输出值;控制除失效电机和同轴电机之外的电机按照对应的动力输出值进行动力输出。Optionally, according to the power information, the process of controlling the motors other than the failed motor and the coaxial motor to output power among the plurality of motors may be implemented as follows: determining the corresponding setting positions of the motors other than the failed motor and the coaxial motor. Presetting the configuration; acquiring the mixing control mapping matrix corresponding to the preset configuration; determining the power output value corresponding to each motor in the motors except the failed motor and the coaxial motor according to the demand torque matrix and the mixing control mapping matrix; Control the motors other than the failed motor and the coaxial motor to perform power output according to the corresponding power output value.
实际应用中,可以设置多个混控映射矩阵,每个混控映射矩阵与一种预设构型相对应,可以将混控映射矩阵与预设构型相关联进行存储。这样,在确定出除失效电机和同轴电机之外的电机的设置位置对应的预设构型之后,可以直接获取与该预设构型对应的混控映射矩阵,然后根据需求力矩矩阵以及混控映射矩阵计算除失效电机和同轴电机之外的电机对应的动力输出值。In practical applications, multiple mixing control mapping matrices may be set, each mixing control mapping matrix corresponds to a preset configuration, and the mixing control mapping matrix may be stored in association with the preset configuration. In this way, after the preset configuration corresponding to the setting positions of the motors other than the failed motor and the coaxial motor is determined, the mixing control mapping matrix corresponding to the preset configuration can be directly obtained, and then the required torque matrix and the mixing control mapping matrix can be directly obtained. The control mapping matrix calculates the corresponding power output values of the motors except the failed motor and the coaxial motor.
举例来说,假设八轴构型的无人飞行器中的单个电机失效,那么除失效电机和同轴电机之外的电机对应的动力轴可以组合成六轴构型。六轴构型对应的混控映射矩阵可以是(其中,K 6表示六轴构型对应的混控映射矩阵): For example, assuming that a single motor in an UAV in an eight-axis configuration fails, the power shafts corresponding to the motors other than the failed motor and the coaxial motor can be combined into a six-axis configuration. The mixing mapping matrix corresponding to the six-axis configuration may be (wherein, K 6 represents the mixing mapping matrix corresponding to the six-axis configuration):
Figure PCTCN2021080815-appb-000001
Figure PCTCN2021080815-appb-000001
假设六轴构型的无人飞行器中的单个电机失效,那么除失效电机和同轴电机之外的电机对应的动力轴可以组合成四轴构型。四轴构型对应的混控映射矩阵可以是(其中,K 4表示四轴构型对应的混控映射矩阵): Assuming that a single motor in the UAV in the six-axis configuration fails, the power shafts corresponding to the motors other than the failed motor and the coaxial motor can be combined into a four-axis configuration. The mixing mapping matrix corresponding to the four-axis configuration can be (wherein, K 4 represents the mixing mapping matrix corresponding to the four-axis configuration):
Figure PCTCN2021080815-appb-000002
Figure PCTCN2021080815-appb-000002
可选地,上述根据需求力矩矩阵以及混控映射矩阵,确定除失效电机和同轴电机之外的电机中的每个电机对应的动力输出值的过程可以实现为:确定失 效电机在无人飞行器中的设置位置;按照失效电机的设置位置,根据需求力矩矩阵以及混控映射矩阵,确定除失效电机和同轴电机之外的电机中的每个电机对应的动力输出值。Optionally, the above process of determining the power output value corresponding to each motor in the motors except the failed motor and the coaxial motor according to the demand torque matrix and the mixing control mapping matrix may be implemented as follows: determining that the failed motor is in the unmanned aerial vehicle. According to the setting position of the failed motor, according to the demand torque matrix and the mixing control mapping matrix, determine the power output value corresponding to each motor except the failed motor and the coaxial motor.
实际应用中,失效电机的设置位置直接影响了计算除失效电机和同轴电机之外的电机对应的动力输出值的具体计算方式。如果失效电机设置在多个预设轴线中的目标轴线上,那么除失效电机和同轴电机之外的电机的设置位置能够构成预设构型,如果失效电机设置在多个预设轴线中的除目标轴线之外的轴线上,那么除失效电机和同轴电机之外的电机的设置位置就难以构成预设构型。在一种可能的情况中,该目标轴线可以是机体坐标系中的y轴。In practical applications, the setting position of the failed motor directly affects the specific calculation method for calculating the power output values corresponding to the motors other than the failed motor and the coaxial motor. If the failed motor is arranged on a target axis among the plurality of preset axes, the arrangement positions of the motors other than the failed motor and the coaxial motor can constitute a preset configuration, if the failed motor is arranged on the target axis among the plurality of preset axes On an axis other than the target axis, it is difficult to form a preset configuration for the setting positions of the motors other than the failed motor and the coaxial motor. In one possible case, the target axis may be the y-axis in the body coordinate system.
基于此,可选地,按照失效电机的设置位置,根据需求力矩矩阵以及混控映射矩阵,确定除失效电机和同轴电机之外的电机中的每个电机对应的动力输出值的过程可以实现为:若除失效电机和同轴电机之外的电机的设置位置能够构成预设构型,则以需求力矩矩阵与混控映射矩阵的乘积,作为除失效电机和同轴电机之外的电机中的各电机对应的动力输出值。Based on this, optionally, according to the setting position of the failed motor, according to the demand torque matrix and the mixing control mapping matrix, the process of determining the power output value corresponding to each of the motors except the failed motor and the coaxial motor can be realized. That is: if the setting positions of the motors other than the failed motor and the coaxial motor can form a preset configuration, the product of the required torque matrix and the mixing control mapping matrix is used as the motor except the failed motor and the coaxial motor. The corresponding power output value of each motor.
以六轴构型的无人飞行器为例进行说明,假设六轴构型的无人飞行器中的单个电机失效且失效电机设置在机体坐标系中的y轴上,则除失效电机和同轴电机之外的电机对应的动力轴能够构成四轴典型构型。那么在这种情况下,可以通过下述公式计算除失效电机和同轴电机之外的电机对应的动力输出值:Taking the UAV with six-axis configuration as an example, it is assumed that a single motor in the UAV with six-axis configuration fails and the failed motor is set on the y-axis in the body coordinate system, except for the failed motor and the coaxial motor. The power shaft corresponding to the other motor can form a typical configuration of four shafts. Then in this case, the power output value corresponding to the motor except the failed motor and the coaxial motor can be calculated by the following formula:
T=K×u;T=K×u;
其中,T为除失效电机和同轴电机之外的电机对应的动力输出值,K为预设构型对应的混控映射矩阵,u为需求力矩矩阵。Among them, T is the power output value corresponding to the motors other than the failed motor and the coaxial motor, K is the mixing control mapping matrix corresponding to the preset configuration, and u is the demand torque matrix.
假设预设构型为六轴典型构型,那么K具体可以是K 6,相应地,T可以表示为[T 1,T 2,T 3,T 4,T 5,T 6] T,其中,T i(i=1至6之间的任一整数)表示第i个除失效电机和同轴电机之外的电机对应的动力输出值。 Assuming that the preset configuration is a six-axis typical configuration, then K can be specifically K 6 , correspondingly, T can be expressed as [T 1 , T 2 , T 3 , T 4 , T 5 , T 6 ] T , where, T i (i=any integer between 1 and 6) represents the power output value corresponding to the ith motor except the failed motor and the coaxial motor.
如图2所示,图2是六轴构型中各个动力轴对应的电机的设置示意图。图中标号为1至6的图标分别代表一个电机。假设六轴构型的无人飞行器中的单个电机失效且失效电机设置在机体坐标系中的y轴上,在该图中3号电机和6 号电机都设置在了机体坐标系中的y轴上,那么失效电机为3号电机或者6号电机,除失效电机和同轴电机之外的电机为1号、2号、4号、5号电机。如图3所示,1号、2号、4号、5号电机对应的动力轴能够构成四轴典型构型,那么可以通过下述公式计算除失效电机和同轴电机之外的电机对应的动力输出值:As shown in FIG. 2 , FIG. 2 is a schematic diagram of the arrangement of the motors corresponding to each power shaft in the six-axis configuration. The icons numbered 1 to 6 in the figure each represent a motor. It is assumed that a single motor in the UAV with six-axis configuration fails and the failed motor is set on the y-axis in the body coordinate system. In this figure, motors No. 3 and No. 6 are set on the y-axis in the body coordinate system. , then the failed motor is the No. 3 motor or the No. 6 motor, and the motors other than the failed motor and the coaxial motor are the No. 1, No. 2, No. 4, and No. 5 motors. As shown in Figure 3, the power shafts corresponding to the No. 1, No. 2, No. 4, and No. 5 motors can form a typical four-axis configuration, then the following formula can be used to calculate the corresponding power of the motors other than the failed motor and the coaxial motor. Power output value:
T=K 4×u; T=K 4 ×u;
其中,K 4为四轴典型构型对应的混控映射矩阵,T可以表示为[T 1,T 2,T 3,T 4] T,其中,T i(i=1至4之间的任一整数)表示第i个除失效电机和同轴电机之外的电机对应的动力输出值。 Among them, K 4 is the mixing mapping matrix corresponding to the typical four-axis configuration, and T can be expressed as [T 1 , T 2 , T 3 , T 4 ] T , where T i (any between i=1 to 4 An integer) represents the power output value corresponding to the ith motor except the failed motor and the coaxial motor.
当然,除了本申请实施例中的上述举例之外,可以根据具体的预设构型调整动力输出值计算公式中的相应变量来适应某一特定预设构型的动力输出值的计算过程,在此不再一一进行举例。Of course, in addition to the above examples in the embodiments of the present application, the corresponding variables in the power output value calculation formula can be adjusted according to the specific preset configuration to adapt to the calculation process of the power output value of a specific preset configuration. This will not give examples one by one.
上面介绍了当除失效电机和同轴电机之外的电机的设置位置能够构成预设构型时动力输出值的计算过程,在除失效电机和同轴电机之外的电机的设置位置未能构成预设构型时,可以通过下面的方式计算动力输出值:The above describes the calculation process of the power output value when the setting positions of the motors other than the failed motor and the coaxial motor can form the preset configuration, and the setting positions of the motors other than the failed motor and the coaxial motor fail to form the calculation process. In the preset configuration, the power output value can be calculated in the following ways:
可选地,按照失效电机的设置位置,根据需求力矩矩阵以及混控映射矩阵,确定除失效电机和同轴电机之外的电机中的每个电机对应的动力输出值的过程可以实现为:若除失效电机和同轴电机之外的电机的设置位置未能构成预设构型,则确定将除失效电机和同轴电机之外的电机的设置位置旋转为预设构型的旋转角度;根据旋转角度,确定旋转前的机体坐标系变换到旋转后的机体坐标系的旋转矩阵;以旋转矩阵、需求力矩矩阵以及混控映射矩阵的乘积,作为除失效电机和同轴电机之外的电机中的各电机对应的动力输出值。Optionally, according to the setting position of the failed motor, according to the demand torque matrix and the mixing control mapping matrix, the process of determining the power output value corresponding to each motor in the motors except the failed motor and the coaxial motor can be implemented as follows: if The setting positions of the motors other than the failed motor and the coaxial motor fail to form the preset configuration, then it is determined to rotate the setting positions of the motors other than the failed motor and the coaxial motor to the rotation angle of the preset configuration; The rotation angle determines the rotation matrix of the body coordinate system before rotation to the body coordinate system after rotation; the product of the rotation matrix, the demand torque matrix and the mixing control mapping matrix is used as the motor except the failed motor and the coaxial motor. The corresponding power output value of each motor.
实际应用中,当除失效电机和同轴电机之外的电机的设置位置未能构成预设构型时,可以通过对机体坐标系的旋转操作,使得旋转后的机体坐标系中的目标轴线与失效电机的设置位置重叠,这样除失效电机和同轴电机之外的电机的设置位置可以再次构成预设构型,进而可以计算出除失效电机和同轴电机之外的电机对应的动力输出值。In practical applications, when the setting positions of the motors other than the failed motor and the coaxial motor fail to form the preset configuration, the rotation operation of the body coordinate system can be used to make the target axis in the rotated body coordinate system and the body coordinate system. The setting positions of the failed motors are overlapped, so that the setting positions of the motors other than the failed motors and the coaxial motors can form a preset configuration again, and then the power output values corresponding to the motors other than the failed motors and the coaxial motors can be calculated. .
举例来说,如图4所示,图中标号为1至6的图标分别代表一个电机。在 该图中3号电机和6号电机都设置在了机体坐标系中的y轴上,如果1号、2号、4号、5号电机中的某个电机失效,那么除失效电机和同轴电机之外的电机就难以构成四轴典型构型。在本示例中,假设2号电机失效,停止2号、5号电机的运转,除失效电机和同轴电机之外的电机为1号、3号、4号、6号。此时,如图5所示,如果将机体坐标系中的x轴或者y轴旋转60°,那么新的机体坐标系x’轴、y’轴中的y’轴与2号电机和5号电机所在的轴线重合,1号、3号、4号、6号的设置位置可以再次构成四轴典型构型。For example, as shown in FIG. 4 , the icons numbered 1 to 6 in the figure represent a motor respectively. In this figure, the No. 3 motor and No. 6 motor are both set on the y-axis in the body coordinate system. If one of the No. 1, No. 2, No. 4, and No. 5 motors fails, then except for the failed motor and the same motor Motors other than shaft motors are difficult to form a typical four-axis configuration. In this example, assuming that the No. 2 motor fails, the operation of the No. 2 and No. 5 motors is stopped, and the motors other than the failed motor and the coaxial motor are No. 1, No. 3, No. 4, and No. 6. At this time, as shown in Figure 5, if the x-axis or y-axis in the body coordinate system is rotated by 60°, the new body coordinate system x'-axis, y'-axis in y'-axis and No. 2 motor and No. 5 motor The axes where the motors are located are coincident, and the setting positions of No. 1, No. 3, No. 4, and No. 6 can again form a typical four-axis configuration.
实际应用中,可以确定将除失效电机和同轴电机之外的电机的设置位置旋转为预设构型的旋转角度,然后根据旋转角度,确定旋转前的机体坐标系变换到旋转后的机体坐标系的旋转矩阵,旋转矩阵可以表示为R,进而可以通过下述公式计算动力输出值:In practical applications, it can be determined to rotate the setting positions of the motors except the failed motor and the coaxial motor to the rotation angle of the preset configuration, and then according to the rotation angle, it is determined that the body coordinate system before rotation is transformed into the body coordinate after rotation. The rotation matrix of the system, the rotation matrix can be expressed as R, and then the power output value can be calculated by the following formula:
T=K×R×u;T=K×R×u;
如果预设构型为四轴典型构型,则上述公式可以转换为:If the preset configuration is a four-axis typical configuration, the above formula can be converted to:
T=K 4×R×u; T=K 4 ×R×u;
其中,T=[T 1,T 2,T 3,T 4] T,T i(i=1至4之间的任一整数)表示第i个除失效电机和同轴电机之外的电机对应的动力输出值。 Among them, T=[T 1 , T 2 , T 3 , T 4 ] T , T i (any integer between i=1 to 4) represents the i-th motor corresponding to the motor except the failed motor and the coaxial motor power output value.
(二)第二种计算其他电机对应的动力输出值的方法(2) The second method of calculating the power output value corresponding to other motors
该计算动力输出值的方法不限制于单个电机失效的情况,无论失效电机是单个还是多个都可以适用。需要说明的是,如果是多个电机失效且多个失效电机的设置位置是相邻的,那么无论如何设置其他电机对应的动力输出值都难以维持输出力矩的平衡,进而也就难以保证无人飞行器姿态平稳,在本申请实施例中不考虑该种情况。例如,如图6所示,假设该六轴构型的无人飞行器中1号电机和2号电机同时失效,由于1号电机和2号电机的设置位置相邻,因此不满足维持无人飞行器姿态平稳的条件,进而不考虑该种情况。The method for calculating the power output value is not limited to the case where a single motor fails, and can be applied regardless of whether the failed motor is a single motor or a plurality of motors. It should be noted that if multiple motors fail and the setting positions of the multiple failed motors are adjacent, it is difficult to maintain the balance of the output torque no matter how the power output values of the other motors are set, and thus it is difficult to ensure that no one is left. The attitude of the aircraft is stable, which is not considered in the embodiments of the present application. For example, as shown in Figure 6, it is assumed that the No. 1 motor and the No. 2 motor in the six-axis UAV fail at the same time. Since the No. 1 motor and the No. 2 motor are set adjacent to each other, it is not sufficient to maintain the UAV. The condition that the attitude is stable, and then this situation is not considered.
可选地,根据动力信息,控制多个电机中除失效电机外的其它电机进行动力输出的过程可以实现为:获取预设的权重矩阵;根据权重矩阵以及需求力矩矩阵,确定多个电机中除失效电机外的其它电机中每个电机对应的动力输出值; 控制其他电机中的每个电机按照对应的动力输出值进行动力输出。Optionally, according to the power information, the process of controlling other motors in the multiple motors to perform power output except the failed motor may be implemented as follows: obtaining a preset weight matrix; Power output value corresponding to each motor in other motors except the failed motor; control each motor in other motors to output power according to the corresponding power output value.
上述预设的权重矩阵可以视为常量,可以根据实际的无人飞行器控制需求侧重点进行设置。例如,如果侧重于无人飞行器的姿态的平稳度,可以增加权重矩阵中的第一参数且相应减小其他参数,如果侧重于对无人飞行器高度和航向角度的精确控制,可以增加权重矩阵中的第二参数且相应减小其他参数。在确定了权重矩阵之后,可以将权重矩阵存储于内存中,在使用时直接获取进行使用。或者,也可以设置多个权重矩阵,每个权重矩阵侧重于不同的无人飞行器控制需求,可以将权重矩阵和无人飞行器控制需求侧重信息相关联进行存储,这样当对无人飞行器控制需求的侧重点不同时,可以通过不同的权重矩阵对无人飞行器进行控制。在一种可能的实现方式中,权重矩阵可以设置为:The above preset weight matrix can be regarded as a constant, and can be set according to the actual control requirements of the UAV. For example, if you focus on the stability of the attitude of the unmanned aerial vehicle, you can increase the first parameter in the weight matrix and decrease other parameters accordingly. If you focus on the precise control of the altitude and heading angle of the unmanned aerial vehicle, you can increase the weight matrix. the second parameter and reduce the other parameters accordingly. After the weight matrix is determined, the weight matrix can be stored in the memory and directly obtained for use when used. Alternatively, multiple weight matrices can also be set, each weight matrix focuses on different UAV control requirements, and the weight matrix and the UAV control requirement focus information can be associated and stored, so that when the control requirements of the UAV are determined, When the emphasis is different, the UAV can be controlled through different weight matrices. In one possible implementation, the weight matrix can be set as:
Figure PCTCN2021080815-appb-000003
Figure PCTCN2021080815-appb-000003
其中,W表示权重矩阵。where W represents the weight matrix.
可选地,在计算其他电机对应的动力输出值的过程中,可以采用求解优化问题的方式来计算动力输出值。基于此,上述根据权重矩阵以及需求力矩矩阵,确定多个电机中除失效电机外的其它电机中每个电机对应的动力输出值的过程可以实现为:获取多个电机对应的多组可能动力输出值,每组可能动力输出值包括多个电机中除失效电机外的其它电机中的每个电机对应的大于预设数值的动力输出值、以及失效电机对应的设置为预设数值的动力输出值;对于多组可能动力输出值中的任一组动力输出值,以任一组动力输出值与预设的混控映射矩阵的乘积,作为可能输出力矩矩阵;确定需求力矩矩阵与可能输出力矩矩阵的之间的差值矩阵;确定差值矩阵的转至矩阵、权重矩阵以及差值矩阵之间的乘积;基于多组可能动力输出值中乘积最小值对应的一组可能动力输出值,确定其他电机中的每个电机对应的动力输出值。Optionally, in the process of calculating the power output values corresponding to other motors, the power output values may be calculated by solving an optimization problem. Based on this, the above process of determining the power output value corresponding to each motor in the other motors except the failed motor according to the weight matrix and the demand torque matrix can be implemented as follows: obtaining multiple sets of possible power outputs corresponding to the multiple motors. Each set of possible power output values includes a power output value greater than the preset value corresponding to each of the motors in the multiple motors except the failed motor, and the power output value corresponding to the failed motor set to a preset value ; For any group of power output values among the multiple groups of possible power output values, the product of any group of power output values and the preset mixing control mapping matrix is used as the possible output torque matrix; determine the demand torque matrix and the possible output torque matrix The difference matrix between the difference matrixes; determine the product of the go-to matrix, the weight matrix and the difference matrix of the difference matrix; The power output value corresponding to each motor in the motor.
实际应用中,可以设置以下函数:In practical applications, the following functions can be set:
min J=(u 0-u) TW(u 0-u); min J=(u 0 -u) T W(u 0 -u);
其中,min J为目标值。u 0为需求力矩矩阵。u为可能输出力矩矩阵。W为权重矩阵。 Among them, min J is the target value. u 0 is the demand torque matrix. u is the possible output torque matrix. W is the weight matrix.
上述u 0可以通过飞行控制系统直接获取。u可以通过计算得到,具体来说u通过公式u=K T(KK T) -1T计算得到。其中,K为预设构型对应的混控映射矩阵,T为多个电机对应的动力输出值。 The above u 0 can be directly obtained by the flight control system. u can be obtained by calculation, specifically, u can be obtained by calculation by formula u=K T (KK T ) -1 T. Wherein, K is the mixing control mapping matrix corresponding to the preset configuration, and T is the power output value corresponding to the multiple motors.
在满足T=[T 1,...T i,...T n] T,0≤T i≤100,T x=0,T y=0,1≤x≠y≤n的条件下,能够使得J的值最小的u即为最优解。 Under the conditions that T=[T 1 ,...T i ,...T n ] T , 0≤T i ≤100, T x =0,T y =0, 1≤x≠y≤n, The optimal solution is u that minimizes the value of J.
其中,T x表示第x个失效电机对应的动力输出值,T y表示第y个失效电机对应的动力输出值。由于第x个电机失效和第y个电机失效,因此它们无法提供实际的动力输出值,进而可以将第x个失效电机对应的动力输出值和第y个失效电机对应的动力输出值都设置为0。 Among them, T x represents the power output value corresponding to the x-th failed motor, and Ty represents the power output value corresponding to the y-th failed motor. Since the x-th motor fails and the y-th motor fails, they cannot provide the actual power output value, so the power output value corresponding to the x-th failed motor and the power output value corresponding to the y-th failed motor can be set as 0.
实际应用中,可以设置多个电机对应的多组可能动力输出值,然后将每组可能动力输出值代入公式,以计算出对应的J,如果通过代入某一组可能动力输出值计算出的J是所有J中的最小值,那么该组可能动力输出值即为寻求的最优解,该组可能动力输出值中除了T x和T y之外的T i也就是最终其他电机的动力输出值。 In practical applications, multiple sets of possible power output values corresponding to multiple motors can be set, and then each set of possible power output values can be substituted into the formula to calculate the corresponding J. If the J calculated by substituting a certain set of possible power output values is the minimum value of all J, then the group of possible power output values is the optimal solution sought, and the group of possible power output values T i except T x and Ty y is the final power output value of other motors .
本申请实施例提供的无人飞行器控制方法当无人飞行器单个或者多个电机出现动力输出失效的情况时,可以根据无人飞行器保持预设姿态所需的动力信息,控制多个电机中除失效电机外的其它电机进行动力输出,且由于根据无人飞行器保持预设姿态所需的动力信息控制了其它电机进行动力输出,能够保障无人飞行器的空气动力学平衡,保障无人飞行器以稳定的姿态继续执行后续动作。In the unmanned aerial vehicle control method provided by the embodiment of the present application, when the power output of a single or multiple motors of the unmanned aerial vehicle fails, the unmanned aerial vehicle can be controlled according to the power information required by the unmanned aerial vehicle to maintain the preset attitude to eliminate the failure. Other motors other than the motor perform power output, and because other motors are controlled to perform power output according to the power information required by the UAV to maintain the preset attitude, it can ensure the aerodynamic balance of the UAV and ensure that the UAV can operate in a stable manner. The pose continues to perform subsequent actions.
本申请又一示例性实施例提供了一种无人飞行器,如图7所示,该无人飞行器包括:Another exemplary embodiment of the present application provides an unmanned aerial vehicle, as shown in FIG. 7 , the unmanned aerial vehicle includes:
存储器1910,用于存储可执行代码;memory 1910 for storing executable code;
处理器1920,当所述可执行代码被所述处理器1920执行时,用于实现如下操作:The processor 1920, when the executable code is executed by the processor 1920, is configured to implement the following operations:
获取多个电机中的每个电机对应的动力输出信息;Obtain the power output information corresponding to each motor in the multiple motors;
根据每个电机对应的动力输出信息确定多个电机中是否存在动力输出失效的失效电机;According to the power output information corresponding to each motor, determine whether there is a failed motor with power output failure in the plurality of motors;
当多个电机中存在动力输出失效的电机时,获取无人飞行器保持预设姿态所需的动力信息;When there is a motor with power output failure among the multiple motors, obtain the power information required by the UAV to maintain the preset attitude;
根据动力信息,控制多个电机中除失效电机外的其它电机进行动力输出。According to the power information, the other motors except the failed motor among the plurality of motors are controlled to output power.
可选地,失效电机的数量为单个,处理器1920,用于:Optionally, the number of the failed motors is single, and the processor 1920 is used for:
确定多个电机中与失效电机设置在同一预设轴线上的同轴电机;Determine the coaxial motor set on the same preset axis as the failed motor among the multiple motors;
根据动力信息,控制多个电机中除失效电机和同轴电机之外的电机进行动力输出。According to the power information, the motors other than the failed motor and the coaxial motor among the plurality of motors are controlled to output power.
可选地,动力信息包括保持预设姿态的需求力矩矩阵,处理器1920,用于:Optionally, the power information includes a required torque matrix for maintaining a preset attitude, and the processor 1920 is configured to:
确定除失效电机和同轴电机之外的电机的设置位置对应的预设构型;Determine the preset configurations corresponding to the setting positions of the motors other than the failed motor and the coaxial motor;
获取预设构型对应的混控映射矩阵;Obtain the mixing mapping matrix corresponding to the preset configuration;
根据需求力矩矩阵以及混控映射矩阵,确定除失效电机和同轴电机之外的电机中的每个电机对应的动力输出值;Determine the power output value corresponding to each of the motors except the failed motor and the coaxial motor according to the demand torque matrix and the mixing control mapping matrix;
控制除失效电机和同轴电机之外的电机按照对应的动力输出值进行动力输出。Control the motors other than the failed motor and the coaxial motor to perform power output according to the corresponding power output value.
可选地,处理器1920,用于:Optionally, processor 1920 for:
确定失效电机在无人飞行器中的设置位置;Determine the setting position of the failed motor in the UAV;
按照失效电机的设置位置,根据需求力矩矩阵以及混控映射矩阵,确定除失效电机和同轴电机之外的电机中的每个电机对应的动力输出值。According to the setting position of the failed motor, according to the demand torque matrix and the mixing control mapping matrix, the power output value corresponding to each motor in the motors except the failed motor and the coaxial motor is determined.
可选地,处理器1920,用于:Optionally, processor 1920 for:
当除失效电机和同轴电机之外的电机的设置位置能够构成预设构型时,以需求力矩矩阵与混控映射矩阵的乘积,作为除失效电机和同轴电机之外的电机中的各电机对应的动力输出值。When the setting positions of the motors other than the failed motor and the coaxial motor can form a preset configuration, the product of the required torque matrix and the mixing control mapping matrix is used as each of the motors except the failed motor and the coaxial motor. The power output value corresponding to the motor.
可选地,处理器1920,用于:Optionally, processor 1920 for:
当除失效电机和同轴电机之外的电机的设置位置未能构成预设构型时,确定将除失效电机和同轴电机之外的电机的设置位置旋转为预设构型的旋转角度;When the set positions of the motors other than the failed motor and the coaxial motor fail to form the preset configuration, determine to rotate the set positions of the motors other than the failed motor and the coaxial motor to a rotation angle of the preset configuration;
根据旋转角度,确定旋转前的机体坐标系变换到旋转后的机体坐标系的旋转矩阵;According to the rotation angle, determine the rotation matrix of the body coordinate system before rotation to the body coordinate system after rotation;
以旋转矩阵、需求力矩矩阵以及混控映射矩阵的乘积,作为除失效电机和同轴电机之外的电机中的各电机对应的动力输出值。The product of the rotation matrix, the demand torque matrix and the mixing control mapping matrix is used as the power output value corresponding to each motor in the motors except the failed motor and the coaxial motor.
可选地,动力信息包括保持预设姿态的需求力矩矩阵,处理器1920,用于:Optionally, the power information includes a required torque matrix for maintaining a preset attitude, and the processor 1920 is configured to:
获取预设的权重矩阵;Get the preset weight matrix;
根据权重矩阵以及需求力矩矩阵,确定多个电机中除失效电机外的其它电机中每个电机对应的动力输出值;According to the weight matrix and the demand torque matrix, determine the power output value corresponding to each motor in the multiple motors except the failed motor;
控制其他电机中的每个电机按照对应的动力输出值进行动力输出。Control each of the other motors to output power according to the corresponding power output value.
可选地,处理器1920,用于:Optionally, processor 1920 for:
获取多个电机对应的多组可能动力输出值,每组可能动力输出值包括多个电机中除失效电机外的其它电机中的每个电机对应的大于预设数值的动力输出值、以及失效电机对应的设置为预设数值的动力输出值;Acquiring multiple sets of possible power output values corresponding to the multiple motors, each set of possible power output values includes a power output value greater than a preset value corresponding to each of the other motors in the multiple motors except the failed motor, and the failed motor The corresponding power output value is set to the preset value;
对于多组可能动力输出值中的任一组动力输出值,以任一组动力输出值与预设的混控映射矩阵的乘积,作为可能输出力矩矩阵;For any group of power output values in the multiple groups of possible power output values, the product of any group of power output values and the preset mixing mapping matrix is used as the possible output torque matrix;
确定需求力矩矩阵与可能输出力矩矩阵的之间的差值矩阵;Determine the difference matrix between the demand torque matrix and the possible output torque matrix;
确定差值矩阵的转至矩阵、权重矩阵以及差值矩阵之间的乘积;Determine the product of the go-to matrix, the weight matrix, and the difference matrix of the difference matrix;
基于多组可能动力输出值中乘积最小值对应的一组可能动力输出值,确定其他电机中的每个电机对应的动力输出值。Based on a set of possible power output values corresponding to the minimum product of the multiple sets of possible power output values, a power output value corresponding to each of the other motors is determined.
图7所示的无人飞行器可以执行图1-图6所示实施例的方法,本实施例未详细描述的部分,可参考对图1-图6所示实施例的相关说明。该技术方案的执行过程和技术效果参见图1-图6所示实施例中的描述,在此不再赘述。The unmanned aerial vehicle shown in FIG. 7 can execute the method of the embodiment shown in FIG. 1 to FIG. 6 . For parts not described in detail in this embodiment, reference may be made to the related description of the embodiment shown in FIG. 1 to FIG. 6 . For the execution process and technical effect of the technical solution, refer to the descriptions in the embodiments shown in FIG. 1 to FIG. 6 , which will not be repeated here.
另外,本申请实施例还提供一种计算机可读存储介质,所述计算机可读存储介质中存储有可执行代码,所述可执行代码用于实现如前述各实施例提供的 无人飞行器控制方法。In addition, an embodiment of the present application further provides a computer-readable storage medium, where executable codes are stored in the computer-readable storage medium, and the executable codes are used to implement the unmanned aerial vehicle control methods provided by the foregoing embodiments. .
以上各个实施例中的技术方案、技术特征在不相冲突的情况下均可以单独,或者进行组合,只要未超出本领域技术人员的认知范围,均属于本申请保护范围内的等同实施例。The technical solutions and technical features in each of the above embodiments can be used alone or in combination unless they conflict with each other, as long as they are not beyond the scope of knowledge of those skilled in the art, they all belong to equivalent embodiments within the protection scope of the present application.
以上所述仅为本申请的实施例,并非因此限制本申请的专利范围,凡是利用本申请说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本申请的专利保护范围内。The above are only the embodiments of the present application, and are not intended to limit the scope of the patent of the present application. Any equivalent structure or equivalent process transformation made by using the contents of the description and drawings of the present application, or directly or indirectly applied to other related technologies Fields are similarly included within the scope of patent protection of this application.
最后应说明的是:以上各实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述各实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, but not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: The technical solutions described in the foregoing embodiments can still be modified, or some or all of the technical features thereof can be equivalently replaced; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the technical solutions of the embodiments of the present application. scope.

Claims (17)

  1. 一种无人飞行器控制方法,所述无人飞行器搭载有多个电机,其特征在于,包括:A method for controlling an unmanned aerial vehicle, wherein the unmanned aerial vehicle is equipped with a plurality of motors, characterized in that it includes:
    获取所述多个电机中的每个电机对应的动力输出信息;obtaining power output information corresponding to each of the plurality of motors;
    根据所述每个电机对应的动力输出信息确定所述多个电机中是否存在动力输出失效的失效电机;Determine, according to the power output information corresponding to each motor, whether there is a failed motor with power output failure in the plurality of motors;
    当所述多个电机中存在动力输出失效的电机时,获取所述无人飞行器保持预设姿态所需的动力信息;When there is a motor with a power output failure among the plurality of motors, acquiring power information required by the unmanned aerial vehicle to maintain a preset attitude;
    根据所述动力信息,控制所述多个电机中除失效电机外的其它电机进行动力输出。According to the power information, other motors in the plurality of motors except the failed motor are controlled to output power.
  2. 根据权利要求1所述的方法,其特征在于,所述失效电机的数量为单个,所述根据所述动力信息,控制所述多个电机中除失效电机外的其它电机进行动力输出,包括:The method according to claim 1, wherein the number of the failed motors is single, and the controlling, according to the power information, other motors except the failed motor to perform power output among the plurality of motors includes:
    确定所述多个电机中与所述失效电机设置在同一预设轴线上的同轴电机;determining a coaxial motor of the plurality of motors that is disposed on the same preset axis as the failed motor;
    根据所述动力信息,控制所述多个电机中除所述失效电机和所述同轴电机之外的电机进行动力输出。According to the power information, the motors other than the failed motor and the coaxial motor among the plurality of motors are controlled to output power.
  3. 根据权利要求2所述的方法,其特征在于,所述动力信息包括保持所述预设姿态的需求力矩矩阵,所述根据所述动力信息,控制所述多个电机中除所述失效电机和所述同轴电机之外的电机进行动力输出,包括:The method according to claim 2, wherein the power information includes a required torque matrix for maintaining the preset attitude, and the control of the plurality of motors except the failed motor and the motor is controlled according to the power information. Motors other than the coaxial motor perform power output, including:
    确定除所述失效电机和所述同轴电机之外的电机的设置位置对应的预设构型;determining a preset configuration corresponding to the setting positions of the motors other than the failed motor and the coaxial motor;
    获取所述预设构型对应的混控映射矩阵;obtaining a mixing control mapping matrix corresponding to the preset configuration;
    根据所述需求力矩矩阵以及所述混控映射矩阵,确定除所述失效电机和所述同轴电机之外的电机中的每个电机对应的动力输出值;determining a power output value corresponding to each of the motors except the failed motor and the coaxial motor according to the required torque matrix and the mixing control mapping matrix;
    控制除所述失效电机和所述同轴电机之外的电机按照对应的动力输出值进行动力输出。The motors other than the failed motor and the coaxial motor are controlled to perform power output according to the corresponding power output value.
  4. 根据权利要求3所述的方法,其特征在于,所述根据所述需求力矩矩阵以及所述混控映射矩阵,确定除所述失效电机和所述同轴电机之外的电机中的每个电机对应的动力输出值,包括:The method according to claim 3, characterized in that, according to the demand torque matrix and the mixing control mapping matrix, determining each motor in the motors except the failed motor and the coaxial motor Corresponding power output values, including:
    确定所述失效电机在所述无人飞行器中的设置位置;determining the setting position of the failed motor in the unmanned aerial vehicle;
    按照所述失效电机的设置位置,根据所述需求力矩矩阵以及所述混控映射矩阵,确定除所述失效电机和所述同轴电机之外的电机中的每个电机对应的动力输出值。According to the setting position of the failed motor, according to the required torque matrix and the mixing control mapping matrix, a power output value corresponding to each of the motors except the failed motor and the coaxial motor is determined.
  5. 根据权利要求4所述的方法,其特征在于,所述按照所述失效电机的设置位置,根据所述需求力矩矩阵以及所述混控映射矩阵,确定除所述失效电机和所述同轴电机之外的电机中的每个电机对应的动力输出值,包括:The method according to claim 4, wherein, according to the setting position of the failed motor, according to the demanded torque matrix and the mixing control mapping matrix, determining to remove the failed motor and the coaxial motor The power output value corresponding to each motor except the motor, including:
    若除所述失效电机和所述同轴电机之外的电机的设置位置能够构成所述预设构型,则以所述需求力矩矩阵与所述混控映射矩阵的乘积,作为除所述失效电机和所述同轴电机之外的电机中的各电机对应的动力输出值。If the installation positions of the motors other than the failed motor and the coaxial motor can form the preset configuration, the product of the required torque matrix and the mixing control mapping matrix is used as the addition to the failure The power output value corresponding to each motor in the motor and the motors other than the coaxial motor.
  6. 根据权利要求4所述的方法,其特征在于,所述按照所述失效电机的设置位置,根据所述需求力矩矩阵以及所述混控映射矩阵,确定除所述失效电机和所述同轴电机之外的电机中的每个电机对应的动力输出值,包括:The method according to claim 4, wherein, according to the setting position of the failed motor, according to the demanded torque matrix and the mixing control mapping matrix, determining to remove the failed motor and the coaxial motor The power output value corresponding to each motor except the motor, including:
    若除所述失效电机和所述同轴电机之外的电机的设置位置未能构成所述预设构型,则确定将除所述失效电机和所述同轴电机之外的电机的设置位置旋转为所述预设构型的旋转角度;If the setting positions of the motors other than the failed motor and the coaxial motor fail to form the preset configuration, determine the setting positions of the motors other than the failed motor and the coaxial motor The rotation is the rotation angle of the preset configuration;
    根据所述旋转角度,确定旋转前的机体坐标系变换到旋转后的机体坐标系的旋转矩阵;According to the rotation angle, determine the rotation matrix of the body coordinate system before rotation to the body coordinate system after rotation;
    以所述旋转矩阵、所述需求力矩矩阵以及所述混控映射矩阵的乘积,作为除所述失效电机和所述同轴电机之外的电机中的各电机对应的动力输出值。Taking the product of the rotation matrix, the demand torque matrix and the mixing control mapping matrix as a power output value corresponding to each of the motors except the failed motor and the coaxial motor.
  7. 根据权利要求1所述的方法,其特征在于,所述动力信息包括保持所述预设姿态的需求力矩矩阵,所述根据所述动力信息,控制所述多个电机中除失效电机外的其它电机进行动力输出,包括:The method according to claim 1, wherein the power information includes a required torque matrix for maintaining the preset attitude, and the power information is used to control other motors in the plurality of motors except the failed motor. The motor performs power output, including:
    获取预设的权重矩阵;Get the preset weight matrix;
    根据所述权重矩阵以及所述需求力矩矩阵,确定所述多个电机中除失效电机外的其它电机中每个电机对应的动力输出值;According to the weight matrix and the demand torque matrix, determine the power output value corresponding to each motor in the other motors except the failed motor in the plurality of motors;
    控制所述其他电机中的每个电机按照对应的动力输出值进行动力输出。Each of the other motors is controlled to output power according to the corresponding power output value.
  8. 根据权利要求7所述的方法,其特征在于,所述根据所述权重矩阵以及所述需求力矩矩阵,确定所述多个电机中除失效电机外的其它电机中每个电机对应的动力输出值,包括:The method according to claim 7, wherein, according to the weight matrix and the demand torque matrix, the power output value corresponding to each motor in the other motors except the failed motor in the plurality of motors is determined ,include:
    获取所述多个电机对应的多组可能动力输出值,每组可能动力输出值包括所述多个电机中除失效电机外的其它电机中的每个电机对应的大于预设数值的动力输出值、以及所述失效电机对应的设置为所述预设数值的动力输出值;Obtaining multiple sets of possible power output values corresponding to the multiple motors, each set of possible power output values including a power output value greater than a preset value corresponding to each of the motors in the multiple motors except the failed motor , and the power output value corresponding to the failed motor that is set to the preset value;
    对于所述多组可能动力输出值中的任一组动力输出值,以所述任一组动力输出值与预设的混控映射矩阵的乘积,作为可能输出力矩矩阵;For any group of power output values in the multiple groups of possible power output values, taking the product of the any group of power output values and a preset mixing mapping matrix as a possible output torque matrix;
    确定所述需求力矩矩阵与所述可能输出力矩矩阵的之间的差值矩阵;determining a difference matrix between the demand torque matrix and the possible output torque matrix;
    确定所述差值矩阵的转至矩阵、所述权重矩阵以及所述差值矩阵之间的乘积;determining the product of the go-to matrix of the difference matrix, the weight matrix and the difference matrix;
    基于所述多组可能动力输出值中乘积最小值对应的一组可能动力输出值,确定所述其他电机中的每个电机对应的动力输出值。A power output value corresponding to each of the other electric machines is determined based on a set of possible power output values corresponding to the minimum product value among the plurality of sets of possible power output values.
  9. 一种无人飞行器,其特征在于,包括存储器和处理器;其中,所述存储器上存储有可执行代码,当所述可执行代码被所述处理器执行时,用于实现如下操作:An unmanned aerial vehicle, characterized in that it includes a memory and a processor; wherein, executable code is stored on the memory, and when the executable code is executed by the processor, it is used to implement the following operations:
    获取所述多个电机中的每个电机对应的动力输出信息;obtaining power output information corresponding to each of the plurality of motors;
    根据所述每个电机对应的动力输出信息确定所述多个电机中是否存在动力输出失效的失效电机;Determine, according to the power output information corresponding to each motor, whether there is a failed motor with power output failure in the plurality of motors;
    当所述多个电机中存在动力输出失效的电机时,获取所述无人飞行器保持预设姿态所需的动力信息;When there is a motor with a power output failure among the plurality of motors, acquiring power information required by the unmanned aerial vehicle to maintain a preset attitude;
    根据所述动力信息,控制所述多个电机中除失效电机外的其它电机进行动力输出。According to the power information, other motors in the plurality of motors except the failed motor are controlled to output power.
  10. 根据权利要求9所述的无人飞行器,其特征在于,所述失效电机的数 量为单个,所述处理器,用于:unmanned aerial vehicle according to claim 9, is characterized in that, the quantity of described failure motor is single, and described processor is used for:
    确定所述多个电机中与所述失效电机设置在同一预设轴线上的同轴电机;determining a coaxial motor of the plurality of motors that is disposed on the same preset axis as the failed motor;
    根据所述动力信息,控制所述多个电机中除所述失效电机和所述同轴电机之外的电机进行动力输出。According to the power information, the motors other than the failed motor and the coaxial motor among the plurality of motors are controlled to output power.
  11. 根据权利要求10所述的无人飞行器,其特征在于,所述动力信息包括保持所述预设姿态的需求力矩矩阵,所述处理器,用于:The unmanned aerial vehicle according to claim 10, wherein the power information includes a required torque matrix for maintaining the preset attitude, and the processor is configured to:
    确定除所述失效电机和所述同轴电机之外的电机的设置位置对应的预设构型;determining a preset configuration corresponding to the setting positions of the motors other than the failed motor and the coaxial motor;
    获取所述预设构型对应的混控映射矩阵;obtaining a mixing control mapping matrix corresponding to the preset configuration;
    根据所述需求力矩矩阵以及所述混控映射矩阵,确定除所述失效电机和所述同轴电机之外的电机中的每个电机对应的动力输出值;determining a power output value corresponding to each of the motors except the failed motor and the coaxial motor according to the required torque matrix and the mixing control mapping matrix;
    控制除所述失效电机和所述同轴电机之外的电机按照对应的动力输出值进行动力输出。The motors other than the failed motor and the coaxial motor are controlled to perform power output according to the corresponding power output value.
  12. 根据权利要求11所述的无人飞行器,其特征在于,所述处理器,用于:The unmanned aerial vehicle of claim 11, wherein the processor is configured to:
    确定所述失效电机在所述无人飞行器中的设置位置;determining the setting position of the failed motor in the unmanned aerial vehicle;
    按照所述失效电机的设置位置,根据所述需求力矩矩阵以及所述混控映射矩阵,确定除所述失效电机和所述同轴电机之外的电机中的每个电机对应的动力输出值。According to the setting position of the failed motor, according to the required torque matrix and the mixing control mapping matrix, a power output value corresponding to each of the motors except the failed motor and the coaxial motor is determined.
  13. 根据权利要求12所述的无人飞行器,其特征在于,所述处理器,用于:The unmanned aerial vehicle of claim 12, wherein the processor is configured to:
    当除所述失效电机和所述同轴电机之外的电机的设置位置能够构成所述预设构型时,以所述需求力矩矩阵与所述混控映射矩阵的乘积,作为除所述失效电机和所述同轴电机之外的电机中的各电机对应的动力输出值。When the setting positions of the motors other than the failed motor and the coaxial motor can form the preset configuration, the product of the required torque matrix and the mixing control mapping matrix is used as the addition to the failure The power output value corresponding to each motor in the motor and the motors other than the coaxial motor.
  14. 根据权利要求12所述的无人飞行器,其特征在于,所述处理器,用于:The unmanned aerial vehicle of claim 12, wherein the processor is configured to:
    当除所述失效电机和所述同轴电机之外的电机的设置位置未能构成所述预设构型时,确定将除所述失效电机和所述同轴电机之外的电机的设置位置旋转为所述预设构型的旋转角度;When the setting positions of the motors other than the failed motor and the coaxial motor fail to constitute the preset configuration, determine the setting positions of the motors other than the failed motor and the coaxial motor The rotation is the rotation angle of the preset configuration;
    根据所述旋转角度,确定旋转前的机体坐标系变换到旋转后的机体坐标系 的旋转矩阵;According to the rotation angle, it is determined that the body coordinate system before the rotation is transformed into the rotation matrix of the body coordinate system after the rotation;
    以所述旋转矩阵、所述需求力矩矩阵以及所述混控映射矩阵的乘积,作为除所述失效电机和所述同轴电机之外的电机中的各电机对应的动力输出值。Taking the product of the rotation matrix, the demand torque matrix and the mixing control mapping matrix as a power output value corresponding to each of the motors except the failed motor and the coaxial motor.
  15. 根据权利要求9所述的无人飞行器,其特征在于,所述动力信息包括保持所述预设姿态的需求力矩矩阵,所述处理器,用于:The unmanned aerial vehicle according to claim 9, wherein the power information includes a required torque matrix for maintaining the preset attitude, and the processor is configured to:
    获取预设的权重矩阵;Get the preset weight matrix;
    根据所述权重矩阵以及所述需求力矩矩阵,确定所述多个电机中除失效电机外的其它电机中每个电机对应的动力输出值;According to the weight matrix and the demand torque matrix, determine the power output value corresponding to each motor in the other motors except the failed motor in the plurality of motors;
    控制所述其他电机中的每个电机按照对应的动力输出值进行动力输出。Each of the other motors is controlled to output power according to the corresponding power output value.
  16. 根据权利要求15所述的无人飞行器,其特征在于,所述处理器,用于:The unmanned aerial vehicle of claim 15, wherein the processor is configured to:
    获取所述多个电机对应的多组可能动力输出值,每组可能动力输出值包括所述多个电机中除失效电机外的其它电机中的每个电机对应的大于预设数值的动力输出值、以及所述失效电机对应的设置为所述预设数值的动力输出值;Obtaining multiple sets of possible power output values corresponding to the multiple motors, each set of possible power output values including a power output value greater than a preset value corresponding to each of the motors in the multiple motors except the failed motor , and the power output value corresponding to the failed motor that is set to the preset value;
    对于所述多组可能动力输出值中的任一组动力输出值,以所述任一组动力输出值与预设的混控映射矩阵的乘积,作为可能输出力矩矩阵;For any group of power output values in the multiple groups of possible power output values, taking the product of the any group of power output values and a preset mixing mapping matrix as a possible output torque matrix;
    确定所述需求力矩矩阵与所述可能输出力矩矩阵的之间的差值矩阵;determining a difference matrix between the demand torque matrix and the possible output torque matrix;
    确定所述差值矩阵的转至矩阵、所述权重矩阵以及所述差值矩阵之间的乘积;determining the product of the go-to matrix, the weight matrix, and the difference matrix of the difference matrix;
    基于所述多组可能动力输出值中乘积最小值对应的一组可能动力输出值,确定所述其他电机中的每个电机对应的动力输出值。A power output value corresponding to each of the other electric machines is determined based on a set of possible power output values corresponding to the minimum product value among the plurality of sets of possible power output values.
  17. 一种计算机可读存储介质,其特征在于,包括指令,当其在计算机上运行时,使得所述计算机实现权利要求1-8中任一项所述的无人飞行器控制方法。A computer-readable storage medium, characterized by comprising instructions, when executed on a computer, causing the computer to implement the method for controlling an unmanned aerial vehicle according to any one of claims 1-8.
PCT/CN2021/080815 2021-03-15 2021-03-15 Unmanned aerial vehicle control method, unmanned aerial vehicle, and storage medium WO2022193075A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2021/080815 WO2022193075A1 (en) 2021-03-15 2021-03-15 Unmanned aerial vehicle control method, unmanned aerial vehicle, and storage medium
CN202180092247.9A CN116848485A (en) 2021-03-15 2021-03-15 Unmanned aerial vehicle control method, unmanned aerial vehicle and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2021/080815 WO2022193075A1 (en) 2021-03-15 2021-03-15 Unmanned aerial vehicle control method, unmanned aerial vehicle, and storage medium

Publications (1)

Publication Number Publication Date
WO2022193075A1 true WO2022193075A1 (en) 2022-09-22

Family

ID=83321756

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/080815 WO2022193075A1 (en) 2021-03-15 2021-03-15 Unmanned aerial vehicle control method, unmanned aerial vehicle, and storage medium

Country Status (2)

Country Link
CN (1) CN116848485A (en)
WO (1) WO2022193075A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024087271A1 (en) * 2022-10-26 2024-05-02 广东汇天航空航天科技有限公司 Multi-rotor aircraft, control method therefor, device, and computer-readable storage medium

Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103963963A (en) * 2014-04-22 2014-08-06 深圳市大疆创新科技有限公司 Flight control method and system for multiple-rotor-wing aircraft
CN104176247A (en) * 2014-07-16 2014-12-03 李一波 Four-rotor unmanned aerial vehicle with engine for directly driving rotor
CN105253301A (en) * 2015-09-28 2016-01-20 深圳一电科技有限公司 Flight control method and apparatus for multiaxial flight vehicle
CN106527137A (en) * 2016-11-25 2017-03-22 天津大学 Observer-based quadrotor unmanned aerial vehicle fault-tolerant control method
JP2017100651A (en) * 2015-12-04 2017-06-08 株式会社Soken Flight device
JP2017210111A (en) * 2016-05-25 2017-11-30 ヤマハ発動機株式会社 Unmanned flying object
CN107957730A (en) * 2017-11-01 2018-04-24 华南理工大学 A kind of unmanned vehicle stabilized flight control method
CN108287563A (en) * 2017-11-29 2018-07-17 深圳市科卫泰实业发展有限公司 A kind of multi-rotor aerocraft breaks paddle guard method and system
CN108341072A (en) * 2018-02-11 2018-07-31 深圳禾苗通信科技有限公司 The method, apparatus and unmanned plane of unmanned plane dynamical system fault detect
CN109878715A (en) * 2019-03-05 2019-06-14 广州极飞科技有限公司 The malfunction monitoring method for early warning and unmanned vehicle of unmanned vehicle
US20190207543A1 (en) * 2016-08-31 2019-07-04 SZ DJI Technology Co., Ltd. Methods and systems for brushless motor control
CN110271661A (en) * 2019-06-10 2019-09-24 河南华讯方舟航空科技有限公司 Coaxial eight-rotary wing aircraft breaks paddle guard method
CN110888451A (en) * 2019-12-20 2020-03-17 国网山西省电力公司电力科学研究院 Fault-tolerant control method and system for multi-rotor unmanned aerial vehicle
CN111051196A (en) * 2017-06-30 2020-04-21 空中客车A^3有限责任公司 Vertical take-off and landing aircraft adopting passive wing inclination
CN111880410A (en) * 2020-08-11 2020-11-03 北京航空航天大学 Four-rotor unmanned aerial vehicle fault-tolerant control method for motor faults

Patent Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103963963A (en) * 2014-04-22 2014-08-06 深圳市大疆创新科技有限公司 Flight control method and system for multiple-rotor-wing aircraft
CN104176247A (en) * 2014-07-16 2014-12-03 李一波 Four-rotor unmanned aerial vehicle with engine for directly driving rotor
CN105253301A (en) * 2015-09-28 2016-01-20 深圳一电科技有限公司 Flight control method and apparatus for multiaxial flight vehicle
JP2017100651A (en) * 2015-12-04 2017-06-08 株式会社Soken Flight device
JP2017210111A (en) * 2016-05-25 2017-11-30 ヤマハ発動機株式会社 Unmanned flying object
US20190207543A1 (en) * 2016-08-31 2019-07-04 SZ DJI Technology Co., Ltd. Methods and systems for brushless motor control
CN106527137A (en) * 2016-11-25 2017-03-22 天津大学 Observer-based quadrotor unmanned aerial vehicle fault-tolerant control method
CN111051196A (en) * 2017-06-30 2020-04-21 空中客车A^3有限责任公司 Vertical take-off and landing aircraft adopting passive wing inclination
CN107957730A (en) * 2017-11-01 2018-04-24 华南理工大学 A kind of unmanned vehicle stabilized flight control method
CN108287563A (en) * 2017-11-29 2018-07-17 深圳市科卫泰实业发展有限公司 A kind of multi-rotor aerocraft breaks paddle guard method and system
CN108341072A (en) * 2018-02-11 2018-07-31 深圳禾苗通信科技有限公司 The method, apparatus and unmanned plane of unmanned plane dynamical system fault detect
CN109878715A (en) * 2019-03-05 2019-06-14 广州极飞科技有限公司 The malfunction monitoring method for early warning and unmanned vehicle of unmanned vehicle
CN110271661A (en) * 2019-06-10 2019-09-24 河南华讯方舟航空科技有限公司 Coaxial eight-rotary wing aircraft breaks paddle guard method
CN110888451A (en) * 2019-12-20 2020-03-17 国网山西省电力公司电力科学研究院 Fault-tolerant control method and system for multi-rotor unmanned aerial vehicle
CN111880410A (en) * 2020-08-11 2020-11-03 北京航空航天大学 Four-rotor unmanned aerial vehicle fault-tolerant control method for motor faults

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024087271A1 (en) * 2022-10-26 2024-05-02 广东汇天航空航天科技有限公司 Multi-rotor aircraft, control method therefor, device, and computer-readable storage medium

Also Published As

Publication number Publication date
CN116848485A (en) 2023-10-03

Similar Documents

Publication Publication Date Title
US11034441B2 (en) Online optimization-based flight control system
CN107957730B (en) Unmanned aerial vehicle stable flight control method
CN110888451B (en) Fault-tolerant control method and system for multi-rotor unmanned aerial vehicle
WO2021223173A1 (en) Multi-rotor unmanned aerial vehicle and control method therefor, control device, and computer-readable storage medium
WO2022193075A1 (en) Unmanned aerial vehicle control method, unmanned aerial vehicle, and storage medium
CN106843245A (en) A kind of UAV Attitude control method, device and unmanned plane
EP2052966A2 (en) Rate limited active pilot inceptor system and method
CN110271661B (en) Coaxial eight-rotor aircraft broken propeller protection method
CN113568419B (en) Variable-load four-rotor unmanned aerial vehicle fault-tolerant control method
WO2020237528A1 (en) Flight control method and device for vertical take-off and landing unmanned aerial vehicle, and vertical take-off and landing unmanned aerial vehicle
CN112182753B (en) Control decoupling design method for tilt rotor helicopter
CN112327896A (en) Rotor fault-tolerant control method and device, computer storage medium and computer equipment
CN107943089B (en) Multi-specification power system control distribution method and related device
CN109308064A (en) A kind of the failure tolerant control method and system of quadrotor drone
Du et al. Fault tolerant control of a quadrotor unmanned aerial vehicle based on active disturbance rejection control and two-stage Kalman filter
CN110077586A (en) A kind of combined type aircraft and its control method
WO2020087312A1 (en) Method and apparatus for controlling stability of unmanned aerial vehicle, and unmanned aerial vehicle
WO2024087271A1 (en) Multi-rotor aircraft, control method therefor, device, and computer-readable storage medium
Matouk et al. Bond Graph Model-Based Control of the Quadcopter Dynamics
Bakırcıoğlu et al. Experimental comparison of the effect of the number of redundant rotors on the fault tolerance performance for the proposed multilayer UAV
CN113625763A (en) Unmanned aerial vehicle control method and device, medium, electronic device and unmanned aerial vehicle
CN114840012A (en) Method and control unit for controlling an overdetermined system, system and aircraft
CN112650263A (en) Control method of combined unmanned aerial vehicle
Yu et al. Control of Fixed-wing UAV Using Optimized PID Controller with the Adaptive Genetic Algorithm
CN113296533A (en) Generalized actuator control allocation and reconfiguration method, device and related components thereof

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

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 202180092247.9

Country of ref document: CN

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21930672

Country of ref document: EP

Kind code of ref document: A1