The present invention relates to a flight control method, in particular to a method for controlling stable flight of an unmanned aircraft.
In recent years, the world's unmanned aircraft technology has developed rapidly. Multi-rotor aircrafts with vertical takeoff and landing, stable hovering, wireless transmission, long-range aerial photography and autonomous cruising capabilities have broad application prospects in military and civil fields. Due to the characteristics of excellent maneuverability, simple mechanical structure, easy deployment and easy maintenance, the small rotor-type aircrafts are widely used in the fields of aerial photography, power inspection, environmental monitoring, forest fire prevention, disaster inspection, anti-terrorism rescue, military reconnaissance, battlefield assessment, etc. With wide application of unmanned aircrafts, the design of stable and fast-responding controllers of the unmanned aircrafts has attracted the attention of many researchers. The conventional controllers of the unmanned aircrafts are all designed on the basis of PID closed-loop control algorithms and corresponding improved control algorithms. PID controllers and feedback closed-loop control systems, which are simple in design and have good control effects, have been widely used in the design of the controllers of the aircrafts. Although the PID controllers are easy to use, the PID controllers and the power allocation schemes obtained according to the PID controllers do not achieve the desired stability of the unmanned aircrafts.
An object of the present invention is, in order to overcome the deficiencies of the prior art, to provide a method for designing a stable flight controller and a power allocation scheme, which controls stable flight of an unmanned aircraft by acquiring real-time flight operation data of the aircraft by using a sensor, solving output control quantities of motors of the aircraft by means of a multi-layer zeroing neural network, and obtaining a corresponding power allocation scheme.
The object of the present invention is achieved by means of the following technical solution:
a method for controlling stable flight of an unmanned aircraft, comprising the steps of:
1) acquiring real-time flight operation data of the aircraft itself, analyzing a kinematic problem of the aircraft, and establishing a dynamics model of the aircraft;
2) constructing a deviation function according to the real-time flight operation data acquired in step 1) and target attitude data, and constructing neurodynamic equations based on the deviation function by using a multi-layer zeroing neurodynamic method, wherein the neurodynamic equations based on the deviation function corresponding to all parameters together constitute a controller of the unmanned aircraft, and output quantities solved from differential equations of the controller are output control quantities of motors of the aircraft; and
3) controlling powers of the motors according to a relationship between the output control quantities solved in step 2) and the powers of the motors of the multi-rotor unmanned aircraft to complete motion control over the unmanned aircraft, specifically:
according to a power allocation scheme for the unmanned aircraft, the control quantities solved by the controller have the following relationship with the powers of the motors of the multi-rotor unmanned aircraft:
U=WF
where U=[u1 u2 u3 u4]T refers to the output control quantities of the unmanned aircraft, F=[F1 . . . Fj]T refers to the powers of the motors of the unmanned aircraft, j is the number of the motors of the multi-rotor unmanned aircraft, W is a power allocation matrix of the unmanned aircraft, and the matrix W has different forms depending on different structures and the number of rotors, and needs to be determined according to the structure thereof and the number of the rotors;
the corresponding powers F of the motors are obtained by means of matrix inversion or pseudo-inversion, i.e.:
F=W
−1
U
if the matrix W is a square matrix and is reversible, W−1 is obtained by means of an inverse operation, and if W is not a square matrix, W−1 is solved by means of a corresponding pseudo-inverse operation; and the desired powers F of the motors are finally obtained, input voltages of the motors are controlled according to a relationship between the voltages and powers of the motors to control the rotational speeds of the motors, and the control over the powers of the motors is finally realized to complete stable flight control over the unmanned aircraft.
Further, the step of performing corresponding analysis on a kinematic problem of the aircraft by a processor mounted thereto specifically comprises:
defining a ground coordinate system E and a fuselage coordinate system B, and establishing a relationship E=RB between the ground coordinate system and the fuselage coordinate system by means of a transformation matrix R, where R may be expressed as
where ϕ is a roll angle, θ is a pitch angle, and ψ is a yaw angle;
ignoring the effect of an air resistance on the aircraft, the stress analysis (in the form of Newton-Euler) of the aircraft system in the fuselage coordinate system is as follows
where m is the total mass of the aircraft, I3×3 is a unit matrix, I is an inertia matrix, V is a linear velocity in the fuselage coordinate system, ω is an angular velocity in the fuselage coordinate system, F is a resultant external force, and τ is a resultant torque.
Further, the step of establishing a dynamics model of the aircraft specifically comprises:
according to the defined ground coordinate system E and fuselage coordinate system B, the relationship E=RB established between the two by means of the transformation matrix R and the stress analysis of the aircraft system in the fuselage coordinate system, obtaining dynamics equations of the multi-rotor aircraft as follows
where l is an arm length; g is a gravitational acceleration; x, y, z are respectively position coordinates of the aircraft in the ground coordinate system; Ix, Iy, Iz are respectively rotational inertia of the aircraft in X, Y and Z axes; ux=cos ϕ sin θ cos ψ+sin ϕ sin ψ; uy=cos ϕ sin θ sin ψ−sin ϕ cos ψ; and u1, u2, u3, u4 are output control quantities.
Further, the step of designing a controller of the unmanned aircraft specifically comprises the steps of:
(1) designing a deviation function regarding the output control quantity u1 from the vertical altitude z by means of the multi-layer zeroing neurodynamic method, and designing an altitude controller for the unmanned aircraft according to this deviation function;
(2) designing a deviation function regarding ux and uy from the horizontal positions x and y by means of the multi-layer zeroing neurodynamic method, designing a position controller for the unmanned aircraft according to this deviation function, and then inversely solving target attitude angles ϕT and θT; and
(3) designing a deviation function regarding the output control quantities u2˜u4 from the roll angle ϕ, the pitch angle θ and the yaw angle ψ by means of the multi-layer zeroing neurodynamic method, and designing an attitude controller according to this deviation function.
Further, the step of designing a deviation function regarding the output control quantity u1 and a corresponding altitude controller of the unmanned aircraft specifically consists in that:
for the vertical altitude z, according to the target altitude value zT and the actual altitude value z in the Z axis, a deviation function may be defined as
e
z1
=z−z
T (1)
and its derivative may be obtained as follows
ė
z1
=ż−ż
T (2)
in order to converge the actual value z to the target value zT, according to the multi-layer zeroing neurodynamic method, a neurodynamic equation based on the deviation function may be designed as
ė
z1
=γe
z1 (3)
where γ is a constant;
equations (1) and (2) are substituted into equation (3) and collating is performed to obtain
ż−ż
T+γ(z−zT)=0 (4)
since equation (4) is generally not established in the initial situation and does not contain relevant information of the output control quantities, and the control quantities cannot be solved, a further design is needed, and a definition is then made
e
z2
=ż−ż
T+γ(z−zT) (5)
and its derivative may be obtained as follows
ė
z2
={umlaut over (z)}−{umlaut over (z)}
T+γ(ż−żT) (6)
according to the multi-layer zeroing neurodynamic method, a neurodynamic equation based on the deviation function may be designed as
ė
z2
=−γe
z2 (7)
equations (5) and (6) are substituted into equation (7) and collating is performed to obtain
{umlaut over (z)}−{umlaut over (z)}
T+2γ(ż−żT)+γ2(z−zT)=0 (8)
in this way, a deviation function may be defined as
E
z
={umlaut over (z)}−{umlaut over (z)}
T+2γ(ż−żT)+γ2(z−zT) (9)
according to the dynamics equations of the aircraft, (9) may be simplified into
E
z
=a
z
u
1
+b
z (10)
where
and bz=−g−{umlaut over (z)}T+2γ(ż−żT)+γ2 (z−zT); and its derivative may be obtained as follows
Ė
z
=a
z
{dot over (u)}
1
+{dot over (a)}
z
u
1
+{dot over (b)}
z (11)
it is possible to use the multi-layer zeroing neurodynamic method to design
Ė
z
=−γE
z (12)
equations (10) and (11) are substituted into equation (12) and collating is performed to obtain
a
z
{dot over (u)}
1=γ(azu1+bz)−{dot over (b)}z−{dot over (a)}zu1 (13).
Further, the step of designing a deviation function regarding ux and uy and a corresponding position controller for the unmanned aircraft specifically consists in that:
for the horizontal position x, according to the target value xT and the actual value x in the X axis, a deviation function may be defined as
e
x1
=x−x
T (14)
and its derivative may be obtained as follows
ė
x1
={dot over (x)}−{dot over (x)}
T (15)
in order to converge the actual value x to the target value xT, according to the multi-layer zeroing neurodynamic method, a neurodynamic equation based on the deviation function may be designed as
ė
x1
=−γe
x1 (16)
equations (14) and (15) are substituted into equation (16) and collating is performed to obtain
{dot over (x)}−{dot over (x)}
T+γ(x−xT)=0 (17)
since equation (17) is generally not established in the initial situation and does not contain relevant information of the output control quantities, and the control quantities cannot be solved, a further design is needed, and a definition is then made
e
x2
={dot over (x)}−{dot over (x)}
T+γ(x−xT) (18)
and its derivative may be obtained as follows
ė
x2
={umlaut over (x)}−{umlaut over (x)}
T+γ({dot over (x)}−{dot over (x)}T) (19)
according to the multi-layer zeroing neurodynamic method, a neurodynamic equation based on the deviation function may be designed as
ė
x2
=−γe
x2 (20)
equations (18) and (19) are substituted into equation (20) and collating is performed to obtain
{umlaut over (x)}−{umlaut over (x)}
T+2γ({dot over (x)}−{dot over (x)}T)+γ2(x−xT)=0 (21)
in this way, a deviation function may be defined as
E
x
={umlaut over (x)}−{umlaut over (x)}
T+2γ({dot over (x)}−{dot over (x)}T)+γ2(x−xT) (22)
according to the dynamics equations of the aircraft, equation (22) may be simplified into
E
x
=a
x
u
x
+b
x (23)
where
and bx=−{umlaut over (x)}T+2γ({dot over (x)}−{dot over (x)}T)+γ2(x−xT); and its derivative may be obtained as follows
Ė
x
=a
x
{dot over (u)}
x
+{dot over (a)}
x
u
x
+b
x (24)
it is possible to use the multi-layer zeroing neurodynamic method to design
Ė
x
=−γE
x (25)
equations (23) and (24) are substituted into equation (25) and collating is performed to obtain
a
x
{dot over (u)}
x=−γ(axux+bx)−{dot over (b)}x−{dot over (a)}xux (26)
for the horizontal position y, according to the target value yT and the actual value y in the Y axis, a deviation function may be defined as
e
y1
=y−y
T (27)
and its derivative may be obtained as follows
ė
y1
=y−y
T (28)
in order to converge the actual value y to the target value yT, according to the multi-layer zeroing neurodynamic method, a neurodynamic equation based on the deviation function may be designed as
ė
y1
=−γe
y1 (29)
equations (27) and (28) are substituted into equation (29) and collating is performed to obtain
{dot over (y)}−{dot over (y)}
T+γ(y−yT)=0 (30)
since equation (30) is generally not established in the initial situation and does not contain relevant information of the output control quantities, and the control quantities cannot be solved, a further design is needed, and a definition is then made
e
y2
={dot over (y)}−{dot over (y)}
T+γ(y−yT) (31)
and its derivative may be obtained as follows
ė
y2
=ÿ−ÿ
T+γ({dot over (y)}−{dot over (y)}T) (32)
according to the multi-layer zeroing neurodynamic method, a neurodynamic equation based on the deviation function may be designed as
ė
y2
=−γe
y2 (33)
equations (31) and (32) are substituted into equation (33) and collating is performed to obtain
ÿ−ÿ
T+2γ({dot over (y)}−{dot over (y)}T)+γ2(y−yT)=0 (34)
in this way, a deviation function may be defined as
E
y
=ÿ−ÿ
T+2γ({dot over (y)}−{dot over (y)}T)+γ2(y−yT) (35)
according to the dynamics equations of the aircraft, equation (35) may be simplified into
E
y
=a
y
u
y
+b
y (36)
where
and by=ÿT+2γ({dot over (y)}−{dot over (y)}T)+γ2(y−yT); and its derivative may be obtained as follows
Ė
y
=a
y
{dot over (u)}
y
+{dot over (a)}
y
u
y
+{dot over (b)}
y (37)
it is possible to use the multi-layer zeroing neurodynamic method to design
Ė
y
=−γE
y (38)
equations (36) and (37) are substituted into equation (38) and collating is performed to obtain
a
y
{dot over (u)}
y=γ(ayuy+by)−{dot over (b)}y−{dot over (a)}yuy (39).
Further, according to the designed position controller, the calculation method of inversely solving the target attitude angles ϕT and θT is:
ux and uy solved from equations (26) and (39) are
so that the inversely solved target angle values ϕT and θT are
Further, the step of designing a deviation function regarding the output control quantity u2˜u4 and a corresponding attitude controller of the unmanned aircraft specifically consists in that:
for the roll angle ϕ, according to the target angle ϕT solved in (40) and the actual angle ϕ, a deviation function may be defined as
e
ϕ1=ϕ−ϕT (41)
and its derivative may be obtained as follows
ė
ϕ1={dot over (ϕ)}−{dot over (ϕ)}T (42)
in order to converge the actual value ϕ to the target value ϕT, according to the multi-layer zeroing neurodynamic method, a neurodynamic equation based on the deviation function may be designed as
ė
ϕ1
=−γe
ϕ1 (43)
equations (41) and (42) are substituted into equation (43) and collating is performed to obtain
{dot over (ϕ)}−{dot over (ϕ)}T+γ(ϕ−ϕT)=0 (44)
since equation (44) is generally not established in the initial situation and does not contain relevant information of the output control quantities, and the control quantities cannot be solved, a further design is needed, and a definition is then made
e
ϕ2={dot over (ϕ)}−{dot over (ϕ)}T+γ(ϕ−ϕT) (45)
and its derivative may be obtained as follows
ė
ϕ2={umlaut over (ϕ)}−{umlaut over (ϕ)}T+γ({dot over (ϕ)}−{dot over (ϕ)}T) (46)
according to the multi-layer zeroing neurodynamic method, a neurodynamic equation based on the deviation function may be designed as
ė
ϕ2
=−γe
ϕ2 (47)
equations (45) and (46) are substituted into equation (47) and collating is performed to obtain
{umlaut over (ϕ)}−{umlaut over (ϕ)}T+2γ({dot over (ϕ)}−{dot over (ϕ)}T)+γ2(ϕ−ϕT)=0 (48)
in this way, a deviation function may be defined as
E
ϕ={umlaut over (ϕ)}−{umlaut over (ϕ)}T+2γ({dot over (ϕ)}−{dot over (ϕ)}T)+γ2(ϕ−ϕT) (49)
according to the dynamics equations of the aircraft, equation (49) may be simplified into
E
ϕ
=a
ϕ
u
2
+b
ϕ (50)
where
and its derivative may be obtained as follows
Ė
ϕ
=a
ϕ
{dot over (u)}
2
+{dot over (a)}
ϕ
u
2
+{dot over (b)}
ϕ (51)
according to the multi-layer zeroing neurodynamic method, it is possible to design
Ė
ϕ
=γE
ϕ (52)
equations (50) and (51) are substituted into equation (52) and collating is performed to obtain
a
ϕ
{dot over (u)}
2=−γ(aϕu2+bϕ)−{dot over (b)}ϕ−{dot over (a)}ϕu2 (53)
for the pitch angle θ, according to the target angle θT solved in (40) and the actual angle θ, a deviation function may be defined as
e
θ1=θ−θT (54)
and its derivative may be obtained as follows
ė
θ1={dot over (θ)}−{dot over (θ)}r (55)
in order to converge the actual value θ to the target value θT, according to the multi-layer zeroing neurodynamic method, a neurodynamic equation based on the deviation function may be designed as
ė
θ1
=−γe
θ1 (56)
equations (54) and (55) are substituted into equation (56) and collating is performed to obtain
{dot over (θ)}−{dot over (θ)}T+γ(θ−θT)=0 (57)
since equation (57) is generally not established in the initial situation and does not contain relevant information of the output control quantities, and the control quantities cannot be solved, a further design is needed, and a definition is then made
e
θ2={dot over (θ)}−{dot over (θ)}T+γ(θ−θT) (58)
and its derivative may be obtained as follows
ė
θ2={umlaut over (θ)}−{umlaut over (θ)}T+γ({dot over (θ)}−{dot over (θ)}T) (59)
according to the multi-layer zeroing neurodynamic method, a neurodynamic equation based on the deviation function may be designed as
ė
θ2
=−γe
θ2 (60)
equations (58) and (59) are substituted into equation (60) and collating is performed to obtain
{umlaut over (θ)}−{umlaut over (θ)}T+2γ({dot over (θ)}−{dot over (θ)}T)+γ2(θ−θT)=0 (61)
in this way, a deviation function may be defined as
E
θ={umlaut over (θ)}−{umlaut over (θ)}T+2γ({dot over (θ)}−{dot over (θ)}T)+γ2(θ−θT) (62)
according to the dynamics equations of the aircraft, equation (62) may be simplified into
E
θ
=a
θ
u
3
+b
θ (63)
where
and its derivative may be obtained as follows
Ė
θ
=a
θ
{dot over (u)}
3
+{dot over (b)}
θ (64)
according to the multi-layer zeroing neurodynamic method, it is possible to design
Ė
θ
=−γE
θ (65)
equations (63) and (64) are substituted into equation (65) and collating is performed to obtain
a
θ
{dot over (u)}
3=γ(aθu3+bθ)−{dot over (b)}θ−{dot over (a)}θu3 (66)
for the yaw angle ψ, according to an artificially set angle ψT and the actual angle ψ, a deviation function may be defined as
e
ψ1=ψ−ψT (67)
and its derivative may be obtained as follows
ė
ψ1={dot over (ψ)}−{dot over (ψ)}T (68)
in order to converge the actual value ψ to the target value ψT, according to the multi-layer zeroing neurodynamic method, a neurodynamic equation based on the deviation function may be designed as
ė
ψ1
=−γe
ψ1 (69)
equations (67) and (68) are substituted into equation (69) and collating is performed to obtain
{dot over (ψ)}−{dot over (ψ)}T+γ(ψ−ψT)=0 (70)
since equation (70) is generally not established in the initial situation and does not contain relevant information of the output control quantities, and the control quantities cannot be solved, a further design is needed, and a definition is then made
e
ψ2={dot over (ψ)}−{dot over (ψ)}T+γ(ψ−ψT) (71)
and its derivative may be obtained as follows
ė
ψ2={umlaut over (ψ)}−{umlaut over (ψ)}T+γ({dot over (ψ)}−{dot over (ψ)}T) (72)
according to the multi-layer zeroing neurodynamic method, a neurodynamic equation based on the deviation function may be designed as
ė
ψ2
=−γe
ψ2 (73)
equations (71) and (72) are substituted into equation (73) and collating is performed to obtain
{umlaut over (ψ)}−{umlaut over (ψ)}T+2γ({dot over (ψ)}−{dot over (ψ)}T)+γ2(ψ−ψT)=0 (74)
in this way, a deviation function may be defined as
E
ψ={umlaut over (ψ)}−{umlaut over (ψ)}T+2γ({dot over (ψ)}−{dot over (ψ)}T)+γ2(ψ−ψT) (75)
according to the dynamics equations of the aircraft, equation (75) may be simplified into
E
ψ
=a
ψ
u
4
+b
ψ (76)
where
and its derivative may be obtained as follows
Ė
ψ
=a
ψ
{dot over (u)}
4
+{dot over (a)}
ψ
u
4
+{dot over (b)}
ψ (77)
according to the multi-layer zeroing neurodynamic method, it is possible to design
Ė
ψ
=−γE
ψ (78)
equations (76) and (77) are substituted into equation (78) and collating is performed to obtain
a
ψ
{dot over (u)}
4=−γ(aψu4+bψ)−{dot over (b)}ψ−{dot over (a)}ψu4 (79).
Further, the step in which the altitude controller designed according to the altitude variable z, the position controller designed according to the position variables x and y, and the attitude controller designed according to the attitude control quantities ϕ, θ and ψ together constitute a stable flight controller of the multi-rotor unmanned aircraft specifically consists in that:
a controller of the unmanned aircraft may be obtained according to equations (13), (53), (66) and (79), wherein the controller can be implemented by a network structure; the controller of the unmanned aircraft is capable of controlling the stable flight of the unmanned aircraft; and the controller may be written in the following form:
a zeroing neural network is constructed from the differential equations of the controller, and the control quantities of the unmanned aircraft are solved by means of the zeroing neural network.
Compared with the prior art, the present invention has the following beneficial effects:
1. The multi-layer zeroing neural network has better convergence characteristics, can realize real-time response of the aircraft and has a strong robustness, and the controller system designed according to the neural network is stable and has a good control effect.
2. The present invention is based on the multi-layer zeroing neurodynamic method, the method is described by using a ubiquitous implicit dynamics model, derivative information of various time-varying parameters can be fully utilized from the method and system level, and the method has a certain predictive ability for solving problems, can quickly, accurately and timely approach correct solutions of the problems, and can solve a variety of time-varying problems such as matrices, vectors, algebras and optimization.
Hereafter the present invention will be further described in detail in conjunction with embodiments and appended drawings, but the embodiments of the present invention are not limited thereto.
As shown in
S1: acquiring real-time flight operation data of the aircraft itself by means of an attitude sensor, a position sensor and an altitude sensor mounted to the unmanned aircraft, performing corresponding analysis on a kinematic problem of the aircraft by a processor mounted thereto, and establishing a dynamics model of the aircraft;
One type of rotor flight structure in the multi-rotor aircraft is shown in
Real-time attitude data θ(t), ϕ(t) and ψ(t) of the aircraft may be acquired by sensors such as gyros and accelerometers mounted to the multi-rotor aircraft by means of quaternion algebra, Kalman filtering and other algorithms, and position data x(t), y(t) and z(t) of the aircraft in the three-dimensional space is acquired by using altitude sensors and position sensors.
The definition of aircraft attitude variables is shown in
The multi-rotor aircraft in
(1) six motors of the six-rotor aircraft are defined No. 1 to No. 6 in the clockwise direction;
(2) X axis extends in the direction of No. 1 rotor arm and points to the forward direction of the aircraft through the center of gravity of the fuselage;
(3) Y axis extends in the direction of the axis of symmetry of No. 2 and No. 3 rotor arms and points to the right motion direction of the aircraft through the center of gravity of the fuselage;
(4) Z axis extends upwardly perpendicular to the plane of six rotors and points to the climbing direction of the aircraft through the center of gravity of the fuselage;
(5) the pitch angle θ is an angle between the X axis of the fuselage and the horizontal plane, and is set to be positive when the fuselage is downward;
(6) the roll angle φ is an angle between the Z axis of the fuselage and the vertical plane passing through the X axis of the fuselage, and is set to be positive when the fuselage is rightward; and
(7) the yaw angle ψ is an angle between the projection of the X axis of the fuselage on the horizontal plane and the X axis of a geodetic coordinate system, and is set to be positive when the head of the aircraft is leftward.
According to different rotor-type aircraft models, physical model equations and dynamics equations for the aircraft are established, and dynamics analysis may be completed by means of the following aircraft dynamics modeling steps:
defining a ground coordinate system E and a fuselage coordinate system B, and establishing a relationship E=RB between the ground coordinate system and the fuselage coordinate system by means of a transformation matrix R, where R may be expressed as
where ϕ is a roll angle, θ is a pitch angle, and ψ is a yaw angle;
ignoring the effect of an air resistance on the aircraft, the stress analysis (in the form of Newton-Euler) of the aircraft system in the fuselage coordinate system is as follows
where m is the total mass of the aircraft, I3×3 is a unit matrix, I is an inertia matrix, V is a linear velocity in the fuselage coordinate system, ω is an angular velocity in the fuselage coordinate system, F is a resultant external force, and τ is a resultant torque.
According to the above equation, the dynamics equations of the aircraft can be obtained as follows
where l is an arm length; g is a gravitational acceleration; x, y, z are respectively position coordinates of the aircraft in the ground coordinate system; Ix, Iy, Iz are respectively rotational inertia of the aircraft in X, Y and Z axes; ux=cos ϕ sin θ cos ψ+sin ϕ sin ψ; uy=cos ϕ sin θ sin ψ−sin ϕ cos ψ; and u1, u2, u3, u4 are output control quantities.
S2: designing a controller of the unmanned aircraft according to a multi-layer zeroing neurodynamic method;
A deviation function regarding the output control quantity u1 is designed from the vertical altitude z, an altitude controller of the multi-rotor unmanned aircraft is designed according to this deviation function, u1 is solved; a deviation function regarding ux and uy and a corresponding position controller for the multi-rotor unmanned aircraft are designed from the horizontal positions x and y, and target attitude angles ϕT and θT are inversely solved; and a deviation function regarding the output control quantities u2˜u4 is designed from the roll angle ϕ, the pitch angle θ and the yaw angle ψ according to the target attitude angles, and a corresponding multi-layer zeroing neural network controller is designed. The specific steps are as follows:
for the vertical altitude z, according to the target altitude value zT and the actual altitude value z in the Z axis, a deviation function may be defined as
e
z1
=z−z
T (1)
and its derivative may be obtained as follows
ė
z1
=ż−ż
T (2)
in order to converge the actual value z to the target value zT, according to the multi-layer zeroing neurodynamic method, a neurodynamic equation based on the deviation function may be designed as
ė
z1
=−γe
z1 (3)
where γ is a constant;
equations (1) and (2) are substituted into equation (3) and collating is performed to obtain
ż−ż
T+γ(z−zT)=0 (4)
since equation (4) is generally not established in the initial situation and does not contain relevant information of the output control quantities, and the control quantities cannot be solved, a further design is needed, and a definition is then made
e
z2
=ż−ż
T+γ(z−zT) (5)
and its derivative may be obtained as follows
ė
z2
={umlaut over (z)}−{umlaut over (z)}
T+γ(ż−żT) (6)
according to the multi-layer zeroing neurodynamic method, a neurodynamic equation based on the deviation function may be designed as
ė
z2
=−γe
z2 (7)
equations (5) and (6) are substituted into equation (7) and collating is performed to obtain
{umlaut over (z)}−{umlaut over (z)}
T+2γ(ż−żT)+γ2(z−zT)=0 (8)
in this way, a deviation function may be defined as
E
z
={umlaut over (z)}−{umlaut over (z)}
T+2γ(ż−żT)+γ2(z−zT) (9)
according to the dynamics equations of the aircraft, (9) may be simplified into
E
z
=a
z
u
1
+b
z (10)
where
and bz=−g−{umlaut over (z)}T+2γ(ż−żT)+γ2 (z−zT); and its derivative may be obtained as follows
Ė
z
=a
z
{dot over (u)}
1
+{dot over (a)}
z
u
1
+{dot over (b)}
z (11)
it is possible to use the multi-layer zeroing neurodynamic method to design
Ė
z
=−γE
z (12)
equations (10) and (11) are substituted into equation (12) and collating is performed to obtain
a
z
{dot over (u)}
1=−γ(azu1+bz)−{dot over (b)}z−{dot over (a)}zu1 (13).
for the horizontal position x, according to the target value xT and the actual value x in the X axis, a deviation function may be defined as
e
x1
=x−x
T (14)
and its derivative may be obtained as follows
ė
x1
={dot over (x)}−{dot over (x)}
T (15)
in order to converge the actual value x to the target value xT, according to the multi-layer zeroing neurodynamic method, a neurodynamic equation based on the deviation function may be designed as
ė
x1
=−γe
x1 (16)
equations (14) and (15) are substituted into equation (16) and collating is performed to obtain
{dot over (x)}−{dot over (x)}
T+γ(x−xT)=0 (17)
since equation (17) is generally not established in the initial situation and does not contain relevant information of the output control quantities, and the control quantities cannot be solved, a further design is needed, and a definition is then made
e
x2
={dot over (x)}−{dot over (x)}
T+γ(x−xT) (18)
and its derivative may be obtained as follows
ė
x2
={umlaut over (x)}−{umlaut over (x)}
T+γ({dot over (x)}−{dot over (x)}T) (19)
according to the multi-layer zeroing neurodynamic method, a neurodynamic equation based on the deviation function may be designed as
ė
x2
=−γe
x2 (20)
equations (18) and (19) are substituted into equation (20) and collating is performed to obtain
{umlaut over (x)}−{umlaut over (x)}
T+2γ({dot over (x)}−{dot over (x)}T)+γ2(x−xT)=0 (21)
in this way, a deviation function may be defined as
E
x
={umlaut over (x)}−{umlaut over (x)}
T+2γ({dot over (x)}−{dot over (x)}T)+γ2(x−xT) (22)
according to the dynamics equations of the aircraft, equation (22) may be simplified into
E
x
=a
x
u
x
+b
x (23)
where
and bx=−{umlaut over (x)}T+2γ({dot over (x)}−{dot over (x)}T)+γ2 (x−xT); and its derivative may be obtained as follows
Ė
x
=a
x
{dot over (u)}
x
+{dot over (a)}
x
u
x
+b
x (24)
it is possible to use the multi-layer zeroing neurodynamic method to design
Ė
x
=−γE
x (25)
equations (23) and (24) are substituted into equation (25) and collating is performed to obtain
a
x
{dot over (u)}
x=−γ(axux+bx)−{dot over (b)}x−{dot over (a)}xux (26)
for the horizontal position y, according to the target value yT and the actual value y in the Y axis, a deviation function may be defined as
e
y1
=y−y
T (27)
and its derivative may be obtained as follows
ė
y1
=y−y
T (28)
in order to converge the actual value y to the target value yT, according to the multi-layer zeroing neurodynamic method, a neurodynamic equation based on the deviation function may be designed as
ė
y1
=−γe
y1 (29)
equations (27) and (28) are substituted into equation (29) and collating is performed to obtain
{dot over (y)}−{dot over (y)}
T+γ(y−yT)=0 (30)
since equation (30) is generally not established in the initial situation and does not contain relevant information of the output control quantities, and the control quantities cannot be solved, a further design is needed, and a definition is then made
e
y2
={dot over (y)}−{dot over (y)}
T+γ(y−yT) (31)
and its derivative may be obtained as follows
ė
y2
=ÿ−ÿ
T+γ({dot over (y)}−{dot over (y)}T) (32)
according to the multi-layer zeroing neurodynamic method, a neurodynamic equation based on the deviation function may be designed as
ė
y2
=−γe
y2 (33)
equations (31) and (32) are substituted into equation (33) and collating is performed to obtain
ÿ−ÿ
T+2γ({dot over (y)}−{dot over (y)}T)+γ2(y−yT)=0 (34)
in this way, a deviation function may be defined as
E
y
=ÿ−ÿ
T+2γ({dot over (y)}−{dot over (y)}T)+γ2(y−yT) (35)
according to the dynamics equations of the aircraft, equation (35) may be simplified into
E
y
=a
y
u
y
+b
y (36)
where
by=−ÿT+2γ({dot over (y)}−{dot over (y)}T)+γ2 (y−yT); and its derivative may be obtained as follows
Ė
y
=a
y
{dot over (u)}
y
+{dot over (a)}
y
u
y
+{dot over (b)}
y (37)
it is possible to use the multi-layer zeroing neurodynamic method to design
Ė
y
=−γE
y (38)
equations (36) and (37) are substituted into equation (38) and collating is performed to obtain
a
y
{dot over (u)}
y=γ(ayuy+by)−{dot over (b)}y−{dot over (a)}yuy (39)
ux and uy may be solved from equations (26) and (39),
so that the inversely solved target angle values ϕT and θT may be
for the roll angle ϕ, according to the target angle ϕT solved in (40) and the actual angle ϕ, a deviation function may be defined as
e
ϕ1=ϕ−ϕT (41)
and its derivative may be obtained as follows
ė
ϕ1={dot over (ϕ)}−{dot over (ϕ)}T (42)
in order to converge the actual value ϕ to the target value ϕT, according to the multi-layer zeroing neurodynamic method, a neurodynamic equation based on the deviation function may be designed as
ė
ϕ1
=−γe
ϕ1 (43)
equations (41) and (42) are substituted into equation (43) and collating is performed to obtain
{dot over (ϕ)}−{dot over (ϕ)}T+γ(ϕ−ϕT)=0 (44)
since equation (44) is generally not established in the initial situation and does not contain relevant information of the output control quantities, and the control quantities cannot be solved, a further design is needed, and a definition is then made
e
ϕ2={dot over (ϕ)}−{dot over (ϕ)}T+γ(ϕ−ϕT) (45)
and its derivative may be obtained as follows
ė
ϕ2={umlaut over (ϕ)}−{umlaut over (ϕ)}T+γ({dot over (ϕ)}−{dot over (ϕ)}T) (46)
according to the multi-layer zeroing neurodynamic method, a neurodynamic equation based on the deviation function may be designed as
ė
ϕ2
=−γe
ϕ2 (47)
equations (45) and (46) are substituted into equation (47) and collating is performed to obtain
{umlaut over (ϕ)}−{umlaut over (ϕ)}T+2γ({dot over (ϕ)}−{dot over (ϕ)}T)+γ2(ϕ−ϕT)=0 (48)
in this way, a deviation function may be defined as
E
ϕ={umlaut over (ϕ)}−{umlaut over (ϕ)}T+2γ({dot over (ϕ)}−{dot over (ϕ)}T)+γ2(ϕ−ϕT) (49)
according to the dynamics equations of the aircraft, equation (49) may be simplified into
E
ϕ
=a
ϕ
u
2
+b
ϕ (50)
where
and its derivative may be obtained as follows
Ė
ϕ
=a
ϕ
{dot over (u)}
2
+{dot over (a)}
ϕ
u
2
+{dot over (b)}
ϕ (51)
according to the multi-layer zeroing neurodynamic method, it is possible to design
Ė
ϕ
=γE
ϕ (52)
equations (50) and (51) are substituted into equation (52) and collating is performed to obtain
a
ϕ
{dot over (u)}
2=γ(aϕu2+bϕ)−{dot over (b)}ϕ−{dot over (a)}ϕu2 (53)
for the pitch angle θ, according to the target angle θT solved in (40) and the actual angle θ, a deviation function may be defined as
e
θ1=θ−θT (54)
and its derivative may be obtained as follows
ė
θ1={dot over (θ)}−{dot over (θ)}r (55)
in order to converge the actual value θ to the target value θT, according to the multi-layer zeroing neurodynamic method, a neurodynamic equation based on the deviation function may be designed as
ė
θ1
=−γe
θ1 (56)
equations (54) and (55) are substituted into equation (56) and collating is performed to obtain
{dot over (θ)}−{dot over (θ)}T+γ(θ−θT)=0 (57)
since equation (57) is generally not established in the initial situation and does not contain relevant information of the output control quantities, and the control quantities cannot be solved, a further design is needed, and a definition is then made
e
θ2={dot over (θ)}−{dot over (θ)}T+γ(θ−θT) (58)
and its derivative may be obtained as follows
ė
θ2={umlaut over (θ)}−{umlaut over (θ)}T+γ({dot over (θ)}−{dot over (θ)}T) (59)
according to the multi-layer zeroing neurodynamic method, a neurodynamic equation based on the deviation function may be designed as
ė
θ2
=−γe
θ2 (60)
equations (58) and (59) are substituted into equation (60) and collating is performed to obtain
{umlaut over (θ)}−{umlaut over (θ)}T+2γ({dot over (θ)}−{dot over (θ)}T)+γ2(θ−θT)=0 (61)
in this way, a deviation function may be defined as
E
θ={umlaut over (θ)}−{umlaut over (θ)}T+2γ({dot over (θ)}−{dot over (θ)}T)+γ2(θ−θT) (62)
according to the dynamics equations of the aircraft, equation (62) may be simplified into
E
θ
=a
θ
u
3
+b
θ (63)
where
and its derivative may be obtained as follows
Ė
θ
=a
θ
{dot over (u)}
3
+{dot over (b)}
θ (64)
according to the multi-layer zeroing neurodynamic method, it is possible to design
Ė
θ
=−γE
θ (65)
equations (63) and (64) are substituted into equation (65) and collating is performed to obtain
a
θ
{dot over (u)}
3=−γ(aθu3+bθ)−{dot over (b)}θ−{dot over (a)}θu3 (66)
for the yaw angle ψ, according to the target angle ψT solved in (40) and the actual angle ψ, a deviation function may be defined as
e
ψ1=ψ−ψT (67)
and its derivative may be obtained as follows
ė
ψ1={dot over (ψ)}−{dot over (ψ)}T (68)
in order to converge the actual value ψ to the target value ψT, according to the multi-layer zeroing neurodynamic method, a neurodynamic equation based on the deviation function may be designed as
ė
ψ1
=−γe
ψ1 (69)
equations (67) and (68) are substituted into equation (69) and collating is performed to obtain
{dot over (ψ)}−{dot over (ψ)}T+γ(ψ−ψT)=0 (70)
since equation (70) is generally not established in the initial situation and does not contain relevant information of the output control quantities, and the control quantities cannot be solved, a further design is needed, and a definition is then made
e
ψ2={dot over (ψ)}−{dot over (ψ)}T+γ(ψ−ψT) (71)
and its derivative may be obtained as follows
ė
ψ2={umlaut over (ψ)}−{umlaut over (ψ)}T+γ({dot over (ψ)}−{dot over (ψ)}T) (72)
according to the multi-layer zeroing neurodynamic method, a neurodynamic equation based on the deviation function may be designed as
ė
ψ2
=−γe
ψ2 (73)
equations (71) and (72) are substituted into equation (73) and collating is performed to obtain
{umlaut over (ψ)}−{umlaut over (ψ)}T+2γ({dot over (ψ)}−{dot over (ψ)}T)+γ2(ψ−ψT)=0 (74)
in this way, a deviation function may be defined as
E
ψ={umlaut over (ψ)}−{umlaut over (ψ)}T+2γ({dot over (ψ)}−{dot over (ψ)}T)+γ2(ψ−ψT) (75)
according to the dynamics equations of the aircraft, equation (75) may be simplified into
E
ψ
=a
ψ
u
4
+b
ψ (76)
where
and its derivative may be obtained as follows
Ė
ψ
=a
ψ
{dot over (u)}
4
+{dot over (a)}
ψ
u
4
+{dot over (b)}
ψ (77)
according to the multi-layer zeroing neurodynamic method, it is possible to design
Ė
ψ
=−γE
ψ (78)
equations (76) and (77) are substituted into equation (78) and collating is performed to obtain
a
ψ
{dot over (u)}
4=−γ(aψu4+bψ)−{dot over (b)}ψ−{dot over (a)}ψu4 (79).
S3: solving output control quantities of motors of the aircraft by the designed multi-layer zeroing neural network controller using the acquired real-time operation data of the aircraft and target attitude data; and
A controller of the unmanned aircraft may be obtained according to multi-layer zeroing neural network equations (13), (53), (66) and (79), wherein the controller can be implemented by a network structure; the controller of the unmanned aircraft is capable of controlling the stable flight of the unmanned aircraft; and the controller may be written in the following form:
a zeroing neural network is constructed from the differential equations of the controller, and the control quantities of the unmanned aircraft are solved by means of the zeroing neural network.
S4: transferring solution results of step S3 to a motor governor of the aircraft, and controlling powers of the motors according to a relationship between the control quantities solved by the controller and the powers of the motors of the multi-rotor unmanned aircraft, so as to control the motion of the unmanned aircraft;
according to a power allocation scheme for the unmanned aircraft, the control quantities solved by the controller have the following relationship with the powers of the motors of the multi-rotor unmanned aircraft:
U=WF
where U=[u1 u2 u3 u4]T refers to the control quantities of the unmanned aircraft, F=[F1 . . . Fj]T refers to the powers of the motors of the unmanned aircraft, j is the number of the motors of the multi-rotor unmanned aircraft, and W is a power allocation matrix of the unmanned aircraft.
In order to obtain the power required by the corresponding motor, the corresponding powers of the motors F may be obtained by means of matrix inversion or pseudo-inversion, i.e.
F=W
−1
U
if the matrix W is a square matrix and is reversible, W−1 is obtained by means of an inverse operation, and if W is not a square matrix, W−1 is solved by means of a corresponding pseudo-inverse operation; and the desired powers F of the motors are finally obtained, input voltages of the motors are controlled according to a relationship between the voltages and powers of the motors to control the rotational speeds of the motors, and the control over the powers of the motors is finally realized to complete stable flight control over the unmanned aircraft. Since different numbers and structures of the rotors affect the control mode of the multi-rotor unmanned aircraft, the matrix W has different forms depending on the structure and the number of the rotors.
Taking the six-rotor unmanned aircraft as an example, the power allocation thereof has the following relationship:
The relationship may be further written as
Since W is not a square matrix in the above relationship, W−1 may be obtained by means of pseudo-inversion, i.e.
In this way, the power allocation of the six-rotor unmanned aircraft and the corresponding actual motor control quantity may be obtained to control the operation of the motor.
The foregoing description is merely illustrative of preferred embodiments of the present invention, but the scope of protection of the present invention is not limited thereto. Equivalent replacements or modifications made to the inventive concept or technical solution of the present invention by a person skilled in the art within the scope of the disclosure of the present invention fall into the scope of protection of the present invention.
Number | Date | Country | Kind |
---|---|---|---|
201711059466.9 | Nov 2017 | CN | national |
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/CN2018/112114 | 10/26/2018 | WO | 00 |