Add Douglas C-47 tow plane

This commit is contained in:
wlbragg 2022-08-19 00:42:45 -05:00
parent 459e3a965a
commit da1527c945
11 changed files with 424112 additions and 0 deletions

View File

@ -0,0 +1,266 @@
<?xml version="1.0"?>
<PropertyList>
<description>C-47</description>
<path>c-47.ac</path>
<offsets>
<pitch-deg>11.8</pitch-deg>
<z-m>2.65</z-m>
</offsets>
<sound>
<path>AI/Aircraft/Aerotow/C-47/Sound/sound.xml</path>
</sound>
<animation>
<type>rotate</type>
<object-name>roueG</object-name>
<object-name>axeG1</object-name>
<object-name>axeG2</object-name>
<object-name>axeG3</object-name>
<object-name>axeG4</object-name>
<property>velocities/true-airspeed-kt</property>
<interpolation>
<entry><ind>0</ind><dep>0.0</dep></entry>
<entry><ind>70</ind><dep>0.0</dep></entry>
<entry><ind>80</ind><dep>17.5</dep></entry>
<entry><ind>90</ind><dep>35</dep></entry>
</interpolation>
<center>
<x-m>-4.24966</x-m>
<y-m>-2.814 </y-m>
<z-m>-1.24846</z-m>
</center>
<axis>
<x>0</x>
<y>1</y>
<z>0</z>
</axis>
</animation>
<animation>
<type>translate</type>
<object-name>roueG</object-name>
<object-name>axeG1</object-name>
<object-name>axeG2</object-name>
<object-name>axeG4</object-name>
<property>velocities/true-airspeed-kt</property>
<interpolation>
<entry><ind> 0 </ind><dep> 0.0 </dep></entry>
<entry><ind> 70 </ind><dep> 0.0 </dep></entry>
<entry><ind>80</ind><dep>.35</dep></entry>
<entry><ind>90</ind><dep>.7</dep></entry>
</interpolation>
<axis>
<x> 0 </x>
<y> 0 </y>
<z> 1 </z>
</axis>
</animation>
<animation>
<type>rotate</type>
<object-name>axeG4</object-name>
<property>velocities/true-airspeed-kt</property>
<interpolation>
<entry><ind>0</ind><dep>0.0</dep></entry>
<entry><ind>70</ind><dep>0.0</dep></entry>
<entry><ind>80</ind><dep>-5</dep></entry>
<entry><ind>90</ind><dep>-10</dep></entry>
</interpolation>
<center>
<x-m>-4.23614</x-m>
<y-m>-2.814</y-m>
<z-m>-3.00605</z-m>
</center>
<axis>
<x>0</x>
<y>1</y>
<z>0</z>
</axis>
</animation>
<animation>
<type>rotate</type>
<object-name>roueD</object-name>
<object-name>axeD1</object-name>
<object-name>axeD2</object-name>
<object-name>axeD3</object-name>
<object-name>axeD4</object-name>
<property>velocities/true-airspeed-kt</property>
<interpolation>
<entry><ind>0</ind><dep>0.0</dep></entry>
<entry><ind>70</ind><dep>0.0</dep></entry>
<entry><ind>80</ind><dep>17.5</dep></entry>
<entry><ind>90</ind><dep>35</dep></entry>
</interpolation>
<center>
<x-m>-4.24966</x-m>
<y-m>-2.814 </y-m>
<z-m>-1.40846</z-m>
</center>
<axis>
<x>0</x>
<y>1</y>
<z>0</z>
</axis>
</animation>
<animation>
<type>translate</type>
<object-name>roueD</object-name>
<object-name>axeD1</object-name>
<object-name>axeD2</object-name>
<object-name>axeD4</object-name>
<property>velocities/true-airspeed-kt</property>
<interpolation>
<entry><ind> 0 </ind><dep> 0.0 </dep></entry>
<entry><ind> 70 </ind><dep> 0.0 </dep></entry>
<entry><ind>80</ind><dep>.35</dep></entry>
<entry><ind>90</ind><dep>.7</dep></entry>
</interpolation>
<axis>
<x> 0 </x>
<y> 0 </y>
<z> 1 </z>
</axis>
</animation>
<animation>
<type>rotate</type>
<object-name>axeD4</object-name>
<property>velocities/true-airspeed-kt</property>
<interpolation>
<entry><ind>0</ind><dep>0.0</dep></entry>
<entry><ind>70</ind><dep>0.0</dep></entry>
<entry><ind>80</ind><dep>-5</dep></entry>
<entry><ind>90</ind><dep>-10</dep></entry>
</interpolation>
<center>
<x-m>-4.23614</x-m>
<y-m> 2.814</y-m>
<z-m>-3.00605</z-m>
</center>
<axis>
<x>0</x>
<y>1</y>
<z>0</z>
</axis>
</animation>
<animation>
<name>leftprop</name>
<object-name>heliceL</object-name>
<object-name>propblurL</object-name>
<object-name>propdiscL</object-name>
</animation>
<animation>
<type>select</type>
<object-name>propblurL</object-name>
<condition>
<greater-than>
<property>velocities/true-airspeed-kt</property>
<value>100</value>
</greater-than>
</condition>
</animation>
<animation>
<type>select</type>
<object-name>propdiskL</object-name>
<condition>
<greater-than>
<property>velocities/true-airspeed-kt</property>
<value>50</value>
</greater-than>
</condition>
</animation>
<animation>
<type>select</type>
<object-name>heliceL</object-name>
<condition>
<less-than>
<property>velocities/true-airspeed-kt</property>
<value>60</value>
</less-than>
</condition>
</animation>
<animation>
<type>spin</type>
<object-name>heliceL</object-name>
<property>velocities/true-airspeed-kt</property>
<factor>10</factor>
<center>
<x-m>-7.44425</x-m>
<y-m>-2.814</y-m>
<z-m>-1.189</z-m>
</center>
<axis>
<x> -1.000 </x>
<y> 0.000 </y>
<z> 0.000 </z>
</axis>
</animation>
<animation>
<name>rightprop</name>
<object-name>heliceR</object-name>
<object-name>propblurR</object-name>
<object-name>propdiscR</object-name>
</animation>
<animation>
<type>select</type>
<object-name>propblurR</object-name>
<condition>
<greater-than>
<property>velocities/true-airspeed-kt</property>
<value>100</value>
</greater-than>
</condition>
</animation>
<animation>
<type>select</type>
<object-name>propdiskR</object-name>
<condition>
<greater-than>
<property>velocities/true-airspeed-kt</property>
<value>50</value>
</greater-than>
</condition>
</animation>
<animation>
<type>select</type>
<object-name>heliceR</object-name>
<condition>
<less-than>
<property>velocities/true-airspeed-kt</property>
<value>60</value>
</less-than>
</condition>
</animation>
<animation>
<type>spin</type>
<object-name>heliceR</object-name>
<property>velocities/true-airspeed-kt</property>
<factor> 10 </factor>
<center>
<x-m>-7.44425</x-m>
<y-m> 2.814</y-m>
<z-m>-1.189</z-m>
</center>
<axis>
<x> 1.000 </x>
<y> 0.000 </y>
<z> 0.000 </z>
</axis>
</animation>
</PropertyList>

File diff suppressed because it is too large Load Diff

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 728 KiB

View File

@ -0,0 +1,25 @@
<?xml version="1.0"?>
<PropertyList>
<fx>
<engine>
<name>engine</name>
<mode>looped</mode>
<path>Croisiere_ext_2.wav</path>
<condition>
<property>/addons/by-id/org.flightgear.addons.Aerotow/addon-devel/sound/enable</property>
</condition>
<volume>
<offset>-0.80</offset>
</volume>
<pitch>
<property>velocities/true-airspeed-kt</property>
<factor>0.012</factor>
<offset>0.3</offset>
<min>0.3</min>
<max>1.0</max>
</pitch>
<reference-dist>150.0</reference-dist>
<max-dist>5000.0</max-dist>
</engine>
</fx>
</PropertyList>

View File

@ -59,6 +59,14 @@
<property>/addons/by-id/org.flightgear.addons.Aerotow/addon-devel/ai-model</property>
<value type="string">c182</value>
</binding>
</item>
<item>
<label>Call for Douglas C-47 aircraft</label>
<binding>
<command>property-assign</command>
<property>/addons/by-id/org.flightgear.addons.Aerotow/addon-devel/ai-model</property>
<value type="string">C47</value>
</binding>
</item>
<item>
<label>Disable tow aircraft</label>

View File

@ -176,9 +176,33 @@ var AircraftC182 = {
},
};
#
# Douglas C-47
# Cruise Speed 152 kt
# Max speeed 199 kt
# Stall speed 50 kt
# Best climb: 1052 ft/min
#
var AircraftC47 = {
new: func () {
return {
parents: [Aircraft],
vs: 295,
speed: 85,
speedLimit: 90,
rolling: 2.2,
minRwyLength: 508,
name: "Douglas C-47",
nameMenuCall: "C47",
modelPath: "Aircraft/Aerotow/C-47/Models/c-47-ai.xml",
};
},
};
# Create Aircraft objects
var g_Aircrafts = [
AircraftCub.new(),
AircraftRobin.new(),
AircraftC182.new(),
AircraftC47.new(),
];