ka51b_t2(1).xml 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216
  1. <?xml version="1.0" ?>
  2. <!--
  3. This file is part of FlightGear, the free flight simulator
  4. http://www.flightgear.org/
  5. Copyright (C) 2009 Torsten Dreyer, Torsten (at) t3r _dot_ de
  6. This program is free software; you can redistribute it and/or
  7. modify it under the terms of the GNU General Public License as
  8. published by the Free Software Foundation; either version 2 of the
  9. License, or (at your option) any later version.
  10. This program is distributed in the hope that it will be useful, but
  11. WITHOUT ANY WARRANTY; without even the implied warranty of
  12. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  13. General Public License for more details.
  14. -->
  15. <!--
  16. This is the ka51b slaving meter 3d instrument.
  17. Maintainer: Torsten Dreyer
  18. -->
  19. <PropertyList>
  20. <path>ka51b_t2.ac</path>
  21. <animation>
  22. <type>range</type>
  23. <min-m>0</min-m>
  24. <max-m>10</max-m>
  25. </animation>
  26. <!--
  27. <animation>
  28. <type>material</type>
  29. <property-base>sim/model/material/cockpit</property-base>
  30. <object-name>face</object-name>
  31. <object-name>auto</object-name>
  32. <object-name>direction</object-name>
  33. <emission>
  34. <red-prop>red</red-prop>
  35. <green-prop>green</green-prop>
  36. <blue-prop>blue</blue-prop>
  37. <factor-prop>factor</factor-prop>
  38. </emission>
  39. </animation>
  40. -->
  41. <animation>
  42. <type>rotate</type>
  43. <object-name>auto.lever</object-name>
  44. <property>instrumentation/kcs55/ka51/slaved</property>
  45. <factor>-60</factor>
  46. <offset-deg>60</offset-deg>
  47. <axis>
  48. <x>0</x>
  49. <y>0</y>
  50. <z>1</z>
  51. </axis>
  52. <center>
  53. <x-m>0</x-m>
  54. <y-m>0</y-m>
  55. <z-m>0</z-m>
  56. </center>
  57. </animation>
  58. <animation>
  59. <type>rotate</type>
  60. <object-name>direction.lever</object-name>
  61. <property>instrumentation/kcs55/ka51/manual-slave</property>
  62. <factor>30</factor>
  63. <axis>
  64. <x>0</x>
  65. <y>0</y>
  66. <z>1</z>
  67. </axis>
  68. <center>
  69. <x-m>0</x-m>
  70. <y-m>0</y-m>
  71. <z-m>0</z-m>
  72. </center>
  73. </animation>
  74. <animation>
  75. <type>translate</type>
  76. <object-name>indicator</object-name>
  77. <property>instrumentation/kcs55/kg102/slaving-meter-norm</property>
  78. <factor>0.0021579</factor>
  79. <axis>
  80. <x>0</x>
  81. <y>-1</y>
  82. <z>0</z>
  83. </axis>
  84. </animation>
  85. <animation>
  86. <type>pick</type>
  87. <object-name>auto</object-name>
  88. <visible>true</visible>
  89. <action>
  90. <button>0</button>
  91. <repeatable>false</repeatable>
  92. <binding>
  93. <command>property-toggle</command>
  94. <property>instrumentation/kcs55/ka51/slaved</property>
  95. </binding>
  96. </action>
  97. </animation>
  98. <animation>
  99. <type>pick</type>
  100. <object-name>direction.lever.l</object-name>
  101. <object-name>direction.base.l</object-name>
  102. <object-name>direction.pick.ccw</object-name>
  103. <visible>true</visible>
  104. <action>
  105. <button>0</button>
  106. <repeatable>false</repeatable>
  107. <binding>
  108. <command>property-assign</command>
  109. <property>instrumentation/kcs55/ka51/manual-slave</property>
  110. <value type="int">-1</value>
  111. </binding>
  112. <mod-up>
  113. <binding>
  114. <command>property-assign</command>
  115. <property>instrumentation/kcs55/ka51/manual-slave</property>
  116. <value type="int">0</value>
  117. </binding>
  118. </mod-up>
  119. </action>
  120. </animation>
  121. <animation>
  122. <type>pick</type>
  123. <object-name>direction.lever.r</object-name>
  124. <object-name>direction.base.r</object-name>
  125. <object-name>direction.pick.cw</object-name>
  126. <visible>true</visible>
  127. <action>
  128. <button>0</button>
  129. <repeatable>false</repeatable>
  130. <binding>
  131. <command>property-assign</command>
  132. <property>instrumentation/kcs55/ka51/manual-slave</property>
  133. <value type="int">1</value>
  134. </binding>
  135. <mod-up>
  136. <binding>
  137. <command>property-assign</command>
  138. <property>instrumentation/kcs55/ka51/manual-slave</property>
  139. <value type="int">0</value>
  140. </binding>
  141. </mod-up>
  142. </action>
  143. </animation>
  144. <animation>
  145. <type>pick</type>
  146. <object-name>auto.pick</object-name>
  147. <visible>false</visible>
  148. <action>
  149. <button>0</button>
  150. <repeatable>false</repeatable>
  151. <binding>
  152. <command>property-assign</command>
  153. <property>instrumentation/kcs55/ka51/slaved</property>
  154. <value type="bool">1</value>
  155. </binding>
  156. </action>
  157. </animation>
  158. <animation>
  159. <type>pick</type>
  160. <object-name>man.pick</object-name>
  161. <visible>false</visible>
  162. <action>
  163. <button>0</button>
  164. <repeatable>false</repeatable>
  165. <binding>
  166. <command>property-assign</command>
  167. <property>instrumentation/kcs55/ka51/slaved</property>
  168. <value type="bool">0</value>
  169. </binding>
  170. </action>
  171. </animation>
  172. <!-- dimming -->
  173. <animation>
  174. <type>material</type>
  175. <object-name>face</object-name>
  176. <object-name>indicator</object-name>
  177. <condition>
  178. <property>/controls/lighting/instrument-lights</property>
  179. </condition>
  180. <emission>
  181. <red> 0.8 </red>
  182. <green> 0.8 </green>
  183. <blue> 1.0 </blue>
  184. <factor>0.2</factor>
  185. </emission>
  186. </animation>
  187. <animation>
  188. <type>material</type>
  189. <object-name>face</object-name>
  190. <object-name>indicator</object-name>
  191. <condition>
  192. <property>/controls/lighting/instrument-lights</property>
  193. </condition>
  194. <emission>
  195. <red> 0.8 </red>
  196. <green> 0.8 </green>
  197. <blue> 1.0 </blue>
  198. <factor-prop>systems/electrical/outputs/instrument-lights2-norm</factor-prop>
  199. <offset>-0.1</offset>
  200. </emission>
  201. </animation>
  202. </PropertyList>