ka51b(1).xml 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230
  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.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. <or>
  179. <property>systems/electrical/outputs/instrument-lights-norm</property>
  180. <property>systems/electrical/outputs/instrument-lights2-norm</property>
  181. </or>
  182. <equals>
  183. <property>controls/lighting/instrument-lights-selection</property>
  184. <value>0</value>
  185. </equals>
  186. </condition>
  187. <emission>
  188. <red> 0.8 </red>
  189. <green> 0.8 </green>
  190. <blue> 1.0 </blue>
  191. <factor>0.2</factor>
  192. </emission>
  193. </animation>
  194. <animation>
  195. <type>material</type>
  196. <object-name>face</object-name>
  197. <object-name>indicator</object-name>
  198. <condition>
  199. <or>
  200. <property>systems/electrical/outputs/instrument-lights-norm</property>
  201. <property>systems/electrical/outputs/instrument-lights2-norm</property>
  202. </or>
  203. <greater-than>
  204. <property>controls/lighting/instrument-lights-selection</property>
  205. <value>0</value>
  206. </greater-than>
  207. </condition>
  208. <emission>
  209. <red> 0.8 </red>
  210. <green> 0.8 </green>
  211. <blue> 1.0 </blue>
  212. <factor-prop>systems/electrical/outputs/instrument-lights2-norm</factor-prop>
  213. <offset>-0.1</offset>
  214. </emission>
  215. </animation>
  216. </PropertyList>