Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Abstract— A program was developed using Simulink® to provide data to the flight simulator FlightGear with the purpose
of representing the flight of aircraft Beechcraft® Model 99. The program was developed based on the stability and control
derivatives extracted from Airplane Flight Dynamics and Automatic Flight Controls by Jan Roskam [2], besides the
constitution of the project allows the option to entry angles navigation roll and pitching manipulate through an external
joystick.
In order to corroborate the correct programming of the simulator, we observed the dynamic flight modes represented in the
graphs showing similar behaviors to what was expected. In the validation were performed tests where the results were highly
accurate compared to the references.
TABLE OF CONTENTS
I. List of Figures 1
II. List of Tables 2
III. List of Symbols 2
IV. List of Equations 4
V. Introduction 5
VI. Mathematical model 6
VII. Implementation in Simulink® 8
VIII. Model validation 11
IX. Dynamic Mode Analysis 12
X. Conclusions 16
XI. References 16
I. LIST OF FIGURES
# Fig. Description Page
Fig 1. Beechcraft Model 99 5
Fig 2. General view of the flight simulator. 8
Fig 3. Figure 3. Pilot Joystick block. 9
Fig 4. Aircraft model 9
Fig 5. Gravity block 10
Fig 6. Engine block 10
Fig 7. Aerodynamic Forces block 11
Fig 8. Graph of Velocity in function of time obtained from the Simulink flight 11
simulator model
Fig 9. Flight Simulator XTM Beechcraft 99 model test flights 12
Fig 10. Definition of c in function of t 12
Fig 11. Roll mode 13
Fig 12. Spiral mode 14
Fig 13. Change with respect to time for Phugoid 15
Instituto Politécnico Nacional, Unidad Profesional Interdisciplinaria de Ingeniería campus Guanajuato. Av. Mineral de Valenciana No. 200
Fraccionamiento Industrial Puerto Interior. C.P. 36275. Silao de La Victoria, Guanajuato México.
1
Fig 14. Change with respect to time for shot Period 15
Fig 15. Change with respect to time for Roll Mode 15
Fig 16. Change with respect to time for spiral mode 15
Fig 17. Change with respect to time for Dutch Roll 15
2
𝝏𝑪𝒍 Variation of section lift coefficient with angle of attack 1
𝑪𝒍 =
𝝏𝜶 rad
𝝏𝑪𝒍 Variation of section lift coefficient with control Surface deflection angle 1
𝑪𝒍𝜹 =
𝝏𝜹 rad
𝑪𝒍 Rolling moment coefficient (airplane) ---
𝑪𝒍𝟎 Rolling moment coefficient for zero sideslip angle and zero ---
control Surface deflection
𝝏𝑪𝒍 Variation of airplane Rolling moment coefficient with angle 1
𝑪𝒍𝜷 =
𝝏𝜷 of sideslip rad
𝝏𝑪𝒍 Variation of airplane Rolling moment coefficient with aileron 1
𝑪𝒍𝜹𝒂 =
𝝏𝜹𝒂 deflection angle rad
𝝏𝑪𝒍 Variation of airplane Rolling moment coefficient with rudder 1
𝑪𝒍𝜹𝒓 =
𝝏𝜹𝒓 deflection angle rad
𝝏𝑪𝒍 Variation of airplane Rolling moment coefficient with 1
𝑪𝒍𝒊 =
𝒉 𝝏𝒊𝒉 differential stabilizer angle rad
𝑪𝑳 Lift coefficient (airplane) ---
𝑪𝑳𝟎 Lift coefficient(airplane) zero angle of attack ---
𝑪𝑳𝜶 =
𝝏𝑪𝑳 Variation of airplane lift coefficient with angle of attack 1
𝝏𝜶
rad
𝑪𝑳𝒊 =
𝝏𝑪𝑳 Variation of airplane lift coefficient with stabilizer incidence angle 1
𝒉 𝝏𝒊𝒉
rad
𝑪𝑳𝜹𝒆 =
𝝏𝑪𝑳 Variation of airplane lift coefficient with elevator deflection angle 1
𝝏𝜹𝒆
rad
𝑪𝒎 Section pitching moment coefficient ---
𝑪𝒎𝟎 Section pitching moment coefficient at zero angle of attack ---
𝑪𝒎𝜶 =
𝝏𝑪𝒎 Variation of airplane pitching coefficient with angle of attack 1
𝝏𝜶
rad
𝑪𝒎𝒊 =
𝝏𝑪𝒎 Variation of airplane pitching coefficient with stabilizer 1
𝒉 𝝏𝒊𝒉
incidence angle rad
𝑪𝒎𝜹𝒆 =
𝝏𝑪𝒎 Variation of airplane pitching coefficient with elevator 1
𝝏𝜹𝒆
deflection angle rad
𝑪𝒏 Yawing moment coefficient (airplane) ---
𝑪𝒏𝟎 Yawing moment coefficient (airplane) at zero angle of attack ---
𝑪𝒏𝜷 =
𝝏𝑪𝒏 Variation of airplane yawing moment coefficient with angle 1
𝝏𝜷
of sideslip rad
𝑪𝒏𝜹𝒂 =
𝝏𝑪𝒏 Variation of airplane yawing moment coefficient with aileron deflection angle 1
𝝏𝜹𝒂
rad
𝑪𝒏𝒊 =
𝝏𝑪𝒏 Variation of airplane yawing moment coefficient with 1
𝝏𝒊𝒉
𝒉
stabilizer incidence angle rad
𝑪𝒏𝜹𝒓 =
𝝏𝑪𝒏 Variation of airplane yawing moment coefficient with rudder deflection angle 1
𝝏𝜹𝒓
rad
𝑪𝒚 Side force coefficient ---
𝑪 𝒚𝟎 Side force coefficient at zero angle of attack ---
𝑪𝒚𝜷 =
𝝏𝑪𝒚 Variation of airplane side force coefficient with sideslip angle 1
𝝏𝜷
rad
𝑪𝒚𝜹𝒂 =
𝝏𝑪𝒚 Variation of airplane side force coefficient with aileron deflection angle 1
𝝏𝜹𝒂
rad
𝑪𝒚𝜹𝒓 =
𝝏𝑪𝒚 Variation of airplane side force coefficient with rudder 1
𝝏𝜹𝒓
deflection angle rad
1 K factor ---
𝐾=
𝜋𝐴𝑅𝑒
3
IV. LIST OF EQUATIONS
3.2 List of Equations
4
acceleration in
Euler’s angles
Eq.19 𝑔𝑧 = 𝑔𝑐𝑜𝑠Φcosθ Z components of 7
the gravitational
acceleration in
Euler’s angles
Eq.20 𝐶𝐷 = 𝐶𝐷0 + 𝐶𝐷 𝐾𝐶𝑙 2 + 𝐶𝐷𝛿𝑒 𝛿 Total drag 7
𝑘𝐶𝑙2
coefficient
Eq.21 𝐶𝐿 = 𝐶𝐿0 + 𝐶𝐿∝ ∝ +𝐶𝐿𝛿𝑒 𝛿 Total lift coefficient 7
Eq.22 𝐶𝑚 = 𝐶𝑚0 + 𝐶𝑚∝ ∝ +𝐶𝑚𝛿𝑒 𝛿 + 𝐶𝑚𝑞 ( )
𝑞𝑏 Total moment 7
2𝑣
coefficient
Eq.23 𝑝𝑏
𝐶𝑙 = 𝐶𝑙𝛽 𝛽 + 𝐶𝑙𝛿𝑎 𝛿𝑎 + 𝐶𝑙𝛿𝑟 𝛿𝑟 + 𝐶𝑙𝑝 ( ) + 𝐶𝑙𝑟 ( )
𝑟𝑏 Total aerodynamic 7
2𝑣 2𝑣
pitching coefficient
Eq.24 𝐶𝑦 = 𝐶𝑦𝛽 𝛽 + 𝐶𝑦𝛿𝑟 𝛿𝑟 Total side force 7
coefficient
Eq.25 𝑝𝑏 𝑟𝑏 Total aerodynamic 7
𝐶𝑛 = 𝐶𝑛𝛽 𝛽 + 𝐶𝑛𝛿𝑎 𝛿𝑎 + 𝐶𝑛𝛿𝑟 𝛿𝑟 + 𝐶𝑛𝑝 ( ) + 𝐶𝑛𝑟 ( )
2𝑣 2𝑣 yawing moment
coefficient
Eq.26 𝑇 = 2𝜌𝐴𝑉𝑖 (𝑉𝑖 + 𝑉𝑣 ) Thrust provided by 10
a propeller driven
engine
Eq.27 𝑃 = 𝑇(𝑉𝑖 + 𝑉𝑣 ) Power provides by 10
a propeller driven
engine
Eq.28 𝑉𝑖 Root positive of Vi 10
3 2 3
𝑏3 𝑏𝑐 𝑑 𝑏3 𝑏𝑐 𝑑 𝑐 𝑏2
= √(− + + ) + √(− + + ) + ( − )
27𝑎3 6𝑎2 2𝑎 27𝑎3 6𝑎2 2𝑎 3𝑎 9𝑎2
3 2 3
𝑏3 𝑏𝑐 𝑑 𝑏3 𝑏𝑐 𝑑 𝑐 𝑏2
+ √(− + + ) − √(− + + ) + ( − )
27𝑎3 6𝑎2 2𝑎 27𝑎3 6𝑎2 2𝑎 3𝑎 9𝑎2
𝑏
−
3𝑎
Eq.29 ln 𝑀𝑝 Damping ratio
𝜁=
2
√(ln 𝑀𝑝 ) + 𝜋 2
𝜔𝑑
Eq.30 𝜔𝑛 = Natural frequency
√1−𝜁 2
Eq.31 𝜋 Damped natural
𝜔𝑑 =
𝑡𝑝 frequency
Eq.32 𝑐(𝑡𝑝 ) − 𝑐(∞) Maximum
𝑀𝑝 = exceedance
𝑐(∞)
V. INTRODUCTION
A flight simulator is a device that artificially re-creatres aircraft flight and the environment in which it flies,
for pilot training, design or other purposes. Developing a flight simulator includes replicating the
equations that govern how aircraft fly, how they react to applications of flight controls, the effects of other
aircraft systems, and how the aircraft reacts to external factors such as air density, turbulence, wind shear,
cloud precipitation and many other parameters [1].
We developed a flight simulator using Simulink® interface by making a complete dynamic analysis of the
Beechcraft Model 99, which is a twin-engine, unpressurized turboprop aircraft designed in the 1960s as replacement
5
for the Beechcraft Model 18. We based our mathematical model in the stability and control theories described by Jan
Roskam [2].
B99 C99
Powerplants Two 505 kW (680 shp) Pratt & Two 535 kW (715 shp) PT6A36s.
Whitney Canada PT6A28s
turboprops driving three blade
constant speed Hartzell propellers.
Performance Max cruising speed 460 km/h (247 Max speed 496 km/h (268 kt) at 8000
kt). Initial rate of climb 2090 ft/min. ft, cruising speed at 8000 ft 461km/h
Range at max cruising speed 1665 (249 kt). Range with max fuel and
km (900 nm), range at cruising reserves 1686km (910nm).
speed 1887 km (1019 nm).
Weights Empty equipped 2620 kg (5777 lb), Operating empty 3040 kg (6700 lb),
max takeoff 4944 kg (10,900 lb). max takeoff 5125 kg (11,300 lb).
Dimensions Wing span 14.00 m (45ft 11in), Same except for wing span 13.98 m
length 13.58 m (44 ft 7 in), height (45ft 11in). Wing area 26.0 m2 (279.7
4.38 m (14 ft 4 in). sq ft).
Table 1. Some details of the Beechcraft Model 99 aircraft.
⃗ = 𝑃î + 𝑄𝑗̂ + 𝑅𝑘̂
𝜔 (5)
6
Linear components of the velocities:
𝑉𝑃 = 𝑈î + 𝑉𝑗̂ + 𝑊𝑘̂
⃗⃗⃗⃗ (6)
𝑔 = 𝑔𝑥 î + 𝑔𝑦 𝑗̂ + 𝑔𝑧 𝑘̂ (7)
There are twelve state equations: three for the velocity along the aircraft body axes (that can be replaced by
equations for the angle of attack, sideslip angle, and true airspeed), three equations for the rotational velocities along
the aircraft body axes, three equations which define the attitude of the aircraft relatively to earth, and three
equations that define position of the aircraft relative to earth.
For the force equations in the airplane body-fixed axis system XYZ:
For the moment equations in the airplane body fixed axis system XYZ:
Having known the values for U, V and W, now we can use an orthogonal transformation in order to get the
following relations to determine the flight path of the airplane:
𝑔𝑥 = −𝑔 sin 𝜃 (17)
𝑔𝑦 = 𝑔 sin Φ cosθ (18)
𝑔𝑧 = 𝑔 cos Φ cosθ (19)
Total drag:
𝐶𝐷 = 𝐶𝐷0 + 𝐶𝐷𝑖 + 𝐶𝐷𝛿𝑒 𝛿𝑒 (20)
7
Total lift:
𝐶𝐿 = 𝐶𝐿0 + 𝐶𝐿∝ ∝ +𝐶𝐿𝛿𝑒 𝛿e (21)
Side force:
𝐶𝑦 = 𝐶𝑦𝛽 𝛽 + 𝐶𝑦𝛿𝑟 𝛿𝑟 (24)
The block below shows how we connected the gamming joystick which controls the aircraft.
8
Figure 3. Pilot Joystick block.
The mathematical model was implemented in the next block shown in Figure 4. We considered the forces due to the
gravity of the earth, the engine and the aerodynamic forces. The main block is the 6DOF (Six Degrees of Freedom)
from the Aerospace blockset. This block has two inputs, forces and moments sums, previously calculated based in our
mathematical model, and twelve outputs, which are:
The gravity block computes the three components of the gravity force depending on the aircraft position.
9
Figure 5. Gravity block
The engine block computes the thrust, which depends on the velocity of the aircraft, the power of the engine and the
air density, which this last one depends on the altitude. We added the ISA Atmosphere Model block in order to
obtain the air density depending on the altitude. The engine power is controlled by the user through the joystick.
It was necessary to calculate the thrust of the motor so it was calculated inside the motor frame using equation 26.
To determine 𝑉𝑖 , equation 27 was needed to calculate the real positive roots of the equation:
𝑃 = 𝑇(𝑉𝑖 + 𝑉𝑣 ) (27)
A third order equation was obtained and then, coefficients a, b, c and d were calculated:
𝑃
𝑉𝑖3 + 2𝑉𝑉 𝑉𝑖2 + 𝑉𝑉2 𝑉𝑖 − =0
2𝐴𝜌
Formula 28 was used to determine the positive root:
3 2 3
𝑏3 𝑏𝑐 𝑑 𝑏3 𝑏𝑐 𝑑 𝑐 𝑏2
𝑉𝑖 = √(− + + ) + √(− + + ) +( − ) +
27𝑎3 6𝑎2 2𝑎 27𝑎3 6𝑎2 2𝑎 3𝑎 9𝑎2
3 2 3
√(− 𝑏3 𝑏𝑐 𝑑 𝑏3 𝑏𝑐 𝑑 𝑐 𝑏2 𝑏
+ + ) − √(− + + ) +( − ) − (28)
27𝑎3 6𝑎2 2𝑎 27𝑎3 6𝑎2 2𝑎 3𝑎 9𝑎2 3𝑎
10
Figure 7. Thrust block
The aerodynamic block computes forces coming from the velocities of the aircraft, stability and control derivatives,
the primary and secondary flight control deflections, angular rates, angle of attack and sideslip angle. The block
implemented is shown below.
11
Figure 9. CD block (equation 20) Figure 10. CL block (equation 21)
Figure 13. Cy block (equation 24) Figure 14. Cn block (equation 25)
For validating the simulation implemented in Simulink, some test were performed in order to corroborate data from
the simulator and aircraft data specifications. The first test was the maximim velocity setting full power and holding
altitude with the elevator. Since the test was performed with a pilot Joystick, the altitude couldn’t be holded as
12
constant. Nevertheless between the ranges of 4900 ft and 5100 ft the maximum velocity reached was 247 knots
(Figure 8) which is the same as the specified in [3].
Figure 15. Graph of Velocity in function of time obtained from the Simulink flight simulator model.
Due to the dififulty of holding altitude with a pilot joysitck, other parameters like aircraft response, maximum
ceiling and turning rate where compared with a more precise comercial flight simulator (Flight Simulator X TM) and
similar data and responses were obtained based on the cockpit instruments.
𝜔𝑑
𝜔𝑛 = (30)
√1−𝜁 2
𝜋
𝜔𝑑 = (31)
𝑡𝑝
𝑐(𝑡𝑝 )−𝑐(∞)
𝑀𝑝 = (32)
𝑐(∞)
13
Figure 17. Definition of c in function of t.
Phugoid
The long-perioid phugoid mode involves a combination of kinetic and potential energy. In this mode the aircraft,
constantly climbs and then slows down losing altitude while picking up speed. The motion is usually of such a long
period that it doesn´t need to be highly damped for piloted aircraft.
Short Period
The short-period mode is a usually heavy damped oscillation with a period of only a few seconds. The motion is a
rapid pitching of the aircraft about the center of gravity. The period is so short that the speed does not have time to
change, so the oscillation is essentially an angle-of-attack variation.
The same procedure that was executed with phugoid is now implemented to obtain the dynamic mode parameters
of the short period.
Through the transfer function it is possible to know the values for the natural frequencies and damping ratios of the
dynamic modes. The mathematical analysis is presented as follows.
Factored angle of attack to elevator transfer function
Table 2. Damping ratio and natural frequencies for phugoid and short period dynamic modes using the transfer function [2].
14
22.24 − 12.42 𝜋 ln 0.7907 14190
Short Period 𝑀𝑝 =
12.42
= 0.7907 𝜔𝑑 =
22.24
= 1.4151 𝜁= = 0.0746 𝜔𝑛 = = 1.4191
√(ln 0.7907)2 + 𝜋 2 √1 − 0.07462
Table 3. Damping ratio, natural frequencies, damped natural frequencies and maximum exceedance for phugoid and short period dynamic
modes using graphical data.
Figure 18. Change in velocity with respect to time for phugoid parameters estimation.
15
7.2 Lateral-directional Transfer Function
Roll mode
As the plane rolls, the wing going down has an increased α (wind is effectively “coming up” more at the
wing).
Opposite effect for other wing.
There is a difference in the lift generated by both wings, more on the side going down.
The differential lift creates a moment that tends to restore the equilibrium.
If unstable and left unchecked, the aircraft would fly a slowly diverging path in roll, yaw, and altitude ⇒ it
would tend to spiral into the ground.
Dutch roll
Frequency similar to longitudinal short period mode, not as well damped (fin less effect than the horizontal
tail).
Consider a disturbance from straight-level flight
o Oscillation in yaw ψ (fin provides the aerodynamic stiffness).
o Wings moving back and forth due to yaw motion result in oscillatory differential Lift/Drag (wing
moving forward generates more lift).
16
o Oscillation in roll φ that lags ψ by approximately 90°.
o Forward going wing is low.
Oscillating roll → sideslip in direction of low wing.
Table 4. Some values for the dutch roll, spiral mode and roll mode obtained using the transfer function [2].
Table 5. Some values for the dutch roll obtained using graphical data.
17
Figure 23. Roll rate vibratios with respect to time used to
calculate for the roll mode parameters.
18
X. CONCLUSIONS
The implementation of all the equations governing the flight of an aircraft is something very complicated if we
consider the scope and duration of this course. Nevertheless, some considerations could be made in order to
simplify some computations. As final results, we compared our dynamic modes obtained using our flight simulator
to what Jan Roskam presents in his book [2] and we obtained many similarities so we can assume that our
considerations were right and the Simulink® interface give us a simple and easy-to-use tool to solve problems like
this.
We also learnt the importance of some parameters controlling the aircraft and influence of the control surface in its
stability.
XI. REFERENCES
[2] Roskam, J.; Airplane Flyght Dinamics and Automatic Flight Controls, Parts I t; DAR Corporation, 120 East
Ninth Street, Suite 2, Lawrence, Kansas, 66044, USA; 2001.
[4] Ogata, K.;Modern Control Engineering,Third Edition; Pearson Educacion, Prentice-Hall, Inc,
19