123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229 |
- <?xml version="1.0"?>
- <!--
- KAS 297 ALTITUDE SELECTOR
- Syd Adams
- *** requires kfc200.nas to run ***
- -->
- <PropertyList>
- <path>kas297.ac</path>
-
- <animation>
- <type>material</type>
- <object-name>Arm.btn</object-name>
- <object-name>Set.knob</object-name>
- <emission>
- <red>0.028</red>
- <green>0.014</green>
- <blue>0.007</blue>
- <factor-prop>systems/electrical/outputs/instrument-lights</factor-prop>
- </emission>
- </animation>
-
- <animation>
- <type>select</type>
- <object-name>altmsg</object-name>
- <object-name>altmsg.001</object-name>
- <object-name>altmsg.002</object-name>
- <object-name>altmsg.003</object-name>
- <object-name>altmsg.004</object-name>
- <condition>
- <greater-than>
- <property>systems/electrical/volts</property>
- <value>1</value>
- </greater-than>
- </condition>
- </animation>
-
-
- <animation>
- <type>select</type>
- <object-name>Alert.msg</object-name>
- <condition>
- <and>
- <property>/instrumentation/kfc200/alt-alert</property>
- <greater-than>
- <property>systems/electrical/volts</property>
- <value>1</value>
- </greater-than>
- </and>
- </condition>
- </animation>
- <animation>
- <type>select</type>
- <object-name>Arm.msg</object-name>
- <condition>
- <and>
- <equals>
- <property>/instrumentation/kfc200/vnav</property>
- <value>1</value>
- </equals>
- <greater-than>
- <property>systems/electrical/volts</property>
- <value>1</value>
- </greater-than>
- </and>
- </condition>
- </animation>
- <!-- Altitude Select -->
- <animation>
- <type>textranslate</type>
- <object-name>altmsg</object-name>
- <property>instrumentation/kfc200/alt-preset</property>
- <factor>0.00001</factor>
- <step>10000</step>
- <axis>
- <x>0</x>
- <y>1</y>
- <z>0</z>
- </axis>
- </animation>
-
- <animation>
- <type>textranslate</type>
- <object-name>altmsg.001</object-name>
- <property>instrumentation/kfc200/alt-preset</property>
- <factor>0.0001</factor>
- <step>1000</step>
- <axis>
- <x>0</x>
- <y>1</y>
- <z>0</z>
- </axis>
- </animation>
-
- <animation>
- <type>textranslate</type>
- <object-name>altmsg.002</object-name>
- <property>instrumentation/kfc200/alt-preset</property>
- <factor>0.001</factor>
- <step>100</step>
- <axis>
- <x>0</x>
- <y>1</y>
- <z>0</z>
- </axis>
- </animation>
-
- <animation>
- <type>textranslate</type>
- <object-name>altmsg.003</object-name>
- <property>instrumentation/kfc200/alt-preset</property>
- <factor>0.01</factor>
- <step>10</step>
- <axis>
- <x>0</x>
- <y>1</y>
- <z>0</z>
- </axis>
- </animation>
-
- <animation>
- <type>textranslate</type>
- <object-name>altmsg.004</object-name>
- <property>instrumentation/kfc200/alt-preset</property>
- <factor>0.1</factor>
- <step>1</step>
- <axis>
- <x>0</x>
- <y>1</y>
- <z>0</z>
- </axis>
- </animation>
- <!-- OSG animations
- <animation>
- <type>pick</type>
- <object-name>Alt.decrease</object-name>
- <action>
- <button>0</button>
- <repeatable>true</repeatable>
- <binding>
- <command>property-adjust</command>
- <property>instrumentation/kfc200/alt-preset</property>
- <step>-100</step>
- <min>0.0</min>
- <max>99999.0</max>
- <wrap>false</wrap>
- </binding>
- </action>
- </animation>
-
- <animation>
- <type>pick</type>
- <object-name>Alt.decrease</object-name>
- <action>
- <button>1</button>
- <repeatable>true</repeatable>
- <binding>
- <command>property-adjust</command>
- <property>instrumentation/kfc200/alt-preset</property>
- <step>-1000</step>
- <min>0.0</min>
- <max>99999.0</max>
- <wrap>false</wrap>
- </binding>
- </action>
- </animation>
-
- <animation>
- <type>pick</type>
- <object-name>Alt.increase</object-name>
- <action>
- <button>0</button>
- <repeatable>true</repeatable>
- <binding>
- <command>property-adjust</command>
- <property>instrumentation/kfc200/alt-preset</property>
- <step>100</step>
- <min>0.0</min>
- <max>99999.0</max>
- <wrap>false</wrap>
- </binding>
- </action>
- </animation>
-
- <animation>
- <type>pick</type>
- <object-name>Alt.increase</object-name>
- <action>
- <button>1</button>
- <repeatable>true</repeatable>
- <binding>
- <command>property-adjust</command>
- <property>instrumentation/kfc200/alt-preset</property>
- <step>1000</step>
- <min>0.0</min>
- <max>99999.0</max>
- <wrap>false</wrap>
- </binding>
- </action>
- </animation>
- <animation>
- <type>pick</type>
- <object-name>Alt.arm</object-name>
- <action>
- <button>0</button>
- <repeatable>false</repeatable>
- <binding>
- <command>nasal</command>
- <script>
- if(getprop("instrumentation/kfc200/vnav")!= 1){
- setprop("instrumentation/kfc200/vnav",1);
- setprop("autopilot/settings/target-altitude-ft",getprop("instrumentation/kfc200/alt-preset"));
- }else{
- setprop("instrumentation/kfc200/vnav",0);
- }
- </script>
- </binding>
- </action>
- </animation>
- -->
- </PropertyList>
|