| 1 |
# Jeff Scott |
| 2 |
# Cessna 172 |
| 3 |
# small single piston engine general aviation airplane |
| 4 |
# This model was adapted from the file c172_aero.c in Flight |
| 5 |
# Gear developed by Tony Peden. This version uses stability |
| 6 |
# derivatives only. The aircraft data comes from: |
| 7 |
# Tony Peden's c172_aero.c and c172_init.c files |
| 8 |
# Roskam, Jan. Airplane Flight Dynamics and Automatic Flight |
| 9 |
# Controls, Part I. Lawrence KS: DARcorporation, 1995, |
| 10 |
# pg 480-482. (actually Cessna 182) |
| 11 |
# 02-01-2000 file creation |
| 12 |
|
| 13 |
init Dz_cg 2.5 # [ft] |
| 14 |
init nondim_rate_V_rel_wind |
| 15 |
|
| 16 |
geometry bw 35.8 # [ft] FG c172_aero.c |
| 17 |
geometry cbar 4.90 # [ft] FG c172_aero.c |
| 18 |
geometry Sw 174.0 # [ft^2] FG c172_aero.c |
| 19 |
|
| 20 |
controlSurface de 28 23 # [deg] FG c172_aero.c |
| 21 |
controlSurface da 20 15 # [deg] FG c172_aero.c |
| 22 |
controlSurface dr 16 16 # [deg] FG c172_aero.c |
| 23 |
|
| 24 |
mass Weight 2300.0 # [lb] FG c172_init.c |
| 25 |
mass I_xx 948.0 # [slug-ft^2] FG c172_init.c |
| 26 |
mass I_yy 1346.0 # [slug-ft^2] FG c172_init.c |
| 27 |
mass I_zz 1967.0 # [slug-ft^2] FG c172_init.c |
| 28 |
mass I_xz 0.0 # [slug-ft^2] FG c172_init.c |
| 29 |
|
| 30 |
engine c172 |
| 31 |
|
| 32 |
CL CLo 0.31 # [] FG c172_aero.c (from CL-a curve) |
| 33 |
CL CL_a 5.143 # [/rad] FG c172_aero.c (from CL-a curve) |
| 34 |
CL CL_adot 1.7 # [/rad] FG c172_aero.c |
| 35 |
CL CL_q 3.9 # [/rad] FG c172_aero.c |
| 36 |
CL CL_de 0.43 # [/rad] FG c172_aero.c |
| 37 |
#CL CLfa CLfa.dat 0 1 # [] FG c172_aero.c |
| 38 |
|
| 39 |
CD CDo 0.031 # [] FG c172_aero.c |
| 40 |
CD CDK 0.054 # [] FG c172_aero.c |
| 41 |
#CD CD_a 0.13 # [/rad] FG c172_aero.c |
| 42 |
CD CD_de 0.06 # [/rad] FG c172_aero.c |
| 43 |
|
| 44 |
Cm Cmo -0.015 # [] FG c172_aero.c |
| 45 |
Cm Cm_a -0.89 # [/rad] FG c172_aero.c |
| 46 |
Cm Cm_adot -5.2 # [/rad] FG c172_aero.c |
| 47 |
Cm Cm_q -12.4 # [/rad] FG c172_aero.c |
| 48 |
Cm Cm_de -1.28 # [/rad] FG c172_aero.c |
| 49 |
|
| 50 |
CY CY_beta -0.31 # [/rad] FG c172_aero.c |
| 51 |
CY CY_p -0.037 # [/rad] FG c172_aero.c |
| 52 |
CY CY_r 0.21 # [/rad] FG c172_aero.c |
| 53 |
CY CY_da 0.0 # [/rad] FG c172_aero.c |
| 54 |
CY CY_dr 0.187 # [/rad] FG c172_aero.c |
| 55 |
|
| 56 |
Cl Cl_beta -0.089 # [/rad] FG c172_aero.c |
| 57 |
Cl Cl_p -0.47 # [/rad] FG c172_aero.c |
| 58 |
Cl Cl_r 0.096 # [/rad] FG c172_aero.c |
| 59 |
Cl Cl_da -0.178 # [/rad] FG c172_aero.c |
| 60 |
Cl Cl_dr 0.0147 # [/rad] FG c172_aero.c |
| 61 |
|
| 62 |
Cn Cn_beta 0.065 # [/rad] FG c172_aero.c |
| 63 |
Cn Cn_p -0.03 # [/rad] FG c172_aero.c |
| 64 |
Cn Cn_r -0.099 # [/rad] FG c172_aero.c |
| 65 |
Cn Cn_da -0.053 # [/rad] FG c172_aero.c |
| 66 |
Cn Cn_dr -0.0657 # [/rad] FG c172_aero.c |
| 67 |
|
| 68 |
* |
| 69 |
|
| 70 |
# * above denotes end of data to read in. |
| 71 |
# uncommenting this line will produced the uiuc_record.dat |
| 72 |
# file (flight data recorder file) |
| 73 |
|
| 74 |
#record Dx_pilot # [ft] x-location |
| 75 |
#record Dy_pilot # [ft] y-loaction |
| 76 |
#record Dz_pilot # [ft] z-location |
| 77 |
record V_north # [ft/s] x-velocity |
| 78 |
record V_east # [ft/s] y-velocity |
| 79 |
record V_down # [ft/s] z-velocity |
| 80 |
record V_rel_wind # [ft/s] total velocity |
| 81 |
record Dynamic_pressure # [lb/ft^2] dynamic pressure |
| 82 |
record Alpha # [rad] angle of attack |
| 83 |
record Alpha_dot # [rad/s] rate of change of alpha |
| 84 |
record Beta # [rad] sideslip angle |
| 85 |
record Beta_dot # [rad/s] rate of change of beta |
| 86 |
#record Gamma # [rad] flight path angle |
| 87 |
#record P_body # [rad] roll rate |
| 88 |
#record Q_body # [rad] pitch rate |
| 89 |
#record R_body # [rad] yaw rate |
| 90 |
#record Phi # [rad] bank angle |
| 91 |
#record Theta # [rad] pitch attitude angle |
| 92 |
#record Theta_dot # [rad] rate change of theta |
| 93 |
#record Psi # [rad] heading angle |
| 94 |
#record long_trim |
| 95 |
#record trim_inc |
| 96 |
#record Density # [slug/ft^3] air density |
| 97 |
#record Mass # [slug] aircraft mass |
| 98 |
#record Simtime # [s] current sim time |
| 99 |
#record dt # [s] current time step |
| 100 |
record elevator # [rad] elevator deflection |
| 101 |
record aileron # [rad] aileron deflection |
| 102 |
record rudder # [rad] rudder deflection |
| 103 |
#record CDfaI # [] CD(alpha) |
| 104 |
#record CDfadeI # [] CD(alpha,delta_e) |
| 105 |
#record CD # [] drag coefficient |
| 106 |
#record CLfaI # [] CL(alpha) |
| 107 |
#record CLfadeI # [] CL(alpha,delta_e) |
| 108 |
record CL # [] lift coefficient |
| 109 |
#record CmfadeI # [] Cm(alpha,delta_e) |
| 110 |
#record Cm # [] pitch moment coefficient |
| 111 |
#record CYfadaI # [] CY(alpha,delta_a) |
| 112 |
#record CYfadrI # [] CY(alpha,delta_r) |
| 113 |
#record CY # [] side-force coefficient |
| 114 |
#record ClfadaI # [] Cl(alpha,delta_a) |
| 115 |
#record ClfadrI # [] Cl(alpha,delta_r) |
| 116 |
#record Cl # [] roll moment coefficient |
| 117 |
#record CnfadaI # [] Cn(alpha,delta_a) |
| 118 |
#record CnfadrI # [] Cn(alpha,delta_r) |
| 119 |
#record Cn # [] yaw moment coefficient |
| 120 |
#record F_X_wind # [lb] aero x-force in wind-axes |
| 121 |
#record F_Y_wind # [lb] aero y-force in wind-axes |
| 122 |
#record F_Z_wind # [lb] aero z-force in wind-axes |
| 123 |
#record F_X_aero # [lb] aero x-force in body-axes |
| 124 |
#record F_Y_aero # [lb] aero y-force in body-axes |
| 125 |
#record F_Z_aero # [lb] aero z-force in body-axes |
| 126 |
#record F_X_engine # [lb] prop x-force in body-axes |
| 127 |
#record F_Y_engine # [lb] prop y-force in body-axes |
| 128 |
#record F_Z_engine # [lb] prop z-force in body-axes |
| 129 |
#record F_X_gear # [lb] gear x-force in body-axes |
| 130 |
#record F_Y_gear # [lb] gear y-force in body-axes |
| 131 |
#record F_Z_gear # [lb] gear z-force in body-axes |
| 132 |
#record F_X # [lb] total x-force in body-axes |
| 133 |
#record F_Y # [lb] total y-force in body-axes |
| 134 |
#record F_Z # [lb] total z-force in body-axes |
| 135 |
#record M_l_aero # [ft-lb] aero roll moment in body axes |
| 136 |
#record M_m_aero # [ft-lb] aero pitch moment in body axes |
| 137 |
#record M_n_aero # [ft-lb] aero yaw moment in body axes |
| 138 |
#record M_l_engine # [ft-lb] prop roll moment in body axes |
| 139 |
#record M_m_engine # [ft-lb] prop pitch moment in body axes |
| 140 |
#record M_n_engine # [ft-lb] prop yaw moment in body axes |
| 141 |
#record M_l_gear # [ft-lb] gear roll moment in body axes |
| 142 |
#record M_m_gear # [ft-lb] gear pitch moment in body axes |
| 143 |
#record M_n_gear # [ft-lb] gear yaw moment in body axes |
| 144 |
#record M_l_rp # [ft-lb] total roll moment in body axes |
| 145 |
#record M_m_rp # [ft-lb] total pitch moment in body axes |
| 146 |
#record M_n_rp # [ft-lb] total yaw moment in body axes |