Gnat_cockpit_INN.xml 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630
  1. <PropertyList>
  2. <path>Gnat_cockpit_INN.ac</path>
  3. <!-- basic instrument lighting -->
  4. <animation>
  5. <type>material</type>
  6. <object-name>Lit_Instruments</object-name>
  7. <emission>
  8. <red> 0.5 </red>
  9. <green> 0.4 </green>
  10. <blue> 0.3 </blue>
  11. <factor-prop>/controls/lighting/instruments-norm</factor-prop>
  12. </emission>
  13. </animation>
  14. <animation>
  15. <type>material</type>
  16. <object-name>Lit_Panels</object-name>
  17. <emission>
  18. <red> 0.5 </red>
  19. <green> 0.3 </green>
  20. <blue> 0.2 </blue>
  21. <factor-prop>/controls/lighting/panel-norm</factor-prop>
  22. </emission>
  23. </animation>
  24. <!-- ==================================================================== ASI (Pilot) -->
  25. <animation><type>rotate</type><object-name>IAS_tens</object-name>
  26. <property>/velocities/equivalent-kt</property>
  27. <factor>3.6</factor>
  28. <axis><object-name>rotationIAS</object-name></axis>
  29. </animation>
  30. <animation><type>rotate</type><object-name>IAS_hundreds</object-name>
  31. <property>/velocities/equivalent-kt</property>
  32. <factor>0.36</factor>
  33. <axis><object-name>rotationIAS</object-name></axis>
  34. </animation>
  35. <!-- ==================================================================== ALT (Pilot) -->
  36. <animation><type>rotate</type><object-name>ALT_hundreds</object-name>
  37. <property>/position/altitude-ft</property>
  38. <factor>0.36</factor>
  39. <axis><object-name>rotationAlt</object-name></axis>
  40. </animation>
  41. <animation><type>rotate</type><object-name>ALT_thousands</object-name>
  42. <property>/position/altitude-ft</property>
  43. <factor>0.036</factor>
  44. <axis><object-name>rotationAlt</object-name></axis>
  45. </animation>
  46. <animation><type>rotate</type><object-name>ALT_10k</object-name>
  47. <property>/position/altitude-ft</property>
  48. <factor>0.0036</factor>
  49. <axis><object-name>rotationAlt</object-name></axis>
  50. </animation>
  51. <!-- ==================================================================== MACH (Pilot) -->
  52. <animation><type>rotate</type><object-name>MACH_decimals</object-name>
  53. <property>/velocities/mach</property>
  54. <factor>300</factor>
  55. <axis><object-name>rotationMACH</object-name></axis>
  56. </animation>
  57. <animation><type>rotate</type><object-name>MACH_ones</object-name>
  58. <property>/velocities/mach</property>
  59. <factor>30</factor>
  60. <axis><object-name>rotationMACH</object-name></axis>
  61. </animation>
  62. <!-- ==================================================================== RPM (Pilot) -->
  63. <!-- 14,000 = 360 deg .. 0.02571 -->
  64. <!--Max 100% = 10,000 rpm = 257 rotation = 2.57-->
  65. <animation><type>rotate</type><object-name>needleRPM</object-name>
  66. <property>/engines/engine[0]/rpm</property>
  67. <factor>2.57</factor><axis><object-name>rotationRPM</object-name></axis>
  68. </animation>
  69. <!-- ==================================================================== JPT (Pilot) -->
  70. <!--Max 1400F = 760C. 1,400 = 193 rotation = 0.138 -->
  71. <animation><type>rotate</type><object-name>needleJPT</object-name>
  72. <property>/engines/engine[0]/egt-degf</property>
  73. <factor>0.138</factor><axis><object-name>rotationJPT</object-name></axis>
  74. </animation>
  75. <!-- ==================================================================== Hydr (Pilot) -->
  76. <!-- 140% = 360 deg but there is no obvious property for this-->
  77. <animation><type>rotate</type><object-name>needleHydrPress</object-name>
  78. <property>/engines/engine[0]/rpm</property>
  79. <factor>2.57</factor><axis><object-name>rotationHydrPress</object-name></axis>
  80. </animation>
  81. <!-- ============================ AI / Attitude Indicator / Artificial Horizon (Pilot) -->
  82. <animation><type>rotate</type>
  83. <object-name>ball_AI</object-name>
  84. <object-name>roll-pointer_AI</object-name>
  85. <property>/orientation/roll-deg</property>
  86. <factor>-1</factor><axis><object-name>rotationRoll_AI</object-name></axis>
  87. </animation>
  88. <animation><type>rotate</type> <object-name>ball_AI</object-name>
  89. <property>/orientation/pitch-deg</property>
  90. <factor>-1</factor><axis><object-name>rotationPitch_AI</object-name></axis>
  91. </animation>
  92. <animation><type>rotate</type> <object-name>needle.localiser_AI</object-name>
  93. <property>/instrumentation/nav[0]/heading-needle-deflection</property>
  94. <factor>10</factor><axis><object-name>rotateLocaliser_AI</object-name></axis>
  95. </animation>
  96. <animation><type>select</type> <object-name>needle.localiser_AI</object-name>
  97. <condition><property>instrumentation/nav/nav-loc</property></condition>
  98. </animation>
  99. <animation><type>select</type> <object-name>flag.hdg_AI</object-name>
  100. <condition><not><property>instrumentation/nav/nav-loc</property></not></condition>
  101. </animation>
  102. <animation><type>rotate</type> <object-name>needle.glideslope_AI</object-name>
  103. <property>/instrumentation/nav[0]/gs-needle-deflection</property>
  104. <factor>5</factor><axis><object-name>rotateGS_AI</object-name></axis>>
  105. </animation>
  106. <animation><type>select</type> <object-name>needle.glideslope_AI</object-name>
  107. <condition><property>instrumentation/nav/has-gs</property></condition>
  108. </animation>
  109. <animation><type>select</type> <object-name>flag.gs_AI</object-name>
  110. <condition><not><property>instrumentation/nav/has-gs</property></not></condition>
  111. </animation>
  112. <animation><type>select</type>
  113. <object-name>flag.gyro_AI</object-name>
  114. <condition><less-than>
  115. <property>engines/engine[0]/rpm</property><value>100</value>
  116. </less-than></condition>
  117. </animation>
  118. <!-- ================================================================== HSI - NAV1+ILS -->
  119. <animation><type>translate</type> <object-name>LOC_HSI</object-name>
  120. <property>/instrumentation/nav[0]/heading-needle-deflection</property>
  121. <factor>-0.1</factor>
  122. <axis><object-name>translation_LOC_HSI</object-name></axis>
  123. </animation>
  124. <animation><type>translate</type> <object-name>HSI_GS_HSI</object-name>
  125. <property>/instrumentation/nav[0]/gs-needle-deflection</property>
  126. <factor>0.5</factor>
  127. <axis><object-name>translation_GS_HSI</object-name></axis>
  128. </animation>
  129. <animation><type>rotate</type>
  130. <object-name>disk_HSI</object-name>
  131. <property>/orientation/heading-deg</property>
  132. <factor>-1</factor><axis><object-name>rotationDisk_HSI</object-name></axis>
  133. </animation>
  134. <animation><type>rotate</type>
  135. <object-name>OBS_to_HSI</object-name>
  136. <object-name>LOC_HSI</object-name>
  137. <object-name>OBS_from_HSI</object-name>
  138. <property>/orientation/heading-deg</property>
  139. <factor>-1</factor><axis><object-name>rotationDisk_HSI</object-name></axis>
  140. </animation>
  141. <animation><type>rotate</type>
  142. <object-name>OBS_to_HSI</object-name>
  143. <object-name>LOC_HSI</object-name>
  144. <object-name>OBS_from_HSI</object-name>
  145. <property>/instrumentation/nav[0]/heading-deg</property>
  146. <factor>1</factor><axis><object-name>rotationDisk_HSI</object-name></axis>
  147. </animation>
  148. <animation><type>select</type> <object-name>LOC_HSI</object-name>
  149. <condition><property>instrumentation/nav/nav-loc</property></condition>
  150. </animation>
  151. <animation><type>select</type> <object-name>HSI_GS_HSI</object-name>
  152. <condition><property>instrumentation/nav/has-gs</property></condition>
  153. </animation>
  154. <animation><type>select</type>
  155. <object-name>dist_0_HSI</object-name>
  156. <object-name>dist_1_HSI</object-name>
  157. <object-name>dist_2_HSI</object-name>
  158. <object-name>dist_3_HSI</object-name>
  159. <condition><property>instrumentation/nav/data-is-valid</property></condition>
  160. </animation>
  161. <animation><type>textranslate</type><object-name>brg_1_HSI</object-name>
  162. <property>/instrumentation/nav[0]/heading-deg</property>
  163. <factor>0.001</factor><step>100</step><axis><x>0</x><y>-1</y><z>0</z></axis>
  164. </animation>
  165. <animation><type>textranslate</type><object-name>brg_2_HSI</object-name>
  166. <property>/instrumentation/nav[0]/heading-deg</property>
  167. <factor>0.01</factor> <step>10</step><axis><x>0</x><y>-1</y><z>0</z></axis>
  168. </animation>
  169. <animation><type>textranslate</type><object-name>brg_3_HSI</object-name>
  170. <property>/instrumentation/nav[0]/heading-deg</property>
  171. <factor>0.1</factor> <step>1</step><axis><x>0</x><y>-1</y><z>0</z></axis>
  172. </animation>
  173. <animation><type>textranslate</type><object-name>dist_0_HSI</object-name>
  174. <property>/instrumentation/nav/nav-distance</property>
  175. <factor>0.00000053996</factor><step>185200</step> <axis><x>0</x><y>-1</y><z>0</z></axis>
  176. </animation>
  177. <animation><type>textranslate</type><object-name>dist_1_HSI</object-name>
  178. <property>/instrumentation/nav/nav-distance</property>
  179. <factor>0.0000053996</factor> <step>18520</step> <axis><x>0</x><y>-1</y><z>0</z></axis>
  180. </animation>
  181. <animation><type>textranslate</type><object-name>dist_2_HSI</object-name>
  182. <property>/instrumentation/nav/nav-distance</property>
  183. <factor>0.000053996</factor> <step>1852</step> <axis><x>0</x><y>-1</y><z>0</z></axis>
  184. </animation>
  185. <animation><type>textranslate</type><object-name>dist_3_HSI</object-name>
  186. <property>/instrumentation/nav/nav-distance</property>
  187. <factor>0.00053996</factor> <step>185.2</step><axis><x>0</x><y>-1</y><z>0</z></axis>
  188. </animation><!-- 1m = 0.00053996 nm reverse = 1852 -->
  189. <!-- ================================================================= G Units (Pilot) -->
  190. <!-- 1 Unit = 22.5 deg-->
  191. <animation><type>rotate</type><object-name>needleG_units</object-name>
  192. <property>/accelerations/pilot-gdamped</property>
  193. <factor>22.5</factor><axis><object-name>rotationG_units</object-name></axis>
  194. </animation>
  195. <!-- ==================================================================== VSI (Pilot) -->
  196. <animation><type>rotate</type><object-name>needleVSI</object-name>
  197. <property>/velocities/vertical-speed-fpm</property>
  198. <interpolation>
  199. <entry><ind> -6000 </ind><dep> -172 </dep></entry>
  200. <entry><ind> -4000 </ind><dep> -138 </dep></entry>
  201. <entry><ind> -3000 </ind><dep> -121 </dep></entry>
  202. <entry><ind> -2000 </ind><dep> -98 </dep></entry>
  203. <entry><ind> -1500 </ind><dep> -85 </dep></entry>
  204. <entry><ind> -1000 </ind><dep> -60 </dep></entry>
  205. <entry><ind> 0 </ind><dep> 0 </dep></entry>
  206. <entry><ind> 1000 </ind><dep> 60 </dep></entry>
  207. <entry><ind> 1500 </ind><dep> 85 </dep></entry>
  208. <entry><ind> 2000 </ind><dep> 98 </dep></entry>
  209. <entry><ind> 3000 </ind><dep> 121 </dep></entry>
  210. <entry><ind> 4000 </ind><dep> 138 </dep></entry>
  211. <entry><ind> 6000 </ind><dep> 172 </dep></entry>
  212. </interpolation>
  213. <axis><object-name>rotationVSI</object-name></axis>
  214. </animation>
  215. <!-- ==================================================================== Fuel (Pilot) -->
  216. <!-- 1 Unit = 257 deg -->
  217. <animation><type>rotate</type><object-name>needleFuel_pc</object-name>
  218. <property>/consumables/fuel/total-fuel-norm</property>
  219. <factor>257</factor><axis><object-name>rotationFuel_pc</object-name></axis>
  220. </animation>
  221. <!-- ==================================================================== Trim (Pilot) -->
  222. <!-- 16 deg trim = 180 deg needle change = 11.25 per degree
  223. but elevator-trim goes from -1 to 1 -->
  224. <animation><type>rotate</type><object-name>needleTrim</object-name>
  225. <property>/controls/flight/elevator-trim</property>
  226. <factor>33.75</factor><axis><object-name>rotationTrim</object-name></axis>
  227. </animation>
  228. <!-- =================================================================== Flaps (Pilot) -->
  229. <animation><type>rotate</type><object-name>needleFlaps</object-name>
  230. <property>/surface-positions/flap-pos-norm</property>
  231. <factor>135</factor><axis><object-name>rotationFlaps</object-name></axis>
  232. </animation>
  233. <!-- ================================================================== Sby DG (Pilot) -->
  234. <animation><type>rotate</type><object-name>DG_standby_rose</object-name>
  235. <property>/orientation/heading-deg</property>
  236. <factor>-1</factor><axis><object-name>rotationDG_standby_rose</object-name></axis>
  237. </animation>
  238. <!-- ========================================================== Gear Indicator (Pilot) -->
  239. <animation><type>textranslate</type><object-name>gear0_DN</object-name>
  240. <property>/Gnat_T1/gear0_DN</property><bias>0.0001</bias>
  241. <factor>0.5</factor><step>1</step><axis><x>1</x><y>0</y></axis>
  242. </animation>
  243. <animation><type>textranslate</type><object-name>gear0_UP</object-name>
  244. <property>/Gnat_T1/gear0_UP</property><bias>0.0001</bias>
  245. <factor>0.5</factor><step>1</step><axis><x>1</x><y>0</y></axis><!-- ????????????? -->
  246. </animation>
  247. <animation><type>textranslate</type><object-name>gear1_DN</object-name>
  248. <property>/Gnat_T1/gear1_DN</property><bias>0.0001</bias>
  249. <factor>0.5</factor><step>1</step><axis><x>1</x><y>0</y></axis>
  250. </animation>
  251. <animation><type>textranslate</type><object-name>gear1_UP</object-name>
  252. <property>/Gnat_T1/gear1_UP</property><bias>0.0001</bias>
  253. <factor>0.5</factor><step>1</step><axis><x>1</x><y>0</y></axis><!-- ????????????? -->
  254. </animation>
  255. <animation><type>textranslate</type><object-name>gear2_DN</object-name>
  256. <property>/Gnat_T1/gear2_DN</property><bias>0.0001</bias>
  257. <factor>0.5</factor><step>1</step><axis><x>1</x><y>0</y></axis>
  258. </animation>
  259. <animation><type>textranslate</type><object-name>gear2_UP</object-name>
  260. <property>/Gnat_T1/gear2_UP</property><bias>0.0001</bias>
  261. <factor>0.5</factor><step>1</step><axis><x>1</x><y>0</y></axis><!-- ????????????? -->
  262. </animation>
  263. <animation><type>textranslate</type><object-name>gearTransit</object-name>
  264. <property>/Gnat_T1/gearTransit</property><bias>0.0001</bias>
  265. <factor>0.5</factor><step>1</step><axis><x>1</x><y>0</y></axis><!-- ????????????? -->
  266. </animation>
  267. <!-- ================================================================ Magnetic Compass -->
  268. <animation>
  269. <type>rotate</type>
  270. <object-name>compassBall</object-name>
  271. <property>/instrumentation/magnetic-compass/indicated-heading-deg</property>
  272. <axis><object-name>rotationHeading</object-name></axis>
  273. </animation>
  274. <animation>
  275. <type>rotate</type>
  276. <object-name>compassBall</object-name>
  277. <property>/orientation/roll-rate-degps</property>
  278. <factor>-0.1</factor>
  279. <axis><object-name>rotationRollRate</object-name></axis>
  280. </animation>
  281. <animation>
  282. <type>rotate</type>
  283. <object-name>compassBall</object-name>
  284. <property>/orientation/pitch-rate-degps</property>
  285. <factor>-0.1</factor>
  286. <axis><object-name>rotationPitchRate</object-name></axis>
  287. </animation>
  288. <animation>
  289. <type>rotate</type>
  290. <object-name>compassBall</object-name>
  291. <property>/orientation/yaw-rate-degps</property>
  292. <factor>0.1</factor>
  293. <axis><object-name>rotationYawRate</object-name></axis>
  294. </animation>
  295. <!-- ============================================================== Throttle (Pilot) -->
  296. <animation><type>rotate</type>
  297. <object-name>barThrottle</object-name>
  298. <object-name>handleThrottle</object-name>
  299. <property>/controls/engines/engine/throttle</property>
  300. <interpolation>
  301. <entry><ind> 0.0 </ind><dep> -28 </dep></entry>
  302. <entry><ind> 0.5 </ind><dep> 0 </dep></entry>
  303. <entry><ind> 1.0 </ind><dep> 22 </dep></entry>
  304. </interpolation>
  305. <axis><object-name>rotationThrottle</object-name></axis>
  306. </animation>
  307. <!-- =========================================================== Gear Handle (Pilot) -->
  308. <animation><type>rotate</type>
  309. <object-name>gearHandle</object-name>
  310. <property>/controls/gear/gear-down</property>
  311. <interpolation>
  312. <entry><ind> 0.0 </ind><dep> 32 </dep></entry>
  313. <entry><ind> 0.5 </ind><dep> 0 </dep></entry>
  314. <entry><ind> 1.0 </ind><dep> -32 </dep></entry>
  315. </interpolation>
  316. <axis><object-name>rotationThrottle</object-name></axis>
  317. </animation>
  318. <!-- =========================================================== Gear Handle (Pilot) -->
  319. <animation><type>rotate</type>
  320. <object-name>brakeHandle</object-name>
  321. <property>/controls/gear/brake-parking</property>
  322. <interpolation>
  323. <entry><ind> 0.0 </ind><dep> 0 </dep></entry>
  324. <entry><ind> 0.8 </ind><dep> -1 </dep></entry>
  325. <entry><ind> 1.0 </ind><dep> -90 </dep></entry>
  326. </interpolation>
  327. <axis><object-name>rotateBrakeHandle</object-name></axis>
  328. </animation>
  329. <!-- ====================================================== Park Brake Handle (Pilot) -->
  330. <animation>
  331. <type>translate</type>
  332. <object-name>brakeHandle</object-name>
  333. <property>/controls/gear/brake-parking</property>
  334. <factor>-1</factor>
  335. <axis><object-name>translateBrakeHandle</object-name></axis>
  336. </animation>
  337. <!-- ============================================================ Smoke Colour (Pilot) -->
  338. <animation>
  339. <type>pick</type>
  340. <object-name>knobSmokeRed</object-name>
  341. <action>
  342. <button>0</button>
  343. <repeatable>false</repeatable>
  344. <interval-sec>0.2</interval-sec>
  345. <binding>
  346. <command>nasal</command>
  347. <script>
  348. if (getprop("/Gnat_T1/smoke/red") == 0){
  349. setprop("/Gnat_T1/smoke/red", 1);
  350. setprop("/Gnat_T1/smoke/white", 0);
  351. setprop("/Gnat_T1/smoke/blue", 0);
  352. }
  353. else{
  354. setprop("/Gnat_T1/smoke/red", 0);
  355. }
  356. </script>
  357. </binding>
  358. </action>
  359. </animation>
  360. <animation>
  361. <type>rotate</type>
  362. <object-name>knobSmokeRed</object-name>
  363. <property>/Gnat_T1/smoke/red</property>
  364. <interpolation>
  365. <entry><ind> 0.0 </ind><dep>-22.5 </dep></entry>
  366. <entry><ind> 1.0 </ind><dep> 22.5 </dep></entry>
  367. </interpolation>
  368. <axis><object-name>rotateSmokeRed</object-name></axis>
  369. </animation>
  370. <animation>
  371. <type>pick</type>
  372. <object-name>knobSmokeWhite</object-name>
  373. <action>
  374. <button>0</button>
  375. <repeatable>false</repeatable>
  376. <interval-sec>0.2</interval-sec>
  377. <binding>
  378. <command>nasal</command>
  379. <script>
  380. if (getprop("/Gnat_T1/smoke/white") == 0){
  381. setprop("/Gnat_T1/smoke/red", 0);
  382. setprop("/Gnat_T1/smoke/white", 1);
  383. setprop("/Gnat_T1/smoke/blue", 0);
  384. }
  385. else{
  386. setprop("/Gnat_T1/smoke/white", 0);
  387. }
  388. </script>
  389. </binding>
  390. </action>
  391. </animation>
  392. <animation>
  393. <type>rotate</type>
  394. <object-name>knobSmokeWhite</object-name>
  395. <property>/Gnat_T1/smoke/white</property>
  396. <interpolation>
  397. <entry><ind> 0.0 </ind><dep>-22.5 </dep></entry>
  398. <entry><ind> 1.0 </ind><dep> 22.5 </dep></entry>
  399. </interpolation>
  400. <axis><object-name>rotateSmokeWhite</object-name></axis>
  401. </animation>
  402. <animation>
  403. <type>pick</type>
  404. <object-name>knobSmokeBlue</object-name>
  405. <action>
  406. <button>0</button>
  407. <repeatable>false</repeatable>
  408. <interval-sec>0.2</interval-sec>
  409. <binding>
  410. <command>nasal</command>
  411. <script>
  412. if (getprop("/Gnat_T1/smoke/blue") == 0){
  413. setprop("/Gnat_T1/smoke/red", 0);
  414. setprop("/Gnat_T1/smoke/white", 0);
  415. setprop("/Gnat_T1/smoke/blue", 1);
  416. }
  417. else{
  418. setprop("/Gnat_T1/smoke/blue", 0);
  419. }
  420. </script>
  421. </binding>
  422. </action>
  423. </animation>
  424. <animation>
  425. <type>rotate</type>
  426. <object-name>knobSmokeBlue</object-name>
  427. <property>/Gnat_T1/smoke/blue</property>
  428. <interpolation>
  429. <entry><ind> 0.0 </ind><dep>-22.5 </dep></entry>
  430. <entry><ind> 1.0 </ind><dep> 22.5 </dep></entry>
  431. </interpolation>
  432. <axis><object-name>rotateSmokeBlue</object-name></axis>
  433. </animation>
  434. <!-- ============================================================ Baro adjust (Pilot) -->
  435. <animation><type>textranslate</type><object-name>hpa.000</object-name>
  436. <property>/instrumentation/altimeter/setting-inhg</property>
  437. <factor>0.003386</factor><step>29.53</step> <axis><x>0</x><y>-1</y><z>0</z></axis>
  438. </animation>
  439. <animation><type>textranslate</type><object-name>hpa.001</object-name>
  440. <property>/instrumentation/altimeter/setting-inhg</property>
  441. <factor>0.03386</factor> <step>2.953</step> <axis><x>0</x><y>-1</y><z>0</z></axis>
  442. </animation>
  443. <animation><type>textranslate</type><object-name>hpa.002</object-name>
  444. <property>/instrumentation/altimeter/setting-inhg</property>
  445. <factor>0.3386</factor> <step>0.2953</step> <axis><x>0</x><y>-1</y><z>0</z></axis>
  446. </animation>
  447. <animation><type>textranslate</type><object-name>hpa.003</object-name>
  448. <property>/instrumentation/altimeter/setting-inhg</property>
  449. <factor>3.3864</factor> <step>0.02953</step><axis><x>0</x><y>-1</y><z>0</z></axis>
  450. </animation> <!-- 1 inhg = 0.03386 bars reverse = 29.53
  451. 0.003386 * 29.53 = 0.1 (the translation required)
  452. 0.03386 * 2.953 = 0.1
  453. 0.3386 * 0.2953 = 0.1
  454. 3.3864 * 0.02953 = 0.1000004 -->
  455. <animation>
  456. <type>pick</type>
  457. <object-name>baroDown</object-name>
  458. <action>
  459. <button>0</button>
  460. <repeatable>true</repeatable>
  461. <interval-sec>0.1</interval-sec>
  462. <binding>
  463. <command>nasal</command>
  464. <script>
  465. setprop("/instrumentation/altimeter/setting-inhg", ( getprop("/instrumentation/altimeter/setting-inhg") - 0.02953));
  466. </script>
  467. </binding>
  468. </action>
  469. </animation>
  470. <animation>
  471. <type>pick</type>
  472. <object-name>baroUp</object-name>
  473. <action>
  474. <button>0</button>
  475. <repeatable>true</repeatable>
  476. <interval-sec>0.1</interval-sec>
  477. <binding>
  478. <command>nasal</command>
  479. <script>
  480. setprop("/instrumentation/altimeter/setting-inhg", ( getprop("/instrumentation/altimeter/setting-inhg") + 0.02953));
  481. </script>
  482. </binding>
  483. </action>
  484. </animation>
  485. <animation>
  486. <type>rotate</type>
  487. <object-name>Baro_knob</object-name>
  488. <property>/instrumentation/altimeter/setting-inhg</property>
  489. <factor>300</factor><!-- 9 degrees per click -->
  490. <axis><object-name>rotateBaroKnob</object-name></axis>
  491. </animation>
  492. <!-- =============================================== Panel Lights adjust (Pilot) -->
  493. <animation>
  494. <type>pick</type>
  495. <object-name>PBD</object-name>
  496. <action>
  497. <button>0</button>
  498. <repeatable>true</repeatable>
  499. <interval-sec>0.1</interval-sec>
  500. <binding>
  501. <command>nasal</command>
  502. <script>
  503. setprop("/controls/lighting/panel-norm", ( getprop("/controls/lighting/panel-norm") - 0.05));
  504. </script>
  505. </binding>
  506. </action>
  507. </animation>
  508. <animation>
  509. <type>pick</type>
  510. <object-name>PBU</object-name>
  511. <action>
  512. <button>0</button>
  513. <repeatable>true</repeatable>
  514. <interval-sec>0.1</interval-sec>
  515. <binding>
  516. <command>nasal</command>
  517. <script>
  518. setprop("/controls/lighting/panel-norm", ( getprop("/controls/lighting/panel-norm") + 0.05));
  519. </script>
  520. </binding>
  521. </action>
  522. </animation>
  523. <animation>
  524. <type>rotate</type>
  525. <object-name>knobDimmerCockpit</object-name>
  526. <property>/controls/lighting/panel-norm</property>
  527. <factor>270</factor>
  528. <axis><object-name>rotateDimmerCockpit</object-name></axis>
  529. </animation>
  530. <!-- =============================================== Instruments Lights adjust (Pilot) -->
  531. <animation>
  532. <type>pick</type>
  533. <object-name>IBD</object-name>
  534. <action>
  535. <button>0</button>
  536. <repeatable>true</repeatable>
  537. <interval-sec>0.1</interval-sec>
  538. <binding>
  539. <command>nasal</command>
  540. <script>
  541. setprop("/controls/lighting/instruments-norm", ( getprop("/controls/lighting/instruments-norm") - 0.05));
  542. </script>
  543. </binding>
  544. </action>
  545. </animation>
  546. <animation>
  547. <type>pick</type>
  548. <object-name>IBU</object-name>
  549. <action>
  550. <button>0</button>
  551. <repeatable>true</repeatable>
  552. <interval-sec>0.1</interval-sec>
  553. <binding>
  554. <command>nasal</command>
  555. <script>
  556. setprop("/controls/lighting/instruments-norm", ( getprop("/controls/lighting/instruments-norm") + 0.05));
  557. </script>
  558. </binding>
  559. </action>
  560. </animation>
  561. <animation>
  562. <type>rotate</type>
  563. <object-name>knobDimmerDials</object-name>
  564. <property>/controls/lighting/instruments-norm</property>
  565. <factor>270</factor>
  566. <axis><object-name>rotateDimmerDials</object-name></axis>
  567. </animation>
  568. </PropertyList>