cdi.xml 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  1. <?xml version="1.0"?>
  2. <!--
  3. CDI loosely based on the Bendix/King KI-203
  4. Gary "Buckaroo" Neely
  5. -->
  6. <PropertyList>
  7. <path>cdi.ac</path>
  8. <animation>
  9. <type>material</type>
  10. <object-name>CompassRose</object-name>
  11. <object-name>NeedleCourse</object-name>
  12. <object-name>NeedleDeviation</object-name>
  13. <object-name>ToFlag</object-name>
  14. <object-name>FromFlag</object-name>
  15. <object-name>NavFlag</object-name>
  16. <emission>
  17. <red>0.8</red>
  18. <green>0.4</green>
  19. <blue>0.2</blue>
  20. <factor-prop>/systems/electrical/outputs/panel-norm</factor-prop>
  21. </emission>
  22. </animation>
  23. <animation>
  24. <type>material</type>
  25. <object-name>KnobOBS</object-name>
  26. <emission>
  27. <red>0.2</red>
  28. <green>0.1</green>
  29. <blue>0.05</blue>
  30. <factor-prop>/systems/electrical/outputs/panel-norm</factor-prop>
  31. </emission>
  32. </animation>
  33. <animation>
  34. <type>rotate</type>
  35. <object-name>CompassRose</object-name>
  36. <object-name>NavFlag</object-name>
  37. <object-name>ToFlag</object-name>
  38. <object-name>FromFlag</object-name>
  39. <object-name>NeedleCourse</object-name>
  40. <object-name>NeedleDeviation</object-name>
  41. <property>/instrumentation/heading-indicator/indicated-heading-deg</property>
  42. <axis>
  43. <x>1</x>
  44. <y>0</y>
  45. <z>0</z>
  46. </axis>
  47. </animation>
  48. <animation>
  49. <type>rotate</type>
  50. <object-name>NavFlag</object-name>
  51. <object-name>ToFlag</object-name>
  52. <object-name>FromFlag</object-name>
  53. <object-name>NeedleCourse</object-name>
  54. <object-name>NeedleDeviation</object-name>
  55. <property>/instrumentation/nav/radials/selected-deg</property>
  56. <axis>
  57. <x>-1</x>
  58. <y>0</y>
  59. <z>0</z>
  60. </axis>
  61. </animation>
  62. <animation>
  63. <type>rotate</type>
  64. <object-name>NeedleDeviation</object-name>
  65. <property>/instrumentation/nav/heading-needle-deflection</property>
  66. <interpolation>
  67. <entry><ind>-999.0</ind><dep>-13</dep></entry>
  68. <entry><ind> -2.5</ind><dep>-13</dep></entry>
  69. <entry><ind> 0.0</ind><dep> 0</dep></entry>
  70. <entry><ind> 2.5</ind><dep> 13</dep></entry>
  71. <entry><ind> 999.0</ind><dep> 13</dep></entry>
  72. </interpolation>
  73. <center>
  74. <x-m>-0.069</x-m>
  75. <y-m>0</y-m>
  76. <z-m>0</z-m>
  77. </center>
  78. <axis>
  79. <x>0</x>
  80. <y>0</y>
  81. <z>1</z>
  82. </axis>
  83. </animation>
  84. <animation>
  85. <type>select</type>
  86. <object-name>ToFlag</object-name>
  87. <condition>
  88. <equals>
  89. <property>instrumentation/nav/to-flag</property>
  90. <value>true</value>
  91. </equals>
  92. </condition>
  93. </animation>
  94. <animation>
  95. <type>select</type>
  96. <object-name>FromFlag</object-name>
  97. <condition>
  98. <equals>
  99. <property>instrumentation/nav/from-flag</property>
  100. <value>true</value>
  101. </equals>
  102. </condition>
  103. </animation>
  104. <animation>
  105. <type>select</type>
  106. <object-name>NavFlag</object-name>
  107. <condition>
  108. <!--
  109. <not>
  110. <and>
  111. <property>/instrumentation/nav[0]/nav-loc</property>
  112. <property>/instrumentation/nav[0]/in-range</property>
  113. </and>
  114. </not>
  115. -->
  116. <not><property>/instrumentation/nav[0]/in-range</property></not>
  117. </condition>
  118. </animation>
  119. <animation>
  120. <type>rotate</type>
  121. <object-name>KnobOBS</object-name>
  122. <property>/instrumentation/nav/radials/selected-deg</property>
  123. <factor>2</factor>
  124. <center>
  125. <x-m>0</x-m>
  126. <y-m>-0.031</y-m>
  127. <z-m>-0.031</z-m>
  128. </center>
  129. <axis>
  130. <x>-1</x>
  131. <y>0</y>
  132. <z>0</z>
  133. </axis>
  134. </animation>
  135. <animation>
  136. <type>pick</type>
  137. <object-name>KnobOBS</object-name>
  138. <action>
  139. <button>3</button>
  140. <repeatable>true</repeatable>
  141. <binding>
  142. <command>property-adjust</command>
  143. <property>/instrumentation/nav/radials/selected-deg</property>
  144. <step>1</step>
  145. <min>0</min>
  146. <max>360</max>
  147. <wrap>true</wrap>
  148. </binding>
  149. </action>
  150. <action>
  151. <button>4</button>
  152. <repeatable>true</repeatable>
  153. <binding>
  154. <command>property-adjust</command>
  155. <property>/instrumentation/nav/radials/selected-deg</property>
  156. <step>-1</step>
  157. <min>0</min>
  158. <max>360</max>
  159. <wrap>true</wrap>
  160. </binding>
  161. </action>
  162. </animation>
  163. </PropertyList>