kt76a.xml 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. ##########################################
  4. # DR400-regent by PAF team
  5. # April 2012 : Modified by PAF team
  6. # http://equipe-flightgear.forumactif.com
  7. ##########################################
  8. -->
  9. <PropertyList>
  10. <path>kt76a.ac</path>
  11. <params>
  12. <serviceable>instrumentation/transponder/serviceable</serviceable>
  13. <knob-mode>instrumentation/transponder/inputs/knob-mode</knob-mode>
  14. <ident-btn>instrumentation/transponder/inputs/ident-btn</ident-btn>
  15. <digit0>instrumentation/transponder/inputs/digit[0]</digit0>
  16. <digit1>instrumentation/transponder/inputs/digit[1]</digit1>
  17. <digit2>instrumentation/transponder/inputs/digit[2]</digit2>
  18. <digit3>instrumentation/transponder/inputs/digit[3]</digit3>
  19. <dimming>instrumentation/transponder/dimming-norm</dimming>
  20. </params>
  21. <effect>
  22. <inherits-from>../../../../Effects/interior/c172p-interior-radiance</inherits-from>
  23. <object-name>Dial1</object-name>
  24. <object-name>Dial10</object-name>
  25. <object-name>Dial100</object-name>
  26. <object-name>Dial1000</object-name>
  27. <object-name>Front</object-name>
  28. <object-name>Ident</object-name>
  29. <object-name>Ident-light</object-name>
  30. <object-name>Knob1</object-name>
  31. <object-name>Knob10</object-name>
  32. <object-name>Knob100</object-name>
  33. <object-name>Knob1000</object-name>
  34. <object-name>Border</object-name>
  35. <object-name>KnobMode</object-name>
  36. <object-name>vitre</object-name>
  37. <object-name>off</object-name>
  38. <object-name>stby</object-name>
  39. <object-name>on</object-name>
  40. <object-name>alt</object-name>
  41. <object-name>test</object-name>
  42. </effect>
  43. <animation>
  44. <object-name>Dial1</object-name>
  45. <object-name>Dial10</object-name>
  46. <object-name>Dial100</object-name>
  47. <object-name>Dial1000</object-name>
  48. <object-name>Front</object-name>
  49. <object-name>Ident</object-name>
  50. <object-name>Ident-light</object-name>
  51. <object-name>Knob1</object-name>
  52. <object-name>Knob10</object-name>
  53. <object-name>Knob100</object-name>
  54. <object-name>Knob1000</object-name>
  55. <object-name>Border</object-name>
  56. <object-name>KnobMode</object-name>
  57. <object-name>vitre</object-name>
  58. <object-name>off</object-name>
  59. <object-name>stby</object-name>
  60. <object-name>on</object-name>
  61. <object-name>alt</object-name>
  62. <object-name>test</object-name>
  63. </animation>
  64. <animation>
  65. <type>material</type>
  66. <object-name>Dial1</object-name>
  67. <object-name>Dial10</object-name>
  68. <object-name>Dial100</object-name>
  69. <object-name>Dial1000</object-name>
  70. <object-name>Front</object-name>
  71. <object-name>Ident</object-name>
  72. <object-name>Ident-light</object-name>
  73. <object-name>Knob1</object-name>
  74. <object-name>Knob10</object-name>
  75. <object-name>Knob100</object-name>
  76. <object-name>Knob1000</object-name>
  77. <object-name>Border</object-name>
  78. <object-name>KnobMode</object-name>
  79. <object-name>vitre</object-name>
  80. <object-name>off</object-name>
  81. <object-name>stby</object-name>
  82. <object-name>on</object-name>
  83. <object-name>alt</object-name>
  84. <object-name>test</object-name>
  85. <property-base>/instrumentation/transponder</property-base>
  86. <texture-prop>texture-file</texture-prop>
  87. </animation>
  88. <animation>
  89. <type>material</type>
  90. <object-name>Ident</object-name>
  91. <object-name>Ident-light</object-name>
  92. <emission>
  93. <red>0.6</red>
  94. <green>0.25</green>
  95. <blue>0.00025</blue>
  96. <factor-prop>/sim/model/c172p/lighting/trans</factor-prop>
  97. </emission>
  98. </animation>
  99. <animation>
  100. <type>material</type>
  101. <object-name>stby</object-name>
  102. <condition>
  103. <and>
  104. <not>
  105. <property>sim/rendering/rembrandt/enabled</property>
  106. </not>
  107. <equals>
  108. <property>instrumentation/transponder/inputs/knob-mode</property>
  109. <value>1</value>
  110. </equals>
  111. <greater-than>
  112. <property>/sim/model/c172p/lighting/trans</property>
  113. <value>0.0</value>
  114. </greater-than>
  115. </and>
  116. </condition>
  117. <emission>
  118. <red>0.9</red>
  119. <green>0.7</green>
  120. <blue>0.7</blue>
  121. <factor-prop>/sim/model/c172p/lighting/trans</factor-prop>
  122. </emission>
  123. </animation>
  124. <animation>
  125. <type>material</type>
  126. <object-name>on</object-name>
  127. <condition>
  128. <and>
  129. <not>
  130. <property>sim/rendering/rembrandt/enabled</property>
  131. </not>
  132. <equals>
  133. <property>instrumentation/transponder/inputs/knob-mode</property>
  134. <value>4</value>
  135. </equals>
  136. <greater-than>
  137. <property>/sim/model/c172p/lighting/trans</property>
  138. <value>0.0</value>
  139. </greater-than>
  140. </and>
  141. </condition>
  142. <emission>
  143. <red>0.9</red>
  144. <green>0.7</green>
  145. <blue>0.7</blue>
  146. <factor-prop>/sim/model/c172p/lighting/trans</factor-prop>
  147. </emission>
  148. </animation>
  149. <animation>
  150. <type>material</type>
  151. <object-name>alt</object-name>
  152. <condition>
  153. <and>
  154. <not>
  155. <property>sim/rendering/rembrandt/enabled</property>
  156. </not>
  157. <equals>
  158. <property>instrumentation/transponder/inputs/knob-mode</property>
  159. <value>5</value>
  160. </equals>
  161. <greater-than>
  162. <property>/sim/model/c172p/lighting/trans</property>
  163. <value>0.0</value>
  164. </greater-than>
  165. </and>
  166. </condition>
  167. <emission>
  168. <red>0.9</red>
  169. <green>0.7</green>
  170. <blue>0.7</blue>
  171. <factor-prop>/sim/model/c172p/lighting/trans</factor-prop>
  172. </emission>
  173. </animation>
  174. <animation>
  175. <type>material</type>
  176. <object-name>test</object-name>
  177. <condition>
  178. <and>
  179. <not>
  180. <property>sim/rendering/rembrandt/enabled</property>
  181. </not>
  182. <equals>
  183. <property>instrumentation/transponder/inputs/knob-mode</property>
  184. <value>2</value>
  185. </equals>
  186. <greater-than>
  187. <property>/sim/model/c172p/lighting/trans</property>
  188. <value>0.0</value>
  189. </greater-than>
  190. </and>
  191. </condition>
  192. <emission>
  193. <red>0.9</red>
  194. <green>0.7</green>
  195. <blue>0.7</blue>
  196. <factor-prop>/sim/model/c172p/lighting/trans</factor-prop>
  197. </emission>
  198. </animation>
  199. <animation>
  200. <type>material</type>
  201. <object-name>Dial1</object-name>
  202. <object-name>Dial10</object-name>
  203. <object-name>Dial100</object-name>
  204. <object-name>Dial1000</object-name>
  205. <condition>
  206. <and>
  207. <not>
  208. <property>sim/rendering/rembrandt/enabled</property>
  209. </not>
  210. <greater-than>
  211. <property>/sim/model/c172p/lighting/trans</property>
  212. <value>0.0</value>
  213. </greater-than>
  214. </and>
  215. </condition>
  216. <emission>
  217. <red>0.9</red>
  218. <green>0.7</green>
  219. <blue>0.7</blue>
  220. <factor-prop>/sim/model/c172p/lighting/trans</factor-prop>
  221. </emission>
  222. </animation>
  223. <animation>
  224. <type>noshadow</type>
  225. <object-name>vitre</object-name>
  226. </animation>
  227. <effect>
  228. <inherits-from>Effects/model-transparent</inherits-from>
  229. <object-name>vitre</object-name>
  230. <condition>
  231. <property>sim/rendering/rembrandt/enabled</property>
  232. </condition>
  233. </effect>
  234. <animation>
  235. <type>rotate</type>
  236. <object-name>Dial1000</object-name>
  237. <!--<property>instrumentation/transponder/inputs/digit[3]</property>-->
  238. <property alias="../../params/digit3"/>
  239. <factor>45</factor>
  240. <center>
  241. <x-m> 0.01453 </x-m>
  242. <y-m> -0.0185 </y-m>
  243. <z-m> -0.0011345 </z-m>
  244. </center>
  245. <axis>
  246. <x> -1 </x>
  247. <y> 0 </y>
  248. <z> 0 </z>
  249. </axis>
  250. </animation>
  251. <animation>
  252. <type>rotate</type>
  253. <object-name>Knob1000</object-name>
  254. <!--<property>instrumentation/transponder/inputs/digit[3]</property>-->
  255. <property alias="../../params/digit3"/>
  256. <factor>45</factor>
  257. <center>
  258. <x-m> 0.01453 </x-m>
  259. <y-m> -0.0185 </y-m>
  260. <z-m> 0.000655 </z-m>
  261. </center>
  262. <axis>
  263. <x> -1 </x>
  264. <y> 0 </y>
  265. <z> 0 </z>
  266. </axis>
  267. </animation>
  268. <animation>
  269. <type>knob</type>
  270. <object-name>Knob1000</object-name>
  271. <visible>true</visible>
  272. <drag-scale-px>20</drag-scale-px>
  273. <action>
  274. <binding>
  275. <command>property-adjust</command>
  276. <!--<property>instrumentation/transponder/inputs/digit[3]</property>-->
  277. <property alias="../../../../params/digit3"/>
  278. <factor>1</factor>
  279. <min>0</min>
  280. <max>8</max>
  281. <wrap>true</wrap>
  282. </binding>
  283. <binding>
  284. <command>nasal</command>
  285. <script>c172p.click("kt76a-dial")</script>
  286. </binding>
  287. </action>
  288. <hovered>
  289. <binding>
  290. <command>set-tooltip</command>
  291. <tooltip-id>transponder-squawk</tooltip-id>
  292. <label>Squawk: %s</label>
  293. <property>instrumentation/transponder/id-code</property>
  294. <mapping>nasal</mapping>
  295. <script>
  296. return sprintf("%04d", arg[0]);
  297. </script>
  298. </binding>
  299. </hovered>
  300. </animation>
  301. <animation>
  302. <type>rotate</type>
  303. <object-name>Dial100</object-name>
  304. <!--<property>instrumentation/transponder/inputs/digit[2]</property>-->
  305. <property alias="../../params/digit2"/>
  306. <factor>45</factor>
  307. <center>
  308. <x-m> 0.004 </x-m>
  309. <y-m> 0.0085 </y-m>
  310. <z-m> -0.0011345 </z-m>
  311. </center>
  312. <axis>
  313. <x> -1 </x>
  314. <y> 0 </y>
  315. <z> 0 </z>
  316. </axis>
  317. </animation>
  318. <animation>
  319. <type>rotate</type>
  320. <object-name>Knob100</object-name>
  321. <!--<property>instrumentation/transponder/inputs/digit[2]</property>-->
  322. <property alias="../../params/digit2"/>
  323. <factor>45</factor>
  324. <center>
  325. <x-m> 0.01453 </x-m>
  326. <y-m> 0.0085 </y-m>
  327. <z-m> 0.000655 </z-m>
  328. </center>
  329. <axis>
  330. <x> -1 </x>
  331. <y> 0 </y>
  332. <z> 0 </z>
  333. </axis>
  334. </animation>
  335. <animation>
  336. <type>knob</type>
  337. <object-name>Knob100</object-name>
  338. <visible>true</visible>
  339. <drag-scale-px>20</drag-scale-px>
  340. <action>
  341. <binding>
  342. <command>property-adjust</command>
  343. <!--<property>instrumentation/transponder/inputs/digit[2]</property>-->
  344. <property alias="../../../../params/digit2"/>
  345. <factor>1</factor>
  346. <min>0</min>
  347. <max>8</max>
  348. <wrap>true</wrap>
  349. </binding>
  350. <binding>
  351. <command>nasal</command>
  352. <script>c172p.click("kt76a-dial")</script>
  353. </binding>
  354. </action>
  355. <hovered>
  356. <binding>
  357. <command>set-tooltip</command>
  358. <tooltip-id>transponder-squawk</tooltip-id>
  359. <label>Squawk: %s</label>
  360. <property>instrumentation/transponder/id-code</property>
  361. <mapping>nasal</mapping>
  362. <script>
  363. return sprintf("%04d", arg[0]);
  364. </script>
  365. </binding>
  366. </hovered>
  367. </animation>
  368. <animation>
  369. <type>rotate</type>
  370. <object-name>Dial10</object-name>
  371. <!--<property>instrumentation/transponder/inputs/digit[1]</property>-->
  372. <property alias="../../params/digit1"/>
  373. <factor>45</factor>
  374. <center>
  375. <x-m> 0.004 </x-m>
  376. <y-m> 0.0355 </y-m>
  377. <z-m> -0.0011345 </z-m>
  378. </center>
  379. <axis>
  380. <x> -1 </x>
  381. <y> 0 </y>
  382. <z> 0 </z>
  383. </axis>
  384. </animation>
  385. <animation>
  386. <type>rotate</type>
  387. <object-name>Knob10</object-name>
  388. <!--<property>instrumentation/transponder/inputs/digit[1]</property>-->
  389. <property alias="../../params/digit1"/>
  390. <factor>45</factor>
  391. <center>
  392. <x-m> 0.01453 </x-m>
  393. <y-m> 0.0355 </y-m>
  394. <z-m> 0.000655 </z-m>
  395. </center>
  396. <axis>
  397. <x> -1 </x>
  398. <y> 0 </y>
  399. <z> 0 </z>
  400. </axis>
  401. </animation>
  402. <animation>
  403. <type>knob</type>
  404. <object-name>Knob10</object-name>
  405. <visible>true</visible>
  406. <drag-scale-px>20</drag-scale-px>
  407. <action>
  408. <binding>
  409. <command>property-adjust</command>
  410. <!--<property>instrumentation/transponder/inputs/digit[1]</property>-->
  411. <property alias="../../../../params/digit1"/>
  412. <factor>1</factor>
  413. <min>0</min>
  414. <max>8</max>
  415. <wrap>true</wrap>
  416. </binding>
  417. <binding>
  418. <command>nasal</command>
  419. <script>c172p.click("kt76a-dial")</script>
  420. </binding>
  421. </action>
  422. <hovered>
  423. <binding>
  424. <command>set-tooltip</command>
  425. <tooltip-id>transponder-squawk</tooltip-id>
  426. <label>Squawk: %s</label>
  427. <property>instrumentation/transponder/id-code</property>
  428. <mapping>nasal</mapping>
  429. <script>
  430. return sprintf("%04d", arg[0]);
  431. </script>
  432. </binding>
  433. </hovered>
  434. </animation>
  435. <animation>
  436. <type>rotate</type>
  437. <object-name>Dial1</object-name>
  438. <!--<property>instrumentation/transponder/inputs/digit[0]</property>-->
  439. <property alias="../../params/digit0"/>
  440. <factor>45</factor>
  441. <center>
  442. <x-m> 0.004 </x-m>
  443. <y-m> 0.0625 </y-m>
  444. <z-m> -0.0011345 </z-m>
  445. </center>
  446. <axis>
  447. <x> -1 </x>
  448. <y> 0 </y>
  449. <z> 0 </z>
  450. </axis>
  451. </animation>
  452. <animation>
  453. <type>rotate</type>
  454. <object-name>Knob1</object-name>
  455. <!--<property>instrumentation/transponder/inputs/digit[0]</property>-->
  456. <property alias="../../params/digit0"/>
  457. <factor>45</factor>
  458. <center>
  459. <x-m> 0.01453 </x-m>
  460. <y-m> 0.0625 </y-m>
  461. <z-m> 0.000655 </z-m>
  462. </center>
  463. <axis>
  464. <x> -1 </x>
  465. <y> 0 </y>
  466. <z> 0 </z>
  467. </axis>
  468. </animation>
  469. <animation>
  470. <type>knob</type>
  471. <object-name>Knob1</object-name>
  472. <visible>true</visible>
  473. <drag-scale-px>20</drag-scale-px>
  474. <action>
  475. <binding>
  476. <command>property-adjust</command>
  477. <!--<property>instrumentation/transponder/inputs/digit[0]</property>-->
  478. <property alias="../../../../params/digit0"/>
  479. <factor>1</factor>
  480. <min>0</min>
  481. <max>8</max>
  482. <wrap>true</wrap>
  483. </binding>
  484. <binding>
  485. <command>nasal</command>
  486. <script>c172p.click("kt76a-dial")</script>
  487. </binding>
  488. </action>
  489. <hovered>
  490. <binding>
  491. <command>set-tooltip</command>
  492. <tooltip-id>transponder-squawk</tooltip-id>
  493. <label>Squawk: %s</label>
  494. <property>instrumentation/transponder/id-code</property>
  495. <mapping>nasal</mapping>
  496. <script>
  497. return sprintf("%04d", arg[0]);
  498. </script>
  499. </binding>
  500. </hovered>
  501. </animation>
  502. <animation>
  503. <type>knob</type>
  504. <object-name>KnobMode</object-name>
  505. <visible>true</visible>
  506. <drag-scale-px>20</drag-scale-px>
  507. <action>
  508. <binding>
  509. <command>property-cycle</command>
  510. <!--<property>/instrumentation/transponder/inputs/knob-mode</property>-->
  511. <property alias="../../../../params/knob-mode"/>
  512. <wrap>0</wrap>
  513. <value>0</value>
  514. <!-- OFF -->
  515. <value>1</value>
  516. <!-- SBY -->
  517. <value>4</value>
  518. <!-- ON -->
  519. <value>5</value>
  520. <!-- ALT -->
  521. <value>2</value>
  522. <!-- TST -->
  523. </binding>
  524. <binding>
  525. <command>nasal</command>
  526. <script>c172p.click("kt76a-mode")</script>
  527. </binding>
  528. </action>
  529. <hovered>
  530. <binding>
  531. <command>set-tooltip</command>
  532. <tooltip-id>transponder-mode-btn</tooltip-id>
  533. <label>Mode: %s</label>
  534. <!--<property>instrumentation/transponder/inputs/knob-mode</property>-->
  535. <property alias="../../../../params/knob-mode"/>
  536. <mapping>nasal</mapping>
  537. <script>
  538. var m = arg[0];
  539. if(m == 1) return 'STANDBY';
  540. if(m == 4) return 'ON';
  541. if(m == 5) return 'ALTITUDE';
  542. if(m == 2) return 'TEST';
  543. return 'OFF';
  544. </script>
  545. </binding>
  546. </hovered>
  547. </animation>
  548. <animation>
  549. <type>rotate</type>
  550. <object-name>KnobMode</object-name>
  551. <!--<property>/instrumentation/transponder/inputs/knob-mode</property>-->
  552. <property alias="../../params/knob-mode"/>
  553. <factor>1</factor>
  554. <interpolation>
  555. <entry>
  556. <ind>0</ind>
  557. <dep>0</dep>
  558. </entry>
  559. <entry>
  560. <ind>1</ind>
  561. <dep>45</dep>
  562. </entry>
  563. <entry>
  564. <ind>4</ind>
  565. <dep>90</dep>
  566. </entry>
  567. <entry>
  568. <ind>5</ind>
  569. <dep>135</dep>
  570. </entry>
  571. <entry>
  572. <ind>2</ind>
  573. <dep>180</dep>
  574. </entry>
  575. </interpolation>
  576. <center>
  577. <x-m> 0.01453 </x-m>
  578. <y-m> -0.06102 </y-m>
  579. <z-m> 0.000655 </z-m>
  580. </center>
  581. <axis>
  582. <x> -1 </x>
  583. <y> 0 </y>
  584. <z> 0 </z>
  585. </axis>
  586. </animation>
  587. <animation>
  588. <type>pick</type>
  589. <visible>true</visible>
  590. <object-name>Ident</object-name>
  591. <action>
  592. <button>0</button>
  593. <repeatable>false</repeatable>
  594. <binding>
  595. <command>property-assign</command>
  596. <!--<property>/instrumentation/transponder/inputs/ident-btn</property>-->
  597. <property alias="../../../../params/ident-btn"/>
  598. <value type="bool">true</value>
  599. </binding>
  600. <binding>
  601. <command>nasal</command>
  602. <script>c172p.click("kt76a-ident")</script>
  603. </binding>
  604. <mod-up>
  605. <binding>
  606. <command>property-assign</command>
  607. <!--<property>/instrumentation/transponder/inputs/ident-btn</property>-->
  608. <property alias="../../../../../params/ident-btn"/>
  609. <value type="bool">false</value>
  610. </binding>
  611. <binding>
  612. <command>nasal</command>
  613. <script>c172p.click("kt76a-ident")</script>
  614. </binding>
  615. </mod-up>
  616. </action>
  617. <hovered>
  618. <binding>
  619. <command>set-tooltip</command>
  620. <tooltip-id>transponder-ident</tooltip-id>
  621. <label>Identify to ATC</label>
  622. </binding>
  623. </hovered>
  624. </animation>
  625. <animation>
  626. <type>translate</type>
  627. <object-name>Ident</object-name>
  628. <!--<property>/instrumentation/transponder/inputs/ident-btn</property>-->
  629. <property alias="../../params/ident-btn"/>
  630. <factor> 0.0018 </factor>
  631. <axis>
  632. <x> -1 </x>
  633. <y> 0 </y>
  634. <z> 0 </z>
  635. </axis>
  636. </animation>
  637. </PropertyList>