kma20.xml 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610
  1. <?xml version="1.0"?>
  2. <PropertyList>
  3. <!--
  4. Bendix/King KMA20 Marker/Audio panel
  5. Created by Torsten Dreyer, December 2008
  6. You might want to use the following code in your aircraft's nasal
  7. init function to keep the settings of the device persistent between
  8. flightgear sessions
  9. aircraft.data.add(
  10. "instrumentation/kma20/test",
  11. "instrumentation/kma20/auto",
  12. "instrumentation/kma20/com1",
  13. "instrumentation/kma20/com2",
  14. "instrumentation/kma20/nav1",
  15. "instrumentation/kma20/nav2",
  16. "instrumentation/kma20/adf",
  17. "instrumentation/kma20/dme",
  18. "instrumentation/kma20/mkr",
  19. "instrumentation/kma20/sens",
  20. "instrumentation/kma20/knob"
  21. );
  22. -->
  23. <params>
  24. <power>/systems/electrical/outputs/audio-panel[0]</power>
  25. <outer>instrumentation/marker-beacon/outer</outer>
  26. <middle>instrumentation/marker-beacon/middle</middle>
  27. <inner>instrumentation/marker-beacon/inner</inner>
  28. <test>instrumentation/kma20/test</test>
  29. <auto>instrumentation/kma20/auto</auto>
  30. <com1>instrumentation/kma20/com1</com1>
  31. <com2>instrumentation/kma20/com2</com2>
  32. <nav1>instrumentation/kma20/nav1</nav1>
  33. <nav2>instrumentation/kma20/nav2</nav2>
  34. <adf>instrumentation/kma20/adf</adf>
  35. <dme>instrumentation/kma20/dme</dme>
  36. <mkr>instrumentation/kma20/mkr</mkr>
  37. <sens>instrumentation/kma20/sens</sens>
  38. <knob>instrumentation/kma20/knob</knob>
  39. </params>
  40. <path>kma20.ac</path>
  41. <effect>
  42. <inherits-from>../../../../Effects/interior/c172p-interior-radiance</inherits-from>
  43. <object-name>Chassis</object-name>
  44. <object-name>Knob</object-name>
  45. <object-name>AUTO</object-name>
  46. <object-name>COM1</object-name>
  47. <object-name>COM2</object-name>
  48. <object-name>NAV1</object-name>
  49. <object-name>NAV2</object-name>
  50. <object-name>ADF</object-name>
  51. <object-name>DME</object-name>
  52. <object-name>MKR</object-name>
  53. <object-name>SENS</object-name>
  54. <object-name>M</object-name>
  55. <object-name>A</object-name>
  56. <object-name>O</object-name>
  57. </effect>
  58. <animation>
  59. <type>material</type>
  60. <object-name>O</object-name>
  61. <condition>
  62. <and>
  63. <less-than>
  64. <property alias="/params/power"/>
  65. <value>31.5</value>
  66. </less-than>
  67. <greater-than>
  68. <property alias="/params/power"/>
  69. <value>20.0</value>
  70. </greater-than>
  71. </and>
  72. </condition>
  73. <emission>
  74. <red>1.0</red>
  75. <green>1.0</green>
  76. <blue>1.0</blue>
  77. <factor-prop alias="../../../params/outer"/>
  78. <offset-prop alias="../../../params/test"/>
  79. </emission>
  80. </animation>
  81. <animation>
  82. <type>material</type>
  83. <object-name>M</object-name>
  84. <condition>
  85. <and>
  86. <less-than>
  87. <property alias="/params/power"/>
  88. <value>31.5</value>
  89. </less-than>
  90. <greater-than>
  91. <property alias="/params/power"/>
  92. <value>20.0</value>
  93. </greater-than>
  94. </and>
  95. </condition>
  96. <emission>
  97. <red>1.0</red>
  98. <green>1.0</green>
  99. <blue>1.0</blue>
  100. <factor-prop alias="../../../params/middle"/>
  101. <offset-prop alias="../../../params/test"/>
  102. </emission>
  103. </animation>
  104. <animation>
  105. <type>material</type>
  106. <object-name>A</object-name>
  107. <condition>
  108. <and>
  109. <less-than>
  110. <property alias="/params/power"/>
  111. <value>31.5</value>
  112. </less-than>
  113. <greater-than>
  114. <property alias="/params/power"/>
  115. <value>20.0</value>
  116. </greater-than>
  117. </and>
  118. </condition>
  119. <emission>
  120. <red>1.0</red>
  121. <green>1.0</green>
  122. <blue>1.0</blue>
  123. <factor-prop alias="../../../params/inner"/>
  124. <offset-prop alias="../../../params/test"/>
  125. </emission>
  126. </animation>
  127. <animation>
  128. <type>knob</type>
  129. <drag-direction>vertical</drag-direction>
  130. <drag-scale-px>30</drag-scale-px>
  131. <object-name>AUTO</object-name>
  132. <proxy-name>AUTOUp</proxy-name>
  133. <proxy-name>AUTODown</proxy-name>
  134. <property alias="../../params/auto"/>
  135. <factor>30</factor>
  136. <axis>
  137. <y>1</y>
  138. </axis>
  139. <center>
  140. <x-m>0.0131629</x-m>
  141. <z-m>0.00714385</z-m>
  142. </center>
  143. <action>
  144. <binding>
  145. <command>property-adjust</command>
  146. <property alias="../../../../params/auto"/>
  147. <factor>-1</factor>
  148. <min>-1</min>
  149. <max>1</max>
  150. <wrap>0</wrap>
  151. </binding>
  152. <binding>
  153. <command>nasal</command>
  154. <script>c172p.click("kma20")</script>
  155. </binding>
  156. </action>
  157. <hovered>
  158. <binding>
  159. <command>set-tooltip</command>
  160. <tooltip-id>kma20-auto</tooltip-id>
  161. <label>Auto: %s</label>
  162. <mapping>nasal</mapping>
  163. <script>(arg[0] == -1) ? "SPEAKER" : (arg[0]==1) ? "HEADSET" : "OFF"</script>
  164. <property alias="../../../../params/auto"/>
  165. </binding>
  166. </hovered>
  167. </animation>
  168. <animation>
  169. <type>knob</type>
  170. <object-name>COM1</object-name>
  171. <proxy-name>COM1Up</proxy-name>
  172. <proxy-name>COM1Down</proxy-name>
  173. <drag-direction>vertical</drag-direction>
  174. <drag-scale-px>30</drag-scale-px>
  175. <property alias="../../params/com1"/>
  176. <factor>30</factor>
  177. <axis>
  178. <y>1</y>
  179. </axis>
  180. <center>
  181. <x-m>0.0131629</x-m>
  182. <z-m>0.00714385</z-m>
  183. </center>
  184. <action>
  185. <binding>
  186. <command>property-adjust</command>
  187. <property alias="../../../../params/com1"/>
  188. <factor>-1</factor>
  189. <min>-1</min>
  190. <max>1</max>
  191. <wrap>0</wrap>
  192. </binding>
  193. <binding>
  194. <command>nasal</command>
  195. <script>c172p.click("kma20")</script>
  196. </binding>
  197. </action>
  198. <hovered>
  199. <binding>
  200. <command>set-tooltip</command>
  201. <tooltip-id>kma20-com1</tooltip-id>
  202. <property alias="../../../../params/com1"/>
  203. <label>COM1: %s</label>
  204. <mapping>nasal</mapping>
  205. <script>(arg[0] == -1) ? "SPEAKER" : (arg[0]==1) ? "HEADSET" : "OFF"</script>
  206. </binding>
  207. </hovered>
  208. </animation>
  209. <animation>
  210. <type>knob</type>
  211. <object-name>COM2</object-name>
  212. <proxy-name>COM2Up</proxy-name>
  213. <proxy-name>COM2Down</proxy-name>
  214. <drag-direction>vertical</drag-direction>
  215. <drag-scale-px>30</drag-scale-px>
  216. <property alias="../../params/com2"/>
  217. <factor>30</factor>
  218. <axis>
  219. <y>1</y>
  220. </axis>
  221. <center>
  222. <x-m>0.0131629</x-m>
  223. <z-m>0.00714385</z-m>
  224. </center>
  225. <action>
  226. <binding>
  227. <command>property-adjust</command>
  228. <property alias="../../../../params/com2"/>
  229. <factor>-1</factor>
  230. <min>-1</min>
  231. <max>1</max>
  232. <wrap>0</wrap>
  233. </binding>
  234. <binding>
  235. <command>nasal</command>
  236. <script>c172p.click("kma20")</script>
  237. </binding>
  238. </action>
  239. <hovered>
  240. <binding>
  241. <command>set-tooltip</command>
  242. <tooltip-id>kma20-com2</tooltip-id>
  243. <label>COM2: %s</label>
  244. <property alias="../../../../params/com2"/>
  245. <mapping>nasal</mapping>
  246. <script>(arg[0] == -1) ? "SPEAKER" : (arg[0]==1) ? "HEADSET" : "OFF"</script>
  247. </binding>
  248. </hovered>
  249. </animation>
  250. <animation>
  251. <type>knob</type>
  252. <object-name>NAV1</object-name>
  253. <proxy-name>NAV1Up</proxy-name>
  254. <proxy-name>NAV1Down</proxy-name>
  255. <drag-direction>vertical</drag-direction>
  256. <drag-scale-px>30</drag-scale-px>
  257. <property alias="../../params/nav1"/>
  258. <factor>30</factor>
  259. <axis>
  260. <y>1</y>
  261. </axis>
  262. <center>
  263. <x-m>0.0131629</x-m>
  264. <z-m>0.00714385</z-m>
  265. </center>
  266. <action>
  267. <binding>
  268. <command>property-adjust</command>
  269. <property alias="../../../../params/nav1"/>
  270. <factor>-1</factor>
  271. <min>-1</min>
  272. <max>1</max>
  273. <wrap>0</wrap>
  274. </binding>
  275. <binding>
  276. <command>nasal</command>
  277. <script>c172p.click("kma20")</script>
  278. </binding>
  279. </action>
  280. <hovered>
  281. <binding>
  282. <command>set-tooltip</command>
  283. <tooltip-id>kma20-nav1</tooltip-id>
  284. <label>NAV1: %s</label>
  285. <property alias="../../../../params/nav1"/>
  286. <mapping>nasal</mapping>
  287. <script>(arg[0] == -1) ? "SPEAKER" : (arg[0]==1) ? "HEADSET" : "OFF"</script>
  288. </binding>
  289. </hovered>
  290. </animation>
  291. <animation>
  292. <type>knob</type>
  293. <object-name>NAV2</object-name>
  294. <proxy-name>NAV2Up</proxy-name>
  295. <proxy-name>NAV2Down</proxy-name>
  296. <drag-direction>vertical</drag-direction>
  297. <drag-scale-px>30</drag-scale-px>
  298. <property alias="../../params/nav2"/>
  299. <factor>30</factor>
  300. <axis>
  301. <y>1</y>
  302. </axis>
  303. <center>
  304. <x-m>0.0131629</x-m>
  305. <z-m>0.00714385</z-m>
  306. </center>
  307. <action>
  308. <binding>
  309. <command>property-adjust</command>
  310. <property alias="../../../../params/nav2"/>
  311. <factor>-1</factor>
  312. <min>-1</min>
  313. <max>1</max>
  314. <wrap>0</wrap>
  315. </binding>
  316. <binding>
  317. <command>nasal</command>
  318. <script>c172p.click("kma20")</script>
  319. </binding>
  320. </action>
  321. <hovered>
  322. <binding>
  323. <command>set-tooltip</command>
  324. <tooltip-id>kma20-nav2</tooltip-id>
  325. <label>NAV2: %s</label>
  326. <property alias="../../../../params/nav2"/>
  327. <mapping>nasal</mapping>
  328. <script>(arg[0] == -1) ? "SPEAKER" : (arg[0]==1) ? "HEADSET" : "OFF"</script>
  329. </binding>
  330. </hovered>
  331. </animation>
  332. <animation>
  333. <type>knob</type>
  334. <object-name>ADF</object-name>
  335. <proxy-name>ADFUp</proxy-name>
  336. <proxy-name>ADFDown</proxy-name>
  337. <drag-direction>vertical</drag-direction>
  338. <drag-scale-px>30</drag-scale-px>
  339. <property alias="../../params/adf"/>
  340. <factor>30</factor>
  341. <axis>
  342. <y>1</y>
  343. </axis>
  344. <center>
  345. <x-m>0.0131629</x-m>
  346. <z-m>0.00714385</z-m>
  347. </center>
  348. <action>
  349. <binding>
  350. <command>property-adjust</command>
  351. <property alias="../../../../params/adf"/>
  352. <factor>-1</factor>
  353. <min>-1</min>
  354. <max>1</max>
  355. <wrap>0</wrap>
  356. </binding>
  357. <binding>
  358. <command>nasal</command>
  359. <script>c172p.click("kma20")</script>
  360. </binding>
  361. </action>
  362. <hovered>
  363. <binding>
  364. <command>set-tooltip</command>
  365. <tooltip-id>kma20-adf</tooltip-id>
  366. <label>ADF: %s</label>
  367. <property alias="../../../../params/adf"/>
  368. <mapping>nasal</mapping>
  369. <script>(arg[0] == -1) ? "SPEAKER" : (arg[0]==1) ? "HEADSET" : "OFF"</script>
  370. </binding>
  371. </hovered>
  372. </animation>
  373. <animation>
  374. <type>knob</type>
  375. <object-name>DME</object-name>
  376. <proxy-name>DMEUp</proxy-name>
  377. <proxy-name>DMEDown</proxy-name>
  378. <drag-direction>vertical</drag-direction>
  379. <drag-scale-px>30</drag-scale-px>
  380. <property alias="../../params/dme"/>
  381. <factor>30</factor>
  382. <axis>
  383. <y>1</y>
  384. </axis>
  385. <center>
  386. <x-m>0.0131629</x-m>
  387. <z-m>0.00714385</z-m>
  388. </center>
  389. <action>
  390. <binding>
  391. <command>property-adjust</command>
  392. <property alias="../../../../params/dme"/>
  393. <factor>-1</factor>
  394. <min>-1</min>
  395. <max>1</max>
  396. <wrap>0</wrap>
  397. </binding>
  398. <binding>
  399. <command>nasal</command>
  400. <script>c172p.click("kma20")</script>
  401. </binding>
  402. </action>
  403. <hovered>
  404. <binding>
  405. <command>set-tooltip</command>
  406. <tooltip-id>kma20-dme</tooltip-id>
  407. <label>DME: %s</label>
  408. <property alias="../../../../params/dme"/>
  409. <mapping>nasal</mapping>
  410. <script>(arg[0] == -1) ? "SPEAKER" : (arg[0]==1) ? "HEADSET" : "OFF"</script>
  411. </binding>
  412. </hovered>
  413. </animation>
  414. <animation>
  415. <type>knob</type>
  416. <object-name>MKR</object-name>
  417. <proxy-name>MKRUp</proxy-name>
  418. <proxy-name>MKRDown</proxy-name>
  419. <drag-direction>vertical</drag-direction>
  420. <drag-scale-px>30</drag-scale-px>
  421. <property alias="../../params/mkr"/>
  422. <factor>30</factor>
  423. <axis>
  424. <y>1</y>
  425. </axis>
  426. <center>
  427. <x-m>0.0131629</x-m>
  428. <z-m>0.00714385</z-m>
  429. </center>
  430. <action>
  431. <binding>
  432. <command>property-adjust</command>
  433. <property alias="../../../../params/mkr"/>
  434. <factor>-1</factor>
  435. <min>-1</min>
  436. <max>1</max>
  437. <wrap>0</wrap>
  438. </binding>
  439. <binding>
  440. <command>nasal</command>
  441. <script>c172p.click("kma20")</script>
  442. </binding>
  443. </action>
  444. <hovered>
  445. <binding>
  446. <command>set-tooltip</command>
  447. <tooltip-id>kma20-mkr</tooltip-id>
  448. <label>Marker Beacon: %s</label>
  449. <property alias="../../../../params/mkr"/>
  450. <mapping>nasal</mapping>
  451. <script>(arg[0] == -1) ? "SPEAKER" : (arg[0]==1) ? "HEADSET" : "OFF"</script>
  452. </binding>
  453. </hovered>
  454. </animation>
  455. <animation>
  456. <type>rotate</type>
  457. <object-name>SENS</object-name>
  458. <property alias="../../params/sens"/>
  459. <factor>30</factor>
  460. <axis>
  461. <y>1</y>
  462. </axis>
  463. <center>
  464. <x-m>0.0131629</x-m>
  465. <z-m>0.00714385</z-m>
  466. </center>
  467. </animation>
  468. <animation>
  469. <type>pick</type>
  470. <object-name>SENSUp</object-name>
  471. <visible>false</visible>
  472. <action>
  473. <button>0</button>
  474. <repeatable>false</repeatable>
  475. <binding>
  476. <command>property-adjust</command>
  477. <property alias="../../../../params/sens"/>
  478. <step>-1</step>
  479. <min>-1</min>
  480. <max>1</max>
  481. <wrap>0</wrap>
  482. </binding>
  483. <binding>
  484. <command>nasal</command>
  485. <script>c172p.click("kma20")</script>
  486. </binding>
  487. </action>
  488. </animation>
  489. <animation>
  490. <type>pick</type>
  491. <object-name>SENSDown</object-name>
  492. <visible>false</visible>
  493. <action>
  494. <button>0</button>
  495. <repeatable>false</repeatable>
  496. <binding>
  497. <command>property-adjust</command>
  498. <property alias="../../../../params/sens"/>
  499. <step>1</step>
  500. <min>-1</min>
  501. <max>1</max>
  502. <wrap>0</wrap>
  503. </binding>
  504. <mod-up>
  505. <binding>
  506. <condition>
  507. <equals>
  508. <property alias="../../../../../../../params/sens"/>
  509. <value>1</value>
  510. </equals>
  511. </condition>
  512. <command>property-assign</command>
  513. <property alias="../../../../../params/sens"/>
  514. <value>0</value>
  515. </binding>
  516. <binding>
  517. <condition>
  518. <equals>
  519. <property alias="../../../../../../../params/sens"/>
  520. <value>0</value>
  521. </equals>
  522. </condition>
  523. <command>property-assign</command>
  524. <property alias="../../../../../params/test"/>
  525. <value>0</value>
  526. </binding>
  527. <binding>
  528. <command>nasal</command>
  529. <script>c172p.click("kma20")</script>
  530. </binding>
  531. </mod-up>
  532. <binding>
  533. <condition>
  534. <greater-than>
  535. <property alias="../../../../../../params/sens"/>
  536. <value>-1</value>
  537. </greater-than>
  538. </condition>
  539. <command>property-assign</command>
  540. <property alias="../../../../params/test"/>
  541. <property alias="../../../../params/sens"/>
  542. </binding>
  543. <binding>
  544. <command>nasal</command>
  545. <script>c172p.click("kma20")</script>
  546. </binding>
  547. </action>
  548. </animation>
  549. <animation>
  550. <type>knob</type>
  551. <object-name>Knob</object-name>
  552. <proxy-name>MICLeft</proxy-name>
  553. <proxy-name>MICRight</proxy-name>
  554. <property alias="../../params/knob"/>
  555. <factor>-30</factor>
  556. <axis>
  557. <x>1</x>
  558. </axis>
  559. <center>
  560. <y-m>-0.0605381</y-m>
  561. <z-m>0.00559147</z-m>
  562. </center>
  563. <action>
  564. <binding>
  565. <command>property-adjust</command>
  566. <property alias="../../../../params/knob"/>
  567. <min>-1</min>
  568. <max>1</max>
  569. <wrap>0</wrap>
  570. </binding>
  571. <binding>
  572. <command>nasal</command>
  573. <script>c172p.click("kma20-dial")</script>
  574. </binding>
  575. </action>
  576. <hovered>
  577. <binding>
  578. <command>set-tooltip</command>
  579. <tooltip-id>kma20-mic</tooltip-id>
  580. <label>Microphone: %s</label>
  581. <property alias="../../../../params/knob"/>
  582. <mapping>nasal</mapping>
  583. <script>(arg[0] == -1) ? "COM1" : (arg[0]==1) ? "External" : "COM2"</script>
  584. </binding>
  585. </hovered>
  586. </animation>
  587. </PropertyList>