1 Introduction

The UX-6 UAV shown in Fig. 1 is a fixed-wing UAV developed by The Department of Computer Science and Electronics, Universitas Gadjah Mada (Priyambodo et al., 2016a). It was designed as an aerial mapping platform with flying wing configuration. The UX-6 is classified as a small UAV with less than 2 m wingspan. The UX-6 UAV autonomous control system is being developed, using a model-based design approach (Aarenstrup, 2015). This approach needs a mathematical or flight model, as the base for system development. Through the flight model, the aircraft attitude and motion could be learned, as well as the aircraft controller design could be simulated like a linear quadratic regulator (LQR) controller (Dhewa et al., 2017) and proportional integral derivative (PID) controller ((Priyambodo & Dharmawan, 2017; Priyambodo et al., 2016b)).

Fig. 1
figure 1

UX-6 fixed-wing UAV

Each UAV has its characteristics, known as model parameters (Napolitano, 2012). A big UAV or manned aircraft usually uses a wind tunnel test to get the model parameters. This method has the best and accurate result, but there are a lot of challenges to be implemented on small UAVs. First, a limited wind tunnel test facility in Indonesia, none of them located in our university. Second, the cost for the wind tunnel test relatively high (especially for build a precision 3D model scale). Third, wind tunnel tests need an experienced operator and data interpreter. From these considerations, the wind tunnel test is incompatible with this research.

This research focuses on how to build a flight model of small fixed-wing UAV like UX-6 UAV using analytical modeling. Analytical modeling was developed based on aircraft geometry data. Then, aircraft geometry data processed using Datcom + Pro software (Galbraith, 2015). Datcom + Pro were widely used to build large fixed-wing UAVs and manned aircraft models at the preliminary design review stage. The analytical model is then validated by comparing with the empirical model. The empirical model was built using the system identification method (Majid et al., 2015). After validation, in the last stage, the analytical model was visualized on the Flight Gear flight simulator. The overall design of this research is shown in Fig. 2.

Fig. 2
figure 2

The overall design of UX-6 fixed-wing UAV modeling

2 The Material and Method

2.1 Flying Wing UAV

Flying wing UAV has some differences if compared with the conventional fixed-wing UAV. On the other hand, conventional fixed-wing UAVs are divided into the fuselage, wings, horizontal stabilizer, and vertical stabilizer, flying wing just has wings. The fuselage and wings were blended. There are no vertical stabilizer and horizontal stabilizer on the flying wing. Flying wing control surface is called elevons (elevators and ailerons). Elevators are for up-down movements and ailerons are for right-left turn movements. The design of the flying wing UAV is shown in Fig. 3.

Fig. 3
figure 3

Design of flying wing UAV

2.2 Hardware

The hardware used in this research consists of the UX-6 aircraft and electronic devices as shown in Fig. 4.

Fig. 4
figure 4

The hardware diagram

The UX-6 UAV was manually controlled by an operator on the ground for flight data acquisition. There is an onboard flight data recorder for recording an operator input for actuators and an output from the aircraft. An aircraft output was obtained from sensors inside a flight data recorder. A flight data recorder runs the data recording at 5 Hz, while the maximum aircraft movement is at 2 Hz (Tischler, 2006). All aircraft electronic devices connection is shown in Fig. 5.

Fig. 5
figure 5

UX-6 aircraft electronics devices diagram: flight data recorder (orange), actuators (blue), radio control receiver (yellow), and power source (gray) (Color figure online)

Figure 6 shows all electronic devices consisting of actuators, flight data recorder, radio controller receiver, and batteries that are implemented onboard the aircraft.

Fig. 6
figure 6

UX-6 UAV electronic devices

The complete aircraft hardware and specification are shown in Table 1.

Table 1 Aircraft hardware and specification

2.3 Data Acquisition

UX-6 UAV does not yet have complete data, hence there is a need for data acquisition, both geometry data and flight data.

(1) Aircraft Geometry Data Acquisition Aircraft geometry data are required for Datcom + Pro software input, which is then used to build the analytical model. The required aircraft data are as follows:

  • Aircraft sketch and dimension data.

  • Aircraft control surface position.

  • Aircraft airfoil data.

  • Aircraft moment of inertia data.

  • Aircraft weight and center-of-gravity data.

(2) Flight Data Acquisition Flight data acquisition include two things, input data and aircraft output. The input data include the signal given by the operator to the actuator (elevator and aileron) through the radio controller, while the output data include the attitude, position, and speed of the aircraft. Flight data acquisition needs to be well planned, to match what is expected. For this research, the input on the plane is a doublet input. Doublet input is a variation in input where a high pulse-width-modulation (PWM) signal was given during the time t and then directly assigned a low PWM signal during time t as well. Doublet inputs are widely used by researchers worldwide in modeling and identification of aircraft models, including the Boeing aircraft manufacturer when identifying the F-15 Eagle fighter aircraft (Smith & Moes, 2003). Figure 7 shows the shape of the input doublet signal.

Fig. 7
figure 7

Doublet input

In this research, modeling will be divided into two modes, longitudinal mode and lateral mode. In longitudinal mode, the doublet input was given on the elevator, then in lateral mode, the doublet input was given on the aileron. Before the doublet input was given, the aircraft is conditioned in trim and level conditions (the aircraft is considered in a state of straight flight and the right-left wing of the aircraft is in the same state horizontally). The diagram of the flight data acquisition procedure is shown in Fig. 8.

Fig. 8
figure 8

UX-6 UAV flight data acquisition procedures

The recorded flight data were then processed and converted to a variable that was used for empirical modeling or system identification as shown in Fig. 9.

Fig. 9
figure 9

The recorded flight data processing

2.4 Analytical Modeling

In the fixed-wing UAV flight, there are many forces, velocities, moments, and orientations that work. All could be summarized and visualized in Fig. 10.

Fig. 10
figure 10

Aircraft forces, velocities, moments, and orientations definitions

In a flight, the aircraft is not always horizontally straight when flying straight ahead (on the X-axis, see Fig. 11) but has an angle-of-attack angle commonly written α (alpha). The aircraft angle-of-attack is the deflection angle of the aircraft on the x-axis caused by the airplane’s wing geometry. Similar to angle-of-attack, there is also a sideslip angle (Fig. 11), which is usually written β (beta). The difference is that the sideslip angle is the deflection on the y-axis due to the air/wind from the side that concerns the vertical stabilizer of the aircraft. Equations 1 and 2 are for finding α and β.

$$ \alpha = \tan ^{{ - 1}} \frac{w}{u} $$
(1)
$$ \beta = \tan ^{{ - 1}} \left( {\frac{v}{{\sqrt {u^{2} + w^{2} } }}} \right) $$
(2)
Fig. 11
figure 11

Euler angle Φ, θ, and ψ to determine the orientation of a flying plane. a Yaw rotation on the Z-axis b Pitch rotation on Y-axis. c Roll rotation on X-axis

The Euler angle was used for the aircraft orientation as shown in Fig. 11, which has the following reference:

  1. a.

    Z-axis leads downward (same as the direction of the gravity vector). The angle rotation on this axis is called yaw (ψ).

  2. b.

    X-axis leads forward. The angle rotation on this axis is called roll (φ).

  3. c.

    Y-axis leads rightward. The angle rotation on this axis is called pitch (θ).

In an aircraft motion modeling, one of the parameters used is the angular velocity on the x, y, and z axes. The angular velocity is called the variables p, q, and r. To find it is used Eq. 3.

$$ \left[ {\begin{array}{*{20}c} p \\ q \\ r \\ \end{array} } \right] = \left[ {\begin{array}{*{20}c} 1 & 0 & { - \sin \theta } \\ 0 & {\cos \phi } & {\cos \theta \sin \phi } \\ 0 & { - \sin \phi } & {\cos \theta \cos \phi } \\ \end{array} } \right]\left[ {\begin{array}{*{20}c} {\phi ^{\prime } } \\ {\theta ^{\prime } } \\ {\psi ^{\prime } } \\ \end{array} } \right] $$
(3)

where

$$ \phi ^{\prime } ,~\theta ^{\prime } ,\psi ^{\prime } ~ = \frac{{{\text{d}}\phi }}{{{\text{d}}t}},\frac{{{\text{d}}\theta }}{{{\text{d}}t}},\frac{{{\text{d}}\psi }}{{{\text{d}}t}} $$

In addition to the angular velocity, the translation velocities are required for each of the x, y, and z axes. The translational velocities of each axis are called the variables u, v, and w. The variables u, v, and w are determined by data changes in variable longitude, latitude, and altitude. Then, it is combined with the orientation of the Euler angle, thus producing u′, v′, and w′ derived from Eq. 4.

$$ \left[ {\begin{array}{*{20}c} {\frac{{{\text{d}}x}}{{{\text{d}}t}}} \\ {\frac{{{\text{d}}y}}{{{\text{d}}t}}} \\ {\frac{{{\text{d}}z}}{{{\text{d}}t}}} \\ \end{array} } \right] = \left[ {\begin{array}{*{20}c} {C\theta C\psi } & {S\phi S\theta C\psi - C\phi S\psi } & {C\phi S\theta C\psi + S\phi S\psi } \\ {C\theta S\psi } & {S\phi S\theta S\psi + C\phi C\psi } & {C\phi S\theta S\psi - S\phi C\psi } \\ { - S\theta } & {S\phi C\theta } & {C\phi C\theta } \\ \end{array} } \right]\left[ {\begin{array}{*{20}c} u \\ v \\ w \\ \end{array} } \right] $$

where

$$ S\phi ,~S\theta ,~S\psi = \sin \phi ,~\sin \theta ,\sin \psi $$
$$ ~C\phi ,C\theta ,~C\psi = \cos \phi ,\cos \theta ,~\cos \psi $$

The flight dynamics that work on fixed-wing can be divided into two modes, namely the longitudinal and lateral modes (Nelson, 1998). Longitudinal modes include translational motion on the X and Z axes and rotational motion around the Y-axis. The rotary motion around the Y-axis will change the pitch angle. The motion in the longitudinal mode plays a role in the up and down movement of the aircraft. In the dynamics of aircraft flying, the longitudinal mode is influenced by the thrust and elevator. The longitudinal mode is determined by Eqs. 5 to 8

  • Forces equations

    $$ u^{\prime } + qw - rv = X/m - g~\sin \theta $$
    (5)
    $$ w^{\prime } + pv - qu = Z/m + g~\cos \theta ~\cos \phi $$
    (6)
  • Moments equations

    $$ M = I_{y} q^{\prime } + rp\left( {I_{x} - I_{y} } \right) + I_{{xz}} \left( {p^{2} - r^{2} } \right) $$
    (7)
  • Pitch orientation

    $$ \theta ^{\prime } = q~\cos \phi - r~\sin \phi $$
    (8)

The lateral mode includes translational motion on the Y-axis and rotational motion on the X and Z axes. The lateral mode is affected by the aileron. Lateral or sometimes called directional mode is used for aircraft’s turn movement. The lateral mode is determined by Eqs. 9 to 12

  • Forces equation

    $$ v^{\prime } + ru - pw = Y/m + g~\cos \theta _{0} ~\sin \phi $$
    (9)
  • Moments equations

    $$ L = I_{x} p^{\prime } - I_{{xz}} r^{\prime } + qr\left( {I_{z} - I_{y} } \right) - I_{{xz}} pq $$
    (10)
    $$ N = - I_{{xz}} p^{\prime } + I_{z} r^{\prime } + pq\left( {I_{y} - I_{x} } \right) + I_{{xz}} qr $$
    (11)
  • Roll orientation

    $$ \phi ^{\prime } = p + \left( {q~\sin \phi - r~\cos \phi } \right)~\tan \theta $$
    (12)

All of the equations that work both longitudinal and lateral modes are necessary to elaborate and add flight assumptions (linear model and ignore flight disturbances like wind, thermal, and weather). Then, we find the general equations of the longitudinal mode flight model in the form of the state-space model structure shown in Eq. 13.

$$ \left[ {\begin{array}{*{20}c} {\Delta \dot{u}} \\ {\Delta \dot{\alpha }} \\ {\Delta \dot{q}} \\ {\Delta \dot{\theta }} \\ \end{array} } \right] = \left[ {\begin{array}{*{20}c} {X_{u} } & {X_{w} } & {X_{q} + w_{0} } & { - g\cos \theta _{0} } \\ {\frac{{Z_{u} }}{{u_{0} }}} & {\frac{{Z_{w} }}{{u_{0} }}} & {Z_{q} - w_{0} } & {\frac{{ - g\sin \theta _{0} }}{{u_{0} }}} \\ {M_{u} } & {M_{w} } & {M_{q} } & 0 \\ 0 & 0 & {\cos \phi _{0} } & 0 \\ \end{array} } \right]\left[ {\begin{array}{*{20}c} {\Delta u} \\ {\Delta \alpha } \\ {\Delta q} \\ {\Delta \theta } \\ \end{array} } \right] + \left[ {\begin{array}{*{20}c} {X_{{\delta _{e} }} } & {X_{{\delta _{T} }} } \\ {Z_{{\delta _{e} }} } & 0 \\ {M_{{\delta _{e} }} } & 0 \\ 0 & 0 \\ \end{array} } \right]\left[ {\begin{array}{*{20}c} {\Delta \delta _{e} } \\ {\Delta \delta _{T} } \\ \end{array} } \right] $$
(13)

Then, for lateral mode is the same as the longitudinal mode. Equation 14 is obtained as a representation of the general equation of the lateral mode flight model.

$$ \left[ {\begin{array}{*{20}c} {\Delta \dot{\beta }} \\ {\Delta \dot{p}} \\ {\Delta \dot{r}} \\ {\Delta \dot{\phi }} \\ \end{array} } \right] = \left[ {\begin{array}{*{20}c} {\frac{{Y_{u} }}{{u_{0} }}} & {\frac{{Y_{p} + w_{0} }}{{u_{0} }}} & {\frac{{ - \left( {u_{0} - Y_{r} } \right)}}{{u_{0} }}} & {\frac{{g\cos \theta _{0} }}{{u_{0} }}} \\ {L_{v} } & {L_{p} } & {L_{r} } & 0 \\ {N_{v} } & {N_{p} } & {N_{r} } & 0 \\ 0 & 1 & {\tan \theta _{0} } & 0 \\ \end{array} } \right]\left[ {\begin{array}{*{20}c} {\Delta \beta } \\ {\Delta p} \\ {\Delta r} \\ {\Delta \phi } \\ \end{array} } \right] + \left[ {\begin{array}{*{20}c} 0 \\ {L_{{\delta _{a} }} } \\ {N_{{\delta _{a} }} } \\ 0 \\ \end{array} } \right]\left[ {\Delta \delta _{a} } \right] $$
(14)

The general linear equations of the longitudinal and lateral modes were obtained, the next is to calculate to fill each variable with values corresponding to the characteristics of the aircraft modeled using the Datcom + Pro software.

The Datcom + Pro output is divided into static and dynamic aerodynamic coefficients that are used for derivative stability calculation. The calculations also required the aircraft data shown in Table 2.

Table 2 Aircraft data for derivative stability calculation

The derivative stability calculations are divided into longitudinal mode and lateral mode (Stevens & dan Lewis, 2003). Table 3 shows the formula for longitudinal mode derivative stability calculations (Bagheri, 2014).

Table 3 Longitudinal mode derivative stability calculation

The lateral mode derivative stability calculations are shown in Table 4 (Bagheri, 2014).

Table 4 Lateral mode derivative stability calculation

In the last analytical modeling stage, the derivative stability calculation results are then arranged using the general linear equations, Eq. 13 for longitudinal mode and Eq. 14 for lateral modes.

2.5 Empirical Modeling

Analytical models need to be compared with another model for analysis purposes. The empirical models have been built based on flight data. Empirical models use system identification techniques. System identification techniques have required input and output data when flying for system identification. The data used for system identification are selected on a particular part only, i.e., when the aircraft control surface is given a doublet input. This empirical model uses a state-space model structure. Slightly different from the analytical model, the common state-space model structure was used, not a motion equation constructed from the description of force, moment, and orientation acting on the plane. This type of identification system is known as black-box system identification (Triputra et al., 2016). Identify the system using the system identification toolbox, one of the tools in the MATLAB software.

2.6 Visualization

A model can be displayed or presented in various ways. The most common way is with mathematical equations and drawing graphs. To further simplify the attitude of unmanned UX-6 fixed-wing aircraft, this model has been visualized and simulated in flight simulators. Visualization used two software, Simulink and Flight Gear flight simulator. The program is designed using Simulink, in which flight dynamics consisting of moments and forces acting on the plane, aircraft flight equations, models of actuators, and aerodynamic coefficients derived from the modeling done. Visualization of flight using flight will show the model of the plane and the parameters of the aircraft, i.e., attitude (angle of a roll, pitch, and yaw) and the position of the aircraft (altitude, longitude, latitude). The simulator program built can be seen in Fig. 12. The program was developed based on the Beaver DHC-2 simulator program (Mathwork, 2015).

Fig. 12
figure 12

UX-6 UAV visualization block diagram

3 Results and Discussion

3.1 Data Acquisition

  1. (1)

    Aircraft Geometry Data Acquisition: Aircraft geometry data acquisition results are shown in Table 5.

  2. (2)

    Flight Data Acquisition: Flight data acquisition is performed in the morning to get the best weather (clear and the wind speed relative is zero). We did two flights, one for the main data and the other as backup data. The UX-6 flight path that is used as the main data is shown in Fig. 13.

Table 5 UX-6 UAV geometry data
Fig. 13
figure 13

UX-6 flight path

3.2 Analytical Model

The Datcom + Pro software is used for calculation needs aircraft geometry data and flight condition scenario. Aircraft geometry data are based on UX-6 UAV geometry data. There is a slight difference compared with the real aircraft. Datcom + Pro could not generate wings winglet geometry, so winglet was not considered in this calculation. A flight condition was equated with the UX-6 UAV steady-state flight condition (obtained from flight data). The UX-6 UAV steady-state flight condition was predicted to occur at AoA of 4 degrees, velocity of 15.3 m/s, and an altitude of 67 m. Figure 14 shows UX-6 UAV geometry and flight scenario data were input to Datcom + Pro software.

Fig. 14
figure 14

Datcom + Pro input for UX-6 UAV geometry and flight scenario

The UX-6 UAV geometry data and flight scenario that entered to Datcom + Pro software generated the aircraft 3D model and the aircraft calculated aerodynamic coefficients. The UX-6 UAV 3D model is shown in Fig. 15.

Fig. 15
figure 15

UX-6 3D model

The calculated aerodynamic coefficients of Datcom + Pro were divided into static and dynamic aerodynamic coefficients. The static aerodynamic coefficients were derived from the calculation of the plane’s geometry shape. The results from the static aerodynamic coefficients calculation are shown in Table 6.

Table 6 UX-6 UAV static aerodynamic coefficients

The dynamic aerodynamic coefficient is obtained from the movement or deflection of the plane’s control surface (elevator and aileron). The results from the static aerodynamic coefficients calculation are shown in Table 7.

Table 7 UX-6 UAV dynamic aerodynamic coefficients

The obtained static and dynamic aerodynamic coefficients then become the base for the stability derivative calculation. The resulting stability derivative is organized into Eqs. 13 and 14. The analytical model of the UX-6 UAV is shown on Eq. 15 for longitudinal mode.

$$ \left[ {\begin{array}{*{20}c} {\Delta \dot{u}} \\ {\Delta \dot{\alpha }} \\ {\Delta \dot{q}} \\ {\Delta \dot{\theta }} \\ \end{array} } \right] = \left[ {\begin{array}{*{20}c} { - 5.7149~~~~} & {~0.4779} & {0.1333} & { - 9.7874} \\ {0.2940} & { - 9.7749} & {12.8036} & { - 0.6656} \\ {17.8584} & { - 136.5561} & { - 74.9010} & 0 \\ 0 & 0 & {1.0} & 0 \\ \end{array} } \right]\left[ {\begin{array}{*{20}c} {\Delta u} \\ {\Delta \alpha } \\ {\Delta q} \\ {\Delta \theta } \\ \end{array} } \right] + \left[ {\begin{array}{*{20}c} {0.4597} & {4.7302} \\ { - 9.5796} & 0 \\ { - 771.3592} & 0 \\ 0 & 0 \\ \end{array} } \right]\left[ {\begin{array}{*{20}c} {\Delta \delta _{e} } \\ {\Delta \delta _{T} } \\ \end{array} } \right] $$

The lateral mode of UX-6 UAV analytical model is shown in Eq. 16.

$$ \left[ {\begin{array}{*{20}c} {\Delta \dot{\beta }} \\ {\Delta \dot{p}} \\ {\Delta \dot{r}} \\ {\Delta \dot{\phi }} \\ \end{array} } \right] = \left[ {\begin{array}{*{20}c} { - 0.4859} & { - 0.0053} & { - 14.6000} & {9.5040} \\ {0.2682} & { - 15.3192} & { - 0.6077} & 0 \\ { - 0.0240} & { - 0.0262} & { - 0.1171} & 0 \\ 0 & 1 & {0.068} & 0 \\ \end{array} } \right]\left[ {\begin{array}{*{20}c} {\Delta \beta } \\ {\Delta p} \\ {\Delta r} \\ {\Delta \phi } \\ \end{array} } \right] + \left[ {\begin{array}{*{20}c} 0 \\ { - 68.4010} \\ { - 0.4503} \\ 0 \\ \end{array} } \right]\left[ {\Delta \delta _{a} } \right] $$
(16)

The analytical model results are then compared with the empirical model for model analysis.

3.3 Empirical Model

After the flight data are obtained, the next is to determine trim conditions. The trim condition is when u ≠ 0, w = 0, q = 0, and θ ≠ 0. The UX-6 UAV trim conditions are given in the following Table 8.

Table 8 UX-6 UAV trim condition

Using the MATLAB’s system identification toolbox (SITB) software, a model that represents UX-6 UAV was built. Similar to the analytical model, the empirical model is divided into longitudinal and lateral modes. Equation 17 shows the empirical model for UX-6 UAV longitudinal mode.

$$ \left[ {\begin{array}{*{20}c} {\Delta \dot{u}} \\ {\Delta \dot{\alpha }} \\ {\Delta \dot{q}} \\ {\Delta \dot{\theta }} \\ \end{array} } \right] = \left[ {\begin{array}{*{20}c} { - 7.885~} & {~ - 6.109} & { - 3.328} & { - 4.334} \\ {3.406} & {1.742} & {5.731} & {2.15} \\ { - 0.9673} & { - 1.311~} & {0.7918} & {~2.72} \\ {2.856} & {2.527} & {~ - 0.7077~} & {1.28} \\ \end{array} } \right]~\left[ {\begin{array}{*{20}c} {\Delta u} \\ {\Delta \alpha } \\ {\Delta q} \\ {\Delta \theta } \\ \end{array} } \right] + \left[ {\begin{array}{*{20}c} { - 5.222~} & { - 39.47} \\ { - 1.155} & {~ - 16.03} \\ { - 2.321} & {10.53} \\ {~2.552} & {28.68} \\ \end{array} } \right]\left[ {\begin{array}{*{20}c} {\Delta \delta _{e} } \\ {\Delta \delta _{T} } \\ \end{array} } \right] $$
(17)

Equation 18 shows the empirical model for UX-6 UAV lateral mode.

$$ \left[ {\begin{array}{*{20}c} {\Delta \dot{\beta }} \\ {\Delta \dot{p}} \\ {\Delta \dot{r}} \\ {\Delta \dot{\phi }} \\ \end{array} } \right] = \left[ {\begin{array}{*{20}c} { - 0.06034~} & { - 1.324} & {1.423} & { - 0.1505} \\ {3.96} & { - 1.866} & {2.701} & {4.011} \\ { - 2.08} & { - 1.389} & { - 0.7703} & { - 0.4127} \\ {0.2957} & {1.35} & { - 1.02} & { - 0.4969} \\ \end{array} } \right]~\left[ {\begin{array}{*{20}c} {\Delta \beta } \\ {\Delta p} \\ {\Delta r} \\ {\Delta \phi } \\ \end{array} } \right] + \left[ {\begin{array}{*{20}c} {[ - 1.923} \\ {0.6245} \\ { - 0.9213} \\ { - 1.379} \\ \end{array} } \right]\left[ {\Delta \delta _{a} } \right] $$
(18)

The empirical model results were validated by simulation. In a simulation, the empirical model is compared with the real flight data. The empirical model input is the aircraft input data and then the model output was compared with aircraft output data. From the empirical model validation results, the model accuracy is quite good, 73.95% average for longitudinal mode and 75.83% average for lateral mode. Figure 16 shows empirical model validation results for longitudinal mode and Fig. 17 for lateral mode.

Fig. 16
figure 16

Empirical model (longitudinal mode) validation results

Fig. 17
figure 17

Empirical model (lateral mode) validation results

3.4 Analytical-Empirical Comparison

The analytical models that have been built are compared with the empirical model for validation. Elevator in longitudinal mode and aileron in lateral mode both were given doublet input shown in Fig. 18.

Fig. 18
figure 18

Doublet input for all control surface, elevator (longitudinal mode) and aileron (lateral mode)

Comparative results of UX-6 UAV between the analytical model and empirical model are shown in Fig. 19 for longitudinal mode.

Fig. 19
figure 19

Longitudinal mode comparative results: analytical models (blue) and empirical model (red) (Color figure online)

The longitudinal mode comparative results showed that three parameters in longitudinal mode [u, theta (θ), and alpha (α)] are quite identical and one parameter (q) is not identical or different waveforms. Figure 20 shows comparative results for lateral mode, two parameters [p and roll (Φ)] are quite identical and two parameters [beta (β) and r] have different waveforms. The identical is when the parameters of the analytical and the empirical model have the same waveform. While the analytical model waveform goes up, the empirical model waveform also goes up or while one goes down, the other also goes down.

Fig. 20
figure 20

Lateral mode comparative results: analytical models (blue) and empirical model (red) (Color figure online)

The modeling results or waveforms are influenced by many things. For example, if the empirical model waveform has a slight delay or lower amplitude than the analytical model, it can be caused by natural factors, such as wind. Due to the wind factor, the aircraft ordered by the operator/pilot to turn right for example, at the same time, there is a strong wind from the right side, then the response of the aircraft will be a bit late. Flight data acquisition was performed in the morning when the wind blows low enough and the weather is in a clear condition. However, these conditions can only be observed at the ground level, while conditions in the height were unknown. Flying scenarios can also affect the modeling results. The aircraft was flown manually, all scenarios were determined by feeling from the operator/pilot. The modeled aircraft has a small size with a flying wing configuration. This configuration needs high accuracy and responsive control. With a little change in the control surfaces, the aircraft’s attitude and position change quickly. This happened in inflight data acquisition. The aircraft is quite difficult to be directed in trim conditions. Trim state parameters are important in aircraft modeling, as they were used as initial conditions, both for analytical and empirical modeling. The other difficulties also occur, when there is input variation in aileron input, the plane turns directly and at the same time loses altitude altogether. This causes the pilot to perform elevation recovery with elevators, so the expected scenarios are difficult to do.

From the analytical modeling can also be discussed some things that influenced the results. The UX-6 UAV is a small-size UAV with very low cruising speeds when compared with manned aircraft. Datcom + Pro software is designed for large aircraft with onboard pilots. Some research on UAVs modeling uses Datcom + Pro, but the average modeled aircraft is much larger than that used in this research. Datcom + Pro itself is less effective when used to calculate aircraft that has a low Reynolds number. Reynolds number is the ratio of inertial forces to viscosity (Ananda et al., 2016). With low cruising speeds, Datcom + Pro calculations will be less precise. From Datcom + Pro results, UX-6 UAV has Reynolds number 1,020,300/m, this value is very small compared with the T-34 Charlie manned training aircraft, which has Reynolds number 4,813,500/m or Boeing 737–300 aircraft that has Reynolds number 60,363,000/m (Galbraith, 2015).

3.5 Visualization Result

The UX-6 UAV analytical model was visualized using Flight Gear flight simulator and MATLAB Simulink. Figure 21 is the result of visualization of UX-6 UAV.

Fig. 21
figure 21

UX-6 UAV simulation on Flight Gear flight simulator

4 Conclusions

This work shows that the analytical model can be used as a base for the development of UX-6 UAV autonomous control systems, evidenced by validation with the empirical model. The modeling implemented in this research is influenced by three aspects. First, the calculation of aerodynamic coefficients of Datcom + Pro software is less accurate when used for calculations of small unmanned aircraft (low Reynolds number). Second, natural factors such as wind and thermal. Third, the disturbance from actuator vibrations and the electromagnetic field of the electronic device of the aircraft that could affect the reading of the instrumentation on the aircraft. The results and methods used in this research can be considered to develop a flying model for small UAVs such as the UX-6 UAV.