Next Article in Journal / Special Issue
Aerial Target Tracking Algorithm Based on Faster R-CNN Combined with Frame Differencing
Previous Article in Journal
Multi-Mode Electric Actuator Dynamic Modelling for Missile Fin Control
Previous Article in Special Issue
Stochastic Trajectory Generation Using Particle Swarm Optimization for Quadrotor Unmanned Aerial Vehicles (UAVs)
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Nonlinear Model Predictive Control for Unmanned Aerial Vehicles †

Department of Mechanical & Aerospace Engineering, University of Texas at Arlington, Arlington, TX 76019,USA
*
Author to whom correspondence should be addressed.
This paper is an extended version of our paper published in the Proceedings of the AIAA Atmospheric Flight Mechanics Conference, AIAA Aviation Forum, Dallas, TX, USA, 22–25 June 2015; Kamesh Subbarao, Carlos Tule and Pengkai Ru, Nonlinear Model Predictive Control Applied to Trajectory Tracking for Unmanned Aerial Vehicles, No. AIAA 2015-2857.
These authors contributed equally to this work.
Aerospace 2017, 4(2), 31; https://doi.org/10.3390/aerospace4020031
Submission received: 26 April 2017 / Revised: 7 June 2017 / Accepted: 12 June 2017 / Published: 17 June 2017
(This article belongs to the Collection Unmanned Aerial Systems)

Abstract

:
This paper discusses the derivation and implementation of a nonlinear model predictive control law for tracking reference trajectories and constrained control of a quadrotor platform. The approach uses the state-dependent coefficient form to capture the system nonlinearities into a pseudo-linear system matrix. The state-dependent coefficient form is derived following a rigorous analysis of aerial vehicle dynamics that systematically accounts for the peculiarities of such systems. The same state-dependent coefficient form is exploited for obtaining a nonlinear equivalent of the model predictive control. The nonlinear model predictive control law is derived by first transforming the continuous system into a sampled-data form and and then using a sequential quadratic programming solver while accounting for input, output and state constraints. The boundedness of the tracking errors using the sampled-data implementation is shown explicitly. The performance of the nonlinear controller is illustrated through representative simulations showing the tracking of several aggressive reference trajectories with and without disturbances.

Graphical Abstract

1. Introduction

A quadrotor helicopter platform (often just called a quadrotor) is an under-actuated helicopter with two pairs of rotors in a cross-configuration capable of spinning at different angular velocities in order to achieve translational and rotational motion. Rotor pair ( 1 ,   3 ) spins in one direction, while the pair ( 2 ,   4 ) spins in the opposite (see Figure 1).
The different motions the quadrotor can perform are: (a) vertical motion: simultaneous change in rotor speed; (b) roll motion: imbalance in the rotor speed of pair ( 2 ,   4 ) ; (c) pitch motion: imbalance in the rotor speed of pair ( 1 ,   3 ) ; (d) yaw motion: imbalance between all rotors.
Quadrotors have gained popularity as research platforms because of their simplicity of design and low cost of manufacturing. Because they are challenging vehicles to control, wherever operated in an indoor environment or in the open field, they serve as great platforms for research. They also possess many advantages over standard helicopters in terms of safety and efficiency at small sizes [1]. There are many applications for a quadrotor platform, both in the military and the civil sectors, which are summarized quite extensively in [2,3,4,5,6].
To enable autonomous operations of a quadrotor, the research community typically focuses on the following aspects of the quadrotor: kinematics and dynamics of the vehicle; trajectory generation (path planning); guidance, navigation and control.
The focus of this paper is to synthesize a nonlinear model predictive control law for tracking a trajectory to be followed by a quadrotor. The applications are typically way-point navigation and tracking certain agile maneuvers [7,8,9,10]. Since the quadrotor can only generate forces normal to the plane that contains the rotors, the translational and rotational dynamics are significantly coupled. This restricts the quadrotor from performing certain maneuvers [11] that are possible with a fixed wing aircraft and the more conventional helicopter. In what follows, some key works relevant to these topics are summarized, and the layout of the paper is outlined.
A significant amount of research has been performed in the area of trajectory generation and constrained control of unmanned vehicles that apply to quadrotors alike. The work in [12,13] discusses the generation of trajectories for robots, wherein a spline interpolation method is used to solve a minimum time optimization problem, while staying under torque and velocity constraints. The work in [14] also used a spline interpolation method to generate optimal-time trajectories and applied it to a micro-quadrotor. For reference trajectory generation, [7] develops the governing equations of motion and describes the trajectories as algebraic functions of a flat output: outputs that can express the states and inputs of the system in terms of its outputs and their derivatives [15]. This approach facilitates the automatic trajectory generation for the system. In [9], trajectories are generated by designing a sequence of controllers to drive the system to a desired goal state. The works in [1,16] discuss the design of safe, aggressive maneuvers and control for a back flip trajectory. The work in [17] constructed a dynamically feasible, desired speed profile for a given sequence of waypoints. The authors in [18,19] worked on trajectory generation for quadrotors by implementing dynamic constraints to an optimal control method and verified the existence of optimal trajectories. The work in [20] addresses the problem of quadrotor trajectory generation and tracking while carrying a suspended payload. They solved this by developing an optimal controller based on the dynamic programming technique: breaking down a problem into several sub-problems. It should be recognized that translational control of the quadcopter is very strongly coupled with the rigid body rotation especially for the longitudinal and lateral motion. The stability of such platforms has been studied, and some notable techniques that address the stability by separating the fast and slow dynamics can be found in [21,22].
Virtually every possible control technique, linear control, such as PID and linear quadratic methods, robust linear control and nonlinear control [23,24] techniques, such as adaptive control, iterative learning control [25], neural networks [26], sliding mode, among others, have been tried and tested in simulations and on actual flying test platforms. Since the quadrotor can only produce bounded forces and that too only along one direction, the platform is input constrained. All of the earlier mentioned control techniques apply the input constraints post-facto, while model predictive control (MPC) provides a framework to impose input constraints as part of the control synthesis. Since the quadrotor is also constrained in operation in state-space, the platform essentially is state and input constrained. These state and input constraints along with goal states, as well as trajectory constraints (equality and inequality) can all be effectively integrated into the MPC framework. The work in [27] looked into the nonlinear model predictive tracking control (NMPTC) technique and applied it to generate trajectories to unmanned rotorcraft while staying under input and state constraints.
This paper focuses on the development of the nonlinear model predictive control (NMPC) formulation to derive an optimal controller subject to input, state and output constraints. This is accomplished by formulating the nonlinear system dynamics using a state-dependent coefficient (SDC) form, which allows the representation of the system in a pseudo-linear form. The performance of this controller is illustrated via candidate simulations for tracking aggressive reference trajectories in the presence of high frequency disturbances in the roll and pitch channels.
The rest of the paper is organized as follows. A brief overview of the governing equations of motion is first presented. This is followed by elaborating the MPC technique for a linearized quadrotor model (about the hover equilibrium) for the sake of completeness. The SDC form of the nonlinear quadrotor model is presented next, which highlights key differences in the presented model from those in other comparable works. Following this, the state-dependent Riccati equation (SDRE) approach to deriving a nonlinear sub-optimal controller is presented that uses the aforementioned SDC form. The nonlinear model predictive controller (NMPC) is developed using a discretized form (sampled-data form) of the SDC model. The boundedness of the trajectory tracking errors is shown for the NMPC, and simulation results are presented that compare the performance of linear and nonlinear MPC techniques, highlighting key areas where the nonlinear controller performs better. The simulation results correspond to representative maneuver scenarios. Finally, a brief summary of the work and conclusions thereof are presented.

2. Mathematical Model of the Quadrotor

Let { O E , X E , Y E , Z E } denote the Earth-fixed inertial frame and { O B , X B , Y B , Z B } the body-fixed frame, whose origin O B is at the center of mass of the quadrotor. The inertial position of the quadrotor is defined by p = [ x ,   y ,   z ] T and the attitude by the Euler angles: roll, pitch and yaw ( Θ = [ ϕ ,   θ ,   ψ ] T ). R B I S O ( 3 ) is the direction cosine matrix representing the inertial to body frame transformation. V B = [ V x ,   V y ,   V z ] T is the inertial velocity of the quadrotor expressed in the body frame components, and Ω = [ p ,   q ,   r ] T is the angular velocity expressed in the body frame components. Neglecting the aerodynamic and gyroscopic effects, the quadrotor model can be shown as [28]:
p ˙ = R B I T V B V ˙ B = Ω × V B + R B I ( g e ^ 3 ) + T m e ^ 3 Θ ˙ = W ( ϕ ,   θ ,   ψ ) Ω Ω ˙ = J 1 ( Ω × J Ω + τ )
where e ^ 3 = [ 0   0   1 ] T , τ = [ τ 1   τ 2   τ 3 ] T , and:
R B I ( ϕ ,   θ ,   ψ ) = cos θ cos ψ cos θ sin ψ sin θ sin θ cos ψ sin ϕ sin ψ cos ϕ sin θ sin ψ sin ϕ + cos ψ cos ϕ cos θ sin ϕ sin θ cos ψ cos ϕ + sin ψ sin ϕ sin θ sin ψ cos ϕ cos ψ sin ϕ cos θ cos ϕ
W ( ϕ ,   θ ,   ψ ) = 1 sin ϕ tan θ cos ϕ tan θ 0 cos ϕ sin ϕ 0 sin ϕ sec θ cos ϕ sec θ J = J x J y J z
The constants g ,   m ,   J in the equation denote the acceleration due to gravity, the mass and moment of inertia of the quadrotor, respectively. The body axes are assumed oriented along the principal axes without loss of any generality, and hence, the moment of inertia matrix is a diagonal matrix, J = diag ( J x ,   J y ,   J z ) . T and τ represent the total thrust and torques about the body axes of the quadrotor.
In addition, the relations between the total thrust (T), torque ( τ ) components and the individual rotor thrusts ( F 1 ,   F 2 ,   F 3 ,   F 4 ) can be expressed as:
T τ 1 τ 2 τ 3 = 1 1 1 1 0 L 0 L L 0 L 0 c c c c F 1 F 2 F 3 F 4
where L is the distance from the rotor to the center of gravity (CG) of the quadrotor and c is a constant that relates the rotor angular momentum to the rotor thrust (normal force). Combining Equations (1) and (3), a more comprehensive model can be written as:
p ˙ V ˙ B Θ ˙ Ω ˙ = R B I T V B Ω V B + R B I ( g e ^ 3 ) W ( ϕ ,   θ ,   ψ ) Ω J 1 ( Ω × J Ω ) + 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 m 1 m 1 m 1 m 0 0 0 0 0 0 0 0 0 0 0 0 0 J x 1 L 0 J x 1 L J y 1 L 0 J y 1 L 0 J z 1 c J z 1 c J z 1 c J z 1 c F 1 F 2 F 3 F 4
Let x = [ p T   V B T   Θ T   Ω T ] T and u = [ F 1   F 2   F 3   F 4 ] T . Equation (4) can be compactly written as:
x ˙ = f ( x ) + B c u
Given the nature of the quadrotor, the range of operation of the vehicle is restricted as shown below. At a pitch angle of θ = ± π 2 , the matrix W ( ϕ ,   θ ,   ψ ) in Equation (2) becomes singular.
π ϕ π π 2 < θ < π 2 π < ψ < π
Actuator dynamics for each rotor is assumed to be a first order system [29]:
F i ˙ = λ F ( F i c F i ) , i = 1 , 2 , 3 , 4 .
where F i c denotes the commanded value for rotor lift (thrust) and λ F denotes the first order actuator time constant (assumed the same for all of the rotors). Actuator dynamics is ignored for prediction, but is used for state propagation.

3. Linear Model Predictive Control of a Quadrotor

This section summarizes the model predictive control (MPC) algorithm for the sake of completeness. MPC, which can also be called receding horizon control (RHC), is a technique in which a mathematical model of a system is used to solve a finite, moving horizon, closed loop optimal control problem [30] by using the current states of the system [31]. MPC is able to take into account the physical and mechanical limitations of the plant during the design process [32] and predict a number of future outputs of the system (called the prediction horizon), in order to formulate an optimal controller effort to bring the system to a desired state given a reference trajectory.
This optimization problem is solved at each sampling interval for the specified prediction horizon, but only the first step of the solution to the optimization problem is applied to the system until the next sampling interval. This routine is repeated for all subsequent time intervals (see [33]). In the following section, the MPC technique as applied to a linear system (LMPC) is elaborated.

3.1. Plant Model and Prediction Horizon

Given the nonlinear system of the form:
x ˙ = f ( x ( t ) , u ( t ) ) y = h ( x ( t ) , u ( t ) )
where x ( t ) n are the system states, u ( t ) m are the system inputs and y ( t ) p are the system outputs as functions of time t. In general m < n and m < p . f and h are vector valued functions in C 2 . Note, the combined quadrotor governing equations of motion (Equation (4)) constitute such a nonlinear dynamic system where n = 12 and m = 4 . This system can be linearized about a desired operating point, such as “hover”. The values of the states and the controls for such an operating point will be denoted as the ordered pair, { x T ,   u T } . The equivalent discretized linear system assuming a sampling interval T s can be summarized as follows,
Δ x k + 1 = A Δ x k + B Δ u k Δ y k = C Δ x k + D Δ u k
where k is the current sample, Δ x k = x k x T , Δ u k = u k u T , A n × n is the state matrix, B n × m is the input matrix, C p × n is the output matrix and D p × m is the input feedforward matrix. The equilibrium control input in the case of “hover” is u T = m g 4   m g 4   m g 4   m g 4 T .
The objective of the linear MPC is to drive the system towards a desired state. Based on the model of Equation (9) [34], the controller predicts the future states progression as a function of current states and future inputs:
Δ x k + i + 1 = A Δ x k + i + B Δ u k + i Δ y k + i = C Δ x k + i + D Δ u k + i
where i = 1 ,   2 ,   ,   N . Thus, the standard prediction equations can be written as,
Δ X k = F Δ x k + H Δ U k Δ Y k = C ¯ Δ X k + D ¯ Δ U k
where,
Δ X k = Δ x k Δ x k + 1 Δ x k + 2 Δ x k + N 1 , Δ U k = Δ u k Δ u k + 1 Δ u k + 2 Δ u k + N 1 , Δ Y k = Δ y k Δ y k + 1 Δ y k + 2 Δ y k + N 1 , F = I A A 2 A N 1
H = 0 B 0 AB B 0 A N 2 B A N 3 B B 0 , C ¯ = C C C C , D ¯ = D D D D
Since D = 0 in most applications, it is assumed for the rest of the analysis:
Δ X k = F Δ x k + H Δ U k Δ Y k = C ¯ Δ X k
The terminal state and output are given by:
Δ x k + N = A N Δ x k + B ¯ Δ U k , Δ y k + N = C Δ x k + N
where:
B ¯ = A N 1 B A N 2 B AB B

3.2. Controller Design

The MPC algorithm requires the use of an objective function in its control formulation in order to calculate the optimal solution at each sampling interval. It must be chosen in a way such that the predicted outputs, derived from the prediction horizon N (Equation (11)), are driven to a desired state or track a desired trajectory y k r , while at the same time, it should minimize the controller effort Δ u k required [35]. For the quadrotor scenario, the penalty function penalizes the norm of the difference between the current output states and the desired trajectory and the norm of actuator inputs. It is of the form:
J ( Δ x k , Δ U k ) = ( Δ Y k Δ Y k r ) T Q ¯ N ( Δ Y k Δ Y k r ) + Δ U k T R ¯ N Δ U k + ( Δ y k + N Δ y k + N r ) T Q f ( Δ y k + N Δ y k + N r )
It is important to note that usually, the reference trajectory Δ y k + i r = y k + i r y T ,   i ( 1 , , N ) is known in advance. Furthermore, Δ Y k r is defined as:
Δ Y k r = Δ y k r Δ y k + 1 r Δ y k + N 1 r
This implies that the controller is able to predict a series of adequate inputs that will drive the system towards the desired goal. In the quadratic form of (Equation (13)), the term Q ¯ N and R ¯ N are defined as:
Q ¯ N = Q Q Q , R ¯ N = R R R
where Q , Q f p × p and R m × m are all diagonal, and they satisfy Q 0 , Q f 0 and R > 0 . Q f is chosen based on the solution to the discrete algebraic Riccati equation using P = A T PA A T PB ( R + B T PB ) 1 B T PA + Q . Q f is set equal to P . With proper substitution, it follows that,
J ( Δ x k , Δ U k ) = Δ U k T H T C ¯ T Q ¯ N C ¯ H + R ¯ N + B ¯ T C T Q f C B ¯ Δ U k + 2 C ¯ F Δ x k Δ Y k r T Q ¯ N C ¯ H + C A N Δ x k Δ y k + N r T Q f C B ¯ Δ U k + C ¯ F Δ x k Δ Y k r T Q ¯ N C ¯ F Δ x k Δ Y k r + C A N Δ x k Δ y k + N r T Q f C A N Δ x k Δ y k + N r
Quadratic programming: Since the cost function from Equation (14) is of quadratic form, a quadratic programming (QP) method can be used to solve the optimization problem [36]. The idea behind QP is to minimize the quadratic function J ( Δ x k , Δ U k ) in Equation (14) by looking for a feasible search direction Δ U k .
Input and state constraint handling: Special attention is given to the constraint handling capabilities of the MPC problem formulation now that the objective function has been specified (Equation (14)). In the case of the quadrotor, it is necessary to constrain both the total thrust force of each rotor and restrict the magnitude of the angles in order to stay within the limits allowed by the Euler angles’ formulation discussed previously.

3.3. Input Constraints

It is necessary to constrain the maximum force each rotor is able to deliver in order to make the quadrotor perform in such a way that it resembles a more realistic physical model. The forces need to be within some lower bound u l b and some upper bound u u b , u l b u k + i u u b for i = 0 , 1 , 2 , , N 1 . However, the MPC problem is solved to obtain the perturbation controls since the model employed is the linearized dynamics about the equilibrium point. Since, u k + i = u T + Δ u k + i , it can be seen that u l b u T + Δ u k + i u u b . Alternately, u l b u T Δ u k + i u u b u T . These constraints can be expressed in matrix form as follows:
I m × m I m × m Δ u k + i u u b u T u l b u T
where I m × m is an m × m identity matrix. After proper arrangement, the input constraint can be represented as:
M U Δ U k Δ U b
where:
M U = I m × m I m × m I m × m I m × m I m × m I m × m , Δ U b = u u b u T u l b u T u u b u T u l b u T u u b u T u l b u T

3.4. Output and State Constraints

It is also of high importance to limit the angles so that no kinematic singularities are encountered due to the limitations in the model description. In the case of the quadrotor, the angles need to be within the bounds specified by Equation (6). If a particular output, such as the pitch angle, θ needs to be constrained, the corresponding output is defined as Δ z = C z Δ x k . The constraints are represented as z l b C z x k + i z u b for i = 0 , 1 , 2 , , N 1 , where z l b and z u b are the upper and lower bounds for the output variables. Since x k + i = x T + Δ x k + i , z l b C z x T + Δ x k + i z u b . Thus, z l b C z x T C z Δ x k + i z u b C z x T . It can be represented in matrix form as:
C z C z Δ x k + i z u b C z x T z l b C z x T
With proper arrangement and substitution of Δ X k from (12), the constraints can be expressed in terms of Δ U k as:
C z F Δ x k + H Δ U k Δ Z b
where:
C z = C z C z C z C z C z C z , Δ Z b = z u b C z x T z l b C z x T z u b C z x T z l b C z x T z u b C z x T z l b C z x T

3.5. Combined Input and Output State Constraints

Both the input and output variable constraints can be integrated into one equation as shown below.
M U Δ U k Δ U b from   Equation   ( 16 ) C z F Δ x k + H Δ U k Δ Z b from   Equation   ( 19 ) or C z H Δ U k Δ Z b C z F Δ x k Γ Δ U k Υ
where Υ is a matrix containing both input and output variable constraints and:
Γ = M U C z H , Υ = Δ U b Δ Z b C z F Δ x k

3.6. Stability of Unconstrained Linear MPC

Without loss of generality, an “informal” proof of stability will be given only for the regulator case. For trajectory tracking problems, an error system can always be constructed with the new state being e = x x r . With the proper feed-forward input, the new system would be of the same form as the regulator.
The cost function in Equation (14) can be simplified respectively as:
J ( Δ x k , Δ U k ) = Δ U k T H T C ¯ T Q ¯ N C ¯ H + R ¯ N + B ¯ T C T Q f C B ¯ Δ U k + 2 C ¯ F Δ x k T Q ¯ N C ¯ H + C A N Δ x k T Q f C B ¯ Δ U k + C ¯ F Δ x k T Q ¯ N C ¯ F Δ x k + C A N Δ x k T Q f C A N Δ x k
Assuming there are no constraints present on the inputs or states, the optimal control Δ U k can be determined by setting J Δ x k , Δ U k Δ U k = 0 , i.e.,
Δ U k = H T C ¯ T Q ¯ N C ¯ H + R ¯ N + B ¯ T C T Q f C B ¯ 1 C ¯ H T Q ¯ N C ¯ F + C B ¯ T Q f C A N Δ x k
Additionally, the control input Δ u k can be extracted as follows.
Δ u k = [ I m × m   0 m × m     0 m × m ] Δ U k
Combining Equations (23) and (24), Δ u k can be simplified.
Δ u k = K k Δ x k
where:
K k = I m × m   0 m × m     0 m × m H T C ¯ T Q ¯ N C ¯ H + R ¯ N + B ¯ T C T Q f C B ¯ 1 C ¯ H T Q ¯ N C ¯ F + C B ¯ T Q f C A N
According to [37], if Q f in Equation (22) satisfies the following inequality:
C T Q f C C T Q C + K k T R K k + ( A BK k ) T C T Q f C ( A BK k )
for some K k R m × n , then the system of Equation (9) driven by control Δ u k of Equation (24) is stable (note, the input feedforward matrix D = 0 ).
The optimal cost J ( Δ x k , Δ U k ) satisfies the following monotonicity condition:
J ( Δ x k , Δ U k 1 , N + 1 ) J ( Δ x k , Δ U k 2 , N )
where N denotes the prediction horizon and Δ U k 1 , Δ U k 2 represent the optimal control derived from minimizing their respective cost functions. Imagine a new control input Δ U k 1 by using Δ U k 2 up to time k + N 1 and Δ u k + N = K k Δ x k + N ; the cost for this control would be:
J ( Δ x k , Δ U k 1 , N + 1 ) = i = k k + N 1 ( Δ x i T C T Q C Δ x i + Δ u i T R Δ u i ) + Δ x k + N T C T Q C Δ x k + N + Δ x k + N K k T RK k Δ x k + N + Δ x k + N T ( A BK k ) T C T Q f C ( A BK k ) Δ x k + N
Since J ( Δ x k , Δ U k 1 , N + 1 ) is optimal and denoting Δ J = J ( Δ x k , Δ U k 1 , N + 1 ) J ( Δ x k , Δ U k 2 , N ) , the following applies:
Δ J J ( Δ x k , Δ U k 1 , N + 1 ) J ( Δ x k , Δ U k 2 , N ) Δ x k + N T C T Q C Δ x k + N + Δ x k + N K T RK Δ x k + N +   Δ x k + N T ( A BK k ) T C T Q f C ( A BK k ) Δ x k + N Δ x k + N T C T Q f C Δ x k + N Δ x k + N T [ C T Q C + K k T RK k + ( A BK k ) T C T Q f C ( A BK k ) C T Q f C ] Δ x k + N 0
thus proving the cost monotonicity condition. From the cost monotonicity condition, the following non-increasing sequence can be obtained:
J ( Δ x k , Δ U k , N ) = Δ x k T C T Q C Δ x k + Δ u k T R Δ u k + J ( Δ x k + 1 , Δ U k + 1 , N 1 ) Δ x k T C T Q C Δ x k + Δ u k T R Δ u k + J ( Δ x k + 1 , Δ U k + 1 , N ) J ( Δ x k + 1 , Δ U k + 1 , N )
Since a non-increasing sequence bounded from below converges to a constant, J ( Δ x k , Δ U k , N ) 0 , and hence, J ( Δ x k , Δ U k , N ) a   nonnegative   constant as k . Thus,
k = i i + j Δ x k T C T Q C Δ x k + Δ u k T R Δ u k 0 ,   j = 0 , 1 , 2 ,
which leads to the following equation:
k = i i + j Δ x k T [ ( A B K k ) j ] T ( C T Q C + K k T R K k ) [ ( A B K k ) j ] Δ x k 0 , j = 0 , 1 , 2 , .
It is proven in [38] that if ( A , C ) is observable, then:
( A BK k ) , Q C R K k
is observable for any K k . Thus, the only solution that could guarantee this is the trivial solution Δ x k = 0 . Hence, system Equation (9), driven by control Δ u k of Equation (24) by minimizing the quadratic cost Equation (22), is stable. Back to our control law design, if a Q f is carefully selected such that C T Q f C is the solution of the Discrete Algebraic Riccati Equation (DARE), thus automatically satisfying the Equation (27), the optimal control given by Equation (25) asymptotically stabilizes system Equation (9). Since full state feedback is assumed for this problem ( C = I ), this can be easily accomplished.

3.7. Stability of Constrained Linear MPC

Again without loss of generality, only stability for the regulator case is considered here. To guarantee the same monotonicity condition as Equation (28), it must be guaranteed that the system is feasible. The following linear matrix inequalities (LMI) are constructed for this purpose. There must exist a set of ( Q f , Q , R , K k , Δ U k ) that satisfies the following conditions:
γ <
γ 2 C ¯ F Δ x k T Q ¯ N C ¯ H + C A N Δ x k T Q f C B ¯ Δ U k Δ U k T Δ U k H T C ¯ T Q ¯ N C ¯ H + R ¯ N + B ¯ T C T Q f C B ¯ 1 0
Γ Δ U k Υ
( C T Q f C ) 1 ( C T Q f C ) 1 ( A BK k ) T ( C T Q f C ) 1 C T Q C ( C T Q f C ) 1 K k T R ( A BK k ) ( C T Q f C ) 1 ( C T Q f C ) 1 0 n × n 0 n × n C T Q C ( C T Q f C ) 1 0 n × n I n × n 0 n × n R K k ( C T Q f C ) 1 0 n × n 0 n × n I n × n 0
I m × m I m × m K k A N Δ x k + B ¯ Δ U k u u b u T u l b u T
C z C z A B K k A N Δ x k + B ¯ Δ U k z u b C z x T z l b C z x T
It should be noted here that C T Q f C needs to be full rank. Since the constraints contain constant terms, this condition only needs to be checked just once at the beginning. After obtaining a suitable ( Q f , Q , R ) from the above LMI, Δ U k is obtained by solving the following optimization problem:
Δ U k = arg min Δ U k   γ
subject to Equations (34)–(39).
The solution to the above-mentioned optimization problem yields Δ u k ,
Δ u k = [ I m × m   0 m × m     0 m × m ] Δ U k
The same proof of asymptotic stability from the unconstrained case can then be used here once the feasible control action is determined. Thus, system Equation (9) driven by control Equation (40) subject to constraints Equation (21) is stable. Note, the stability of such platforms with coupled fast and slow dynamics has been studied extensively by other researchers, and some notable techniques, such as singular perturbation control can be found in [21,22]. In the present context, the translational control in the horizontal plane (forward and lateral directions) can only be affected by the pitch and roll angles. Thus, it is imperative for the quadrotor platform to have a very robust pitch and roll control. In our present work, we do not explicitly address this time scale decomposition, since the closed loop system is guaranteed stable with an appropriate choice of the weighting matrices. Robustness could be improved by further turning these weighting matrices.

4. Nonlinear Model Predictive Control Formulation

In this section, the procedure to develop the nonlinear model predictive controller (NMPC) is elaborated. The essential idea is to utilize the state-dependent coefficient (SDC) factorization [39] of the nonlinear dynamics. A state space representation of the quadrotor is obtained, where each of its system matrices are now expressed as functions of the current state [40]. Consider a dynamic system as in Equation (8). The NMPC formulation involves transforming the nonlinear system into the following state space form,
x ˙ = A c ( x ) x + B c ( x ) u y = C c ( x ) x + D c ( x ) u
where x n is the state vector, u m is the input vector, y p is the output vector and A c ( x ) n × n , B c ( x ) n × m , C c ( x ) p × n and D c ( x ) p × m are the pseudo-linear system matrices in the SDC form, as well as the pairs ( A c ( x ) , B c ( x ) ) and ( A c ( x ) , C c ( x ) ) are stabilizable and detectable x n , respectively. It is important to note that this representation of A c ( x ) , B c ( x ) , C c ( x ) and D c ( x ) is not unique in general, except for a scalar system. Different state-dependent coefficient matrices can be obtained from the equations of motion, and a solution to the optimization problem may or may not exist. However, a particular factorization (shown later) is derived here. The discrete-time equivalent of Equation (41) is obtained by using a zero-order-hold (ZOH) with a specified sample time. Let the discrete-time equivalent of the system be of the following form:
x k + 1 = A ( x k ) x k + B ( x k ) u k y k = C ( x k ) x k
where A ( x k ) and B ( x k ) are discrete approximations of the continuous A c ( x ) and B c ( x ) , respectively.
From the description of the quadrotor, it can be seen that D ( x k ) = 0 and B ( x k ) = B (a constant matrix). Since Equation (42) is of the pseudo-linear form, the system matrices can be considered to be constants for each sampling interval, i.e., [ t k ,   t k + 1 ) with t k + 1 t k = Δ t . It should be noted that in Equation (41), the first term A c ( x ) x vanishes if x = 0 . For the quadrotor case (Equation (5)), f ( x ) does not completely vanish when x = 0 . Thus, a slight change is needed in Equation (41) to account for this. The quadrotor system will be transformed into the form:
x ˙ = A c ( x ) x + B c ( x ) u 0 + δ u
where u 0 represents the constant force term that is required to balance the weight of the quadrotor. It is assumed that the quadrotor starts from an initial equilibrium state. The new control design then focuses on the synthesis of δ u . Clearly, when δ u = 0 , for the “hover” equilibrium case, x ˙ = 0 , since A c ( x ) x + B c ( x ) u 0 = 0 . One possible way to factorize the equations of motion into the SDC form is presented in Equation (44).
A c ( x ) = 0 3 × 3 R B I T 0 3 × 3 0 3 × 3 0 3 × 3 A 22 A 23 A 24 0 3 × 3 0 3 × 3 0 3 × 3 W 0 3 × 3 0 3 × 3 0 3 × 3 A 44
where:
A 22 = 0 r 2 q 2 r 2 0 p 2 q 2 p 2 0 , A 23 = 0 g sin θ θ 0 g cos θ sin ϕ ϕ 0 0 g ( cos θ + 1 ) ( cos ϕ 1 ) 2 ϕ g ( cos ϕ + 1 ) ( cos θ 1 ) 2 θ 0
A 24 = 0 w 2 v 2 w 2 0 u 2 v 2 u 2 0 , A 44 = 0 ( J y J z ) r 2 J x ( J y J z ) q 2 J x ( J z J x ) r 2 J y 0 ( J z J x ) p 2 J y ( J x J y ) q 2 J z ( J x J y ) p 2 J z 0
and B c is the same as in Equation (4). One issue that arises from this SDC form is that the term like sin θ θ does not exist when θ = 0 . To prevent this from happening, the first three terms of Taylor series expansions of sin θ , sin ϕ , ( cos θ 1 ) and ( cos ϕ 1 ) are used here to provide a close approximation (in reality, the approximations only differ from their true values 4 % at most in the range of ( π 2 ,   π 2 ) ). By doing this, A 23 can be expressed as shown in Equation (45).
A 23 = 0 g ( 1 θ 2 3   ! + θ 4 5   ! ) 0 g cos θ ( 1 ϕ 2 3   ! + ϕ 4 5   ! ) 0 0 g cos θ + 1 2 ( ϕ 2 + ϕ 3 4   ! ϕ 5 6   ! ) g cos ϕ + 1 2 ( θ 2 + θ 3 4   ! θ 5 6   ! ) 0
Considering the specific aspects of the quadrotor as detailed above, the discretized system for the derivation of the NMPC is summarized below:
x k + 1 = A ( x k ) x k + B u T + δ u k y k = C ( x k ) x k
where the fact that for this system, B ( x k ) = B (a constant matrix) is used. Following the same approach as outlined for the linear MPC, we arrive at the N step state prediction equations (similar to Equation (12)):
X k = F ( x k ) x k + H ( x k ) ( U T + Δ U k ) Y k = C ¯ ( x k ) X k
where,
X k = x k x k + 1 x k + 2 x k + N 1 , U T = u T u T u T u T , Δ U k = δ u k δ u k + 1 δ u k + 2 δ u k + N 1 , Y k = y k y k + 1 y k + 2 y k + N 1
F ( x k ) = I A ( x k ) A ( x k ) 2 A ( x k ) N 1 , H ( x k ) = 0 B 0 A ( x k ) B B 0 A ( x k ) N 2 B A ( x k ) N 3 B B 0
C ¯ ( x k ) = C ( x k ) C ( x k ) C ( x k ) C ( x k )
Similarly, the terminal state and output is given by:
x k + N = A ( x k ) N x k + B ¯ ( x k ) ( U T + Δ U k ) , y k + N = C ( x k ) x k + N
where:
B ¯ ( x k ) = A ( x k ) N 1 B   A ( x k ) N 2 B     A ( x k ) B     B
The nonlinear MPC uses the same algorithm as the linear MPC to calculate the solution to the minimization of the cost function outlined in Equation (13). The main difference between the linear and nonlinear version of the MPC is that now, the objective function depends on the current states of the system and needs to be calculated at the start of each sample interval. The objective function Equation (14) then becomes:
J ( x k , U k ) = Δ U k T H ( x k ) T C ¯ ( x k ) T Q ¯ N C ¯ ( x k ) H ( x k ) + R ¯ N + B ¯ ( x k ) T C ( x k ) T Q f C ( x k ) B ¯ ( x k ) Δ U k + 2 C ¯ ( x k ) F ( x k ) x k Y k r T Q ¯ N C ¯ ( x k ) H ( x k ) + ( C ( x k ) A ( x k ) N x k y k + N r ) T Q f C ( x k ) B ¯ ( x k ) Δ U k + U T T H ( x k ) T C ¯ ( x k ) T Q ¯ N C ¯ ( x k ) H ( x k ) + R ¯ N + B ¯ ( x k ) T C ( x k ) T Q f C ( x k ) B ¯ ( x k ) U T + 2 C ¯ ( x k ) F ( x k ) x k Y k r T Q ¯ N C ¯ ( x k ) H ( x k ) + ( C ( x k ) A ( x k ) N x k y k + N r ) T Q f C ( x k ) B ¯ ( x k ) U T + ( C ¯ ( x k ) F ( x k ) x k Y k r ) T Q ¯ N ( C ¯ ( x k ) F ( x k ) x k Y k r ) + ( C ( x k ) A ( x k ) N x k y k + N r ) T Q f ( C ( x k ) A ( x k ) N x k y k + N r )
As with the linear case, Q f is chosen based on the solution to the discrete algebraic Riccati equation using:
P ( x k ) = A ( x k ) T P ( x k ) A ( x k ) A ( x k ) T P ( x k ) B ( R + B T P ( x k ) B ) 1 B T P ( x k ) A ( x k ) + Q
and Q f is set equal to P ( x k ) . This calculation is performed at each sample instant as opposed to just once, which was the case in the linear control law derivation.
The cost function is seen to be quasi-quadratic, and the regular quadratic programming method is used to solve for the control (Equation (48)). Similar to Equation (21), the input and output variable constraints are integrated into one equation of the form:
Γ ( x k ) Δ U k Υ ( x k )
where Υ ( x k ) is a matrix containing both input and output variable constraints and:
Γ ( x k ) = M U C z ( x k ) H ( x k ) , Υ ( x k ) = Δ U b Z b C z x k ) ( F ( x k ) x k + H ( x k ) U T
where,
Δ U b = u u b u T u l b u T u u b u T u l b u T u u b u T u l b u T , Z b = z u b z l b z u b z l b z u b z l b
Note, the inequality in Equation (50) needs to be checked at the start of every new prediction. Alternately, the feasibility of the solution to the LMIs for NMPC needs to be evaluated at every new prediction.

5. Stability of Nonlinear Model Predictive Control Solution

In this section, the stability of the closed loop system with the NMPC solution from minimizing the cost function in Equation (48) subject to the input and state constraints in Equation (50), when applied to the dynamics in Equation (1), is shown. It is shown that the control scheme when applied to the quadrotor model results in bounded tracking errors, while guaranteeing internal stability. The bounded stability is shown for a general class of nonlinear systems representative of the application under consideration. Consider the nonlinear system:
x ˙ = f ( x ) + g ( x ) u , x ( 0 ) = x 0
with the definition of the state and control variables to be the same as what was discussed in earlier sections. The mappings f : n n and g : m n are sufficiently smooth. A pseudo-linear description of Equation (51) is the pair ( A c ( x ) ,   B c ( x ) ) , such that,
x ˙ = A c ( x ) x + B c ( x ) u , x ( 0 ) = x 0
Since the control implementation essentially renders the closed loop system to be a sampled-data system, the stability problem is addressed by first considering the unconstrained sampled-data NMPC for the SDC system in Equation (52). The constrained sampled-data NMPC is considered later.

5.1. Stability of Unconstrained Sampled-Data NMPC Based on the SDC System

Assumptions:
  • ( A c ( x ) ,   B c ( x ) ) is point-wise controllable. Thus,   x n , i.e.,   K c ( x ) m × n , such that
    A c ( x ) B c ( x ) K c ( x ) is point-wise Hurwitz.
  • K c ( x ) is obtained as a solution to a state-dependent Riccati equation using the system matrices in the SDC form. The control law is thus expressed as,
    u c = K c ( x ) ( x x r )
  • x r ( t ) is an admissible reference state trajectory, i.e., x r ( t ) satisfies the governing equations of motion, as well as the state constraints.
  • The reference control inputs u r ( t ) obtained from Equation (51) together with x r ( t ) and x ˙ r ( t ) satisfy the control constraints discussed previously.
  • The solution is feasible for the given predictive horizon.
In this section, following a similar approach reported in [41], it will be first shown that for an appropriate sample time Δ t , the ZOH control, computed as:
u c ( k Δ t ) = K c ( x ( k Δ t ) ) x ( k Δ t ) x r ( k Δ t )
when applied to the nonlinear system in Equation (51) results in bounded trajectory tracking errors, i.e., x ( k Δ t ) x r ( k Δ t ) < ε , ε > 0 for k > k N , where k N Z + . For the rest of the discussion, x ( k Δ t ) and u c ( k Δ t ) will be simply written as x k and u k .
For t [ k Δ t ,   ( k + 1 ) Δ t ) , the frozen in time SDC representation for the system is considered; thus, the states evolve as,
x ˜ ˙ = A c ( x ^ k ) x ˜ + B c ( x ^ k ) u k , x ˜ ( k Δ t ) = x k , t [ k Δ t ,   ( k + 1 ) Δ t ) ]
At the next sampling interval [ ( k + 1 ) Δ t ,   ( k + 2 ) Δ t ) , x ˜ ( ( k + 1 ) Δ t ) is replaced with x k + 1 measured from the original system Equation (52), and the same process starts over again. To avoid potential ambiguities, the solution of differential Equation (54) at the end of the interval, namely the value of x ˜ as t ( k + 1 ) Δ t , is denoted as x ˜ k + 1 . Note, the control input u c is constant during the interval [ k Δ t , ( k + 1 ) Δ t ) ] . Under the assumptions stated earlier, the control for Equation (54) will stabilize the original system Equation (52) provided the control law given by Equation (53) will achieve uniformly globally asymptotic stability (UGAS) for System (51). It should be noted here that this algorithm is merely a sampled-data implementation of Equation (53). The work in [41] proved the stability of sampled-data control based on SDC provided that P k obtained from Equation (49) converges to a constant matrix; in other words, lim k P k exists. However, the convergence of P k is hard, if not impossible to guarantee. Here, an alternative proof with a different, albeit restrictive assumption, is given. Without loss of generality, only the stability of the system for the regulator case, meaning x r = 0 at all times, is proven. Firstly, x k 0 since x k = 0 dictates u k = 0 , which makes it trivial. With a constant input u k during time interval t [ k Δ t ,   ( k + 1 ) Δ t ] , x k + 1 is obtained from the following:
x k + 1 = x k + k Δ t ( k + 1 ) Δ t f ( x ( τ ) ) + g ( x ( τ ) ) u k d τ
and obtain x ˜ k + 1 from:
x ˜ k + 1 = e A ( x k ) Δ t x k + k Δ t ( k + 1 ) Δ t e A ( x k ) ( s τ ) B ( x k ) u k d τ
The control input u k is designed based on (56), such that:
x ˜ k + 1 < x k
It should be noted that such an input u k will always exist since the system in Equation (52) is assumed point-wise controllable. The local truncation error (between the true nonlinear system and the discretized pseudo-linear system subject to the ZOH control law) at the end of the time interval is defined as:
e k + 1 = x ˜ k + 1 x k + 1
Define a term λ ( x k , Δ t ) as:
λ ( x k , Δ t ) = e k + 1 x ˜ k + 1 x k
By taking the limit of λ ( · , Δ t ) when Δ t 0 , the following is obtained:
lim Δ t 0 λ ( x k , Δ t ) = lim Δ t 0 x ˜ k + 1 x k + 1 x ˜ k + 1 x k = lim Δ t 0 x ˜ k + 1 x k + 1 Δ t 1 x ˜ k + 1 x k Δ t
Let:
λ F ( x k , Δ t ) = x ˜ k + 1 x k + 1 Δ t , λ G ( x k , Δ t ) = x ˜ k + 1 x k Δ t
One can then obtain:
lim Δ t 0 λ F ( x k , Δ t ) = lim Δ t 0 x ˜ k + 1 x k + 1 Δ t = lim Δ t 0 ( x ˜ k + 1 x k ) ( x k + 1 x k ) Δ t 0 lim Δ t 0 λ G ( x k , Δ t ) = lim Δ t 0 x ˜ k + 1 x k Δ t = x k T f ( x k ) + g ( x k ) u k x k
x k 0 f ( x k ) + g ( x k ) u k 0 . A stabilizing u k dictates x k T f ( x k ) + g ( x k ) u k 0 . From all of this, it can be concluded that:
lim Δ t 0 λ ( x k , Δ t ) = lim Δ t 0 λ F ( x k , Δ t ) lim Δ t 0 λ G ( x k , Δ t ) 0 x k T f ( x k ) + g ( x k ) u k x k = 0
Thus,   Δ t ( 0 , ) , which ensures the corresponding λ ( x k , Δ t ) ( 0 , 1 ) . This leads to:
e k + 1 = λ ( x k , Δ t ) x ˜ k + 1 x k < x k x ˜ k + 1
Combined with Equation (57), one can then easily deduce that x k + 1 < x k which means that the system would progress successively as, x i + 1 < x i i 0 , 1 , 2 , . Therefore, one can conclude that   Δ t [ 0 , ) , which guarantees that a control law designed based on Equation (54) will stabilize the original system described by Equation (51). Thus, it is shown that the sampled-data ZOH controller based on the pseudo-linear representation in Equation (52) also ensures that the states of the true nonlinear system stay close to the states evolving based on Equation (52). The next section focuses on the constrained sampled-data NMPC based on the SDC system.

5.2. Stability of Constrained Sampled-Data NMPC Based on SDC System

The only difference between the constrained sampled-data NMPC and constrained linear MPC is that the feasibility of the system needs to be checked at the start of every sampling interval. For simplicity, the brackets will be replaced as subscripts to indicate that the dependence on x k , ( · ) ( x k ) would be written as ( · ) k . Similarly for each x k , there must exist a set of ( Q f k , Q k , R k , K k , Δ U k ) that satisfy the following conditions:
γ k <
γ k 2 C ¯ k F k x k T Q ¯ N k C ¯ k H k + C k A k N x k T Q f k C k B ¯ k Δ U k Δ U k T Δ U k H k T C ¯ k T Q ¯ N k C ¯ k H k + R ¯ N k + B ¯ k T C k T Q f k C k B ¯ k 1 0
Γ ( x k ) Δ U k Υ ( x k )
( C k T Q f k C k ) 1 ( C k T Q f k C k ) 1 ( A k B k K k ) T ( C k T Q f k C k ) 1 C k T Q k C k ( C k T Q f k C k ) 1 K k T R k ( A k B k K k ) ( C k T Q f k C k ) 1 ( C k T Q f k C k ) 1 0 n × n 0 n × n C k T Q k C k ( C k T Q f k C k ) 1 0 n × n I n × n 0 n × n R k K k ( C k T Q f k C k ) 1 0 n × n 0 n × n I n × n 0
I m × m I m × m K k ( A k N x k + B ¯ k Δ U k ) u u b u T u l b u T
C z k C z k ( A k B k K k ) [ A k N x k + B ¯ k ( U T + Δ U k ) ] z u b z l b
After obtaining a suitable ( Q f k , Q k , R k ) from the above LMI, Δ U k is obtained by doing the following optimization:
Δ U k = error Δ U k   γ k
subject to the conditions specified in Equations (58)–(63). Upon solving the optimization problem, Δ u k can be obtained by:
Δ u k = [ I m × m   0 m × m     0 m × m ] Δ U k

6. Simulation Results

In the preceding sections, two methods for generating control laws to track trajectories for a quadrotor with state and input constraints were discussed. All of the simulations were performed on a Fujitsu America i7 Laptop with 8 GB RAM and a 2.8-GHz processor running MATLAB R2016a. For all of the cases considered, there was always a converged optimization solution. The simulation had a provision to bypass the optimization if it exceeded the default maximum number of function evaluations and continue to use the previous converged solution. However, such a scenario was not encountered for the cases considered. The parameters used in the simulations are described in Appendix A.
For the linear case, the six degrees of freedom equations of motion were linearized, and the MPC algorithm was implemented, which optimized the actuator effort based on the constraints imposed. For all of the simulation results, the initial equilibrium condition was that of a hover. The quadrotor model (5) is linearized at a certain hover position denoted as x T = [ p T   0 1 × 3   0 1 × 3   0 1 × 3 ] T , in which p R 3 is any constant position. The input u T needed to maintain the hover position is u T = m g 4   m g 4   m g 4   m g 4 T . Furthermore,
A c = 0 3 × 3 I 3 × 3 0 3 × 3 0 3 × 3 0 3 × 3 0 3 × 3 A c , Θ 0 3 × 3 0 3 × 3 0 3 × 3 0 3 × 3 I 3 × 3 0 3 × 3 0 3 × 3 0 3 × 3 0 3 × 3
where the A c , Θ = 0 g 0 g 0 0 0 0 0 and B c matrix is the same as in Equation (4). The linear MPC control actions are obtained using the matrices given above that optimize Equation (13) subject to constraints Equation (21).
For the nonlinear case, the control laws are derived using the system matrices described in Section 4 that optimize the cost in Equation (48) subject to the constraints in Equation (50).
For both cases, the true system dynamics presented in Equation (51) along with the first order actuator dynamics for the rotor thrusts is simulated. Three different reference trajectories are generated to evaluate the effectiveness of the control laws: (a) helical, (b) spherical spiral and (c) straight line segments. The control input bounds are set as u l b = [ 0   0   0   0 ] T and u u b = [ m g   m g   m g   m g ] T . The control horizon is chosen as N = 25 .
Figure 2 shows the reference trajectory and the tracking errors for both the linear and the nonlinear MPC cases. It can be seen that both controllers achieve good tracking; however, the transient response of the nonlinear MPC is better. Clearly, from Figure 2b, the speed of response with regards to tracking the position errors is much better for the nonlinear MPC.
Figure 3 shows the results of tracking a spherical spiral trajectory. As with the previous case, both controllers achieve successful tracking.
Figure 4 shows the results of tracking a straight line trajectory segment between two way points. As with the previous cases, both controllers achieve successful tracking. In this case, too, the superior transient performance of the nonlinear MPC is clearly seen. Additional studies show that the nonlinear MPC is able to track the trajectories even with a shorter prediction horizon. Table 1 showed the average root mean square (RMS) of position tracking errors of different prediction horizons. It can be seen that NMPC has better tracking performances in terms of position tracking. Table 2 showed the average control effort used in each tracking scenarios for different control horizons. In all three cases, NMPC is able to achieve better tracking with less control effort.

Nonlinear Model Predictive Control with Disturbance

In order to further assess the effectiveness of the NMPC scheme, simulations were performed with simultaneous high frequency disturbance torques injected in the roll and pitch channels. The disturbances are two exponentially decaying sinusoidal functions: δ τ = e 0 . 1 t [ sin ( 10 t ) ;   cos ( 10 t ) ;   0 ] during t ( 5 ,   10 ) ( s ) . Figure 5, Figure 6 and Figure 7 show the performance of linear and nonlinear MPC subject to disturbance. The disturbance is used to approximate the effects of wind during typical outdoor flight conditions.
Under disturbances, linear MPC and nonlinear MPC both performed well with an acceptable amount of tracking errors and kept the input within bounds. It can be seen from the figures that the nonlinear MPC significantly out-performs the linear MPC with regards to transient performance.

7. Summary and Conclusions

A linear and nonlinear model predictive control scheme were presented to control a quadrotor platform with an objective to track various reference trajectories. The nonlinear model predictive controller made use of a state-dependent coefficient representation of the nonlinear dynamics that accounted for the peculiarities of the platform under consideration. The closed loop stability analysis of the linear and nonlinear control schemes were presented to show the similarities, as well as to highlight the differences. The nonlinear controller clearly outperformed the linear controller with superior transient performance in both nominal conditions and in the presence of high frequency disturbance torques in the roll and pitch channels.

Author Contributions

Both Pengkai Ru and Kamesh Subbarao designed and performed the experiments, analyzed the data, and wrote the paper.

Conflicts of Interest

The authors declare no conflict of interest.

Appendix A. Simulation Parameters

The following parameters were used for all of the simulations. The parameters for the control law synthesis were the same regardless of the reference trajectories and the linear/nonlinear control schemes.
  • Mass: m = 0 . 8 (kg).
  • Moment of inertia: J = 0.0224 0.0224 0.0436 ( kg · m 2 ) .
  • Distance from the center of the rotor to CG of the quadrotor: L = 0 . 165 (m).
  • Ratio of rotor angular momentum to rotor lift: c = 0 . 002167 (m).
  • Gravitational acceleration: g = 9 . 8   ( m / s 2 ) .
  • Rotor actuator time constant: λ F = 50 .
  • Control horizon: N = 25 .
  • Prediction horizon: M = 25 .
  • Sample time: Δ t = 0 . 05 (s).
  • State weighting matrix: Q = diag 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 .
  • Input weighting matrix: R = diag 1 , 1 , 1 , 1 .

References

  1. Huang, H.; Hoffmann, G.M.; Waslander, S.L.; Tomlin, C.J. Aerodynamics and control of autonomous quadrotor helicopters in aggressive maneuvering. In Proceedings of the IEEE International Conference on Robotics and Automation, ICRA’09, Kobe, Japan, 12–17 May 2009; pp. 3277–3282. [Google Scholar]
  2. Materna, R. Highlights from Aerospace Industry Report 2012: Facts, Figures and Outlook for the Aviation and Aerospace Manufacturing Industry; Aerospace Industries Association of America Inc.: Arlington, VA, USA, 2012. [Google Scholar]
  3. Augugliaro, F.; Lupashin, S.; Hamer, M.; Male, C.; Hehn, M.; Mueller, M.W.; Willmann, J.S.; Gramazio, F.; Kohler, M.; D’Andrea, R. The flight assembled architecture installation: Cooperative construction with flying machines. IEEE Control Syst. 2014, 34, 46–64. [Google Scholar] [CrossRef]
  4. Lupashin, S.; Hehn, M.; Mueller, M.W.; Schoellig, A.P.; Sherback, M.; Andrea, R.D. A platform for aerial robotics research and demonstration: The flying machine arena. Mechatronics 2014, 24, 41–54. [Google Scholar] [CrossRef]
  5. Lindsey, Q.; Mellinger, D.; Kumar, V. Construction with quadrotor teams. Auton. Robots 2012, 33, 323–336. [Google Scholar] [CrossRef]
  6. DeVries, E.; Subbarao, K. Cooperative control of swarms of unmanned aerial vehicles. In Proceedings of the 49th AIAA Aerospace Sciences Meeting including the New Horizons Forum and Aerospace Exposition, Orlando, FL, USA, 4–7 January 2011. Number AIAA 2011-78. [Google Scholar]
  7. Mellinger, D.; Kumar, V. Minimum snap trajectory generation and control for quadrotors. In Proceedings of the International Conference on Robotics and Automation (ICRA 11), Shanghai, China, 9–11 May 2011. [Google Scholar]
  8. Turpin, M.; Michael, N.; Kumar, V. Trajectory design and control for aggressive formation flight with quadrotors. Auton. Robots 2012, 33, 143–156. [Google Scholar] [CrossRef]
  9. Mellinger, D.; Michael, N.; Kumar, V. Trajectory generation and control for precise aggressive maneuvers with quadrotors. Int. J. Robot. Res. 2012, 31, 664–674. [Google Scholar] [CrossRef]
  10. Subbarao, K.; Tule, C.; Ru, P. Nonlinear model predictive control applied to trajectory tracking for unmanned aerial vehicles. In Proceedings of the AIAA Atmospheric Flight Mechanics Conference, AIAA Aviation Forum, Dallas, TX, USA, 22–26 June 2015. Number AIAA 2015-2857. [Google Scholar]
  11. Pivtoraiko, M.; Mellinger, D.; Kumar, V. Incremental micro-UAV motion replanning for exploring unknown environments. In Proceedings of the 2013 IEEE International Conference on Robotics and Automation (ICRA), Karlsruhe, Germany, 6–10 May 2013; pp. 2452–2458. [Google Scholar]
  12. De Luca, A.; Lanari, L.; Oriolo, G. A sensitivity approach to optimal spline robot trajectories. Automatica 1991, 27, 535–539. [Google Scholar] [CrossRef]
  13. De Luca, A.; Oriolo, G. Trajectory planning and control for planar robots with passive Last joint. Int. J. Robot. Res. 2002, 21, 575–590. [Google Scholar] [CrossRef]
  14. Bouktir, Y.; Haddad, M.; Chettibi, T. Trajectory planning for a quadrotor helicopter. In Proceedings of the 16th Mediterranean Conference on Control and Automation, Ajaccio, France, 25–27 June 2008; pp. 1258–1263. [Google Scholar]
  15. Van Nieuwstadt, M.; Murray, R.M. Real time trajectory generation for differentially flat systems. Int. J. Robust Nonlinear Control 1996, 8, 995–1020. [Google Scholar] [CrossRef]
  16. Gillula, J.H.; Huang, H.; Vitus, M.P.; Tomlin, C.J. Design of guaranteed safe maneuvers using reachable sets: Autonomous quadrotor aerobatics in theory and practice. In Proceedings of the 2010 IEEE International Conference on Robotics and Automation (ICRA), Anchorage, AK, USA, 3–8 May 2010; pp. 1649–1654. [Google Scholar]
  17. Hoffmann, G.M.; Waslander, S.L.; Tomlin, C.J. Quadrotor helicopter trajectory tracking control. In Proceedings of the AIAA Guidance, Navigation, and Control Conference, Honolulu, HI, USA, 18–21 August 2008. [Google Scholar]
  18. Hehn, M.; D’Andrea, R. Quadrocopter trajectory generation and control. World Congress 2011, 18, 1485–1491. [Google Scholar] [CrossRef]
  19. Hehn, M.; Ritz, R.; D’Andrea, R. Performance benchmarking of quadrotor systems using time-optimal control. Auton. Robots 2012, 33, 69–88. [Google Scholar] [CrossRef]
  20. Palunko, I.; Fierro, R.; Cruz, P. Trajectory generation for swing-free maneuvers of a quadrotor with suspended payload: A dynamic programming approach. In Proceedings of the 2012 IEEE International Conference on Robotics and Automation (ICRA), St. Paul, MN, USA, 14–18 May 2012; pp. 2691–2697. [Google Scholar]
  21. Bertrand, S.; Hamel, T.; Piet-Lahanier, H. Stability analysis of an UAV controller using singular perturbation theory. IFAC Proc. 2008, 41, 5706–5711. [Google Scholar] [CrossRef]
  22. Flores, G.; Lozano, R. Lyapunov-based controller using singular perturbation theory: An application on a mini-UAV. In Proceedings of the American Control Conference, Washington, DC, USA, 17–19 June 2013; pp. 1596–1601. [Google Scholar]
  23. Das, A.; Subbarao, K.; Lewis, F.L. Dynamic inversion with zero-dynamics stabilization for quadrotor control. IET Control Theory Appl. 2009, 3, 303–314. [Google Scholar] [CrossRef]
  24. DeVries, E.; Subbarao, K. Backstepping based nested multi-loop control laws for a quadrotor. In Proceedings of the 11th International Conference on Control, Automation, Robotics and Vision, Singapore, 7–10 December 2010. [Google Scholar]
  25. Schoellig, A.P.; Mueller, F.L.; D’Andrea, R. Optimization-based iterative learning for precise quadrocopter trajectory tracking. Auton. Robots 2012, 33, 103–127. [Google Scholar] [CrossRef]
  26. Das, A.; Lewis, F.L.; Subbarao, K. Backstepping approach for controlling a quadrotor using neural networks. J. Intell. Robot. Syst. 2009, 56, 127–151. [Google Scholar] [CrossRef]
  27. Kim, H.J.; Shim, D.H.; Sastry, S. Nonlinear model predictive tracking control for rotorcraft-based unmanned aerial vehicles. In Proceedings of the American Control Conference, Anchorage, AK, USA, 8–10 May 2002; Volume 5, pp. 3576–3581. [Google Scholar]
  28. Pamadi, B.N. Performance, Stability, Dynamics, and Control of Airplanes; AIAA: Reston, VA, USA, 2004; p. 320. [Google Scholar]
  29. Lupashin, S.; Schöllig, A.; Sherback, M.; D’Andrea, R. A simple learning strategy for high-speed quadrocopter multi-flips. In Proceedings of the 2010 IEEE International Conference on Robotics and Automation (ICRA), Anchorage, AK, USA, 3–8 May 2010; pp. 1642–1648. [Google Scholar]
  30. Lopes, R.V.; Santana, P.H.R.Q.A.; Borges, G.A.; Ishihara, J.Y. Model predictive control applied to tracking and attitude stabilization of a VTOL quadrotor aircraft. In Proceedings of the COBEM, 21st International Congress of Mechanical Engineering, Natal, RN, Brazil, 24–28 October 2011. [Google Scholar]
  31. Mayne, D.Q.; Rawlings, J.B.; Rao, C.V.; Scokaert, P.O.M. Constrained model predictive control: Stability and optimality. Automatica 2000, 36, 789–814. [Google Scholar] [CrossRef]
  32. Alexis, K.; Nikolakopoulos, G.; Tzes, A. Model predictive control scheme for the autonomous flight of an unmanned quadrotor. In Proceedings of the 2011 IEEE International Symposium on Industrial Electronics (ISIE), Gdansk, Poland, 27–30 June 2011; pp. 2243–2248. [Google Scholar]
  33. Findeisen, R.; Raff, T.; Allgower, F. Sampled-data model predictive control for constrained continuous time systems. In Advanced Strategies in Control Systems with Input and Output Constraints; Springer: Berlin/Heidelberg, Germany, 2007; pp. 207–235. [Google Scholar]
  34. Wills, A.; Heath, W.P. Application of barrier function model predictive control to an edible oil refining process. J. Process Control 2005, 15, 183–200. [Google Scholar] [CrossRef]
  35. Camacho, E.F.; Bordons, C. Model Predictive Control; Springer: London, UK, 1999; pp. 18–20. [Google Scholar]
  36. Boyd, S.; Vandenberghe, L. Convex Optimization; Cambridge University Press: Cambridge, UK, 2004; pp. 152–156. [Google Scholar]
  37. Kwon, W.H.; Han, S.H. Receding Horizon Control: Model Predictive Control for State Models; Springer Science & Business Media: London, UK, 2006. [Google Scholar]
  38. Lewis, F.L.; Syrmos, V.L. Optimal Control; Wiley-Interscience: New York, NY, USA, 1995. [Google Scholar]
  39. Cimen, T. State-Dependent Riccati Equation (SDRE) control: A survey. In Proceedings of the 17th World Congress of the International Federation of Automatic Control (IFAC), Seoul, Korea, 6–11 July 2008; Volume 17, pp. 3761–3775. [Google Scholar]
  40. Bogdanov, A.; Carlsson, M.; Harvey, G.; Hunt, J.; Kieburtz, D.; Merwe, R.V.D.; Wan, E. State-Dependent Riccati Equation control of a small unmanned helicopter. In Proceedings of the AIAA Guidance Navigation and Control Conference, Austin, TX, USA, 11–14 August 2003. [Google Scholar]
  41. Hammett, K. Control of Nonlinear Systems via State Feedback State-Dependent Riccati Equation Techniques. Ph.D. Thesis, Air Force Institute of Technology, Wright Patterson Air Force Base, OH, USA, 1997. [Google Scholar]
Figure 1. Diagram of a quadrotor, top view.
Figure 1. Diagram of a quadrotor, top view.
Aerospace 04 00031 g001
Figure 2. Helical trajectory tracking.
Figure 2. Helical trajectory tracking.
Aerospace 04 00031 g002
Figure 3. Spherical spiral trajectory.
Figure 3. Spherical spiral trajectory.
Aerospace 04 00031 g003aAerospace 04 00031 g003b
Figure 4. Straight line trajectory segments.
Figure 4. Straight line trajectory segments.
Aerospace 04 00031 g004
Figure 5. Helical trajectory (with disturbance).
Figure 5. Helical trajectory (with disturbance).
Aerospace 04 00031 g005aAerospace 04 00031 g005b
Figure 6. Spherical spiral trajectory (with disturbance).
Figure 6. Spherical spiral trajectory (with disturbance).
Aerospace 04 00031 g006
Figure 7. Straight line trajectory segments (with disturbance).
Figure 7. Straight line trajectory segments (with disturbance).
Aerospace 04 00031 g007
Table 1. RMS of position tracking errors.
Table 1. RMS of position tracking errors.
TrajectoryNonlinear/LinearN = 10N = 15N = 25N = 35N = 45
HelicalNonlinear0.56630.58240.58310.57570.5832
HelicalLinear0.80750.83480.84840.83640.8334
Spherical SpiralNonlinear1.47391.47251.47251.47201.4726
Spherical SpiralLinear1.49841.50001.50161.50091.5009
Straight LineNonlinear0.31120.30200.31690.31600.3155
Straight LineLinear0.37220.35750.36330.36120.3603
Table 2. Average control effort ( Δ u T Δ u ).
Table 2. Average control effort ( Δ u T Δ u ).
TrajectoryNonlinear/LinearN = 10N = 15N = 25N = 35N = 45
HelicalNonlinear0.38380.37240.36520.36650.3674
HelicalLinear0.42050.41070.40570.40840.4114
Spherical SpiralNonlinear0.16870.16890.17000.17070.1710
Spherical SpiralLinear0.19100.19130.19140.19130.1913
Straight LineNonlinear0.21250.14330.12820.12800.1296
Straight LineLinear0.22450.15930.13880.13790.1367

Share and Cite

MDPI and ACS Style

Ru, P.; Subbarao, K. Nonlinear Model Predictive Control for Unmanned Aerial Vehicles. Aerospace 2017, 4, 31. https://doi.org/10.3390/aerospace4020031

AMA Style

Ru P, Subbarao K. Nonlinear Model Predictive Control for Unmanned Aerial Vehicles. Aerospace. 2017; 4(2):31. https://doi.org/10.3390/aerospace4020031

Chicago/Turabian Style

Ru, Pengkai, and Kamesh Subbarao. 2017. "Nonlinear Model Predictive Control for Unmanned Aerial Vehicles" Aerospace 4, no. 2: 31. https://doi.org/10.3390/aerospace4020031

APA Style

Ru, P., & Subbarao, K. (2017). Nonlinear Model Predictive Control for Unmanned Aerial Vehicles. Aerospace, 4(2), 31. https://doi.org/10.3390/aerospace4020031

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop