Abstract
This paper describes an adaptive control approach of three-dimensional (3D) nonlinear path following for a fix-wing micro aerial vehicle (MAV) with wind disturbances in complicated terrain. We derive the control laws of course and flight path angle by the constructed Lyapunov function applying vector field theory based on the error equations in the Serret-Frenet frame, which are built by virtue of the relationship between the nonlinear desired trajectory and MAV. The 3D desired trajectory is fitted by using the fifth-order B-splines method through a sequence of waypoints created and sent by the ground station. Furthermore, the control laws are proved to be converged asymptotically and stably based on Lyapunov stability arguments. The results of the flight test experiment show that the flight could perform well under wind disturbances with a good trajectory tracking precision and high flight quality.
Keywords
1. Introduction
Consisting of such advantages as limited volume, low mass, reasonable cost and rapid transportation, Micro-Aerial-Vehicles (MAVs) have demonstrated successful application in the military and civilian fields [1–5]. Furthermore, the path following problem of how to devise a simple real-time guidance law has proved to be quite challenging and has been a hot topic of research for many years as the problem will cause an ideal vehicle to converge at a defined path [6]. In practice, formation flying, target interception, border patrol are potential applications of MAVs, as well as convoy protection and air traffic holding patterns [7–10].
For MAVs, the wind disturbances, dynamic characteristics, the quality of sensing and control all limit the achievable tracking precision. As we know, primarily, wind speed is commonly 20–60 percent of the desired airspeed [11]. The effect deriving from this disturbance must be resolved by effective path tracking strategies. Then, for most fixed-wing MAVs, the minimum turn radius is in the range of 10–50 m, which produces a primary constraint on the spatial frequency of desired paths. Meanwhile, the high-resolution state sensors with high-frequency updates cannot be typically applied in MAVs. Thus, it is significant for research on the path tracking algorithms to improve the tracking precision, especially for MAVs.
Generally, people used MAVs in aerial photography and investigation, which require steady path following of a straight-line segment [11–13]. However, in complicated flight terrain, nonlinear path following would be required to perform special tasks and improve the flying quality. Before executing the flight missions, the nonlinear path is usually created by a sequence of waypoints which are uploaded from the ground station. To smooth the trajectory, the fitting method should be adapted. Furthermore, this method should also consider kinematic constraints on the MAV motion, expressed as upper bounds on the absolute values of velocity, acceleration and angular velocity. In [14] they fitted the waypoints into a smooth trajectory by fifth-order B-splines and also achieved good results in simulation with an optimal path following for the robot. In this paper, the fifth-order B-splines scheme is utilized in the overall nonlinear trajectory because of its simplicity and reliability in practice. The actual trajectories consist of a straight-line segment, an arc segment and other nonlinear segments. According to the criterion of the minimum energy and minimum manoeuvring, Zhu implemented the lateral path following based on the PID feedback method in simulation [8]. Baker achieved the path following using the PID control method based on a trajectory of coastline from a visual sensor [15]. Practically, the disturbances of the wind field affected to a fair extent the tracking precision for the MAVs. However, the paths of the straight-line segment and arc segment based on the vector field still could be tracked successfully, and their stability and convergence have been proved by Lyapunov functions [6, 11, 16]. In some special applications, other nonlinear paths, except for the arc segment, need to be analysed. Nonlinear path following with global asymptotic stability based on the dynamic model for ground-based robots also accomplished good results in simulation [17].
In the flight for MAVs, the velocity, angular rate and acceleration are continuously changing, thus it is important to fit and smooth the waypoints to improve the accuracy and quality of flight tracking. Firstly, the 3Dnonlinear path is designed by a sequence of waypoints applying the fifth-order B-splines method. Secondly, the error kinematic model for MAV is constructed by the position relationship between the nonlinear path and MAV. Then adaptive control laws for the course and flight path angle with anti-constant wind is established to ensure the global asymptotic stability of nonlinear tracking errors. Finally, the flight tests experiments have shown the effectiveness of the proposed method.
2. 3 D Nonlinear trajectory fitting
In typical applications, the flight trajectories are determined by a sequence of waypoints from the ground station. In order to generate smooth trajectories which can be effectively computed and memorized in real-time by the micro navigation computer in an MAV, the spline-functions are usually involved [14]. In this paper, the 3D trajectories with parameters, including continuous velocity, acceleration and derivative of acceleration, are designed by using the fifth-order B-splines. Therefore, the results of the first-order to third-order derivatives of trajectories are the continuous desired velocity, acceleration and derivative of the acceleration. The 3D trajectory is demonstrated as
where Ω5 is the basic function of the fifth-order B-splines, n is the number of waypoints, s (a ≤ s ≤ b) is the arc length and (cxj,cyj,czj) is the control point.
In order to verify the effectiveness of the fifth-order B-splines' fitting method, a trajectory with solid-line in Fig.1 is fitted by a sequence of 21 waypoints. From Fig.1 we know that the circles are waypoints and the stars are control points. Fig.2 shows the results of first-order to third-order derivatives of 3D trajectory. From above, the solid lines are the derivative results of x(s), the dash-dot lines are the derivative results of y(s) and the dashed lines are the derivative results of z(s), the trajectories show continuous kinematic characteristics, which improve the flight trajectory tracking precision and flight quality.

The 3D trajectory fitted by a fifth-order B-splines method

The first-order to third-order derivatives of 3D trajectory
3. 3 D Trajectory error modelling
In this paper, the high frequency outputs of position
where Ψ is the carrier heading, χ c is the target course, γc is the target flight path angle, α is the response coefficient of course and β is the response coefficient of flight path angle.
The Geometric graph among the MAV, desired trajectory and inertial frame is shown in Fig.3. We know that the distance vector of the vehicle's centre of gravity Q in the inertial frame {I} can be expressed by, the distance vector of the tracking point P on the desired path in {I} can be denoted by in Serret-Frenet frame {F}, the distance vector between the P and Q in {I} is in {F}, the {B} is the body frame for MAV, is the trajectory tangent angle, is the trajectory velocity of P and is the tangent direction coordinate of P in {F}.

Geometric graph among MAV, desired trajectory and inertial frame
Let
be the rotation matrix from {I} to {F}, parameterized locally by the angles χf and χf. Then the angular velocity on P can be expressed in {I} to yield
where the values of
where τ(s) and ς(s) denote the path curvature. The velocity of P in {I} can be expressed in {F} to yield
It is also straightforward to compute the velocity of Q in {I} as
Multiplying the above equation on the left by R gives the velocity of Q in {I} expressed in {F} as
Using the relations
and
Eq. (8) can be rewritten as
Solving for ėl, ėd and ėh yields
Finally from Eq. (2) and (9), the trajectory error kinematic model can be expressed as
We can conclude that the tracking problem can be substituted by the problem that the errors in the formula (10) tend to zero. According to the error equations, in the nonlinear path following process, if the ground speed Vg, position (x,y,z), course χ, desired course χf, flight path angle γ, desired flight path angle γ f , forward error el, lateral error ed and longitude error eh are determined, the target course χ c and flight path angle γ c can be calculated.
4. Adaptive Control Laws
In order to achieve nonlinear trajectory tracking, the control laws of course χ
c
and flight path angle γ
c
are designed to make the errors tend to zero according to the formula (10). From the distance errors of ed and eh, and the vector field theory [11], the desired course error and flight path angle error are assumed as
where χ ∞ ∈ (0,π/2] and γ∞ ∈ (0,π/2] are maximums of desired course error and desired flight path angle error with absolute value when ed and eh is the infinity respectively, k > 0 and m > 0 are the coefficients about the dynamic characteristic for an MAV.
From formula (11) we will obtain that when ed → 0 then χd(ed) → 0 and eh → 0 then γ h (eh) → 0. Thereby, -ed sin(χ d (ed)) ≥ 0 and eh sin(γ h (eh)) ≥ 0, for ed,eh ∈ R are obviously satisfied.
From above, the Lyapunov function can be constructed from formulae (10) and (11) as follows
where, the first item of Lyapunov function is to make the distance error between the MAV and the desired trajectory tend to zero; the second item is to satisfy desired course error as close as possible, and the third item is to bring desired flight path angle error as close as possible.
Furthermore, the time derivative of W results in
and then
Therefore, the control laws can be designed as follows
where kχ, kγ, kl and η are the coefficients which make the state variables
In order to validate the stability of the control laws of course and flight path angle, taking formula (14) into formula (13), we can obtain as follows
From the above equation, if only ed = el = eh = 0, χd = χf, and γh = γf then Ẇ = 0, and if otherwise, then Ẇ < 0. According to the Lyapunov stability theorem, the
5. Special trajectory analysis – straight-line segments in 3D space
As we know, the straight-line segments in space for 3D path following can be defined by formula (1)
where (x0,y0,z0) is the starting point; λ and ρ is the flight path angle and course for the straight line respectively.
With formulae (5) and (16), we can get
Finally, the control laws of course and flight path angle for straight path following in 3D space are derived as
6. Results and analysis of flight tests
In this section, experimental results from implementing the proposed 3D nonlinear path following algorithm are discussed. First, the experimental system is briefly introduced and then the flight test results of 3D path following are presented.
6.1 Experimental system
The demonstration system is mainly composed of an MAV (the basic parameters are shown in Table 1) and an autopilot system (both of which are shown in Fig. 4). The autopilot system plays a vital role in the MAV system because it is in charge of raw data collection, which is carried out by an assemblage of diverse sensors. The sensor inputs consist of many parts as follows: gyroscopes (three axis), accelerometers (three axis), magnetometers (three axis), static and dynamic pressure, and miniature GPS receiver. The signal process hardware system mainly includes a digital signal processor (DSP) and a microcontroller. All the inertial devices and sensors are MEMS-based, while other hardware components are solid state. In addition, the DSP enables sophisticated algorithms of error compensation, strapdown and Kalman filter with 15 states [18], which is able to calculate the angular rates w, acceleration a, flight path angle γ, roll angle φ, position (x,y,z) and ground speed Vg. Similarly, with the results of DSP, the controller has the ability to implement complicated flight control functions including a fully autonomous flight controller. In practice, the operational precision measured by the sensors and estimated by the filters for an MAV also has an important effect on good-performance in the autonomous flight controller, whose benchmark is a highly accurate Position Orientation System (POS) [19]. The comparative results were summarized in Table 2.

The MAV and autopilot
The basic parameters for the MAV
The navigation measurement precision for the autopilot
The parameters in flight can be taken as kl = 0.5, kχ =0.005, kγ =0.005, χ∞ = π/2, γ∞/4, k = 0.05, m = 0.05, α = 0.8, β = 0.8, η = 2000.
6.2 Flight test results for 3D path following
In this paper, the straight-line segments in space for 3D path following are employed to illuminate the tracing precision of the proposed method. The experimental results of flight trajectory with x-y-height are shown in Fig. 5 with solid-line segments and the dashed-line segments are the referenced paths. We can see that the starts of No.1(-1000, 1000, 500), No.2 (1000,1000, 500), No.3(1000,-3000, 500) and No.4(-1000,-3000, 500) are cruising waypoints, and the starts of No.5 (50,700,450), No.6 (50,-150,410), No.7 (-150,-150,410), No.8 (-150,700,390), No.9 (50,700,390), No.10 (50,-150,340), No.11 (-150,-150,340), No.12 (-150,700,320), No.13 (50, 700, 320) and No.14 (50, 550, 310) are automatically descending waypoints.

The 3D flight path
Fig. 5 shows that the flight path is basically consistent with the expected track, and in cruising state, the tracking precision has a standard deviation of 1.2 m. Since in the corner part of the flight path the MAV could not achieve the expected angle rate, besides, the goal roll angle is limited and the wingspan manoeuvrability of the MAV is long and poor, therefore the flight path could not be in accordance with the desired track and the overshoot appeared in flight. The state variables of χ, γ, φ, height hp, airspeed Va and Vg in flight process are in Fig. 6–11

The course for 3D flight path

The flight path angle for 3D flight path

The roll for 3D flight path

The height for 3D flight path

The airspeed for 3D flight path

The ground velocity for 3D flight path
In Fig. 6, when the MAV follows the directions of north, west, south, east, the courses are holding at about 360, 270, 180, 90 degrees respectively. In Fig. 7, when the MAV is in the cruising state, the flight path angle keeps at about zero, and when the MAV is in the descending state, the flight path angle changes with the desired path. In Fig. 8, the max of φ is about 10 degrees in the turn state. In Fig. 9, the height almost maintains at 500 m in cruising state with a standard deviation of 1.5 m. In the experiment, the airspeed is controlled at a constant of about 30 m/s to keep the engine in a steady state shown in Fig. 10, and we can see that the airspeed is consistent with the target airspeed. Furthermore, from the ground speed in Fig.11 we can conclude that the wind speed is about 5.3 m/s in cruising state.
The 3D flight path has demonstrated that the proposed method has good repeatability and adaptability. Therefore, the results of flight experiments have proved that the proposed nonlinear adaptive flight path tracking control method is effective and practical.
7. Conclusion
In this paper, we have proposed a new approach for three-dimensional nonlinear path following based on the use of Lyapunov theory for MAVs. To the best of our knowledge, the designed adaptive control method is not dependent on the dynamic model of MAVs and can also be achieved in application with simple hardware. The algorithm can be applied to following the 3D smooth nonlinear trajectory, which is fitted by an arbitrary sequence of waypoints using the fifth-order B-splines method and is proved to have high flight quality. Finally, the flight experiment of 3D path following achieves the high trajectory tracking precision with standard deviations of 1.5 m in height direction and 1.2 in plane geometry respectively in the wind disturbances of 5.3 m/s.
Footnotes
8. Acknowledgements
This work is partially supported by National Natural Science Foundation of China (61121003, 61273033) and the Science and Technology on Inertial Laboratory.
