Power distribution method and device, electronic equipment and program product

By constructing a flight action mechanics model and iteratively optimizing the power distribution matrix, the power distribution problem of multi-rotor aircraft during flight mission changes is solved, and the power distribution is quickly adjusted, reducing costs and improving reliability without changing the control law algorithm. sex.

CN119065383APending Publication Date: 2024-12-03TIANMUSHAN LABORATORY
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411050516.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-01
Publication Date
2024-12-03

AI Technical Summary

Technical Problem

The prior art requires adjustment or reconstruction of control law algorithms when the flight mission of multi-rotor aircraft is changed, which increases the design difficulty and calculation burden of the control system and leads to an increase in cost.

Method used

By constructing a flight action mechanics model, determine the target flight speed and control instructions, obtain the initial power distribution matrix, and iteratively optimize when the flight power does not meet the preset conditions, adjust the power distribution matrix to meet the new flight mission requirements and avoid changes The original control law algorithm.

Benefits of technology

Without increasing control complexity and calculation burden, quickly adjust the power distribution matrix to keep the aircraft power at a low level, extend the battery life, improve reliability and safety, and reduce costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119065383A_ABST
    Figure CN119065383A_ABST
Patent Text Reader

Abstract

The invention relates to a power distribution method and device, electronic equipment and a program product, and the method comprises the steps: constructing a flight dynamics model of a target aircraft, and determining an expected flight speed and a control instruction when the target aircraft executes a target flight task; acquiring flight data corresponding to the target aircraft, and determining an initial power distribution matrix according to the flight data; determining flight power according to the initial power distribution matrix, the expected flight speed, the control instruction and a flight dynamics model; under the condition that the flight power does not meet the preset condition, iterative optimization is carried out on the initial power distribution matrix, and the flight power is determined again according to the power distribution matrix after iterative optimization; and under the condition that the re-determined flight power meets a preset condition, performing power distribution on a plurality of motors included in the target aircraft according to the iteratively optimized power distribution moment. Therefore, according to the embodiment of the invention, when the target flight task is changed, the original control law algorithm does not need to be changed, so that the cost is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of aircraft technology, and in particular to a power distribution method, device, electronic equipment and program product. Background Art

[0002] The maintenance of the flight attitude and speed of a multi-rotor aircraft usually relies on sophisticated control law algorithms and power distribution strategies.

[0003] In the related art, when a multi-rotor aircraft performs different flight missions, the control law algorithm needs to be adjusted or reconstructed in a complex manner so that the multi-rotor aircraft can perform new flight missions. However, the adjustment or reconstruction of the control law algorithm not only increases the difficulty of designing and implementing the control system, but also places higher requirements on the computing power of the flight control system, which may lead to an increase in costs. Summary of the invention

[0004] In view of this, the embodiments of the present disclosure provide a power distribution method, device, electronic device and program product to solve the problems existing in the related art.

[0005] According to a first aspect of an embodiment of the present disclosure, a power distribution method is provided, comprising: constructing a flight dynamics model of a target aircraft, and determining an expected flight speed and control instructions for the target aircraft when performing a target flight mission; obtaining corresponding flight data when the target aircraft is in a hovering state, and determining an initial power distribution matrix based on the flight data; determining the flight power of the target aircraft based on the initial power distribution matrix, the expected flight speed, the control instructions and the flight dynamics model; if the flight power does not meet a preset condition, iteratively optimizing the initial power distribution matrix, and redetermining the flight power based on the iteratively optimized power distribution matrix; if the redetermined flight power meets a preset condition, determining the iteratively optimized power distribution matrix as a target power distribution matrix, and performing power distribution on multiple motors included in the target aircraft based on the target power distribution matrix.

[0006] A second aspect of the disclosed embodiment provides a power distribution device, which is applied to the power distribution method of the first aspect, the method comprising: a construction module for constructing a flight dynamics model of a target aircraft, and determining an expected flight speed and control instructions when the target aircraft performs a target flight mission; obtaining <24P06431CN>

[0007] The invention relates to an acquisition module, which is used to obtain the corresponding flight data when the target aircraft is in a hovering state, and determine the initial power distribution matrix according to the flight data; a determination module, which is used to determine the flight power of the target aircraft according to the initial power distribution matrix, the expected flight speed, the control command and the flight dynamics model; an iteration module, which is used to iteratively optimize the initial power distribution matrix when the flight power does not meet the preset conditions, and redetermine the flight power according to the iteratively optimized power distribution matrix; and an allocation module, which is used to determine the iteratively optimized power distribution matrix as the target power distribution matrix when the redetermined flight power meets the preset conditions, and distribute power to multiple motors included in the target aircraft according to the target power distribution matrix.

[0008] According to a third aspect of an embodiment of the present disclosure, an electronic device is provided, comprising at least one processor; and a memory for storing instructions executable by at least one processor; wherein the at least one processor is used to execute instructions to implement the steps of the above-mentioned data management method.

[0009] According to a fourth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided. When instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to perform the steps of the above-mentioned data management method.

[0010] According to a fifth aspect of the present disclosure, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, the steps of the above-mentioned data management method are implemented.

[0011] At least one of the above technical solutions adopted in the embodiment of the present disclosure can achieve the following beneficial effects: by constructing a flight dynamics model of the target aircraft, and determining the expected flight speed and control instructions when the target aircraft performs the target flight mission; obtaining the corresponding flight data when the target aircraft is in a hovering state, and determining the initial power distribution matrix according to the flight data; determining the flight power of the target aircraft according to the initial power distribution matrix, the expected flight speed, the control instructions and the flight dynamics model; when the flight power does not meet the preset conditions, iteratively optimizing the initial power distribution matrix, and re-determining the flight power according to the iteratively optimized power distribution matrix; when the re-determined flight power meets the preset conditions, determining the iteratively optimized power distribution matrix as the target power distribution matrix, and distributing power to the multiple motors included in the target aircraft according to the target power distribution matrix. It can be seen that when the target flight mission changes, the embodiment of the present disclosure does not need to change the original control law algorithm, so that the flight mission can be changed without increasing the control complexity and calculation burden, so that the cost is reduced. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure, the following briefly introduces the drawings required for use in the embodiments or the prior art description. Obviously, the drawings in the following description are only <24P06431CN>

[0013] These are only some embodiments of the present disclosure. A person skilled in the art can obtain other drawings based on these drawings without creative efforts.

[0014] Figure 1 A schematic flow chart of a power distribution method provided for an exemplary embodiment of the present disclosure;

[0015] Figure 2 A schematic flow chart of a power distribution matrix calculation method provided for an exemplary embodiment of the present disclosure;

[0016] Figure 3 A schematic flow chart of another power distribution method provided for an exemplary embodiment of the present disclosure;

[0017] Figure 4 A schematic diagram of a flow chart of a power distribution device provided for an exemplary embodiment of the present disclosure;

[0018] Figure 5 A schematic diagram of the structure of an electronic device provided for an exemplary embodiment of the present disclosure;

[0019] Figure 6 A schematic diagram of the structure of a computer system provided by an exemplary embodiment of the present disclosure. DETAILED DESCRIPTION

[0020] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.

[0021] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.

[0022] The term "including" and its variations used in this document are open inclusions, that is, "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one other embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions of other terms will be given in the description below. It should be noted that the concepts of "first", "second", etc. mentioned in this disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.

[0023] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".

[0024] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.

[0025] In practical applications, the maintenance of the flight attitude and speed of a multi-rotor aircraft usually relies on a sophisticated control law algorithm and power distribution strategy. When a multi-rotor aircraft performs different flight missions, the power balance and overall flight performance of the multi-rotor aircraft are different under different flight missions. Therefore, when the multi-rotor aircraft needs to change the mission to be performed, the control law algorithm needs to be complexly adjusted or reconstructed so that the multi-rotor aircraft can perform the new flight mission. However, the adjustment or reconstruction of the control law algorithm not only increases the difficulty of designing and implementing the control system, but also puts higher requirements on the computing power of the flight control system, which may lead to an increase in system costs. It should be understood that the control law algorithm is an algorithm for forming control instructions for the flight control system, which describes the functional relationship between the controlled state variables and the system input signals.

[0026] The methods of the prior art mainly include the following:

[0027] Option 1: Linear control method.

[0028] Specifically, the linear control method is a type of control method commonly used in the field of aircraft control, which mainly designs the controller based on the linear dynamics of the system model. Among them, the design of the linear control method is relatively simple, easy to understand and implement, but it is difficult to effectively design the controller for complex nonlinear behaviors or extreme operating conditions. It should be understood that the linear control method is mainly aimed at controllers such as Proportion Integration Differentiation (PID), linear quadratic regulator (LQR) and robust controller. Among them, the PID controller consists of a proportional unit, an integral unit and a differential unit. The PID controller is mainly suitable for systems that are basically linear and whose dynamic characteristics do not change with time; LQR can obtain the optimal control law of state linear feedback, which is easy to form a closed-loop optimal control; the robust controller is a fixed controller designed with the robustness of the closed-loop system as the target.

[0029] Option 2: Nonlinear control method.

[0030] Specifically, nonlinear control methods can be applied to handle more complex system dynamics and are suitable for systems that are difficult to effectively control with linear control methods. However, the design and implementation of nonlinear control strategies are usually more complex than linear control methods, requiring more in-depth mathematical knowledge and computing resources, making the design cost higher. It should be understood that nonlinear control methods are mainly targeted at controllers such as backstepping controllers, sliding mode controllers, feedback linearization controllers, dynamic inverse controllers, and nonlinear robust controllers.

[0031] Solution three: Intelligent control method.

[0032] Specifically, intelligent control methods usually refer to the use of artificial intelligence and machine learning technologies to achieve control of complex systems, and are particularly suitable for scenarios that are difficult to effectively control with traditional control methods. Intelligent control methods using artificial intelligence and machine learning usually require a large amount of data to train the model, and there are problems with the interpretability and transparency of the model, as well as reliability and verification issues in safety-critical applications. It should be understood that the main intelligent control methods are mainly aimed at controllers such as reinforcement learning controllers and deep learning controllers.

[0033] Option 4: Integrated control method.

[0034] Specifically, the integrated control method combines multiple control technologies. For example, PID control, adaptive control and deep neural network control can be combined. This method can take advantage of the advantages of different control strategies to adapt to different flight conditions and mission requirements.

[0035] Most of these existing technologies require adjustment or reconstruction of the original control law algorithm to adapt to the new fault state. However, the adjustment or reconstruction process of the control law algorithm not only increases the difficulty of control system design and implementation, but also puts higher requirements on the computing power of the flight control system, thereby increasing the system cost and resulting in higher design cost.

[0036] In view of the above problems, the embodiments of the present disclosure provide a power distribution method, device, electronic device and program product, which can quickly adjust the power distribution matrix without changing the original control law algorithm, without increasing the control complexity and calculation burden, so that the power of the multi-rotor aircraft is kept at a low level. At the same time, the optimization design can also be carried out in conjunction with the adjustment or reconstruction of the control law algorithm, so that the reliability and safety of the multi-rotor aircraft can be improved while controlling the cost.

[0037] Figure 1 The following is a flow chart of a power distribution method provided by an exemplary embodiment of the present disclosure. Figure 1 As shown, the specific steps include:

[0038] S101, establishing a flight dynamics model corresponding to the target aircraft.

[0039] In some embodiments, it is first necessary to determine one or more motors included in the target aircraft, and then construct a motor throttle value M i The flight dynamics model. Where i = 1, 2, ..., m; i represents the serial number of the target aircraft including the motor, and m represents the maximum number of motors included in the target aircraft. Based on this, the flight dynamics model can be expressed as:

[0040]

[0041] Wherein, t represents time; s represents state quantity, including body axis velocity (u, v, w), angular velocity (p, q, r), attitude angle (phi, theta, psi) and earth axis velocity (Vx, Vy, Vz), where u represents forward velocity, v represents lateral velocity, and w represents vertical velocity; p represents the roll angular velocity under the body axis system, q represents the pitch angular velocity under the body axis system, and r represents the yaw angular velocity under the body axis system; phi represents the roll angle, theta represents the pitch angle, and psi represents the yaw angle; represents the first-order derivative of the state quantity s with respect to time t; M represents the set of throttle values ​​of all motors, including the throttle values ​​of all motors, including the throttle value corresponding to M1, the throttle value corresponding to M2, ..., M m The corresponding throttle amount.

[0042] S102, determining an expected flight speed corresponding to the target aircraft performing the target flight mission, and determining a control instruction corresponding to the target aircraft in stable level flight during the process of performing the target flight mission.

[0043] In some embodiments, the expected flight speed Vt corresponding to the target aircraft completing the target flight mission and the control instructions corresponding to the target aircraft in stable level flight during the execution of the target flight mission can be determined first, and the control instructions U corresponding to the target aircraft can be calculated by the control law algorithm. Among them, U includes the throttle command dt, the roll command da, the pitch command de and the yaw command dr. It should be understood that stable level flight is a straight line flight in a stable state. The control law algorithm is an algorithm for the flight control system to form control instructions.

[0044] S103, establishing a power distribution matrix of the target aircraft, and determining the corresponding flight power of the target aircraft during stable flight according to the power distribution matrix and the throttle amount corresponding to each motor.

[0045] In some embodiments, motor design and performance analysis are often performed for a single control loop. However, for the controlled target aircraft, the control instructions that ultimately drive the actuator are determined by a certain combination of motor outputs from multiple control loops. This combination can be called a control distribution matrix, that is, a power distribution matrix.

[0046] In practical applications, the power distribution matrix may include the power distribution values ​​corresponding to all motors included in the target aircraft, wherein the power distribution value corresponding to a motor can be regarded as an element in the matrix. Based on this, when performing the optimization algorithm of the power distribution matrix, it is first necessary to set the non-zero elements in the power distribution matrix X as the state variables to be optimized, and determine the throttle amount M corresponding to each motor by multiplying the control amount corresponding to the control instruction U under the current target flight mission with the power distribution matrix X. i , and then the throttle amount M corresponding to each motor i and the desired flight speed Vt are input into the flight dynamics model established in step S101 for trim calculation to obtain the flight state s0 of the target aircraft, and then the s0 obtained by the trim calculation and the M corresponding to each motor can be used to calculate the flight state s0 of the target aircraft. i , calculate the flight power P corresponding to the target aircraft, and finally determine the flight power ratio according to the flight power P and the flight power P0 of the target aircraft when hovering, that is, the objective function J=P / P0.

[0047] Specifically, the non-zero elements in the power distribution matrix X can be normalized first, and then the normalized non-zero elements are set as the state variables to be optimized. It should be understood that here, the power distribution matrix can generally be selected as the default power distribution matrix in the hovering state, and the non-zero elements can be any value between -1 and 1, so that the optimization convergence time will be faster.

[0048] In practical applications, since these non-zero elements have been normalized, the constraints can be given directly:

[0049] -1≤x i ≤1, i=1…N

[0050] Among them, x i represents the i-th non-zero element in the power distribution matrix X, i represents the sequence number of the non-zero element, and N represents the sequence number corresponding to the last non-zero element.

[0051] Then, the throttle amount M of each motor can be determined based on the product of the control amount corresponding to the control instruction U under the current target flight mission and the power distribution matrix X. i , specifically:

[0052] M=X·u

[0053] Then, these throttle values ​​and the expected flight speed Vt (Vtx, Vty, Vtz) are input into the flight dynamics model for trim calculation, that is, trimming the right-hand side of the flight dynamics mathematical model to obtain the steady-state horizontal flight state quantity of the aircraft. The trim calculation can generally be solved using the sequential quadratic programming (SQP) algorithm, where Vtx is the expected flight speed in the x-direction; Vty is the expected flight speed in the y-direction; and Vtz is the expected flight speed in the z-direction. It should be understood that the SQP algorithm is an algorithm that converts complex nonlinear constrained optimization problems into relatively simple quadratic programming problems for solution. The so-called quadratic programming problem is an optimization problem in which the objective function is a quadratic function and the constraint function is a linear function.

[0054] Next, the objective function needs to be balanced. The target aircraft axis velocity components in different directions can be determined according to the expected flight speed Vt required for the aircraft to complete the target flight mission. Specifically,

[0055]

[0056] in, It represents the velocity component of the target aircraft in the x direction of the earth axis system; It represents the velocity component of the target aircraft in the y direction of the earth axis system; It indicates the velocity component of the target aircraft in the z direction of the earth axis system. It should be understood that when the target aircraft is flying forward horizontally, Vty and Vtz are 0.

[0057] Then the initial value of trim calculation is required: the initial value of the target aircraft's flight state s0 and the control quantity corresponding to the control instruction U can be defaulted to 0. Among them, the initial value of the body axis velocity in the target aircraft's flight state s0 can be given according to the flight mission, or defaulted to 0.

[0058] Finally, the balance calculation constraints are required. The target aircraft needs to enter the state of steady-state horizontal flight, that is, the constraints can be:

[0059]

[0060] p=0,q=0,r=0,psi=0

[0061] in, represents the forward acceleration of the body axis system, represents the lateral acceleration of the body axis system, represents the vertical acceleration of the body axis system; represents the rolling angular acceleration of the body axis system, represents the pitch angular acceleration of the body axis system, It represents the yaw angular acceleration of the body axis system.

[0062] After the trim calculation is completed, the flight state s0 of the target aircraft can be obtained, and then s0 and the throttle value M of each motor can be used to adjust the flight state s0. i , then bring the rotor power model in the multi-rotor aircraft flight dynamics model into the flight power P to calculate the flight power P. Finally, the flight power ratio is determined according to the flight power P and the flight power P0 of the target aircraft when hovering, that is, the objective function J = P / P0.

[0063] S104, taking minimizing the flight power ratio J as the optimization goal, determining the final power distribution matrix, and re-determining the power distribution value of each motor according to the final power distribution matrix.

[0064] In some embodiments, the flight power ratio J can be minimized as the optimization goal, that is, after algorithm optimization, the final power distribution matrix after adjustment is output to achieve power optimization distribution under different flight missions. If the computing power of the onboard control system is insufficient and real-time power distribution matrix optimization cannot be achieved, the following method can be used:

[0065] Method 1 is to pre-calculate the optimal power allocation matrix corresponding to several sets of expected flight speeds for different flight missions, record the data in the onboard computer, and then make a selection.

[0066] Method 2: In actual flight, according to the expected flight speed of the current flight mission, the corresponding optimal power allocation matrix can be extracted by interpolation.

[0067] In practical applications, after algorithm optimization with minimizing the flight power ratio J as the optimization goal, the power allocation matrix X is continuously iterated and optimized, and finally the adjusted power allocation matrix is ​​output to achieve optimal power allocation under different flight missions.

[0068] S105, distributing power to each motor of the target aircraft according to the re-determined power distribution value, so that the target aircraft completes the target mission with minimum flight power.

[0069] In some embodiments, when the adjusted power distribution matrix is ​​output, the power distribution value corresponding to each motor can be determined, and then the power distribution result corresponding to each motor can be determined, and finally power can be distributed to each motor according to the power distribution result.

[0070] Figure 2 The following is a flow chart of a method for calculating a power distribution matrix provided by an exemplary embodiment of the present disclosure. Figure 2 As shown, the specific steps include:

[0071] S201, start.

[0072] S202, initializing each element in the power distribution matrix.

[0073] Specifically, the non-zero elements in the power distribution matrix X may be normalized first, and then the normalized non-zero elements are set as the state variables to be optimized. It should be understood that the power distribution matrix here can generally be selected as the default power distribution matrix in the hovering state.

[0074] In practical applications, since these non-zero elements have been normalized, the constraints can be given directly:

[0075] -1≤x i ≤1, i=1…N

[0076] Among them, x i represents the i-th non-zero element in the power distribution matrix X, i represents the sequence number of the non-zero element, and N represents the sequence number corresponding to the last non-zero element.

[0077] S203, determining the throttle amount corresponding to each motor according to the control amount corresponding to the control instruction and the power distribution matrix.

[0078] Specifically, the throttle amount M of each motor can be determined based on the product of the control amount corresponding to the control instruction U under the current target flight mission and the power distribution matrix X. i, specifically:

[0079] M=X·u

[0080] S204, inputting the throttle amount and expected flight speed corresponding to each aircraft into the flight dynamics model, and calling the SQP algorithm to perform balancing calculation to determine the flight power ratio.

[0081] Specifically, the throttle amount M and the expected flight speed Vt obtained in step S203 can be input into the flight dynamics model for trimming calculation, that is, the right-hand side of the flight dynamics mathematical model is trimmed to obtain the steady-state horizontal flight state quantity of the aircraft. The trimming calculation can generally be solved using a sequential quadratic programming (SQP) algorithm. It should be understood that the SQP algorithm is an algorithm that converts complex nonlinear constrained optimization problems into relatively simple quadratic programming problems for solution. The so-called quadratic programming problem is an optimization problem in which the objective function is a quadratic function and the constraint function is a linear function.

[0082] Next, the objective function needs to be balanced. The target aircraft's earth axis velocity components in different directions can be determined based on the earth axis flight velocity (Vx, Vy, Vz) required for the aircraft to complete the target flight mission. Specifically,

[0083]

[0084] in, It represents the velocity component of the target aircraft in the x direction of the earth axis system; It represents the velocity component of the target aircraft in the y direction of the earth axis system; It indicates the velocity component of the target aircraft in the z direction of the earth axis system. It should be understood that when the target aircraft is flying forward horizontally, Vty and Vtz are 0.

[0085] Then the initial value of trim calculation is required: the initial value of the target aircraft's flight state s0 and the control quantity corresponding to the control instruction U can be defaulted to 0. Among them, the initial value of the body axis velocity in the target aircraft's flight state s0 can be given according to the flight mission, or defaulted to 0.

[0086] Finally, the balance calculation constraints are required. The target aircraft needs to enter the state of steady-state horizontal flight, that is, the constraints can be:

[0087]

[0088] p=0,q=0,r=0,psi=0

[0089] in, represents the forward acceleration of the body axis system, represents the lateral acceleration of the body axis system, represents the vertical acceleration of the body axis system; represents the rolling angular acceleration of the body axis system, represents the pitch angular acceleration of the body axis system, It represents the yaw angular acceleration of the body axis system.

[0090] After the trim calculation is completed, the flight state s0 of the target aircraft can be obtained, and then s0 and the throttle value M of each motor can be used to adjust the flight state s0. i , then bring the rotor power model in the multi-rotor aircraft flight dynamics model into the flight power P to calculate the flight power P. Finally, the flight power ratio is determined according to the flight power P and the flight power P0 of the target aircraft when hovering, that is, the objective function J = P / P0.

[0091] S205, whether the current flight power ratio is converged compared with the previous iterative optimization.

[0092] Specifically, when the flight power ratio converges compared with the last iterative optimization, step S206 is executed; when the flight power ratio does not converge compared with the last iterative optimization, step S207 is executed.

[0093] In practical applications, when the flight power ratio calculated this time is less than or equal to the flight power ratio calculated last time, and the absolute value of the difference between the two flight power ratios is less than 10 -5 When the flight power ratio converges, step S206 may be executed; otherwise, step S207 may be executed if the flight power ratio does not converge. It should be understood that when there is no calculation result of the previous iterative optimization in the first calculation, the flight power ratio obtained by the second calculation may be used to start the judgment, or an initial flight power ratio may be set first and then the judgment may be made.

[0094] S206, output each element in the current power distribution matrix.

[0095] Specifically, after confirming that the flight power ratio calculated this time is less than or equal to the flight power ratio calculated last time, and the absolute value of the difference between the two flight power ratios is less than 10 -5 When the flight power ratio converges, it is confirmed that the flight power ratio converges. At this time, each element in the current power distribution matrix can be directly output. Since one element represents the power distribution value of one motor, the throttle amount corresponding to each motor can be directly determined according to the power distribution value and control instruction corresponding to each motor in the current power distribution matrix, thereby realizing the control of the target aircraft.

[0096] S207, calling the SQP algorithm to adjust the elements in the power distribution matrix.

[0097] Specifically, when it is confirmed that the flight power ratio calculated this time is greater than the flight power ratio calculated last time, it is confirmed that the flight power ratio has not converged. At this time, it is necessary to adjust each element in the power distribution matrix calculated this time, and then re-execute step S203 and re-calculate until the flight power ratio converges.

[0098] Based on this, the power distribution matrix can be quickly adjusted without increasing the control complexity and computing burden, which can not only improve the adaptability and stability of the aircraft when facing different flight missions, but also keep the flight power at a low level and extend the flight time. In addition, the disclosed embodiment can be easily integrated into various existing flight control systems, providing strong technical support for the safety and reliability of multi-rotor aircraft.

[0099] The power distribution method provided by the embodiment of the present disclosure may be executed by a terminal or by a chip applied to the terminal.

[0100] Exemplarily, the above-mentioned terminals may include one or more of mobile phones, tablet computers, wearable devices, vehicle-mounted devices, laptop computers, ultra-mobile personal computers (UMPCs), netbooks, personal digital assistants (PDAs), and wearable devices based on augmented reality (AR) and / or virtual reality (VR) technology, and may also include but not be limited to remote control devices, wearable devices, street lamps, home appliances and other smart terminals, which are not specifically limited in the embodiments of the present disclosure.

[0101] Figure 3 FIG. 1 is a flow chart of another power distribution method provided by an exemplary embodiment of the present disclosure. Figure 3 As shown, the specific steps include:

[0102] S301, constructing a flight dynamics model of the target aircraft, and determining an expected flight speed and control instructions for the target aircraft when performing a target flight mission.

[0103] In some embodiments, the target aircraft may be a quadcopter, a hexacopter, or other different types of aircraft, and different types of aircraft include different numbers of motors. Therefore, it is necessary to first determine one or more motors included in the target aircraft, and then construct a motor throttle value M. i The flight dynamics model is as follows, where i = 1, 2, ..., m. i represents the serial number of the motor, and m represents the maximum number of motors included in the target aircraft. Based on this, the flight dynamics model can be expressed as:

[0104]

[0105] Wherein, t represents time; s represents state quantity, including body axis velocity (u, v, w), angular velocity (p, q, r), attitude angle (phi, theta, psi) and earth axis velocity (Vx, Vy, Vz), where u represents forward velocity, v represents lateral velocity, and w represents vertical velocity; p represents the roll angular velocity under the body axis system, q represents the pitch angular velocity under the body axis system, and r represents the yaw angular velocity under the body axis system; phi represents the roll angle, theta represents the pitch angle, and psi represents the yaw angle; represents the first-order derivative of the state quantity s with respect to time t; M represents the set of throttle values ​​of all motors, including the throttle values ​​of all motors, including the throttle value corresponding to M1, the throttle value corresponding to M2, ..., M m The corresponding throttle amount.

[0106] In practical applications, the expected flight speed Vt corresponding to the target aircraft completing the target flight mission can be determined first, as well as the control instructions corresponding to the target aircraft in stable level flight during the execution of the target flight mission. Specifically, the control instructions U corresponding to the target aircraft can be calculated by the control law algorithm. Among them, U includes the thrust throttle instruction dt, the roll instruction da, the pitch instruction de, and the yaw instruction dr. It should be understood that stable level flight is a straight line flight in a stable state.

[0107] S302, obtaining corresponding flight data when the target aircraft is in a hovering state, and determining an initial power distribution matrix according to the flight data.

[0108] In some embodiments, motor design and performance analysis are often performed for a single control loop. However, for the controlled target aircraft, the control command that ultimately drives the actuator is determined by a certain combination of motor outputs from multiple control loops. This combination can be called a control allocation matrix, which is <24P06431CN>

[0109] Power distribution matrix.

[0110] In practical applications, the power distribution matrix may include power distribution values ​​corresponding to all motors included in the target aircraft, wherein the power distribution value corresponding to one motor may be regarded as an element in the matrix. The value corresponding to the initial power distribution matrix of the embodiment of the present disclosure may be the value corresponding to the power distribution result in the hovering state, and the specific power distribution result may be determined by the flight data in the hovering state.

[0111] S303, determining the flight power of the target aircraft according to the initial power distribution matrix, the expected flight speed, the control command and the flight dynamics model.

[0112] In some embodiments, the throttle amount M corresponding to each motor can be determined by multiplying the control amount corresponding to the control instruction U under the current target flight mission by the initial power distribution matrix X. i , and then the throttle amount M corresponding to each motor i And the expected flight speed Vt are input into the flight dynamics model to obtain the flight state s0 of the target aircraft. Finally, according to s0 and the M corresponding to each motor, i Determine the flight power P corresponding to the target aircraft.

[0113] S304, when the flight power does not meet the preset conditions, iteratively optimize the initial power allocation matrix, and re-determine the flight power according to the iteratively optimized power allocation matrix.

[0114] In some embodiments, the preset condition may be that when the flight power calculated this time is less than or equal to the flight power calculated last time, it is determined that the flight power meets the preset condition; when the flight power calculated this time is greater than the flight power calculated last time, it is determined that the flight power does not meet the preset condition.

[0115] Based on this, when the flight power is not satisfied with the preset conditions, it is necessary to adjust the elements in the initial power distribution matrix. For example, the power values ​​corresponding to some motors that do not require greater power can be reduced to adjust the elements in the initial power distribution matrix, and then recalculate the flight power. After obtaining the new flight power, the new flight power is analyzed and judged again to determine whether the new flight power meets the preset conditions. If it still does not meet the preset conditions, continue to adjust the elements in the current power distribution matrix until the flight power meets the preset conditions.

[0116] S305, when the re-determined flight power meets the preset conditions, determine the iteratively optimized power distribution matrix as the target power distribution matrix, and distribute power to multiple motors included in the target aircraft according to the target power distribution matrix.

[0117] In some embodiments, when the flight power re-determined by the iteratively optimized power distribution matrix meets the preset conditions, the iteratively optimized power distribution matrix is ​​determined as the target power distribution matrix. At this time, each element in the target power distribution matrix can be directly output. Since one element represents the power distribution value of one motor, the throttle amount corresponding to each motor can be directly determined according to the power distribution value corresponding to each motor in the target power distribution matrix and the control instruction, thereby realizing the control of the target aircraft.

[0118] It can be seen that when the target flight mission changes, the disclosed embodiment does not need to change the original control law algorithm, and can quickly adjust the power distribution matrix without increasing the control complexity and calculation burden, so that the power of the multi-rotor aircraft is kept at a low level. At the same time, it can also be optimized and designed together with the adjustment or reconstruction of the control law algorithm, so as to improve the reliability and safety of the multi-rotor aircraft while controlling the cost.

[0119] In some embodiments, the flight power of the target aircraft is determined based on an initial power distribution matrix, an expected flight speed, control instructions corresponding to each motor, and a flight dynamics model, including: determining the throttle amount corresponding to each motor based on the initial power distribution matrix and the control instructions, wherein the control instructions are calculated by a control law algorithm; determining the flight power of the target aircraft based on the throttle amount corresponding to each motor, the expected flight speed, and the flight dynamics model.

[0120] In some embodiments, the power distribution matrix may include power distribution values ​​corresponding to all motors included in the target aircraft, wherein the power distribution value corresponding to a motor may be regarded as an element in the matrix. Based on this, when performing the optimization algorithm of the power distribution matrix, it is first necessary to set the non-zero elements in the power distribution matrix X as the state variables to be optimized, and determine the throttle amount M corresponding to each motor by multiplying the control amount corresponding to the control instruction U under the current target flight mission with the power distribution matrix X. i , and then the throttle amount M corresponding to each motor i The desired flight speed Vt is input into the flight dynamics model for trim calculation to obtain the flight state s0 of the target aircraft, and then the s0 obtained by the trim calculation and the M corresponding to each motor can be used to calculate the flight state s0 of the target aircraft. i , calculate the flight power P corresponding to the target aircraft.

[0121] In practical applications, the embodiment of the present disclosure may also determine the flight power ratio according to the flight power P and the flight power P0 of the target aircraft when hovering, that is, the objective function J=P / P0.

[0122] Specifically, the non-zero elements in the power distribution matrix X may be normalized first, and then the normalized non-zero elements are set as the state variables to be optimized. It should be understood that the initial value of the power distribution matrix here can generally be selected as the default power distribution matrix in the hovering state.

[0123] In practical applications, since these non-zero elements have been normalized, the constraints can be given directly:

[0124] -1≤x i ≤1, i=1…N

[0125] Among them, xi represents the i-th non-zero element in the power distribution matrix X, i represents the sequence number of the non-zero element, and N represents the sequence number corresponding to the last non-zero element.

[0126] Then, the throttle amount M of each motor can be determined based on the product of the control amount corresponding to the control instruction U under the current target flight mission and the power distribution matrix X. i , specifically:

[0127] M=X·u

[0128] Then, these throttle values ​​and the expected flight speed Vt (Vtx, Vty, Vtz) are input into the flight dynamics model for trim calculation, that is, trimming the right-hand side of the flight dynamics mathematical model to obtain the steady-state horizontal flight state quantity of the aircraft. The trim calculation can generally be solved using the sequential quadratic programming (SQP) algorithm, where Vtx is the expected flight speed in the x-direction; Vty is the expected flight speed in the y-direction; and Vtz is the expected flight speed in the z-direction. It should be understood that the SQP algorithm is an algorithm that converts complex nonlinear constrained optimization problems into relatively simple quadratic programming problems for solution. The so-called quadratic programming problem is an optimization problem in which the objective function is a quadratic function and the constraint function is a linear function.

[0129] In some embodiments, the flight power of the target aircraft is determined based on the throttle amount corresponding to each motor, the expected flight speed and the flight dynamics model, including: inputting the throttle amount corresponding to each motor and the expected flight speed into the flight dynamics model for balancing calculation to obtain the flight power of the target aircraft.

[0130] Specifically, it is first necessary to perform a trim calculation on the expected flight speed to obtain the flight state quantity corresponding to the target aircraft.

[0131] For example, when performing a trim calculation, a trim objective function is required. The target aircraft axis velocity components in different directions can be determined based on the expected flight speed Vt required for the aircraft to complete the target flight mission. Specifically,

[0132]

[0133] in, It represents the velocity component of the target aircraft in the x direction of the earth axis system; It represents the velocity component of the target aircraft in the y direction of the earth axis system; It indicates the velocity component of the target aircraft in the z direction of the earth axis system. It should be understood that when the target aircraft is flying forward horizontally, Vty and Vtz are 0.

[0134] Then the initial value of trim calculation is required: the initial value of the target aircraft's flight state s0 and the control quantity corresponding to the control instruction U can be defaulted to 0. Among them, the initial value of the body axis velocity in the target aircraft's flight state s0 can be given according to the flight mission, or defaulted to 0.

[0135] Finally, the balance calculation constraints are required. The target aircraft needs to enter the state of steady-state horizontal flight, that is, the constraints can be:

[0136]

[0137] p=0,q=0,r=0,psi=0

[0138] in, represents the forward acceleration of the body axis system, represents the lateral acceleration of the body axis system, represents the vertical acceleration of the body axis system; represents the rolling angular acceleration of the body axis system, represents the pitch angular acceleration of the body axis system, It represents the yaw angular acceleration of the body axis system.

[0139] In some embodiments, the throttle value and the flight state value corresponding to each motor are input into the flight dynamics model to obtain the flight power of the target aircraft.

[0140] Specifically, after the trim calculation is completed, the flight state s0 of the target aircraft can be obtained, and then s0 and the throttle value M of each motor can be used to adjust the flight state s0. i , then bring the rotor power model in the multi-rotor aircraft flight dynamics model into it, and the flight power P can be obtained according to the flight dynamics model.

[0141] In some embodiments, when the flight power does not meet preset conditions, the initial power distribution matrix is ​​iteratively optimized, and the flight power is redetermined based on the iteratively optimized power distribution matrix, including: adjusting the elements in the initial power distribution matrix according to a sequential quadratic programming algorithm to obtain an adjusted power distribution matrix, and redetermining the throttle amount corresponding to each motor based on the adjusted power distribution matrix and control instructions; redetermining the flight power of the target aircraft based on the redetermined throttle amount corresponding to each motor, the expected flight speed and the flight dynamics model.

[0142] Specifically, if the flight power ratio calculated this time is greater than the flight power calculated in the previous iterative optimization, it is considered to be non-convergent. At this time, it is necessary to adjust the elements in the power distribution matrix corresponding to the previous iterative optimization calculation, and redetermine the throttle amount corresponding to each motor based on the adjusted power distribution matrix and the control amount corresponding to the control instruction, and then redetermine the flight power of the target aircraft based on the redetermined throttle amount corresponding to each motor, the expected flight speed and the flight dynamics model; then, when the redetermined flight power meets the preset conditions, determine the adjusted power distribution matrix as the target power distribution matrix, and finally distribute power to each motor based on the target power distribution matrix.

[0143] For example, the elements in the power distribution matrix can be adjusted, and the specific adjustment can be made according to the actual situation. Under the condition of control capability, some values ​​can be made smaller, thereby reducing the flight power of the target aircraft.

[0144] In some embodiments, the flight data includes hovering flight power, and the method further includes: determining a flight power ratio according to the hovering flight power and the flight power; when the flight power ratio is less than or equal to the flight power ratio obtained by the last iterative optimization, and the absolute value of the difference between the two flight power ratios is less than 10 -5 , it is determined that the flight power meets the preset conditions.

[0145] Specifically, after the trim calculation is completed, the flight state s0 of the target aircraft can be obtained, and then s0 and the throttle value M of each motor can be used to calculate the flight state s0 of the target aircraft. i , then bring the rotor power model in the multi-rotor aircraft flight dynamics model into the flight power P to calculate the flight power P. Finally, the flight power ratio is determined according to the flight power P and the flight power P0 of the target aircraft when hovering, that is, the objective function J = P / P0.

[0146] Then it is necessary to compare the flight power ratio calculated by the previous iterative optimization with that calculated by the previous iterative optimization. If the flight power ratio calculated this time is less than or equal to the flight power ratio calculated last time, and the absolute value of the difference between the two flight power ratios is less than 10 -5 When , it is determined that the flight power ratio converges. At this time, each element in the current power distribution matrix can be directly output. Since one element represents the power distribution value of one motor, the throttle corresponding to each motor can be directly determined according to the power distribution value and control instruction corresponding to each motor in the current power distribution matrix, thereby realizing the control of the target aircraft.

[0147] In summary, the disclosed embodiment proposes a control method for quickly adjusting the motor throttle amount to keep the flight power at a low level by optimizing the power distribution matrix under different flight missions (for example, hovering, flight missions of different flight speeds or centripetal rotation, etc.). The power distribution matrix optimization algorithm can be called mainly by determining the expected speed Vt corresponding to the flight mission and the corresponding control instruction U calculated by the control law algorithm during stable level flight under the flight mission, and then the non-zero elements in the power distribution matrix X are set as variables to be optimized, and the flight dynamics model is used for balancing calculations. The flight power is minimized as the optimization goal, and the adjusted multi-rotor aircraft power distribution matrix is ​​output to achieve power optimization distribution under different flight missions;

[0148] If the computing power of the onboard control system is insufficient to achieve real-time power distribution matrix optimization, the following methods can be used:

[0149] Method 1 is to pre-calculate the optimal power allocation matrix corresponding to several sets of expected flight speeds for different flight missions, record the data in the onboard computer, and then make a selection.

[0150] Method 2: In actual flight, according to the expected flight speed of the current flight mission, the corresponding optimal power allocation matrix can be extracted by interpolation.

[0151] Based on this, the disclosed embodiment can quickly adjust the power distribution matrix without increasing the control complexity and computational burden, which can not only improve the adaptability and stability of the aircraft when facing different flight missions, but also keep the flight power at a low level and extend the flight time. In addition, the disclosed embodiment can achieve effective control strategy adjustment without changing the original control law algorithm. This means that no matter whether the aircraft adopts a traditional control algorithm (such as a linear control method, a nonlinear control method), or an advanced intelligent control method, an integrated control method, etc., the disclosed embodiment can be connected in series to these control algorithms to play a role and has wide applicability. At the same time, it can also be optimized and designed in conjunction with the adjustment or reconstruction of the control law algorithm, and has wide applicability.

[0152] The above mainly introduces the solution provided by the embodiment of the present disclosure from the perspective of the server. It is understandable that in order to realize the above functions, the server includes hardware structures and / or software modules corresponding to executing each function. Those skilled in the art should easily realize that, in combination with the units and algorithm steps of each example described in the embodiment disclosed in this article, the present disclosure can be implemented in the form of hardware or a combination of hardware and computer software. Whether a certain function is executed in the form of hardware or computer software driving hardware, <24P06431CN>

[0153] Depending on the specific application and design constraints of the technical solution, professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this disclosure.

[0154] The embodiments of the present disclosure may divide the server into functional units according to the above method examples. For example, each functional module may be divided corresponding to each function, or two or more functions may be integrated into one management module. The above integrated modules may be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of modules in the embodiments of the present disclosure is schematic and is only a logical functional division. There may be other division methods in actual implementation.

[0155] In the case of dividing each functional module according to each function, an exemplary embodiment of the present disclosure provides a power distribution device, which may be a server or a chip applied to a server. Figure 4 FIG. 1 is a schematic diagram of a power distribution device provided by an exemplary embodiment of the present disclosure. Figure 4 As shown, the power distribution device 400 includes:

[0156] A construction module 401 is used to construct a flight dynamics model of a target aircraft and determine an expected flight speed and control instructions when the target aircraft performs a target flight mission;

[0157] An acquisition module 402 is used to acquire flight data corresponding to the target aircraft when it is in a hovering state, and determine an initial power distribution matrix according to the flight data;

[0158] A determination module 403 is used to determine the flight power of the target aircraft according to the initial power distribution matrix, the expected flight speed, the control instruction and the flight dynamics model;

[0159] An iteration module 404 is used to iteratively optimize the initial power allocation matrix when the flight power does not meet the preset condition, and re-determine the flight power according to the iteratively optimized power allocation matrix;

[0160] The allocation module 405 is used to determine the iteratively optimized power allocation matrix as the target power allocation matrix when the re-determined flight power meets the preset conditions, and to allocate power to the multiple motors included in the target aircraft according to the target power allocation matrix.

[0161] In an optional manner, the determination module 403 is also used to determine the throttle amount corresponding to each of the motors based on the initial power distribution matrix and the control instructions, wherein the control instructions are calculated by a control law algorithm; and determine the flight power of the target aircraft based on the throttle amount corresponding to each of the motors, the expected flight speed and the flight dynamics model.

[0162] In an optional manner, the determination module 403 is further configured to input the throttle amount corresponding to each of the motors and the desired flight speed into a flight dynamics model to perform a trim calculation, thereby obtaining the flight power of the target aircraft.

[0163] In an optional manner, the determination module 403 is also used to perform a balancing calculation on the expected flight speed to obtain a flight state quantity corresponding to the target aircraft; the throttle quantity corresponding to each motor and the flight state quantity are input into a flight dynamics model to obtain the flight power of the target aircraft.

[0164] In an optional manner, the iteration module 404 is also used to adjust the elements in the initial power distribution matrix according to a sequential quadratic programming algorithm to obtain an adjusted power distribution matrix, and redetermine the throttle amount corresponding to each of the motors according to the adjusted power distribution matrix and the control instructions; redetermine the flight power of the target aircraft according to the redetermined throttle amount corresponding to each of the motors, the expected flight speed and the flight dynamics model.

[0165] In an optional manner, the flight data includes hovering flight power, and the power distribution device 400 further includes a judgment module 406, wherein the judgment module 406 is used to determine a flight power ratio according to the hovering flight power and the flight power; when the flight power ratio is less than or equal to the flight power ratio obtained by the last iterative optimization, and the absolute value of the difference between the two flight power ratios is less than 10 -5 , determining that the flight power meets the preset condition.

[0166] An embodiment of the present disclosure also provides an electronic device, comprising: at least one processor; a memory for storing instructions executable by at least one processor; wherein the at least one processor is used to execute instructions to implement the steps of the above method disclosed in the embodiment of the present disclosure.

[0167] Figure 5 The structure diagram of an electronic device provided by an exemplary embodiment of the present disclosure is shown in FIG. Figure 5 As shown, the electronic device 500 includes at least one processor 501 and a memory 502 coupled to the processor 501 , and the processor 501 can execute corresponding steps in the above method disclosed in the embodiment of the present disclosure.

[0168] The processor 501 may also be referred to as a central processing unit (CPU), which may be an integrated circuit chip having signal processing capabilities. Each step in the method disclosed in the embodiment of the present disclosure may be completed by an integrated logic circuit of hardware in the processor 501 or by instructions in the form of software. The processor 501 may be a general-purpose processor, a digital signal processor (DSP), an ASIC, a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. A general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc. The steps of the method disclosed in the embodiment of the present disclosure may be directly embodied as being executed by a hardware decoding processor, or may be executed by a combination of hardware and software modules in a decoding processor. The software module may be located in a memory 502, such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, or other mature storage media in the art. The processor 501 reads the information in the memory 502 and completes the steps of the method in combination with its hardware.

[0169] <24P06431CN>

[0170] In addition, when various operations / processes according to the present disclosure are implemented by software and / or firmware, they can be transmitted from a storage medium or a network to a computer system having a dedicated hardware structure, for example, Figure 6 The computer system 600 shown installs the programs constituting the software, and when the various programs are installed, the computer system can execute various functions, including the functions described above. Figure 6 A schematic diagram of the structure of a computer system provided by an exemplary embodiment of the present disclosure.

[0171] Computer system 600 is intended to represent various forms of digital electronic computer devices, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. Electronic devices can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or claimed herein.

[0172] like Figure 6As shown, the computer system 600 includes a computing unit 601, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 602 or a computer program loaded from a storage unit 608 into a random access memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the computer system 600 can also be stored. The computing unit 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.

[0173] A plurality of components in the computer system 600 are connected to the I / O interface 605, including: an input unit 606, an output unit 607, a storage unit 608, and a communication unit 609. The input unit 606 can be any type of device capable of inputting information to the computer system 600, and the input unit 606 can receive input digital or character information, and generate key signal inputs related to user settings and / or function control of the electronic device. The output unit 607 can be any type of device capable of presenting information, and can include but is not limited to a display, a speaker, a video / audio output terminal, a vibrator, and / or a printer. The storage unit 608 can include but is not limited to a disk, an optical disk. The communication unit 609 allows the computer system 600 to exchange information / data with other devices over a network such as the Internet, and can include but is not limited to a modem, a network card, an infrared communication device, a wireless communication transceiver, and / or a chipset, for example, a Bluetooth™ device, a WiFi device, a WiMax device, a cellular communication device, and / or the like.

[0174] The computing unit 601 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 601 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, motors, microelectronics <24P06431CN>

[0175] The computing unit 601 performs the various methods and processes described above. For example, in some embodiments, the above methods disclosed in the embodiments of the present disclosure may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 608. In some embodiments, part or all of the computer program may be loaded and / or installed on an electronic device via the ROM 602 and / or the communication unit 609. In some embodiments, the computing unit 601 may be configured to perform the above methods disclosed in the embodiments of the present disclosure in any other appropriate manner (e.g., by means of firmware).

[0176] The embodiment of the present disclosure also provides a computer-readable storage medium, wherein when the instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the above method disclosed in the embodiment of the present disclosure.

[0177] The computer-readable storage medium in the disclosed embodiments may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. The computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or equipment, or any suitable combination of the foregoing. More specifically, the computer-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0178] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.

[0179] The embodiments of the present disclosure also provide a computer program product, including a computer program, wherein the computer program implements the above method disclosed in the embodiments of the present disclosure when executed by a processor.

[0180] In embodiments of the present disclosure, computer program codes for performing the operations of the present disclosure may be written in one or more programming languages ​​or combinations thereof, including but not limited to object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" language or similar programming languages. The program code may be executed entirely on a user's computer, partially on a user's computer, as an independent software package, partially on a user's computer, partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer.

[0181] <24P06431CN>

[0182] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0183] The modules, components or units involved in the embodiments described in the present disclosure may be implemented by software or hardware, wherein the names of the modules, components or units do not, in some cases, limit the modules, components or units themselves.

[0184] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chip (SOCs), complex programmable logic devices (CPLDs), and the like.

[0185] The above descriptions are only some embodiments of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, a technical solution formed by replacing the above features with the technical features with similar functions disclosed in the present disclosure (but not limited to).

[0186] Although some specific embodiments of the present disclosure have been described in detail by way of example, it should be understood by those skilled in the art that the above examples are for illustration only and are not intended to limit the scope of the present disclosure. It should be understood by those skilled in the art that the above embodiments may be modified without departing from the scope and spirit of the present disclosure. The scope of the present disclosure is defined by the appended claims.

Claims

1. A power distribution method, characterized in that: include: Constructing a flight dynamics model of a target aircraft and determining an expected flight speed and control instructions for the target aircraft when performing a target flight mission; Acquiring flight data corresponding to the target aircraft when it is in a hovering state, and determining an initial power distribution matrix according to the flight data; Determining the flight power of the target aircraft according to the initial power distribution matrix, the desired flight speed, the control instruction and the flight dynamics model; When the flight power does not meet the preset conditions, iteratively optimizing the initial power allocation matrix, and re-determining the flight power according to the iteratively optimized power allocation matrix; When the re-determined flight power meets the preset condition, the iteratively optimized power distribution matrix is ​​determined as the target power distribution matrix, and power is distributed to the multiple motors included in the target aircraft according to the target power distribution matrix.

2. The power distribution method according to claim 1, characterized in that: The determining the flight power of the target aircraft according to the initial power distribution matrix, the expected flight speed, the control instruction and the flight dynamics model includes: Determining the throttle amount corresponding to each of the motors according to the initial power distribution matrix and the control instruction, wherein the control instruction is calculated by a control law algorithm; The flight power of the target aircraft is determined according to the throttle amount corresponding to each of the motors, the expected flight speed and the flight dynamics model.

3. The power distribution method according to claim 2, characterized in that: The step of determining the flight power of the target aircraft according to the throttle amount corresponding to each of the motors, the expected flight speed, and the flight dynamics model includes: The throttle amount corresponding to each of the motors and the desired flight speed are input into a flight dynamics model for trim calculation to obtain the flight power of the target aircraft.

4. The method according to claim 3, characterized in that include: Performing trim calculation on the expected flight speed to obtain a flight state quantity corresponding to the target aircraft; The throttle amount corresponding to each of the motors and the flight state amount are input into a flight dynamics model to obtain the flight power of the target aircraft.

5. The method according to claim 1, characterized in that When the flight power does not meet the preset condition, iteratively optimizing the initial power allocation matrix, and re-determining the flight power according to the iteratively optimized power allocation matrix, comprises: Adjusting the elements in the initial power distribution matrix according to a sequential quadratic programming algorithm to obtain an adjusted power distribution matrix, and re-determining the throttle amount corresponding to each of the motors according to the adjusted power distribution matrix and the control instruction; The flight power of the target aircraft is re-determined according to the re-determined throttle amounts corresponding to the motors, the expected flight speed and the flight dynamics model.

6. The method according to claim 1, characterized in that The flight data includes hovering flight power, and the method further includes: determining a flight power ratio according to the hovering flight power and the flight power; When the flight power ratio is less than or equal to the flight power ratio obtained by the previous iterative optimization, and the absolute value of the difference between the two flight power ratios is less than 10 -5 , determining that the flight power meets the preset condition.

7. A power distribution device, characterized in that: include: A construction module is used to construct a flight dynamics model of a target aircraft and determine an expected flight speed and control instructions when the target aircraft performs a target flight mission; An acquisition module, used to acquire flight data corresponding to the target aircraft when it is in a hovering state, and determine an initial power distribution matrix according to the flight data; a determination module, configured to determine the flight power of the target aircraft according to the initial power distribution matrix, the desired flight speed, the control instruction and the flight dynamics model; an iterative module, configured to iteratively optimize the initial power allocation matrix when the flight power does not meet a preset condition, and redetermine the flight power according to the iteratively optimized power allocation matrix; The allocation module is used to determine the iteratively optimized power allocation matrix as the target power allocation matrix when the re-determined flight power meets the preset conditions, and to distribute power to multiple motors included in the target aircraft according to the target power allocation matrix.

8. An electronic device, characterized in that: include: at least one processor; a memory for storing the at least one processor-executable instruction; The at least one processor is used to execute the instructions to implement the method according to any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that: When the instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the method according to any one of claims 1 to 6.

10. A computer program product, characterized in that The method comprises a computer program, wherein when the computer program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.

Citation Information

Cited By

  • Aircraft control method, vehicle and storage medium

    CN119937594A