From 05eb116ed1f556bd9ce41590e2e2714ea6916f57 Mon Sep 17 00:00:00 2001 From: Meir Michanie Date: Fri, 8 Jul 2016 14:34:56 +0300 Subject: [PATCH] Merged Erik's FDM model. --- MQ-9-JSBSim.xml | 824 +++++++++++++++++----------------------- Systems/Controls.xml | 229 +++++++++++ Systems/LandingGear.xml | 28 ++ 3 files changed, 604 insertions(+), 477 deletions(-) create mode 100644 Systems/Controls.xml create mode 100644 Systems/LandingGear.xml diff --git a/MQ-9-JSBSim.xml b/MQ-9-JSBSim.xml index a3efe7b..5139d31 100644 --- a/MQ-9-JSBSim.xml +++ b/MQ-9-JSBSim.xml @@ -15,86 +15,98 @@ File: MQ-9 Reaper.xml Inputs: name: MQ-9 Reaper - type: WWII fighter, subsonic sport, aerobatic - max weight: 10495.8 lb - wing span: 65.62 ft - length: 36.091 ft - wing area: 257.2825679 sq-ft + type: light commuter with 1 engines + stall speed: 80.00kts + max weight: 10494.00 lb + length: 36.08 ft + wing: + span: 65.58 ft + area: 257.28 sq-ft + mean chord: 3.92 ft + aspect ratio: 12.00:1 + taper ratio: 1.00:1 + incidence: 2.00 degrees + dihedral: 2.00 degrees + sweep: 5.00 degrees + + no. engines: 1 + engine type: Turboprop Engine + engine layout: aft fuselage + gear type: tricycle + steering type: steering retractable?: yes - # engines: 1 - engine type: turboprop - engine layout: aft fuselage - yaw damper? yes + Outputs: wing loading: 40.79 lb/sq-ft - payload: 4313.6 lbs - CL-alpha: 4.5 per radian - CL-0: 0.17 - CL-max: 1.2 + payload: 4039.89 lbs + CL-alpha: 5.79 per radian + CL-0: 0.41 + CL-max: 1.88 CD-0: 0.02 - K: 0.06 + K: 0.04 + Mcrit: 0.70 --> - 257.28 - 65.62 - 2.00 - 3.92 - 32.29 - 21.65 - 10.76 - 21.65 + 257.28 + 65.58 + 2.00 + 3.92 + 41.17 + 18.76 + 25.73 + 18.04 - 173.24 - 0.00 - 0.00 + 207.84 + 0.00 + 0.00 - 121.27 - 0.00 - 40.00 + 56.29 + -18.00 + 45.00 - 0 - 0 - 0 + 0.0 + 0.0 + 0.0 - 11946 - 6424 - 17362 - 4902 + 11931.18 + 6420.77 + 17344.61 + 4901.00 - 173.24 - 0.00 - -10.83 + 207.84 + 0.00 + -10.82 - 4314 LBS + full (1280 LBS) fuel should bring model up to entered max weight - 2156.8 + 4039.89 LBS should bring model up to entered max weight + 2019.94 - 173.24 + 207.84 0.00 - -10.83 + -10.82 100 - 173 - -89 - -3 + 207.84 + 0.00 + -10.82 100 - 173 + 207.84 -74 -3 @@ -103,7 +115,7 @@ 510 - 173 + 207.84 -48 -3 @@ -112,7 +124,7 @@ 510 - 173 + 207.84 48 -3 @@ -121,7 +133,7 @@ 100 - 173 + 207.84 74 -3 @@ -130,7 +142,7 @@ 100 - 173 + 207.84 89 -3 @@ -138,82 +150,6 @@ - - - - - 56.30 - 0.00 - -51.97 - - 0.80 - 0.50 - 0.02 - 3148.74 - 5247.90 - 5.00 - NONE - 1 - - - - - 180.17 - -118.12 - -51.97 - - 0.80 - 0.50 - 0.02 - 10495.80 - 5247.90 - 0 - LEFT - 1 - - - - - 180.17 - 118.12 - -51.97 - - 0.80 - 0.50 - 0.02 - 10495.80 - 5247.90 - 0 - RIGHT - 1 - - - - - 173.24 - -32.81 - -10.83 - - 1.00 - 1.00 - 10495.80 - 10495.80 - - - - - 173.24 - 32.81 - -10.83 - - 1.00 - 1.00 - 10495.80 - 10495.80 - - - - @@ -244,256 +180,107 @@ - 173.24 + 207.84 0.00 -10.83 - 2000.00 - 1000.00 + 776.56 + 388.28 - 173.24 + 207.84 0.00 -10.83 - 2000.00 - 1000.00 + 776.56 + 388.28 + + + + + 56.29 + 0.00 + -51.96 + + 0.80 + 0.50 + 0.02 + 3148.20 + 1574.10 + 5.00 + NONE + 1 + + + + + 216.15 + -70.83 + -51.96 + + 0.80 + 0.50 + 0.02 + 10494.00 + 5247.00 + 0 + LEFT + 1 + + + + + 216.15 + 70.83 + -51.96 + + 0.80 + 0.50 + 0.02 + 10494.00 + 5247.00 + 0 + RIGHT + 1 + + + + + 207.84 + -393.50 + -10.82 + + 1 + 1 + 10494.00 + 10494.00 + + + + + 207.84 + 393.50 + -10.82 + + 1 + 1 + 10494.00 + 10494.00 + + + + + - - - - - - fcs/elevator-cmd-norm - fcs/pitch-trim-cmd-norm - - -1 - 1 - - - - - fcs/pitch-trim-sum - - -0.35 - 0.35 - - fcs/elevator-pos-rad - - - - fcs/elevator-pos-rad - - -0.35 - 0.35 - - - -1 - 1 - - fcs/elevator-pos-norm - - - - - - - - fcs/aileron-cmd-norm - fcs/roll-trim-cmd-norm - - -1 - 1 - - - - - fcs/roll-trim-sum - - -0.35 - 0.35 - - fcs/left-aileron-pos-rad - - - - fcs/roll-trim-sum - - -0.35 - 0.35 - - fcs/right-aileron-pos-rad - - - - fcs/left-aileron-pos-rad - - -0.35 - 0.35 - - - -1 - 1 - - fcs/left-aileron-pos-norm - - - - fcs/right-aileron-pos-rad - - -0.35 - 0.35 - - - -1 - 1 - - fcs/right-aileron-pos-norm - - - - - fcs/yaw-damper-enable - - - - fcs/rudder-cmd-norm - fcs/yaw-trim-cmd-norm - - -1 - 1 - - - - - velocities/r-aero-rad_sec - - velocities/ve-kts - - 30 0.00 - 60 2.00 - -
- fcs/yaw-damper-enable -
- - - fcs/rudder-command-sum - fcs/yaw-damper-rate - - -1.1 - 1.1 - - - - - fcs/rudder-sum - - -1.1 - 1.1 - - - -0.35 - 0.35 - - fcs/rudder-pos-rad - - - - fcs/rudder-pos-rad - - -0.35 - 0.35 - - - -1 - 1 - - fcs/rudder-pos-norm - - -
- - - - fcs/flap-cmd-norm - - - 0 - - - - 15 - - - - 30 - - - - fcs/flap-pos-deg - - - - fcs/flap-pos-deg - - 0 - 30 - - - 0 - 1 - - fcs/flap-pos-norm - - - - - - - gear/gear-cmd-norm - - - 0 - - - - 1 - - - - gear/gear-pos-norm - - - - - - - fcs/speedbrake-cmd-norm - - - 0 - - - - 1 - - - - fcs/speedbrake-pos-norm - - - - -
+ @@ -507,34 +294,36 @@ aero/alpha-rad - -0.20 -0.730 - 0.00 0.170 - 0.23 1.200 - 0.60 0.582 + -0.20 -0.7494 + 0.00 0.4077 + 0.25 1.8824 + 0.60 0.9976
- - Delta Lift due to flaps - - aero/qbar-psf - metrics/Sw-sqft - fcs/flap-pos-deg - 0.01000 - - + + Lift due to pitch rate + + aero/qbar-psf + metrics/Sw-sqft + velocities/q-aero-rad_sec + aero/ci2vel + 6.4704 + + - - Delta Lift due to speedbrake - + + Lift due to alpha rate + aero/qbar-psf metrics/Sw-sqft - fcs/speedbrake-pos-norm - 0 - - + aero/alphadot-rad_sec + aero/ci2vel + 1.8487 + + Lift due to Elevator Deflection @@ -542,7 +331,7 @@ aero/qbar-psf metrics/Sw-sqft fcs/elevator-pos-rad - 0.2 + 0.2732 @@ -558,11 +347,11 @@ aero/alpha-rad - -1.57 1.500 - -0.26 0.026 - 0.00 0.020 - 0.26 0.026 - 1.57 1.500 + -1.57 1.4089 + -0.25 0.0508 + 0.00 0.0219 + 0.25 0.0508 + 1.57 1.4089
@@ -574,7 +363,7 @@ aero/qbar-psf metrics/Sw-sqft aero/cl-squared - 0.06 + 0.0240 @@ -586,45 +375,15 @@ velocities/mach - 0.00 0.000 - 0.75 0.000 - 1.10 0.023 - 1.80 0.015 + 0.00 0.0000 + 0.70 0.0000 + 1.10 0.0230 + 1.80 0.0150
- - Drag due to flaps - - aero/qbar-psf - metrics/Sw-sqft - fcs/flap-pos-deg - 0.00133 - - - - - Drag due to gear - - aero/qbar-psf - metrics/Sw-sqft - gear/gear-pos-norm - 0.03 - - - - - Drag due to speedbrakes - - aero/qbar-psf - metrics/Sw-sqft - fcs/speedbrake-pos-norm - 0.02 - - - Drag due to sideslip @@ -633,11 +392,11 @@ aero/beta-rad - -1.57 1.230 - -0.26 0.050 - 0.00 0.000 - 0.26 0.050 - 1.57 1.230 + -1.57 1.2300 + -0.26 0.0500 + 0.00 0.0000 + 0.26 0.0500 + 1.57 1.2300
@@ -648,83 +407,71 @@ aero/qbar-psf metrics/Sw-sqft - fcs/elevator-pos-norm - 0.04 + fcs/elevator-pos-rad + 0.0400
- - - - - - Side force due to beta - + + Drag due to gear + aero/qbar-psf metrics/Sw-sqft - aero/beta-rad - -1 - + gear/gear-pos-norm + 0.0300 + - + - - Roll moment due to beta + + Side force due to beta aero/qbar-psf metrics/Sw-sqft - metrics/bw-ft aero/beta-rad - -0.1 + -0.2310 - - - Roll moment due to roll rate + + Side force due to roll rate aero/qbar-psf metrics/Sw-sqft - metrics/bw-ft aero/bi2vel velocities/p-aero-rad_sec - -0.4 + + aero/Re + + 3372885 1.3390 + 3710173 0.1141 + 5059327 0.0507 + 6689612 0.0290 + +
- - Roll moment due to yaw rate + + Side force due to yaw rate aero/qbar-psf metrics/Sw-sqft - metrics/bw-ft aero/bi2vel velocities/r-aero-rad_sec - 0.15 - - - - - Roll moment due to aileron - - aero/qbar-psf - metrics/Sw-sqft - metrics/bw-ft - fcs/left-aileron-pos-rad - 0.18 + 0.1271 - - Roll moment due to rudder + + Side force due to rudder aero/qbar-psf metrics/Sw-sqft - metrics/bw-ft fcs/rudder-pos-rad - 0.01 + 0.1407 @@ -739,7 +486,7 @@ metrics/Sw-sqft metrics/cbarw-ft aero/alpha-rad - -0.5 + -2.3270 @@ -753,8 +500,8 @@ velocities/mach - 0.0 -1.000 - 2.0 -0.250 + 0.0 -2.0259 + 2.0 -0.5065
@@ -768,7 +515,7 @@ metrics/cbarw-ft aero/ci2vel velocities/q-aero-rad_sec - -15 + -30.9711
@@ -780,7 +527,90 @@ metrics/cbarw-ft aero/ci2vel aero/alphadot-rad_sec - -7 + -8.8489 + +
+ +
+ + + + + Roll moment due to beta + + aero/qbar-psf + metrics/Sw-sqft + metrics/bw-ft + aero/beta-rad + + aero/alpha-rad + aero/Re + + 3372885 3710173 5059327 6689612 + -0.0349 -0.2578 -0.0647 -0.0550 -0.0520 + 0.3491 -0.6826 -0.1159 -0.1086 -0.1100 + +
+
+
+ + + Roll moment due to roll rate + + aero/qbar-psf + metrics/Sw-sqft + metrics/bw-ft + aero/bi2vel + velocities/p-aero-rad_sec + -0.7313 + + + + + Roll moment due to yaw rate + + aero/qbar-psf + metrics/Sw-sqft + metrics/bw-ft + aero/bi2vel + velocities/r-aero-rad_sec + + aero/alpha-rad + aero/Re + + 3372885 3710173 5059327 6689612 + -0.0349 0.1627 0.0587 0.0533 0.0514 + 0.3491 4.8174 0.6140 0.6086 0.6068 + +
+
+
+ + + Roll moment due to aileron + + aero/qbar-psf + metrics/Sw-sqft + metrics/bw-ft + fcs/left-aileron-pos-rad + + velocities/mach + + 0.0 0.1700 + 2.0 0.0425 + +
+
+
+ + + Roll moment due to rudder + + aero/qbar-psf + metrics/Sw-sqft + metrics/bw-ft + fcs/rudder-pos-rad + 0.0100 @@ -788,6 +618,27 @@ + + + Yaw moment due to alpha + + aero/qbar-psf + metrics/Sw-sqft + metrics/bw-ft + aero/alpha-rad + fcs/gear-no-wow + + aero/beta-rad + aero/Re + + 3372885 3710173 + -0.3491 -1.0000 0.0000 + 0.3491 1.0000 0.0000 + +
+
+
+ Yaw moment due to beta @@ -795,7 +646,27 @@ metrics/Sw-sqft metrics/bw-ft aero/beta-rad - 0.12 + 0.0635 + + + + + Yaw moment due to roll rate + + aero/qbar-psf + metrics/Sw-sqft + metrics/bw-ft + aero/bi2vel + velocities/p-rad_sec + + aero/Re + + 3372885 -2.3531 + 3710173 -0.2005 + 5059327 -0.0891 + 6689612 -0.0510 + +
@@ -807,7 +678,7 @@ metrics/bw-ft aero/bi2vel velocities/r-aero-rad_sec - -0.15 + -0.0474 @@ -818,7 +689,7 @@ metrics/Sw-sqft metrics/bw-ft fcs/rudder-pos-rad - -0.1 + -0.0387 @@ -829,15 +700,14 @@ metrics/Sw-sqft metrics/bw-ft fcs/left-aileron-pos-rad - -0.003 + -0.0100
- - \ No newline at end of file + diff --git a/Systems/Controls.xml b/Systems/Controls.xml new file mode 100644 index 0000000..16655cf --- /dev/null +++ b/Systems/Controls.xml @@ -0,0 +1,229 @@ + + + + + + + fcs/elevator-cmd-norm + fcs/pitch-trim-cmd-norm + + -1 + 1 + + + + + fcs/pitch-trim-sum + + -0.35 + 0.35 + + fcs/elevator-pos-rad + + + + fcs/elevator-pos-rad + + -0.35 + 0.35 + + + -1 + 1 + + fcs/elevator-pos-norm + + + + + + + + fcs/aileron-cmd-norm + fcs/roll-trim-cmd-norm + + -1 + 1 + + + + + fcs/roll-trim-sum + + -0.35 + 0.35 + + fcs/left-aileron-pos-rad + + + + fcs/roll-trim-sum + + -0.35 + 0.35 + + fcs/right-aileron-pos-rad + + + + fcs/left-aileron-pos-rad + + -0.35 + 0.35 + + + -1 + 1 + + fcs/left-aileron-pos-norm + + + + fcs/right-aileron-pos-rad + + -0.35 + 0.35 + + + -1 + 1 + + fcs/right-aileron-pos-norm + + + + + fcs/yaw-damper-enable + + + + fcs/rudder-cmd-norm + fcs/yaw-trim-cmd-norm + + -1 + 1 + + + + + velocities/r-aero-rad_sec + + velocities/ve-kts + + 30 0.00 + 60 2.00 + +
+ fcs/yaw-damper-enable +
+ + + fcs/rudder-command-sum + fcs/yaw-damper-rate + + -1.1 + 1.1 + + + + + fcs/rudder-sum + + -1.1 + 1.1 + + + -0.35 + 0.35 + + fcs/rudder-pos-rad + + + + fcs/rudder-pos-rad + + -0.35 + 0.35 + + + -1 + 1 + + fcs/rudder-pos-norm + + +
+ + + + fcs/flap-cmd-norm + + + 0 + + + + 15 + + + + 30 + + + + fcs/flap-pos-deg + + + + fcs/flap-pos-deg + + 0 + 30 + + + 0 + 1 + + fcs/flap-pos-norm + + + + + + + gear/gear-cmd-norm + + + 0 + + + + 1 + + + + gear/gear-pos-norm + + + + + + + fcs/speedbrake-cmd-norm + + + 0 + + + + 1 + + + + fcs/speedbrake-pos-norm + + + + +
+ diff --git a/Systems/LandingGear.xml b/Systems/LandingGear.xml new file mode 100644 index 0000000..62ec256 --- /dev/null +++ b/Systems/LandingGear.xml @@ -0,0 +1,28 @@ + + + + + + + gear/unit[1]/WOW eq 1 + gear/unit[2]/WOW eq 1 + + + + + gear/gear-cmd-norm + + + 0 + + + + 1 + + + + gear/gear-pos-norm + + + +