J. Mechatron. Electr. Power Veh. Technol 06 (2015) 19–30 Journal of Mechatronics, Electrical Power, and Vehicular Technology e-ISSN:2088-6985 p-ISSN: 2087-3379 www.mevjournal.com Β© 2015 RCEPM - LIPI All rights reserved. Open access under CC BY-NC-SA license. Accreditation Number: 633/AU/P2MI-LIPI/03/2015. doi: 10.14203/j.mev.2015.v6.19-30 NONLINEAR DYNAMIC MODELING OF A FIXED-WING UNMANNED AERIAL VEHICLE: A CASE STUDY OF WULUNG Fadjar Rahino Triputra a,c, *, Bambang Riyanto Trilaksono a , Trio Adiono a , Rianto Adhy Sasongko b , Mohamad Dahsyat c a School of Electrical Engineering and Informatics, Institut Teknologi Bandung Jl. Ganesha 10, Bandung, Indonesia b Faculty of Mechanical and Aerospace Engineering, Institut Teknologi Bandung Jl. Ganesha 10, Bandung, Indonesia c Agency for the Assessment and Application of Technology (BPPT) Komplek Puspiptek Serpong, Tangerang, Indonesia Received 13 February 2015; received in revised form 30 June 2015; accepted 30 June 2015 Published online 30 July 2015 Abstract Developing a nonlinear adaptive control system for a fixed-wing unmanned aerial vehicle (UAV) requires a mathematical representation of the system dynamics analytically as a set of differential equations in the form of a strict-feedback systems. This paper presents a method for modeling a nonlinear flight dynamics of the fixed-wing UAV of BPPT Wulung in any conditions of the flight altitude and airspeed for the first step into designing a nonlinear adaptive controller. The model was formed into 10- DOF differential equations in the form of strict-feedback systems which separates the terms of elevator, aileron, rudder, and throttle from the model. The model simulation results show the behavior of the flight dynamics of the Wulung UAV and also prove the compliance with the actual flight test results. Keywords: fixed-wing UAV; nonlinear flight dynamics; strict-feedback systems. I. INTRODUCTION A fixed-wing unmanned aerial vehicle (UAV) has many advantages to fulfill important missions in a wide range of territory. Agency for the Assessment and Application of Technology (BPPT) developed a fixed-wing UAV called Wulung as shown in Figure 1, to provide a solution of the country problem for keeping critical assets in a wide territory such as ocean and forest from disaster, illegal fishing, and illegal logging. This UAV has the proficiency to carry a 20 kg payload and the flight range of 200 km from the home base for various missions such as surveillance, aerial photography, search and rescue, and weather modification. However, to meet the needs of concerned missions, an adaptive flight control is needed to drive this fixed-wing UAV to the mission locations autonomously. Hence, a nonlinear dynamic model of Wulung UAV is also needed as part of the flight control design to manage the UAV flying to the mission destinations reliably and safely. Afterwards, some modeling studies of Wulung UAV have been conducted to formulate the flight control design. Formerly, the flight dynamics modeling of a fixed-wing UAV in the case of BPPT Wulung UAV [1] have been conducted using the linear systems approach [2] in which the analytical model aerodynamic coefficients are calculated using DATCOM software [3]. Flight test data of Wulung UAV has also been obtained to identify a linear model using grey-box method [4] that involves the analytical linear model. However, the flight dynamics model in the form of linear state-space cannot handle the changes in altitude and airspeed because the differential equations of flight dynamics use DATCOM aerodynamic coefficients which only can be applied for a specific altitude and airspeed. These studies led to a conclusion to develop a nonlinear Wulung UAV model in any condition of the flight altitude and airspeed for the first step into designing a nonlinear adaptive controller. Consequently, a * Corresponding Author: Tel: +62-8158000730 E-mail: fadjar.rahino@bppt.go.id F.R. Triputra et al. / J. Mechatron. Electr. Power Veh. Technol 06 (2015) 19–30 20 practical nonlinear flight dynamic model is required for a chosen adaptive control systems. Subsequently, an adaptive control systems of an integrator back stepping, that have the advantage to handle the nonlinear model well, have been described by Krstic [5]. Nevertheless, a complicated analytical model derivation must be solved in designing this control systems. Successively, command filtered back stepping (CFBS) has been proposed by Farrell [6][7] that eliminated the requirement of analytical model derivation and simplified its control design. However, introducing the Wulung UAV model to this controller needs a nonlinear model in the form of strict-feedback systems [8][9] that separates the terms of the fixed-wing UAV control variables as shown in Figure 2 and expressed as the following model: π‘₯ = 𝑓 π‘₯ + 𝑔 π‘₯ 𝑒 (1) where x and u are vectors of state and control variables respectively. This paper presents the development of a nonlinear flight dynamics model in any conditions of the flight altitude and airspeed by calculating aerodynamic coefficients as functions of altitude and airspeed. The program source of DATCOM software [3] are used as the basis to build analytical equations for aerodynamic coefficients using basic aerodynamics of lifting surfaces [10]. The advantage of this proposed nonlinear model is to eliminate the use of third- party software to obtain the aerodynamic coefficients, thus the geometry characteristic of the fixed-wing UAV such as wing span and wing chord can be directly applied. Later, we constructed 10 degrees of freedom (DOF) of differential equations in the form of strict- feedback systems to represent a non-linear dynamic model [2][10][11] using the model of the proposed forces and moments that have input parameters of state variables including the altitude and the airspeed. Simulations of BPPT Wulung UAV in longitudinal and lateral dynamic have been conducted using this model, then their results have been matched with the actual flight test data to prove the compliance of this nonlinear model. II. FIXED-WING UAV MODELING Figure 3 shows the movement components of fixed-wing UAV consisting of the attitude 𝛯 = πœ™ πœƒ πœ“ ⊺, velocity 𝑉 = π‘ˆ 𝑉 π‘Š ⊺, angular rate 𝛺 = 𝑝 π‘ž π‘Ÿ ⊺, forces 𝐹 = 𝑋 π‘Œ 𝑍 ⊺, and moments 𝑀 = πΏπœ™ π‘€πœƒ π‘πœ“ ⊺ in the vehicle coordinate frame π‘₯𝑣 , 𝑦𝑣 , 𝑧𝑣 . Based on the Newton's motion equations of the rigid body, the forces and moments [2][10] are defined as follows: 𝐹 = π‘šπ‘‰ + 𝛺 Γ— 𝑉 (2) 𝑀 = 𝐽𝛺 + 𝛺 Γ— 𝐽𝛺 (3) where π‘š is the mass and J is the moment of inertia. Figure 1. A prototype of BPPT Wulung UAV Figure 2. Strict-feedback systems model F.R. Triputra et al. / J. Mechatron. Electr. Power Veh. Technol 06 (2015) 19–30 21 Hence, the model of fixed-wing UAV is then written in the following equation: 𝑉 = 𝐹 π‘š βˆ’ 𝛺 Γ— 𝑉 (4) 𝛺 = π½βˆ’1 𝑀 βˆ’ 𝛺 Γ— 𝐽𝛺 (5) The velocity is generally obtained from inertia sensors such as GPS/INS that provides calculated velocity in an inertia coordinate frame. So these components can be converted into a vehicle coordinate frame as follows: 𝑉 = 𝑅𝑒 𝑣 𝑉𝑔𝑝𝑠 (6) where 𝑉𝑔𝑝𝑠 = π‘‰π‘›π‘œπ‘Ÿπ‘‘ 𝑕 π‘‰π‘’π‘Žπ‘ π‘‘ π‘‰π‘‘π‘œπ‘€π‘› ⊺ is inertia velocity from GPS/INS and R𝑒 𝑣 is direct cosine matrix (DCM) as defined as follows: 𝑅𝑒 𝑣 = π‘…πœ™ 𝑣 π‘…πœƒ 𝑣 π‘…πœ“ 𝑣 (7) π‘…πœ™ 𝑣 = 1 0 0 0 π‘π‘œπ‘  πœ™ 𝑠𝑖𝑛 πœ™ 0 βˆ’ 𝑠𝑖𝑛 πœ™ π‘π‘œπ‘  πœ™ (8) π‘…πœƒ 𝑣 = π‘π‘œπ‘  πœƒ 0 βˆ’π‘ π‘–π‘› πœƒ 0 1 0 𝑠𝑖𝑛 πœƒ 0 π‘π‘œπ‘  πœƒ (9) π‘…πœ“ 𝑣 = π‘π‘œπ‘  πœ“ 𝑠𝑖𝑛 πœ“ 0 βˆ’π‘ π‘–π‘› πœ“ π‘π‘œπ‘  πœ“ 0 0 0 1 (10) Beside angular rate of equation (5), the calculation of the Euler angular rate Ξ that has a link with the following angular rate is required: 𝛺 = πœ™ 0 0 + π‘…πœ™ 𝑣 0 πœƒ 0 + π‘…πœ™ 𝑣 π‘…πœƒ 𝑣 0 0 πœ“ (11) Hence, the Euler angular rate is written as follows: 𝛯 = 𝑅𝛺𝛺 (12) where, 𝑅𝛺 = 1 𝑠𝑖𝑛 πœ™ π‘‘π‘Žπ‘› πœƒ π‘π‘œπ‘  πœ™ π‘‘π‘Žπ‘› πœƒ 0 π‘π‘œπ‘  πœ™ βˆ’ 𝑠𝑖𝑛 πœ™ 0 𝑠𝑖𝑛 πœ™ π‘π‘œπ‘  πœƒ π‘π‘œπ‘  πœ™ π‘π‘œπ‘  πœƒ (13) In addition, the altitude rate can be written as follows: 𝑕 = βˆ’π‘‰π‘‘π‘œπ‘€π‘› = 𝑅𝑕 𝑉 (14) where, 𝑅𝑕 = 𝑠𝑖𝑛 πœƒ βˆ’ 𝑠𝑖𝑛 πœ™ π‘π‘œπ‘  πœƒ βˆ’ π‘π‘œπ‘  πœ™ π‘π‘œπ‘  πœƒ (15) Therefore, a nonlinear fixed-wing UAV model is obtained using equations (4), (5), (12), and (14) as 10-DOF of differential equations. Thereafter, the forces and the moments due to the influence of vehicle aerodynamics, propeller thrust, and gravity must be described as follows: 𝐹 = πΉπ‘Ž + 𝐹𝑝 + 𝐹𝑔 (16) 𝑀 = π‘€π‘Ž + 𝑀𝑝 (17) where πΉπ‘Ž and π‘€π‘Ž respectively are aerodynamic forces and moments, 𝐹𝑝 and 𝑀𝑝 respectively are propeller thrust forces and moments, and 𝐹𝑔 is gravity forces. A. Aerodynamic Forces and Moments Figure 4 shows three frames of coordinate, namely the vehicle coordinate frame π‘₯𝑣 , 𝑦𝑣 , 𝑧𝑣 , the stability coordinate frame π‘₯𝑠 , 𝑦𝑠, 𝑧𝑠 , and the wind coordinate frame π‘₯𝑀 , 𝑦𝑀 , 𝑧𝑀 . Aerodynamic forces and moments, that occurs in fixed-wing UAV, generally are caused by three kind of forces in the wind coordinate frame, i.e. lift force 𝐿, drag force 𝐷, and side force 𝑆. Then the aerodynamic forces in vehicle coordinate frame is written as follows: πΉπ‘Ž = 𝑅𝑠 𝑣 𝑅𝑀 𝑠 βˆ’π· 𝑆 βˆ’πΏ ⊺ (18) where, 𝑅𝑠 𝑣 = π‘π‘œπ‘  𝛼 0 βˆ’π‘ π‘–π‘› 𝛼 0 1 0 𝑠𝑖𝑛 𝛼 0 π‘π‘œπ‘  𝛼 (19) 𝑅𝑀 𝑠 = π‘π‘œπ‘  𝛽 𝑠𝑖𝑛 𝛽 0 βˆ’π‘ π‘–π‘› 𝛽 π‘π‘œπ‘  𝛽 0 0 0 1 (20) Figure 3. Vehicle coordinate frame components F.R. Triputra et al. / J. Mechatron. Electr. Power Veh. Technol 06 (2015) 19–30 22 Whereas the aerodynamic moments in vehicle coordinate frame is also written as follows: π‘€π‘Ž = πΏπœ™π‘Ž π‘€πœƒπ‘Ž π‘πœ“π‘Ž ⊺ (21) In order to form strict-feedback system, the forces and moments must be separated into two kind of forces and moments, i.e. affected by the control surfaces (elevator 𝛿𝑒 , aileron π›Ώπ‘Ž , and rudder π›Ώπ‘Ÿ ) or not affected. Then equations (18) and (21) are rewritten as follows: πΉπ‘Ž = πΉπ‘Žπ‘£ + πΆπΉπ‘Žπ›Ώ 𝛿𝑒 π›Ώπ‘Ž π›Ώπ‘Ÿ ⊺ (22) π‘€π‘Ž = π‘€π‘Žπ‘£ + πΆπ‘€π‘Žπ›Ώ 𝛿𝑒 π›Ώπ‘Ž π›Ώπ‘Ÿ ⊺ (23) Hence, the lift, drag, and side forces in wind coordinate frame must also be separated as it is done to aerodynamic forces in vehicle coordinate frame, then equations (22) and (23) are broken down into the following equation: πΉπ‘Žπ‘£ = 𝑅𝑠 𝑣 𝑅𝑀 𝑠 βˆ’π·π‘£ 𝑆𝑣 βˆ’πΏπ‘£ ⊺ (24) πΆπΉπ‘Žπ›Ώ = 𝑅𝑠 𝑣 𝑅𝑀 𝑠 βˆ’πΆπ·π‘’ 0 βˆ’πΆπ·π‘Ÿ 0 0 πΆπ‘†π‘Ÿ βˆ’πΆπΏπ‘’ 0 0 (25) π‘€π‘Žπ‘£ = πΏπœ™π‘£ π‘€πœƒπ‘£ π‘πœ“π‘£ ⊺ (26) πΆπ‘€π‘Žπ›Ώ = 0 πΆπΏπœ™ π‘Ž πΆπΏπœ™ π‘Ÿ πΆπ‘€πœƒπ‘’ 0 0 0 πΆπ‘πœ“ π‘Ž πΆπ‘πœ“ π‘Ÿ (27) Afterwards, the lift, drag, and side forces are calculated as follows: 𝐿𝑣 = 1 2 πœŒπ‘‰π‘Ž 2𝑆𝑀 𝐢𝐿 0 + 𝐢𝐿𝛼 𝛼 (28) 𝐢𝐿𝑒 = 1 2 πœŒπ‘‰π‘Ž 2𝑆𝑀 𝐢𝐿𝛿𝑒 (29) 𝑆𝑣 = 1 2 πœŒπ‘‰π‘Ž 2𝑆𝑀 𝐢𝑆𝛽 𝛽 (30) πΆπ‘†π‘Ÿ = 1 2 πœŒπ‘‰π‘Ž 2𝑆𝑀 πΆπ‘†π›Ώπ‘Ÿ (31) 𝐷𝑣 = 1 2 πœŒπ‘‰π‘Ž 2𝑆𝑀 𝐢𝐷 0 + 𝐢𝐷𝛼 𝛼 + 𝐢𝐷𝛽 𝛽 (32) 𝐢𝐷𝑒 = 1 2 πœŒπ‘‰π‘Ž 2𝑆𝑀 𝐢𝐷𝛿𝑒 (33) πΆπ·π‘Ÿ = 1 2 πœŒπ‘‰π‘Ž 2𝑆𝑀 πΆπ·π›Ώπ‘Ÿ (34) In addition, the rolling, pitching, and yawing moments are calculated as follows: πΏπœ™π‘£ = 1 2 πœŒπ‘‰π‘Ž 2𝑆𝑀 𝑏𝑀 πΆπΏπœ™ 𝛽 𝛽 (35) πΆπΏπœ™ π‘Ž = 1 2 πœŒπ‘‰π‘Ž 2𝑆𝑀 𝑏𝑀 πΆπΏπœ™ π›Ώπ‘Ž (36) πΆπΏπœ™ π‘Ÿ = 1 2 πœŒπ‘‰π‘Ž 2𝑆𝑀 𝑏𝑀 πΆπΏπœ™ π›Ώπ‘Ÿ (37) π‘€πœƒπ‘£ = 1 2 πœŒπ‘‰π‘Ž 2𝑆𝑀 𝑏𝑀 πΆπ‘€πœ™ 0 + πΆπ‘€πœ™ 𝛼 𝛼 (38) πΆπ‘€πœƒ 𝑒 = 1 2 πœŒπ‘‰π‘Ž 2𝑆𝑀 𝑏𝑀 πΆπ‘€πœƒ 𝛿𝑒 (39) π‘πœ“π‘£ = 1 2 πœŒπ‘‰π‘Ž 2𝑆𝑀 𝑏𝑀 πΆπ‘πœ“ 𝛽 𝛽 (40) πΆπ‘πœ“ π‘Ž = 1 2 πœŒπ‘‰π‘Ž 2𝑆𝑀 𝑏𝑀 πΆπ‘πœ“ π›Ώπ‘Ž (41) πΆπ‘πœ“ π‘Ÿ = 1 2 πœŒπ‘‰π‘Ž 2𝑆𝑀 𝑏𝑀 πΆπ‘πœ“ π›Ώπ‘Ÿ (42) where 𝜌 is the air density at altitude 𝑕, π‘‰π‘Ž is the true airspeed, 𝑆𝑀 is the main wing surface area, and 𝑏𝑀 is the main wingspan. Figure 4. Aerodynamic and thrust forces F.R. Triputra et al. / J. Mechatron. Electr. Power Veh. Technol 06 (2015) 19–30 23 In linear system approach, all of those coeffi- cients πΆβˆ— in equations (28) until (42) are assumed as constants. However, those coefficients are also depend on the true airspeed π‘‰π‘Ž and the altitude 𝑕. Hence, all of the coefficients are calculated into functions of πΆβˆ— π‘‰π‘Ž , 𝑕 . Note that βˆ— denotes any character. Subsequently, the aerodynamics coefficients are written as follows: 𝐢𝐿 0 = 𝐢𝐿𝑀𝛼 πœ‚π‘€ βˆ’ 𝛼𝑀0 + 𝐢𝐿𝑕𝛼 π‘žπ‘• π‘žβˆž 𝑆𝑕 𝑆𝑀 𝑑 𝑑𝛼 𝛼𝑀0 βˆ’ πœ‚π‘€ βˆ’ 𝛼𝑕0 + πœ‚π‘• (43) 𝐢𝐿𝛼 = 𝐢𝐿𝑀𝛼 + 𝐢𝐿𝑕𝛼 π‘žπ‘• π‘žβˆž 𝑆𝑕 𝑆𝑀 1 βˆ’ 𝑑 𝑑𝛼 (44) 𝐢𝐿𝛿𝑒 = 𝐢𝐿𝑕𝛿𝑒 π‘žπ‘• π‘žβˆž 𝑆𝑕 𝑆𝑀 (45) 𝐢𝑆𝛽 = 𝐢𝑆𝑣𝛽 π‘žπ‘• π‘žβˆž 𝑆𝑣 𝑆𝑀 (46) πΆπ‘†π›Ώπ‘Ÿ = πΆπ‘†π‘£π›Ώπ‘Ÿ π‘žπ‘• π‘žβˆž 𝑆𝑣 𝑆𝑀 (47) 𝐢𝐷 0 = 𝐢𝐷𝑀𝑝 + 𝐢𝐷𝑕𝑝 π‘žπ‘• π‘žβˆž 𝑆𝑕 𝑆𝑀 + 𝐢𝐷𝑣𝑝 π‘žπ‘• π‘žβˆž 𝑆𝑣 𝑆𝑀 + 𝐢𝐿𝑀𝛼 πœ‚π‘€ βˆ’ 𝛼𝑀0 2 πœ‹π΄π‘€ 𝑒𝑀 + 𝐢𝐿𝑕𝛼 𝛼𝑕 0 βˆ’ 𝛼𝑕0 2 πœ‹π΄π‘• 𝑒𝑕 π‘žπ‘• π‘žβˆž 𝑆𝑕 𝑆𝑀 𝐢𝐷 0 + 2𝐢𝐿 𝑕𝛼 2 𝛼𝑕 0 βˆ’π›Όπ‘• 0 πœ‹π΄π‘• 𝑒𝑕 π‘žπ‘• π‘žβˆž 𝑆𝑕 𝑆𝑀 πœ‚π‘• (48) 𝐢𝐷𝛼 = 2𝐢𝐿 𝑀 𝛼 2 Ξ±+πœ‚π‘€ βˆ’π›Όπ‘€ 0 πœ‹π΄π‘€ 𝑒𝑀 𝐢𝐷𝛼 = 2𝐢𝐿𝑕𝛼 2 𝛼𝑕 𝛼 βˆ’ 𝛼𝑕0 πœ‹π΄π‘• 𝑒𝑕 π‘žπ‘• π‘žβˆž 𝑆𝑕 𝑆𝑀 1 βˆ’ 𝑑 𝑑𝛼 (49) 𝐢𝐷𝛽 = 2𝐢𝑆𝑣𝛽 2 π›½βˆ’π›½π‘£0 πœ‹π΄π‘£π‘’π‘£ π‘žπ‘• π‘žβˆž 𝑆𝑣 𝑆𝑀 (50) 𝐢𝐷𝛿𝑒 = 2𝐢𝐿 𝑕𝛼 𝛼𝑕 𝛼 βˆ’π›Όπ‘• 0 πœ‹π΄π‘• 𝑒𝑕 𝐢𝐿𝑕𝛿𝑒 π‘žπ‘• π‘žβˆž 𝑆𝑕 𝑆𝑀 (51) πΆπ·π›Ώπ‘Ÿ = 2𝐢𝑆𝑣𝛽 π›½βˆ’π›½π‘£0 πœ‹π΄π‘£π‘’π‘£ πΆπ‘†π‘£π›Ώπ‘Ÿ π‘žπ‘• π‘žβˆž 𝑆𝑣 𝑆𝑀 (52) πΆπΏπœ™ 𝛽 = πΆπΏπœ™ 𝑀 𝛽 + πΆπΏπœ™ 𝑕𝛽 π‘žπ‘• π‘žβˆž 𝑆𝑕 𝑆𝑀 𝑏𝑕 𝑏𝑀 𝐢 πΏπœ™ 𝛽 + πΆπΏπœ™ 𝑣𝛽 π‘žπ‘• π‘žβˆž 𝑆𝑣 𝑆𝑀 𝑏𝑣 𝑏𝑀 (53) πΆπΏπœ™ 𝛿𝛼 = πΆπΏπœ™ 𝑀 𝛿𝛼 (54) πΆπΏπœ™ π›Ώπ‘Ÿ = πΆπ‘†π‘£π›Ώπ‘Ÿ 𝑧MAC v π‘žπ‘• π‘žβˆž 𝑆𝑣 𝑆𝑀 𝑏𝑀 (55) πΆπ‘€πœ™ 0 = πΆπ‘€πœ™ 𝑀 ac + πΆπ‘€πœ™ 𝑓0 +𝐢𝐿𝑀𝛼 πœ‚π‘€ βˆ’ 𝛼𝑀0 +𝐢𝐿𝑀𝛼 πœ‚π‘€ βˆ’ 𝛼𝑀0 π‘₯ac 𝑀𝑓 βˆ’π‘₯cg 𝑐 βˆ’πΆπΏπ‘•π›Ό π‘₯cg βˆ’π‘₯ac 𝑕 𝑐 π‘žπ‘• π‘žβˆž 𝑆𝑕 𝑆𝑀 𝑑 𝑑𝛼 𝛼𝑀0 βˆ’ πœ‚π‘€ βˆ’ 𝛼𝑕0 (56) πΆπ‘€πœ™ 𝛼 = 𝐢𝐿𝑀𝛼 π‘₯ac 𝑀𝑓 βˆ’π‘₯cg 𝑐 πΆπ‘€πœ™ 𝛼 βˆ’ 𝐢𝐿𝑕𝛼 π‘₯cg βˆ’π‘₯ac 𝑕 𝑐 π‘žπ‘• π‘žβˆž 𝑆𝑕 𝑆𝑀 1 βˆ’ 𝑑 𝑑𝛼 (57) πΆπ‘€πœƒ 𝛿𝑒 = βˆ’πΆπΏπ‘•π›Ώπ‘’ π‘₯cg βˆ’π‘₯ac 𝑕 𝑐 π‘žπ‘• π‘žβˆž 𝑆𝑕 𝑆𝑀 (58) πΆπ‘πœ“ 𝛽 = βˆ’πΆπ‘†π‘£π›½ π‘₯cg βˆ’π‘₯ac 𝑣 𝑐 π‘žπ‘• π‘žβˆž 𝑆𝑣 𝑆𝑀 (59) πΆπ‘πœ“ π›Ώπ‘Ž = πΆπ‘πœ“ 𝑀 π›Ώπ‘Ž (60) πΆπ‘πœ“ π›Ώπ‘Ÿ = βˆ’πΆπ‘†π‘£π›Ώπ‘Ÿ π‘₯cg βˆ’π‘₯ac 𝑣 𝑐 π‘žπ‘• π‘žβˆž 𝑆𝑣 𝑆𝑀 (61) where πœ‚π‘€ and πœ‚π‘• respectively are wing and hori- zontal tail plane (HTP) rigging angles, 𝐴𝑀 , 𝐴𝑕 , 𝐴𝑣 respectively are wing, HTP, and vertical tail plane (VTP) aspect ratios, 𝛼𝑀0 , 𝛼𝑕0 , 𝛽𝑣0 respectively are wing, HTP, and VTP angles of attack at zero-lift, π‘žπ‘• π‘žβˆž is HTP dynamic pressure ratio, 𝑑 𝑑𝛼 is downwash gradient, 𝑒𝑀 , 𝑒𝑕 , 𝑒𝑣 respectively are wing, HTP, and VTP Oswald coefficient, 𝑆𝑕 and 𝑆𝑣 respectively are HTP and VTP surface area, 𝑏𝑕 and 𝑏𝑣 respectively are HTP and VTP span. 𝛼𝑕 𝛼 is HTP angle of attack due to the vehicle angle of attack that is formulated as follows: 𝛼𝑕 𝛼 = 𝛼 + πœ‚π‘• βˆ’ πœ‚π‘€ βˆ’ 𝑑 𝑑𝛼 Ξ± βˆ’ 𝛼𝑀0 (62) 𝑐 is wing mean aerodynamic chord (MAC) length, π‘₯cg is center position of gravity, π‘₯ac 𝑀𝑓 , π‘₯ac 𝑕 , π‘₯ac 𝑣 respectively are wing-fuselage, HTP, and VTP aerodynamic center (a.c.) positions, and 𝑧MAC v is VTP MAC normal position. 𝐢𝐷𝑀𝑝 , 𝐢𝐷𝑕𝑝 , 𝐢𝐷𝑣𝑝 respectively are wing, HTP, and VTP parasite drag. πΆπ‘€πœ™ 𝑀 ac and πΆπ‘€πœ™ 𝑓0 respectively are wing and fuselage rolling moment coefficient at 𝛼 = 0. πΆπ‘πœ“ 𝑀 π›Ώπ‘Ž is wing yawing moment coefficient due to aileron. Furthermore, the wing, HTP, and VTP lift coefficients respectively are defined as follows [10]: F.R. Triputra et al. / J. Mechatron. Electr. Power Veh. Technol 06 (2015) 19–30 24 𝐢𝐿𝑀𝛼 = 2πœ‹π΄π‘€ 2+ 𝐴𝑀 1βˆ’ π‘‰π‘Ž π‘Ž 2 𝑐𝑙𝑀 𝛼 0 2πœ‹ 2 1+ tan 𝛬 1 2𝑀 2 1βˆ’ π‘‰π‘Ž π‘Ž 2 +4 (63) 𝐢𝐿𝑕𝛼 = 2πœ‹π΄π‘• 2+ 𝐴𝑕 1βˆ’ π‘‰π‘Ž π‘Ž 2 𝑐𝑙𝑕𝛼 0 2πœ‹ 2 1+ tan 𝛬 1 2𝑕 2 1βˆ’ π‘‰π‘Ž π‘Ž 2 +4 (64) 𝐢𝑆𝑣𝛽 = βˆ’ 2πœ‹π΄π‘£ 2+ 𝐴𝑣 1βˆ’ π‘‰π‘Ž π‘Ž 2 𝑐𝑙𝑣𝛼 0 2πœ‹ 2 1+ tan 𝛬 1 2𝑣 2 1βˆ’ π‘‰π‘Ž π‘Ž 2 +4 (65) where π‘Ž is the speed of sound at altitude 𝑕, 𝑐𝑙 𝑀𝛼 0 , 𝑐𝑙 𝑕𝛼 0 , 𝑐𝑙 𝑣𝛼 0 respectively are wing, HTP, and VTP airfoil lift coefficients, 𝛬1 2𝑀 , 𝛬1 2𝑕 , 𝛬1 2𝑣 respectively are wing, HTP, and VTP half sweep angles. In addition, the elevator, aileron, and rudder coefficients respectively are defined as follows [10]: 𝐢𝐿𝑕𝛿𝑒 = 𝑐𝑙𝑕𝛿𝑒0 1βˆ’ π‘‰π‘Ž π‘Ž 2 (66) πΆπΏπœ™π‘€ π›Ώπ‘Ž = π‘π‘™πœ™ 𝑕 π›Ώπ‘Ž 0 1βˆ’ π‘‰π‘Ž π‘Ž 2 (67) πΆπ‘†π‘£π›Ώπ‘Ÿ = π‘π‘™π‘£π›Ώπ‘Ÿ0 1βˆ’ π‘‰π‘Ž π‘Ž 2 (68) where 𝑐𝑙 𝑕𝛿𝑒0 , 𝑐𝑙 πœ™π‘• π›Ώπ‘Ž 0 , 𝑐𝑙 π‘£π›Ώπ‘Ÿ0 respectively are elevator, aileron, and rudder airfoil lift coefficients which are not affected by altitude and airspeed. The wing, HTP, and VTP rolling moment are defined as follows [10]: πΆπΏπœ™ 𝑀 𝛽 = βˆ’πΆπΏπ‘€π›Ό πœ‚π‘€ βˆ’ 𝛼𝑀0 𝑦MAC 𝑀 𝑏𝑀 𝐢𝐿 sin 2𝛬𝑀LE βˆ’ 𝛀𝑀 𝐢𝐿𝑀𝛼 𝑦MAC 𝑀 𝑏𝑀 (69) πΆπΏπœ™ 𝑕𝛽 = βˆ’πΆπΏπ‘•π›Ό πœ‚π‘• βˆ’ 𝛼𝑕0 𝑦MAC 𝑕 𝑏𝑕 sin 2𝛬𝑕LE βˆ’ 𝛀𝑕 𝐢𝐿𝑕𝛼 𝑦MAC 𝑕 𝑏𝑕 (70) πΆπΏπœ™ 𝑣𝛽 = 𝐢𝑆𝑣𝛽 𝑧MAC 𝑣 𝑏𝑣 (71) where 𝑦MAC 𝑀 and 𝑦MAC 𝑕 respectively are wing and HTP MAC side positions, 𝛀𝑀 and 𝛀𝑕 respectively are wing and HTP dihedral angles, 𝛬𝑀LE and 𝛬𝑕LE respectively are wing and HTP leading-edge sweep angles. B. Propeller Thrust Forces and Moments The relation between the engine power and the thrust generally use the power and thrust coefficients [12][11] that are defined respectively as follows: 𝐢𝑝 𝐽 = 𝑃 πœŒπ‘›prop 3 𝐷prop 5 (72) 𝐢𝑑 𝐽 = 𝑇 πœŒπ‘›prop 2 𝐷prop 4 (73) where 𝑃 is engine power, 𝐷prop is propeller diameter, 𝑛prop is propeller rotation per second, and 𝐽 is rate of advance that is also defined as follows [12][11]: 𝐽 = π‘‰π‘Ž 𝑛prop 𝐷prop (74) Figure 5a and Figure 5b show the power and thrust coefficient for Wulung UAV model that can be represented as polynomial equations as follow: 𝐢𝑝 𝐽 = π‘ŽπΆπ‘ 1 𝐽3 + π‘ŽπΆπ‘ 2 𝐽2 + π‘ŽπΆπ‘ 3 +π‘ŽπΆπ‘ 4 (75) 𝐢𝑑 𝐽 = π‘ŽπΆπ‘‘1 𝐽3 + π‘ŽπΆπ‘‘2 𝐽2 + π‘ŽπΆπ‘‘3 𝐽 +π‘ŽπΆπ‘‘4 (76) Then, the relation between the throttle and engine power is proposed as follows: 𝑃 𝛿𝑑 = π‘Žπ‘ƒ1 𝛿𝑑 3 + π‘Žπ‘ƒ2 𝛿𝑑 2 + π‘Žπ‘ƒ3 𝛿𝑑 + π‘Žπ‘ƒ4 (77) Figure 5c shows the relation of equation (77) for Wulung UAV. Therefore, a solution for the following equation must be performed to obtain propeller rotation 𝑛. 𝑃 𝛿𝑑 = π‘Žπ‘›1 𝑛 3 + π‘Žπ‘›2 𝑛 2 + π‘Žπ‘›3 𝑛 + π‘Žπ‘›4 (78) where π‘Žπ‘›1 = βˆ’π‘ŽπΆπ‘ 4 πœŒπ·π‘π‘Ÿπ‘œπ‘ 3 , π‘Žπ‘›2 = βˆ’π‘ŽπΆπ‘ 3 πœŒπ‘‰π‘Ž π·π‘π‘Ÿπ‘œπ‘ 2 , π‘Žπ‘›3 = βˆ’π‘ŽπΆπ‘ 2 πœŒπ‘‰π‘Ž 2π·π‘π‘Ÿπ‘œπ‘ , and π‘Žπ‘›4 = βˆ’π‘ŽπΆπ‘ 1 πœŒπ‘‰π‘Ž 3. Hence, the propeller thrust can be calculated as follows: 𝑇 = 𝐢𝑑 π‘‰π‘Ž π‘›π‘π‘Ÿπ‘œπ‘ π·π‘π‘Ÿπ‘œπ‘ πœŒπ‘›2π·π‘π‘Ÿπ‘œπ‘ 4 (79) Next, the thrust as shown in Figure 5d is linearized as follows: 𝑇 = 𝑇0 + 𝐢𝑇𝛿𝑑 𝛿𝑑 (80) F.R. Triputra et al. / J. Mechatron. Electr. Power Veh. Technol 06 (2015) 19–30 25 Similar to aerodynamic coefficients calculation, 𝑇0 and 𝐢𝑇𝛿𝑑 are depend on the true airspeed π‘‰π‘Ž and the altitude 𝑕. Hence, the forces and moments caused by the thrust in vehicle coordinate frame is written as follows: 𝐹𝑝 = 𝐹𝑝𝑣 + 𝐢𝐹𝑝 𝛿 𝛿𝑑 (81) 𝑀𝑝 = 𝑀𝑝𝑣 + 𝐢𝑀𝑝 𝛿 𝛿𝑑 (82) Similar to aerodynamic forces and moment, the equations (81) and (82) is then broken down as follows: 𝐹𝑝𝑣 = 𝑇0 π‘π‘œπ‘  𝜏 0 βˆ’π‘‡0 𝑠𝑖𝑛 𝜏 ⊺ (83) 𝐢𝐹𝑝 𝛿 = 𝐢𝑇𝛿𝑑 π‘π‘œπ‘  𝜏 0 βˆ’πΆπ‘‡π›Ώπ‘‘ 𝑠𝑖𝑛 𝜏 ⊺ (84) 𝑀𝑝𝑣 = 𝐹𝑝𝑣 Γ— π‘ƒπ‘π‘Ÿπ‘œπ‘ (85) 𝐢𝑀𝑝 𝛿 = 𝐢𝐹𝑝 𝛿 Γ— π‘ƒπ‘π‘Ÿπ‘œπ‘ (86) where π‘ƒπ‘π‘Ÿπ‘œπ‘ = π‘₯π‘π‘Ÿπ‘œπ‘ 0 π‘§π‘π‘Ÿπ‘œπ‘ ⊺ is the position of the propeller in vehicle coordinate frame and 𝜏 is propeller rigging angle. C. Gravitational Forces Figure 6b shows the forces of gravitation in inertia coordinate frame, while Figure 6a shows the forces in vehicle coordinate frame. Thus, we write the gravitational forces in vehicle coordinate frame as follows: (a) (b) (c) (d) Figure 5. Wulung propeller model: (a) Power coefficient; (b) Thrust coefficient; (c) Power vs throttle; (d) Thrust vs throttle (a) (b) Figure 6. Gravitational forces: (a) Vehicle frame; (b) Inertia frame F.R. Triputra et al. / J. Mechatron. Electr. Power Veh. Technol 06 (2015) 19–30 26 𝐹𝑔 = 𝑅𝑒 𝑣 0 0 π‘šπ‘” ⊺ = π‘šπ‘” βˆ’π‘ π‘–π‘› πœƒ π‘π‘œπ‘  πœƒ 𝑠𝑖𝑛 πœ™ π‘π‘œπ‘  πœƒ π‘π‘œπ‘  πœ™ ⊺ (87) where π‘š is mass of the fixed-wing UAV and 𝑔 is gravitational constant. D. Nonlinear Flight Dynamic Model The control input 𝑒 and the state variable π‘₯ are defined as follows: 𝑒 = 𝛿𝑒 π›Ώπ‘Ž π›Ώπ‘Ÿ 𝛿𝑑 ⊺ (88) π‘₯ = π‘‰βŠΊ π›ΊβŠΊ π›―βŠΊ 𝑕 ⊺ (89) Hence, from equations (12), (14), (24)-(27), (83)-(87), the nonlinear functions f x and g x of equation (1) can be written as follows: 𝑓 π‘₯ = πΉπ‘Ž 𝑣 +𝐹𝑝𝑣 +𝐹𝑔 π‘š βˆ’ 𝛺 Γ— 𝑉 π½βˆ’1 π‘€π‘Žπ‘£ + 𝑀𝑝𝑣 βˆ’ 𝛺 Γ— 𝐽𝛺 𝑅𝛺𝛺 𝑅𝑕 𝑉 (90) 𝑔 π‘₯ = πΆπΉπ‘Ž 𝛿 π‘š 𝐢𝐹𝑝𝛿 π‘š π½βˆ’1πΆπ‘€π‘Ž 𝛿 π½βˆ’1𝐢𝑀𝑝 𝛿 04Γ—3 04Γ—1 (91 III. FLIGHT DYNAMICS RESPONSES Wulung UAV profiles in Table 1 are used as model parameters for simulating the responses of the flight dynamics. Two scenarios of disturbance are done by providing doublet angles of elevator and aileron to show the longitudinal and lateral dynamics responses of Wulung UAV. Before performing simulation, the steady state of flight must be found in the condition that the UAV cruises without changing the altitude by trimming the elevator and throttle. Therefore, if the altitude, throttle, and elevator are respectively set to 𝑕 = 3000 feet, 𝛿𝑑 = 67%, and 𝛿𝑒 = βˆ’3.3 deg, the steady state condition of Wulung UAV model will be occurred at pitching angle πœƒ = 1.87 deg, axial velocity π‘ˆ = 58.75 knots, and normal velocity π‘Š = 1.21 knots. Wulung UAV model is then simulated using 10-DOF differential equation (90) and (91). After the calculation, the velocity, angular rate, attitude, and altitude of Wulung UAV are obtained for each simulation scenario. A. Longitudinal Dynamics Responses In this simulation scenario, the UAV moves westward with the throttle, altitude, velocity, and Table 1. Wulung UAV profiles Parameter Unit Mass, π‘š 120 (kg) Wing area, 𝑆𝑀 3.9718 (m 2 ) Wingspan, 𝑏𝑀 6.355 (m) HTP area, 𝑆𝑕 0.819 (m 2 ) HTP span, 𝑏𝑕 1.95 (m) VTP area, 𝑆𝑣 0.519 (m 2 ) VTP span, 𝑏𝑣 0.845 (m) Wing rigging angle, πœ‚π‘€ 6ο‚° HTP rigging angle, πœ‚π‘• -3ο‚° Wing dihedral, 𝛀𝑀 3ο‚° c.g. position, π‘₯cg -1.576 (m) Wing-fuselage a.c. position, π‘₯ac 𝑀𝑓 -1.497 (m) HTP a.c. position, π‘₯ac 𝑕 -4.136 (m) VTP a.c. position, π‘₯ac 𝑣 -3.97 (m) Wing MAC side position, 𝑦MAC 𝑀 1.589 (m) HTP MAC side position, 𝑦MAC 𝑕 0.488 (m) VTP MAC normal position, 𝑧MAC v 0.294 (m) 𝐽xx 79.045 (kgm 2 ) 𝐽yy 103.473 (kgm 2 ) 𝐽𝑧𝑧 159.541 (kgm 2 ) 𝐽π‘₯𝑧 19.131 (kgm 2 ) Engine max power 20 (HP) Propeller diameter, π·π‘π‘Ÿπ‘œπ‘ 32 (inch) F.R. Triputra et al. / J. Mechatron. Electr. Power Veh. Technol 06 (2015) 19–30 27 attitude as well as steady state condition. Therefore, the elevator angle is set to 𝛿𝑒 = 6.7 deg at time 𝑑 = 10 sec, 𝛿𝑒 = βˆ’13.3 deg at time 𝑑 = 10.5 sec, and 𝛿𝑒 = βˆ’3.3 deg at time 𝑑 = 11 sec as shown in Figure 7a. Figure 7a also shows the responses of the pitch and attack angles. Once elevator trailing edge down (positive), decreasing the both angles of pitch and attack, and after elevator trailing edge up (negative), increasing the both angles of pitch and attack. Thereafter, the angle of attack immediately return to normal angle less than 3 second, but the pitching angle takes time of damped oscillation to back to steady states. In addition, Figure 7b shows the responses of the velocity and altitude. It seems clear that the Wulung UAV suffered Phugoid motion with 2 minutes of damping. This simulation denotes to a conclusion that the longitudinal dynamics characteristic of Wulung UAV is stable without a hard control effort that indicated by the convergence of states. B. Lateral Dynamics Responses Similar to longitudinal simulation scenario, the fixed-wing UAV moves westward in steady state condition. Therefore, the aileron angle is set to π›Ώπ‘Ž = 5 deg at time 𝑑 = 10 sec, π›Ώπ‘Ž = βˆ’5 deg at time 𝑑 = 10.5 sec, and aileron angle back to zero again at time 𝑑 = 11 sec as shown in Figure 8a. Figure 8a also shows the responses of the roll, pitch, and sideslip angles. Once left aileron trailing edge down (positive), increasing bank angle (roll to right) at high roll rate but decreasing the sideslip angle slightly, and after aileron trailing edge up (negative), still increasing the bank angle at weakened roll rate and also increasing the sideslip angle. Thereafter, the sideslip angle takes time about 2 minutes of damped oscillation to back to the steady state. In contrast, the bank angle decreases to minimum negative angle (roll to left) about 30 seconds and then slowly rises gradually towards steady state in a long time. The aileron doublet disturbance is also reacting on the pitching angle that oscillates for about 3 minutes damping. Figure 8b shows the responses of the heading and altitude. It seems clear that Wulung UAV bank angle did not immediately return to the steady state in a long time after aileron doublet disturbance, thus causing the vehicle has a tendency to turn. This (a) (b) Figure 7. Wulung longitudinal dynamics responses: (a) Elevator doublet and the responses; (b) The velocity and altitude (a) (b) Figure 8. Wulung lateral dynamics responses: (a) Aileron doublet and the responses; (b) The heading and altitude F.R. Triputra et al. / J. Mechatron. Electr. Power Veh. Technol 06 (2015) 19–30 28 simulation denotes to a conclusion that the lateral dynamics characteristic of Wulung UAV is stable but still need a lateral control to restore the bank angle to the steady state immediately. Wulung UAV also suffered phugoid motion for about 2 minutes that is indicated by pitching angle damped oscillation. IV. SIMULATION AND FLIGHT TEST A flight test of Wulung UAV has been conducted and the results are compared with model simulation. The elevator doublet of flight test as shown in Figure 9b is mimicked into model simulation of longitudinal dynamic as shown in Figure 9a. The difference of physical angles may be caused by initial steady state and the windy conditions when the flight test conducted. Further, both results are normalized so the steady state is same and compared as shown in Figure 9c and Figure 9d. Figure 9c shows that both responses of the pitching angle and the angle of attack between model simulation and flight test approached similarity. While Figure 9d shows that pitch rate responses are nearly similar between model simulation and the flight test. Hence, these results demonstrate conformity of model simulation with the actual flight of longitudinal dynamic. The model is better than the system identification method using grey-box [1] because it is compliance with any conditions of altitude and airspeed. Figure 10 shows the response of normalized altitude and velocity so the initial steady state is same. The difference between the simulation and the flight test may be caused by the windy conditions when the flight test conducted. (a) (b) (c) (d) Figure 9. Model simulation and flight test results of longitudinal dynamics responses; (a) Model simulation results; (b) Flight test results; (c) Pitching and attack angles responses; (d) Pitch rate responses F.R. Triputra et al. / J. Mechatron. Electr. Power Veh. Technol 06 (2015) 19–30 29 V. CONCLUSION The longitudinal and lateral dynamics responses of Wulung UAV are good enough concerning to the outcome of model simulations that show the stability of flying without the hard control effort. Our proposed model is also compliance with flight test results of Wulung UAV. Furthermore, our nonlinear model of the fixed-wing UAV has the advantage to calculate flight dynamics for all conditions of altitude and airspeed that is important to build a controller that adapt to the UAV altitude and airspeed. As future works, this model will be used for an adaptive nonlinear controller using command filtered backstepping method. This model also will be employed for building the hardware in the loop simulation (HILS) systems that very useful for testing the hardware controller module before being used in the field. ACKNOWLEDGEMENT The authors express thanks to UAV team of BPPT Technology Center for Defense and Security Industry, for the support and the providing of required facilities and conducive conditions for this research. REFERENCES [1] F. R. Triputra, et al., "Longitudinal Dynamic System Modeling of a Fixed-Wing UAV towards Autonomous Flight Control System Development: A Case Study of BPPT Wulung UAV Platform," in Proc. IEEE- ICSET, Sep. 2012. [2] M. V. Cook, Flight Dynamics Principles: A Linear Systems Approach to Aircraft Stabili- ty and Control. 2nd ed., Massachusetts: El- seivier, 2007. [3] R. D. Finck, USAF Stability and Control DATCOM. McDonnell Douglas Corp, Wright-Patterson AFB, Ohio,Final Report AFWAL-TR-83-3048, revised, April, 1978. [4] L. Ljung, System Identification Toolbox Users’s Guide for Use with MATLAB, The Math Works Inc., 1995. [5] M. Krstic, et al., Nonlinear and Adaptive Control Design. New York: John Wiley & Sons, Inc., 1995, pp. 87-121. [6] J. A. Farrell and M. M. Polycarpou, Adap- tive Approximation Based Control. New Jer- sey: John Wiley & Sons, Inc., 2006. [7] J. A. Farrell, et al., "Command Filtered Backstepping", IEEE Transaction on Automatic Control, 54(6), pp. 1391-1395, June, 2009. [8] O. Harkegard and S. T. Glad, Flight Control Design Using Backstepping. Linkoping University, Sweden, Rep. No. LiTH-ISY-R- 2323, 2001. [9] T. Espinoza, et al., "Backstepping - sliding mode controllers applied to a fixed-wing UAV," in Proc. IEEE-CERMA, May, 2013. [10] D. K. Schmidt, Modern Flight Dynamics. int. ed., New York: McGraw-Hill, 2012, pp. 156-322. Figure 10. Altitude and velocity responses F.R. Triputra et al. / J. Mechatron. Electr. Power Veh. Technol 06 (2015) 19–30 30 [11] R. W. Beard and T. W. McLain, Small Unmanned Aircraft: Theory and Practice. United Kingdom: Princeton University Press, 2012, pp. 8-38. [12] A. Fillipone, "Propeller Characteristics", 2.4.9, Aerospace Engineering Desk Referen- ce. First ed., San Diego, CA: Elsevier Inc., 2009.