Review Article Volume 5 Issue 3
Maths and Systems Department, Royal School of Aeronautics, Morocco
Correspondence: Mostafa Mjahed, Maths and Systems Department, Royal School of Aeronautics, 40000 Marrakech, Morocco, Tel +212 662131514
Received: February 17, 2019 | Published: May 6, 2019
Citation: Mjahed M. Flight control system design using neural networks. Int Rob Auto J. 2019;5(3):96-98. DOI: 10.15406/iratj.2019.05.00180
The paper considers the problem of applying a neural design to the flight control of an aircraft. Simulation results are displayed in the case of a longitudinal autopilot for a remotely piloted vehicle.
Keywords: tracking, control, neural networks, aircraft, longitudinal, acceleration, altitude
In the last years, several control theories have been widely developed.1-3 They are generally applied to control task such as trajectory tracking and optimization. In most cases, the control approaches are based on linear methods and on the assumption that precise analytical model of the controlled system is available. However, relationships between physical variables are non linear and only represented by discrete numerical tables. Recently, neural networks have been proposed as feed-forward inverse dynamics controllers. In addition, a number of flight control applications illustrated the on-line learning capability of neural networks.4,5 This paper presents the design of a flight controller using neural networks. Emphasis is placed on the use of a command and stability augmentation system using an off-line trained network. The application is focused on a remotely piloted vehicle (RPV). The paper is organized as follows: Section 2 presents the longitudinal dynamics of a rigid airplane. The third section outlines the principles of a linear controller. The design of a neural controller is given in section 4. The effectiveness of the proposed approach is displayed by simulation results in the case of a longitudinal control.
The equations governing the motion of an aircraft are a very complicated set of non-linear coupled differential equations. However, under certain assumptions, they can be decoupled into the longitudinal and lateral equations. Altitude control is a longitudinal problem, and in this application, we will design an autopilot that controls the altitude of an RPV aircraft.
The non linear equations of the longitudinal motion of a rigid aircraft can be written6,7
(1)
With v: airspeed, g : flight path angle, a: angle of attack, q pitch rate, z: altitude, D: drag force, L: lift force, M: pitching moment, Iy: y-axis moment of inertia, m: aircraft mass, g: gravity acceleration and dm: elevator angle, T: thrust. dm is taken as the control input of the airplane longitudinal motion.
By using the complete model (eq. 1), we can simulate the longitudinal responses of the considered airplane at a flight point, z0 =2500 m and v0 = 40 m/s. Examples of simulation results are given in figures (Figure 1&2).
As we can see from the time responses of the path angle and the altitude displayed for a RPV (Figure 1&2), the longitudinal motion of the considered airplane is unstable. A controller needs to be designed so that the time responses satisfy all design requirements. The central function of a controller is to implement a control law, which plays an important role in determining the accuracy and the rapidity of a control system in following a command. Control of non linear systems by feedback linearization is well known and has been applied to control of a wide variety of non linear dynamic systems. In classical PID controllers (Figure 3), the linear control laws are related to the time integral and time derivative of the error (eq. 2.). By error we mean the difference between the command input and the output of a system. In the case of an altitude control, we have e = zc - z.
(2)
Another alternative approach to controller design is the state feedback method. With this technique, control laws are obtained by feeding back all the state variables through a constant gain matrix (Figure 4) such that:
(3)
Where X = (v, q, a, g, z) is the state vector, K gain matrix, Yc command input.
In this application we will train a neural network controller which will drive the longitudinal flight system to follow a linear reference model. Figure 5 depicts the architecture of a neural controller system design using the complete (non linear) equations of longitudinal motion of an aircraft.
Design requirements
Suppose that we would like the altitude, path, pitch angles, angle of attack, and velocity closed loop system to respond with the dynamics given by the following transfer functions:
(4)
(5)
(6)
(7)
The above transfer functions are equivalent to the following design requirements:
Velocity: 1st order behaviour, with a rise time of less than 1s and a zero steady-state error.
Pitch rate: 2nd order behaviour, with a damping ratio of 0.7, a rise time of 1s and a zero steady-state error.
Path angle and angle of attack: 2nd order behaviour, with a damping ratio of 0.7, a rise time of 2s and a zero steady-state error.
Altitude: 2nd order behaviour, with a damping ratio of 0.7, a rise time of 5s and a zero steady-state error.
We would like to find a controller network which takes the current (v, q, a, g, z) variables of the airplane, and the command constants Yc = (vc, qc, ac, gc, zc) as inputs, and outputs a signal dm which can be applied to the airplane. This current signal value dm should make the airplane’s next state (in 0.01 seconds) identical to that defined by the desired linear reference model.
Network training
Now let us train a neural network to help perform this model reference control. The desired linear reference model, described mathematically above by a transfer function, takes the current time t and the dm angle and returns the values of the outputs (v, q, a, g, z). We can simulate the desired linear reference model during 20 econds with a period of 0.01 second. The results can be regrouped in a matrix A(kT, vd(kT), qd(kT), ad(kT), gd(kT), zd(kT) , k=1,…, 2000 ).
(8)
First, take a look at the following diagram of the entire neural controller/airplane system (Figure 6).
The neural controller is a three layers back-propagation network. Its architecture is (10, 8, 1). Each input vector is represented by the 5 state variables x (kT) and the 5 constant command Yc. The rules for computing the output dm are:
(9)
(10)
(11)
Where wklij are synaptic weights of the connection between neuron i (of layer k) and neuron j (of layer l), and qi thresholds. These parameters are adjusted by minimizing the error function E, using the Levenberg-Marquardt training recipe.8,9
(12)
The problem is that the error between the actual airplane behavior and the desired linear behavior occurs on the outputs of the airplane. As the non linear model is known, for each neural output dm, the responses of the airplane x ((k+1)T), are computed.
The derivatives of the error are then back-propagated through the controller and used to adjust its weights and biases. Thus the control network must learn how to control the airplane so that it behaves like the linear reference model. It is used to obtain a minimization of the error. The network is trained for up to 600 epochs (Figure 7).
Network testing
To test the control network, the neural controller/airplane system is simulated and its response compared to the linear reference model. Figure 8–Figure 11 depict the results of simulating the linear reference model from an initial zero position, and a constant command vector Yc=( 1, 1, 1, 1, 1).
The network does a near perfect job of making the non linear airplane system, NCA, (solid line) act like the linear reference model, RM (dashed line).
In this paper, to turn feasible the control of a nonlinear system a back-propagation neural network is proposed. A simulation study shows the effectiveness of this approach in the case of a longitudinal control of a remotely piloted vehicle. Additionally, attention has been given to the choice of the training data, where several flight conditions are considered.
None.
Author declares that there is no conflict of interest.
©2019 Mjahed. This is an open access article distributed under the terms of the, which permits unrestricted use, distribution, and build upon your work non-commercially.