# Basically, a very poor glider. Try falling from very high altitude and land
# on your base airfield!
# FIXME: all data pretty fictional, shame on me, but great fun anyway!
# Author: Umberto Salsi
# Version: 2017-04-08

aircraft "Space Shuttle Orbiter" {

	Description "Space Shuttle Orbiter"
	Object      "ufo.obv"
	WingArea    3971   # (wingS) Wing surface area (ft^2)
	WingHalfSpan    38   # (wings) Wing half-span (ft)
	WingHeight  -2.0     # (wingh) Height of the wing aerodyn. center above CM (ft)
	Chord       37    # (c) Mean geometric chord of wing (ft)
	AspectRatio 1.0    # (aspectRatio) aspect ratio
	EmptyWeight 172000   # (emptyWeight) Empty weight (well, actually mass) (lb)

	# Max. wing load (lbf):
	MaxLoadZPositive    1720000  # 10*(EmptyWeight+50%*MaxFuel) (+10 g)
	MaxLoadZNegative    860000  # 5*(EmptyWeight+50%*MaxFuel) (-5 g)

	DISEntityType    1:5:225:1:1:1:0  # "Atlantis"
	DISAltEntityType 1:5:225:1:1:1:0

	# (I(x,y,z)) Moments of inertia (lb ft^2):
	Ixx     1e7
	Iyy     3e7
	Izz     3e7

	# (cFlap) Lift due to flaps (yields Clift of 1.0 at max extension)
	CFlap       0.64279
	BetaStall   15.0    # (deg)

	CFlapDrag   0.0467  # (cFlapDrag) Drag due to Flaps
	CGearDrag   0.01    # (cGearDrag) Drag due to Gear at 90 degrees

	# (CDb) Drag Characteristic equation [Wave+body]
	# independent variable is mach number
	CDb {       # (CDb) Drag Characteristic equation [Wave+body]
				# independent variable is mach number
		0.0,    0.035,
		0.2,    0.035,
		0.95,   0.030,
		1.05,   0.090,
		2.00,   0.060,
		10.0,   0.060
		}

	CLift   {       # (CLift) Lift-slope curve (vs alpha)
		-3.0,   0.0,
		-1.05,  0.0,
		-0.576, -2.199,
		-0.556, -2.23,
		-0.524, -2.199,
		0.524,  2.199,
		0.556,  2.23,
		0.576,  2.199,
		1.05,   0.0,
		2.0,    0.0
		}

	CnBeta  {       # (CnBeta) Yaw due to sideslip equation
		0,  -0.08125,
		0.523540, -0.078125,
		0.785340, -0.0609375,
		1.047198, 0.125,
		1.58,   0.0
		}

	ClBeta  {       # (ClBeta) Roll due to sideslip equation 
		0,  -0.0125,
		0.43633, -0.015,
		0.78540, 0.125,
		1.58,   0.0,
		3.142,  0.125,
		}

	CDBOrigin   0   # (CDBOrigin, CDBFactor) Drag due to sideslip
	CDBFactor   0.5 
	CDBPhase    0   # (CDBPhase) sideslip drag phase (deg)
	CYBeta      -1.4    # (CYbeta) Side-force from side-slip [dCY/dBeta]
	EffElevator 0.60    # (effElevator) Elevator effectiveness
	EffRudder   0.14    # (effRudder) Rudder effectiveness
	MaxRudder   20  # (maxRudder) max Rudder (deg)
	MaxAileron  20  # (maxAileron) max Aileron (deg)
	MaxFlap     20  # (maxFlap) max flap setting (deg)
	# (flapRate) flap extension rate (about 2 secs to fully extend flaps)
	FlapRate    10  # (deg/sec)
	# (gearRate) gear extension rate (about 3 secs to fully extend gear)
	GearRate    30  # (deg/sec)
	MaxSpeedBrake   80  # (maxSpeedBrake) max Speed Brake setting (deg)
	# (speedBrakeRate) rate of speed brake extension (2 secs to full ext)
	SpeedBrakeRate  40  # (deg/sec)
	# (speedBrakeIncr) speed Brake increment per keystroke
	SpeedBrakeIncr  80  # (deg)
	Clda        0.048   # (Clda) roll moment from aileron offset
	Cldr        0.004   # (Cldr) roll moment from rudder offset
	Clp     -0.27   # (Clp) roll damping
	Cmq     -8.0    # (Cmq) pitch damping factor
	Cnr     -0.378  # (Cnr) yaw damping factor
	CmAlpha     -0.40   # (cmSlope) CmAlpha curve slope 
	MaxFuel     0    # (maxFuel) maximum internal fuel (lb)
	EngineType "NoEngine"
	# engine lag factor (how fast does it respond to throttle changes)
	EngineLag   1.0
	# (maxThrust) max static thrust, military power (lbf) 
	MaxThrust   1
	# (maxABThrust) max static thrust, afterburner on  (lbf) 
	MaxABThrust 1

	Thrust  {       # (Thrust) Mach Number vs. thrust   
		0,  1,
		1.7,    1.5,
		2.0,    0.84,
		5,  0.5
		}
	ABThrust {      # (ABThrust) afterburner thrust table
		0,  1,
		0.5,    1,
		1,  1.21,
		1.7,    1.7,
		5,  1.64
		}
	HasThrustReverser 0  # (hasThrustReverser) 0=no, otherwise yes
	# (spFuelConsump) specific fuel consump(lb fuel/lb T x hr)
	SpFuelConsump   0
	# (spABFuelConsump) AB specific fuel consump(lb fuel/lb T x hr)
	SpABFuelConsump 0
	# (viewPoint) pilot's viewing location wrt CM
	ViewPoint   { 14.75, 0,  -5.375 }

	# Landing Gear control parameters

	MuStatic    0.08    # (muStatic) static coeff of friction no-brakes 
	MuKinetic   0.05    # (muKinetic) moving coeff of friction no-brakes
	MuBStatic   0.7 # (muBStatic) static brakes-on
	MuBKinetic  0.6 # (muBKinetic) moving brakes-on

	MaxNWDef    72  # (maxNWDef) maximum nosewheel deflection (deg)

	Rn      {  53.0,  0.0, 3.0 } # (rn) location of nose gear attachments
	Rm      { -13.3, 12.0, 6.0 } # (rm) location of right main gear attachments
	Dn      4000    # nose oleo damping factor (lbf s/ft)
	Dm      8000    # main oleo damping factor (lbf s/ft)
	Kn      60000    # nose oleo spring factor (lbf/ft)
	Km      120000  # main oleo spring factor (lbf/ft)
	Gn      3 # nose strut length with tire (ft)
	Gm      3 # main strut length with tire (ft)
	CnMax   3.0 # (cnMax) nose max oleo extension distance (ft)
	CmMax   3.0 # (cmMax) main max oleo extension distance (ft)

	# Speed limits at MTOW. Leave undefined or set to 0 if unknown.
	MTOW  32250.0    # maximum takeoff weight (lb)
	#Vs0     42.0    # stall speed, full flaps (KIAS)
	#Vs1     50.0    # stall speed, no flaps (KIAS)
	#Vfe    100.0    # max speed with flaps extended (KIAS)
	#Vno    145.0    # normal operation speed (KIAS)
	#Vne    164.0    # never exceed speed (KIAS)

	StructurePoints 15  # (structurePts) maximum structural damage 

	# Radar data based on N-019 Pulse Doppler radar cited in [AirI Aug89].

	RadarOutput 15000   # (radarOutput) radar output (watts)
	RadarTRange 38  # (radarTRange) tracking radar range (NM)
	RadarDRange 55  # (radarDRange) detection radar range (NM)
	TEWSThreshold   0   # Radar Warning Receiver threshold (watts)

	# Weapons

#	WeaponCount 9
#
#	HardPoint0  { 7.0, -4.0, 0.0 }
#	HardPoint1  { 0.357, 15.6, 0.0 }
#	HardPoint2  { 0.357, -15.6, 0.0 }
#	HardPoint3  { 1.5, 9.0, 2.0 }
#	HardPoint4  { 1.5, -9.0, 2.0 }
#	HardPoint5  { 1.5, 8.0, 1.5 }
#	HardPoint6  { 1.5, -8.0, 1.5 }
#	HardPoint7  { 1.5, 10.0, 1.5 }
#	HardPoint8  { 1.5, -10.0, 1.5 }
#
#	WeaponStation   0 "M61A1"   500 0   0
#	WeaponStation   1 "AIM-9M"   0   0   0
#	WeaponStation   2 "AIM-9M"   0   0   0
#	WeaponStation   3 "AIM-9M"   0   0   0
#	WeaponStation   4 "AIM-9M"   0   0   0
#	WeaponStation   5 "AIM-9M"   0   0   0
#	WeaponStation   6 "AIM-9M"   0   0   0
#	WeaponStation   7 "AIM-120"   0   0   0
#	WeaponStation   8 "AIM-120"   0   0   0

}