Abstract

A control algorithm that is robust with respect to wind disturbances for a quadrotor UAV attitude dynamics is presented. The proposed approach consists of a high-gain observer based on a discontinuous technique. Such an algorithm is embedded on board the quadrotor. The high-gain observer estimates external disturbances such as wind and parameter uncertainties, and a control algorithm is designed to compensate these undesired effects. The observer design is based on Lyapunov stability theory; simulation results and experiments validate the nonlinear observer performance and robustness of the approach under windy conditions. Also, a photogrammetry survey was carried out to develop Digital Elevation Models in order to experimentally demonstrate the effectiveness of our approach. The accuracy of such models was compared and the performance improvement is demonstrated.

1. Introduction

The research area of Unmanned Aerial Vehicles (UAVs or drones) has observed a rapid growth in the last decade. This is due to the ability of UAVs to effectively perform a wide range of applications at low cost and safely manage human resources. Nowadays, drones are being used in several outdoors missions including monitoring, agricultural services, mapping and photographing, battle damage assessment, border interdiction prevention, among others [1, 2]. In order to accomplish the aforementioned applications, it is required to guarantee a stable flight of the UAV by means of control algorithms.

1.1. State of the Art of Robust Controllers for UAVs

Several works propose control algorithms for UAVs to counteract wind effects within the limits of the UAV flight envelope. In [3], the authors employ an extended state observer to estimate aerodynamic disturbances for an UAV coaxial-rotor; such an approach was only tested in simulations. In [4], the authors propose a Terminal Sliding Mode Control for position stabilization of a quadrotor. Such a controller does not estimate any disturbance; however the robustness of the controller relies on the properties of sliding mode closed-loop system. Reference [5] presents a robust adaptive altitude control on ; the authors present some experimental results of a test bench where a quadrotor is attached to a bar limiting their movements. In [6], a controller with a disturbance observer is designed to stabilize the rotational error dynamics of a fixed-wing morphing UAV. Reference [7] solved the problem of guidance of a fixed-wing UAV under wind disturbances using a kinematic model based on Serret-Frenet framework. The authors assume that wind disturbances are quasiconstant; simulation results demonstrate the effectiveness of their results. On the other hand, control schemes are proposed with an accurate system model where the uncertainties of the system are not considered. For instance, in [8] a nonlinear disturbance observer is designed to solve the problem of disturbance estimation for dynamical systems based on the relationship between disturbance and output. Several works have demonstrated that the use of robust high-gain observers interconnected with controllers ameliorates the system robustness [9]. As one can see in some of the aforementioned works, under certain conditions and assumptions, observers are capable of estimating certain system disturbances such as wind gusts effects. Such an approach is investigated in this paper.

1.2. State of the Art of Observers and Control

From control theory perspective, some authors have shown that the use of state observers interconnected with controllers provides robustness to the closed-loop system [9, 10]. In this regard, sliding mode and high-gain observers have been an effective approach in handling disturbances and modeling uncertainties in different types of systems. More recent research of nonlinear systems based on dynamical transformations to obtain an unknown parameter canonical representation are presented in [11, 12]. Adaptive observers for linear systems with a parameter adaptation algorithm has been presented in [13, 14]. Both state and disturbances are estimated for MIMO linear systems assuming that detectability and persistently exciting (PE) hold in [1518]. As an alternative to the adaptive approach, various robust techniques have been considered. The most relevant are the sliding mode technique investigated in [15, 19, 20]. Regarding the use of some of the above-mentioned theoretic schemes in UAVs, we can cite [21], where a PID control technique to maintain a UAV in hover under intense turbulent environments is presented. Also, [22] proposes a design and implementation of a simple but effective feed-forward controller for wind gust compensation. Such an approach provides a stable and accurate flight under windy conditions. In [23, 24] some robust altitude controllers have been proposed for miniature quadrotors; however such studies are carried out in controlled environments.

1.3. State of the Art of Environmental Studies Using Drones

One of the drone applications is in the area of photography applied to environmental studies of rivers and watersheds, which allow the estimation of the main morphometric features of these environmental systems such as volume, surface, length, depth, among others [25, 26]. Environmental factors such as wind gusts affect the quality of data acquisition (photographs) during the construction of high resolution Digital Elevation Models (DEM). These models are used to study the terrain elevations and to model the hydrodynamics and water quality of waterbodies [27]. From this point of view, it is important to obtain reliable data to ensure the accuracy of such models. During a photogrammetry survey, DEMs accuracy can be affected by drone angle movements produced by wind, causing a distortion in the photographs. By the aforementioned discussion it is required to compensate wind gust by an intelligent control algorithm. This work deals with such a problem.

1.4. Contribution

We present a control and estimation algorithm to estimate and compensate uncertainties and external disturbances in a quadrotor attitude control. This algorithm is based on a sliding mode high-gain observer. Once we obtain a disturbance estimate, it is used to compensate the effects caused by the original disturbance. The main goal of the algorithm consists of maintaining the quadrotor aircraft in hovering flight through a disturbance compensation generated by wind gusts. The performance of the overall system is evaluated at simulation level and with real-time experiments.

1.5. Paper Organization

The remainder of this paper is organized as follows: Section 2 describes the quadrotor dynamical model; also in such section the problem formulation is presented. Section 3 shows the controller design process and describes how the nonlinear observer is developed; also the overall closed-loop system stability is shown. Section 4 presents simulations results obtained with the presented approach, and also the effectiveness of this technique is evaluated through real-time experiments with a quadrotor UAV. Finally, Section 5 gives a brief conclusion of the nonlinear disturbance observer algorithm.

2. Modeling and Problem Statement

Consider the quadrotor system depicted at Figure 1. The quadrotor is modeled as a rigid body where its full dynamics is represented in terms of rotational and translational dynamics as follows [28]:where the position and attitude dynamics of the quadrotor are given by subsystem and , respectively; and are the position and velocity of the aircraft relative to the inertial frame . is the rotational matrix representing the quadrotor attitude in the body coordinate frame with respect to ; the matrix is a function of the Euler angles given by the vector ; and are the force and torque vectors applied at the center of mass of the MAV; is the inertia matrix in the body frame ; is the mass of the body; and is the gravitational force, where is a unit vector; is the Coriolis matrix which contains the gyroscopic and centrifugal terms associated with the Euler angles dependence; acts as the inertia matrix for the aircraft rotational kinetic energy expressed in terms of the Euler angles and is given by [29] where is defined as Let us consider system . Based on the results of [28], we propose the following perturbed attitude model:whereis the vector of unknown disturbances caused by wind gusts and unmodeled dynamics including Coriolis terms and is the control input. Equation (5) can be written in a scalar form aswhere and . The aforementioned system can be rewritten in one general equation in order to estimate each component of the vector . With , the equation can be expressed as

This model can be seen as a sum of a linear and a nonlinear part (given by disturbance ). This characteristic allows us to propose a control with active disturbance rejection by means of sliding mode observers. This will be discussed in the next section. Now let , . Also denote , then system (8) can be expressed in a strict triangular form (i.e., the canonical observability form) as follows:where Then, the problem is to design a controller to stabilize system (9) based on the following assumptions.

Assumption 1. The inverse of exists.

Assumption 2. Disturbance is bounded.

Assumption 3. Angular position and velocity are supposed to be known, since those variables can be measured by available quadrotor sensors.

3. Control Design Based on a Robust Discontinuous Observer

In this section, a nonlinear control for the quadrotor attitude, particularly of system (9), is designed. This control scheme makes use of the residual sliding mode high-gain observer. A scheme of the observed-based control is depicted in Figure 2.

3.1. Observer Design

The high-gain observer is described bywhere is scalar and positive function with a function of degree with positive high gain ; is the state estimation error; , and is a positive definite symmetric matrix which is the solution of (in the sense of [30]); and is the disturbance estimation error.

Then, the following assumptions for the observer design are considered [9, 31, 32].

Assumption 4. The disturbance estimation error satisfies , where is the constant of Lipschitz with respect to the angular position.

Assumption 5. The first time derivative of the estimation error satisfies .

Assumption 6. The maximal eigenvalue of the matrix , denoted as , is a function of grade .

Remark 7. It is not hard to verify that satisfies . For instance, in [30] a matrix for a two dimensional case is considered, more preciselyfor which the following Jordan structure is used where For instance, setting then and such that is a function of a high gain .

From system (9) and observer (11), the state estimation error dynamics takes the formwhere .

Definition 8 (uniform ultimate boundedness [10]). The solution of (15) is uniformly ultimately bounded with ultimate bound if there exist positive constant , independent of initial time and , there is independent of , such that

The following result is stated for the ultimately bounded property of the sate estimation error dynamics (15).

Theorem 9. Let (11) be a residual sliding mode high-gain observer for system (9). Suppose Assumptions 4, 5, and 6 hold, then the state estimation error is ultimately bounded in the presence of the disturbance and uncertainty for all .

Proof. Consider a candidate Lyapunov function given byand the time derivative of along the trajectories of and takes the formSince holds, can be written asSubstituting the disturbance estimation dynamics is a positive constant such thatfollowing the procedure of [30] with bounded can be expressed as After some computations, the last equation is reduced to where and . Due to the properties of matrix (see Remark 7), it can be argued that , where denotes the maximal eigenvalue of the matrix . Then if holds, the Lyapunov function derivative isFrom Assumptions 5 and 4, it can be finally written:Then, for and system (15) is ultimately bounded in the sense of [10] in a ball .

3.2. Control Design

Now, consider second equation of (8) Let be a reference vector which can be the zero vector in the case of hover and define the following tracking control error:Then the following robust control law is proposed:

Theorem 10. Let (27) be a robust control for (25). The tracking error will converge to zero if is a Hurwitz matrix.

Proof. By substituting the control law (27) on derivative of (26)since when where is an diagonal positive matrix. is Hurwitz by hypotheses and design, then , where holds such that The matrix is chosen such that for and system (28) is ultimately bounded in a ball given by

A complete algorithm was developed based on the disturbance observer and the control law designed above. The closed-loop system together with disturbance observer is given bywhere and observer and control errors are defined as , , respectively.

4. Experiments

In this section simulation results of the theoretical development are given. Also, the control law proposed in (31) was applied in a photogrammetry survey. Such results are reported in this section.

4.1. Numerical Results

The quadrotor mathematical model is simulated taken into account the following parameters The function is generated by a Dryden wind model [33]) with high gain as follows:where and are selected randomly and is a wind static vector. Such a signal and its estimate are shown at Figure 3.

4.2. Real Experiments

In order to evaluate the performance of the control technique provided by the algorithm shown in (31), a photogrammetric survey was carried out in the Tamazula River basin, a river of great importance in the northeastern region of Mexico. Given that the central region of Sinaloa in Mexico is characterized by a very strong agricultural activity, an effective water resource management is vital to achieve good agricultural yields. In this region, the use of satellite images to calculate and estimate the water volumes, total mass flows, and waterbodies quality prediction is common. Photogrammetry survey was carried out at an altitude of 80 m and 32 C, with an average humidity of 35% and wind velocity average of 22 km/hr. During the data collection, different flight campaigns were carried out in the same area and route with the objective of evaluating the effect of the controller on the quality of Digital Elevation Models (DEM) of the basin. A comparison between the DEMs obtained with and without algorithm (31) was carried out, considering scenarios with real wind gusts average of 20 km/hr. A small quadrotor aircraft was used with a Futaba 2.4GHz FASST radio system for transmitting the control signals. A picture of the quadrotor is depicted in Figure 4. The quadrotor position and the attitude were measured in real time. 224 Sample points were used for the construction of a Digital Elevation Model of a river basin as part of a strategy for an efficiency water resource management. A Pixhawk autopilot with a GPS module sensor was programmed with the control and estimation algorithms. The benefits of the Pixhawk system include integrated multithreading and a Unix/Linux-like programming environment for real-time applications.

The disturbance generated due to the wind gust was estimated in the roll and pitch angles, during a real-time flight and taking the location of the photographs as the reference points (see Figures 5 and 6). Note that the disturbance estimation is achieved in real-time flight.

In Figure 7, the position error in the -axis and -axis is shown in real wind conditions. It can be observed that the maximum error without disturbance compensation was approximately m. Then, when the observer is activated, the position error is around , which is reasonable due to the error of the GPS sensor which is around m. It can be seen at Figures 8 and 9 that, by reducing the unknown effect of wind and other distortions in attitude dynamics, it is also considering indirectly disturbances in position. This is due to the fact that the quadrotor is an underactuated system.

Figure 8 shows the position in the - plane of the quadrotor without compensation. This signal is obtained from a GPS sensor. The reference is at the point for a hover-flight mode. Note that the quadrotor is moving around the reference point, due to wind gusts of m/s approximately. The quadrotor is shifted from the reference. Figure 9 shows the position with disturbance compensation. The attitude control law keeps the quadrotor around the reference. If Figures 10 and 11 are compared, the error is about 7 m in the first case and the error is about 1.3 m in the second case.

Once the data was collected, the process of building the DEM was carried out using the free-Software OpenDronemap and Quantum GIS. Control points were obtained by using a fixed GNSS reference with a LEICAGR10 receiver and LEIAR10 NONE antenna on the coordinates Latitude 24 47’ 42.30742” N and Longitude 107 24’ 45.34764” W. These control points were used to measure the accuracy of the DEM. Photographic distortions can be observed due to the effect of the wind gusts. This situation generated an inaccuracy in the elevation of the river area and the DEM obtained was distorted. The robust control with disturbance rejection allowed better estimation of basin elevations. This algorithm improved the DEM in an average of 53% with respect to control points. The application of this control law supports the development of DEMs for water resources management and may be applied to other photogrammetric surveys. The proposed tool would also increase the quality of photographs and decrease flight surveys in further Digital Elevation Models.

5. Conclusions

In this paper a new algorithm for disturbance rejection and control of a quadrotor system is presented. This algorithm is easy tunable and programmable on a Pixhawk autopilot. The control is composed by a residual observer based on sliding modes plus a control that uses the observer solution to compensate for unknown disturbances. This approach is mathematical proved through Lyapunov stability analysis and in numerical and real-time experiments. In such experiments the use of the proposed controller improved the accuracy of the DEM of a river basin located in Sinaloa Mexico, with respect to the classic PID controller. In particular, this work obtained a higher resolution DEM, which it is used for water resources management.

As future work it remains to investigate(i)robust controllers for position and attitude disturbances in which every disturbance in uncoupled one of each other;(ii)application of this approach to fixed-wing aircraft.

Data Availability

The data related to Pixhawk support for Embedded Coder and Matlab and Simulink used to support the findings of this study were supplied by Instituto Tecnologico de Culiacán under license and so cannot be made freely available. Request for access to these data should be made to PhD. Rodríguez Mata by [email protected]

Conflicts of Interest

The authors declare no conflicts of interest.

Acknowledgments

The authors acknowledge National Council of Science and Technology in Mexico (CONACYT) for supporting this research work in the call for 2014 Young Researcher Grants (Cátedras para Jóvenes Investigadores 2014 Ref. 2572) and for 2014 Scientific Development Projects to Address National Problems Grants (Proyectos de Desarrollo Científico para Atender Problemas Nacionales 2014 Ref. 248517). Also the authors acknowledge National Council of Science and Technology in Mexico (CONACYT) for supporting this research through the FORDECYT-CONACYT program under Agreement 000000000292399. This work is supported by National Laboratory of Vision Optics of the National Council of Science and Technology in Mexico (CONACYT) (Agreement no. 293411).