Skip to content

Commit

Permalink
Added transponder, copilot weight, file cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Thilo277 committed Nov 12, 2022
1 parent df5539c commit 815d0fc
Show file tree
Hide file tree
Showing 48 changed files with 48,731 additions and 11,754 deletions.
6 changes: 3 additions & 3 deletions Engines/ROTAX912S.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@
<sparkfaildrop> 0.1 </sparkfaildrop>
<volumetric-efficiency> 0.85 </volumetric-efficiency>
<man-press-lag> 0.1 </man-press-lag>
<static-friction unit="HP"> 0.50 </static-friction>
<static-friction unit="HP"> 0.50 </static-friction>
<starter-torque> 80.00 </starter-torque>
<starter-rpm> 1400 </starter-rpm>
<!-- Defining <bsfc> over-rides the built-in horsepower calculations -->
<!--<bsfc> 0.45 </bsfc>-->
<!-- Defining <bsfc> over-rides the built-in horsepower calculations -->
<!--<bsfc> 0.45 </bsfc>-->
<stroke unit="IN"> 4.375 </stroke>
<bore unit="IN"> 5.125 </bore>
<cylinders> 2.0 </cylinders>
Expand Down
6 changes: 3 additions & 3 deletions Engines/ROTAX915IS.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@
<sparkfaildrop> 0.1 </sparkfaildrop>
<volumetric-efficiency> 0.85 </volumetric-efficiency>
<man-press-lag> 0.1 </man-press-lag>
<static-friction unit="HP"> 0.70 </static-friction>
<static-friction unit="HP"> 0.70 </static-friction>
<starter-torque> 112.80 </starter-torque>
<starter-rpm> 700 </starter-rpm>
<!-- Defining <bsfc> over-rides the built-in horsepower calculations -->
<!--<bsfc> 0.45 </bsfc>-->
<!-- Defining <bsfc> over-rides the built-in horsepower calculations -->
<!--<bsfc> 0.45 </bsfc>-->
<stroke unit="IN"> 2.40 </stroke>
<bore unit="IN"> 3.31 </bore>
<cylinders> 4.0 </cylinders>
Expand Down
20 changes: 10 additions & 10 deletions Engines/prop.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<ct_factor> 1.00 </ct_factor>

<table name="C_THRUST" type="internal">
<tableData>
<tableData>
0.0 0.0476
0.1 0.0457
0.2 0.0437
Expand All @@ -42,7 +42,7 @@


<table name="C_POWER" type="internal">
<tableData>
<tableData>
0.0 0.0320
0.1 0.0320
0.2 0.0312
Expand All @@ -59,21 +59,21 @@
</tableData>
</table>

<!-- thrust effects of helical tip Mach -->
<table name="CT_MACH" type="internal">
<tableData>
<!-- thrust effects of helical tip Mach -->
<table name="CT_MACH" type="internal">
<tableData>
0.85 1.0
1.05 0.8
</tableData>
</table>
</table>

<!-- power-required effects of helical tip Mach -->
<table name="CP_MACH" type="internal">
<tableData>
<!-- power-required effects of helical tip Mach -->
<table name="CP_MACH" type="internal">
<tableData>
0.85 1.0
1.05 1.8
2.00 1.4
</tableData>
</table>
</table>

</propeller>
Binary file added Models/Instruments/TDR-94/ao_ducttape.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Models/Instruments/TDR-94/ctl-92.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
272 changes: 272 additions & 0 deletions Models/Instruments/TDR-94/ctl92-transponder.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,272 @@
<?xml version="1.0"?>
<!-- CTL 92 Control for TDR-94 transponder
2.375"W x 2.625"H
Syd Adams
-->

<PropertyList>

<path>ctl92.ac</path>

<animation>
<type>select</type>
<object-name>C92freq.001</object-name>
<object-name>C92freq.002</object-name>
<object-name>C92freq.003</object-name>
<object-name>C92freq.004</object-name>
<object-name>C92mem.annun</object-name>
<condition>
<greater-than>
<property>instrumentation/transponder/inputs/knob-mode</property>
<value>0</value>
</greater-than>
</condition>
</animation>

<animation>
<type>select</type>
<object-name>C92mem.annun</object-name>
<condition>
<property>instrumentation/tdr-94/mem-selected</property>
</condition>
</animation>


<animation>
<type>knob</type>
<object-name>CTL-92.pwr</object-name>

<action>
<binding>
<command>property-cycle</command>
<property>instrumentation/transponder/inputs/knob-mode</property>
<wrap>0</wrap> <!-- don't wrap at the ends -->

<value>0</value>
<value>1</value>
<value>4</value> <!-- ON -->
<value>5</value> <!-- altitude -->

</binding>
</action>


<property>instrumentation/transponder/inputs/knob-mode</property>
<interpolation>
<entry>
<ind>0</ind>
<dep>0.0</dep>
</entry> <!--OFF-->
<entry>
<ind>1</ind>
<dep>30.0</dep>
</entry> <!--STBY-->

<!-- these two should never happen any more -->
<entry>
<ind>2</ind>
<dep>30.0</dep>
</entry> <!--TEST-->
<entry>
<ind>3</ind>
<dep>30.0</dep>
</entry> <!--GRND-->

<entry>
<ind>4</ind>
<dep>60.0</dep>
</entry> <!--ON-->
<entry>
<ind>5</ind>
<dep>90.0</dep>
</entry> <!--ALT-->
</interpolation>
<center>
<x-m>0.0</x-m>
<y-m>-0.014</y-m>
<z-m>-0.018</z-m>
</center>
<axis>
<x>-1</x>
<y>0</y>
<z>0</z>
</axis>
</animation>

<animation>
<type>textranslate</type>
<object-name>C92freq.001</object-name>
<property>instrumentation/transponder/inputs/digit[3]</property>
<factor>0.1</factor>
<step>1</step>
<axis>
<x>0</x>
<y>1</y>
<z>0</z>
</axis>
</animation>

<animation>
<type>textranslate</type>
<object-name>C92freq.002</object-name>
<property>instrumentation/transponder/inputs/digit[2]</property>
<factor>0.1</factor>
<step>1</step>
<axis>
<x>0</x>
<y>1</y>
<z>0</z>
</axis>
</animation>

<animation>
<type>textranslate</type>
<object-name>C92freq.003</object-name>
<property>instrumentation/transponder/inputs/digit[1]</property>
<factor>0.1</factor>
<step>1</step>
<axis>
<x>0</x>
<y>1</y>
<z>0</z>
</axis>
</animation>

<animation>
<type>textranslate</type>
<object-name>C92freq.004</object-name>
<property>instrumentation/transponder/inputs/digit[0]</property>
<factor>0.1</factor>
<step>1</step>
<axis>
<x>0</x>
<y>1</y>
<z>0</z>
</axis>
</animation>

<!-- OSG hotspots -->

<animation>
<type>pick</type>
<object-name>atc.ident</object-name>
<action>
<button>0</button>
<repeatable>false</repeatable>
<binding>
<command>property-toggle</command>
<property>instrumentation/transponder/inputs/ident-btn</property>
</binding>
</action>
</animation>

<animation>
<type>pick</type>
<object-name>atc.pre</object-name>
<action>
<button>0</button>
<repeatable>false</repeatable>
<binding>
<command>property-assign</command>
<property>instrumentation/transponder/id-code</property>
<value>7000</value>
</binding>
</action>
</animation>

<animation>
<type>pick</type>
<object-name>CTL-92.toggle</object-name>
<action>
<repeatable>false</repeatable>
<binding>
<command>property-toggle</command>
<property>instrumentation/tdr-94/mem-selected</property>
</binding>
</action>
</animation>

<animation>
<type>pick</type>
<object-name>atc.test</object-name>
<action>
<button>0</button>
<repeatable>false</repeatable>
<binding>
<command>property-assign</command>
<property>instrumentation/tdr-94/saved-mode</property>
<property>instrumentation/transponder/inputs/knob-mode</property>
</binding>
<binding>
<command>property-assign</command>
<property>instrumentation/transponder/inputs/knob-mode</property>
<value>2</value> <!-- test mode -->
</binding>

<mod-up>
<!-- restore previous mode on button release -->
<binding>
<command>property-assign</command>
<property>instrumentation/transponder/inputs/knob-mode</property>
<property>instrumentation/tdr-94/saved-mode</property>
</binding>
</mod-up>
</action>
</animation>

<animation>
<type>knob</type>
<object-name>CTL92.knob</object-name>
<action>
<binding>
<command>nasal</command>
<script>
<![CDATA[
var loDigit = getprop('instrumentation/transponder/inputs/digit[2]') or 2;
var hiDigit = getprop('instrumentation/transponder/inputs/digit[3]') or 1;
var offset = int(cmdarg().getNode('offset').getValue());
var incr = (offset > 0);
if ((incr and loDigit == 7) or (!incr and loDigit == 0)) {
hiDigit = math.mod(hiDigit + offset, 8);
}
loDigit = math.mod(loDigit + offset, 8);
setprop('instrumentation/transponder/inputs/digit[2]', loDigit);
setprop('instrumentation/transponder/inputs/digit[3]', hiDigit);
]]>
</script>
</binding>
</action>
</animation>

<animation>
<type>knob</type>
<object-name>CTL92.knob1</object-name>
<action>
<binding>
<command>nasal</command>
<script>
<![CDATA[
var loDigit = getprop('instrumentation/transponder/inputs/digit[0]') or 0;
var hiDigit = getprop('instrumentation/transponder/inputs/digit[1]') or 0;
var offset = int(cmdarg().getNode('offset').getValue());
var incr = (offset > 0);
if ((incr and loDigit == 7) or (!incr and loDigit == 0)) {
hiDigit = math.mod(hiDigit + offset, 8);
}
loDigit = math.mod(loDigit + offset, 8);
setprop('instrumentation/transponder/inputs/digit[0]', loDigit);
setprop('instrumentation/transponder/inputs/digit[1]', hiDigit);
]]>
</script>
</binding>
</action>
</animation>


</PropertyList>
Loading

0 comments on commit 815d0fc

Please sign in to comment.