ap-m.xml 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589
  1. <?xml version="1.0" ?>
  2. <PropertyList>
  3. <path>ap-m.ac</path>
  4. <animation>
  5. <type>range</type>
  6. <min-m>0</min-m>
  7. <max-m>10</max-m>
  8. </animation>
  9. <effect>
  10. <inherits-from>Aircraft/ec145/Models/Effects/implicit-lightmap</inherits-from>
  11. <object-name>apcp</object-name>
  12. </effect>
  13. <!-- effect of overhead floodlight as material emission,
  14. 'cheap trick' to simulate ambient cabin lighting
  15. -->
  16. <animation>
  17. <type>material</type>
  18. <object-name>apcp</object-name>
  19. <object-name>hdg</object-name>
  20. <object-name>vs</object-name>
  21. <object-name>alta</object-name>
  22. <object-name>crht</object-name>
  23. <object-name>ias</object-name>
  24. <object-name>knob</object-name>
  25. <emission>
  26. <red>0.02</red>
  27. <green>0.02</green>
  28. <blue>0.02</blue>
  29. <factor-prop>/systems/electrical/outputs/floodlight</factor-prop>
  30. </emission>
  31. </animation>
  32. <!-- SAS (fcs) must be active, for AP to work -->
  33. <animation>
  34. <type>knob</type>
  35. <object-name>hdg</object-name>
  36. <condition>
  37. <property>/controls/flight/fcs/sas-enabled</property>
  38. <property>/instrumentation/apcp/serviceable</property>
  39. </condition>
  40. <action>
  41. <binding>
  42. <command>property-adjust</command>
  43. <property>autopilot/settings/heading-bug-deg</property>
  44. <factor>1</factor>
  45. <min>0.0</min>
  46. <max>360.0</max>
  47. <wrap>true</wrap>
  48. </binding>
  49. </action>
  50. <shift-action>
  51. <binding>
  52. <command>property-cycle</command>
  53. <property>autopilot/locks/heading</property>
  54. <value type="string">dg-heading-hold</value>
  55. <value type="string"></value>
  56. </binding>
  57. </shift-action>
  58. <hovered>
  59. <binding>
  60. <command>set-tooltip</command>
  61. <tooltip-id>hdg-setting</tooltip-id>
  62. <label>Autopilot HDG: %3.0fdeg (Shift to activate)</label>
  63. <property>autopilot/settings/heading-bug-deg</property>
  64. </binding>
  65. </hovered>
  66. </animation>
  67. <animation>
  68. <type>rotate</type>
  69. <object-name>hdg</object-name>
  70. <property>autopilot/settings/heading-bug-deg</property>
  71. <factor>3</factor>
  72. <axis>
  73. <x>1</x>
  74. <y>0</y>
  75. <z>0</z>
  76. </axis>
  77. <center>
  78. <x-m>0.0</x-m>
  79. <y-m>0.0362</y-m>
  80. <z-m>-0.00347</z-m>
  81. </center>
  82. </animation>
  83. <animation>
  84. <type>material</type>
  85. <object-name>hdg.light</object-name>
  86. <condition>
  87. <property>instrumentation/apcp/serviceable</property>
  88. <equals>
  89. <property>autopilot/locks/heading</property>
  90. <value type="string">dg-heading-hold</value>
  91. </equals>
  92. </condition>
  93. <emission>
  94. <red>0.1</red>
  95. <green>1.0</green>
  96. <blue>0.1</blue>
  97. </emission>
  98. </animation>
  99. <animation>
  100. <type>knob</type>
  101. <object-name>vs</object-name>
  102. <condition>
  103. <property>/controls/flight/fcs/sas-enabled</property>
  104. <property>/instrumentation/apcp/serviceable</property>
  105. </condition>
  106. <visible>true</visible>
  107. <shift-action>
  108. <binding>
  109. <property>autopilot/locks/altitude</property>
  110. <command>property-cycle</command>
  111. <value type="string">vertical-speed-hold</value>
  112. <value type="string"></value>
  113. </binding>
  114. </shift-action>
  115. <action>
  116. <binding>
  117. <command>property-adjust</command>
  118. <property>autopilot/settings/vertical-speed-fpm</property>
  119. <factor>50</factor>
  120. <min>-1000</min>
  121. <max>1000</max>
  122. <wrap>false</wrap>
  123. </binding>
  124. </action>
  125. <hovered>
  126. <binding>
  127. <command>set-tooltip</command>
  128. <tooltip-id>vs-activate</tooltip-id>
  129. <label>Autopilot vertical speed hold (Shift to activate)</label>
  130. </binding>
  131. </hovered>
  132. </animation>
  133. <animation>
  134. <type>rotate</type>
  135. <object-name>vs</object-name>
  136. <property>autopilot/settings/vertical-speed-fpm</property>
  137. <factor>0.3</factor>
  138. <axis>
  139. <x>1</x>
  140. <y>0</y>
  141. <z>0</z>
  142. </axis>
  143. <center>
  144. <x-m>0.0</x-m>
  145. <y-m>-0.03349</y-m>
  146. <z-m>-0.00347</z-m>
  147. </center>
  148. </animation>
  149. <animation>
  150. <type>material</type>
  151. <object-name>vs.light</object-name>
  152. <condition>
  153. <property>instrumentation/apcp/serviceable</property>
  154. <equals>
  155. <property>autopilot/locks/altitude</property>
  156. <value type="string">vertical-speed-hold</value>
  157. </equals>
  158. </condition>
  159. <emission>
  160. <red>0.1</red>
  161. <green>1.0</green>
  162. <blue>0.1</blue>
  163. </emission>
  164. </animation>
  165. <animation>
  166. <type>knob</type>
  167. <object-name>alta</object-name>
  168. <condition>
  169. <property>/controls/flight/fcs/sas-enabled</property>
  170. <property>/instrumentation/apcp/serviceable</property>
  171. </condition>
  172. <action>
  173. <binding>
  174. <command>property-adjust</command>
  175. <property>autopilot/settings/target-altitude-ft</property>
  176. <factor>50</factor>
  177. <min>100.0</min>
  178. <max>20000.0</max>
  179. <wrap>false</wrap>
  180. </binding>
  181. </action>
  182. <shift-action>
  183. <binding>
  184. <command>property-cycle</command>
  185. <property>autopilot/locks/altitude</property>
  186. <value type="string">altitude-hold</value>
  187. <value type="string"></value>
  188. </binding>
  189. </shift-action>
  190. <hovered>
  191. <binding>
  192. <command>set-tooltip</command>
  193. <tooltip-id>alt-setting</tooltip-id>
  194. <label>Autopilot ALT.A: %5.0fft (Shift to activate)</label>
  195. <property>autopilot/settings/target-altitude-ft</property>
  196. </binding>
  197. </hovered>
  198. </animation>
  199. <animation>
  200. <type>rotate</type>
  201. <object-name>alta</object-name>
  202. <property>autopilot/settings/target-altitude-ft</property>
  203. <factor>0.3</factor>
  204. <axis>
  205. <x>1</x>
  206. <y>0</y>
  207. <z>0</z>
  208. </axis>
  209. <center>
  210. <x-m>0.0</x-m>
  211. <y-m>0.05374</y-m>
  212. <z-m>0.02687</z-m>
  213. </center>
  214. </animation>
  215. <animation>
  216. <type>material</type>
  217. <object-name>alta.light</object-name>
  218. <condition>
  219. <property>instrumentation/apcp/serviceable</property>
  220. <equals>
  221. <property>autopilot/locks/altitude</property>
  222. <value type="string">altitude-hold</value>
  223. </equals>
  224. </condition>
  225. <emission>
  226. <red>0.1</red>
  227. <green>1.0</green>
  228. <blue>0.1</blue>
  229. </emission>
  230. </animation>
  231. <animation>
  232. <type>knob</type>
  233. <object-name>ias</object-name>
  234. <condition>
  235. <property>/controls/flight/fcs/sas-enabled</property>
  236. <property>/instrumentation/apcp/serviceable</property>
  237. </condition>
  238. <visible>true</visible>
  239. <action>
  240. <binding>
  241. <command>property-adjust</command>
  242. <property>autopilot/settings/target-speed-kt</property>
  243. <factor>10</factor>
  244. <min>40.0</min>
  245. <max>140.0</max>
  246. <wrap>false</wrap>
  247. </binding>
  248. </action>
  249. <shift-action>
  250. <binding>
  251. <property>autopilot/locks/speed</property>
  252. <command>property-cycle</command>
  253. <value type="string">speed-with-pitch-trim</value>
  254. <value type="string"></value>
  255. </binding>
  256. </shift-action>
  257. <hovered>
  258. <binding>
  259. <command>set-tooltip</command>
  260. <tooltip-id>ias-activate</tooltip-id>
  261. <label>Autopilot airspeed hold: %3.0fkt (Shift to activate)</label>
  262. <property>autopilot/settings/target-speed-kt</property>
  263. </binding>
  264. </hovered>
  265. </animation>
  266. <animation>
  267. <type>rotate</type>
  268. <object-name>ias</object-name>
  269. <property>autopilot/settings/target-speed-kt</property>
  270. <factor>2</factor>
  271. <axis>
  272. <x>1</x>
  273. <y>0</y>
  274. <z>0</z>
  275. </axis>
  276. <center>
  277. <x-m>0.0</x-m>
  278. <y-m>0.01905</y-m>
  279. <z-m>0.02687</z-m>
  280. </center>
  281. </animation>
  282. <animation>
  283. <type>material</type>
  284. <object-name>ias.light</object-name>
  285. <condition>
  286. <property>instrumentation/apcp/serviceable</property>
  287. <equals>
  288. <property>autopilot/locks/speed</property>
  289. <value type="string">speed-with-pitch-trim</value>
  290. </equals>
  291. </condition>
  292. <emission>
  293. <red>0.1</red>
  294. <green>1.0</green>
  295. <blue>0.1</blue>
  296. </emission>
  297. </animation>
  298. <animation>
  299. <type>knob</type>
  300. <object-name>crht</object-name>
  301. <condition>
  302. <property>/controls/flight/fcs/sas-enabled</property>
  303. <property>/instrumentation/apcp/serviceable</property>
  304. </condition>
  305. <visible>true</visible>
  306. <action>
  307. <binding>
  308. <command>property-adjust</command>
  309. <property>autopilot/settings/target-agl-ft</property>
  310. <factor>10</factor>
  311. <min>100.0</min>
  312. <max>3000.0</max>
  313. <wrap>false</wrap>
  314. </binding>
  315. </action>
  316. <shift-action>
  317. <binding>
  318. <property>autopilot/locks/altitude</property>
  319. <command>property-cycle</command>
  320. <value type="string">agl-hold</value>
  321. <value type="string"></value>
  322. </binding>
  323. </shift-action>
  324. <hovered>
  325. <binding>
  326. <command>set-tooltip</command>
  327. <tooltip-id>ias-activate</tooltip-id>
  328. <label>Autopilot AGL hold: %4.0fft (Shift to activate)</label>
  329. <property>autopilot/settings/target-agl-ft</property>
  330. </binding>
  331. </hovered>
  332. </animation>
  333. <animation>
  334. <type>rotate</type>
  335. <object-name>crht</object-name>
  336. <property>autopilot/settings/target-agl-ft</property>
  337. <factor>2</factor>
  338. <axis>
  339. <x>1</x>
  340. <y>0</y>
  341. <z>0</z>
  342. </axis>
  343. <center>
  344. <x-m>0.0</x-m>
  345. <y-m>-0.01595</y-m>
  346. <z-m>0.02687</z-m>
  347. </center>
  348. </animation>
  349. <animation>
  350. <type>material</type>
  351. <object-name>crht.light</object-name>
  352. <condition>
  353. <property>instrumentation/apcp/serviceable</property>
  354. <equals>
  355. <property>autopilot/locks/altitude</property>
  356. <value type="string">agl-hold</value>
  357. </equals>
  358. </condition>
  359. <emission>
  360. <red>0.1</red>
  361. <green>1.0</green>
  362. <blue>0.1</blue>
  363. </emission>
  364. </animation>
  365. <animation>
  366. <type>pick</type>
  367. <object-name>alt</object-name>
  368. <condition>
  369. <property>/controls/flight/fcs/sas-enabled</property>
  370. <property>/instrumentation/apcp/serviceable</property>
  371. </condition>
  372. <visible>true</visible>
  373. <action>
  374. <button>0</button>
  375. <repeatable>false</repeatable>
  376. <binding>
  377. <property>autopilot/locks/altitude</property>
  378. <command>property-cycle</command>
  379. <value type="string">altitude-hold</value>
  380. <value type="string"></value>
  381. </binding>
  382. <binding>
  383. <command>property-assign</command>
  384. <property>autopilot/settings/target-altitude-ft</property>
  385. <property>instrumentation/altimeter/indicated-altitude-ft</property>
  386. </binding>
  387. </action>
  388. <hovered>
  389. <binding>
  390. <command>set-tooltip</command>
  391. <tooltip-id>alt-activate</tooltip-id>
  392. <label>Autopilot altitude hold</label>
  393. </binding>
  394. </hovered>
  395. </animation>
  396. <!-- switching off AP must disable all upper modes -->
  397. <animation>
  398. <type>pick</type>
  399. <object-name>ap1</object-name>
  400. <object-name>ap2</object-name>
  401. <condition>
  402. <property>/controls/flight/fcs/sas-enabled</property>
  403. <property>/instrumentation/apcp/serviceable</property>
  404. </condition>
  405. <visible>true</visible>
  406. <action>
  407. <button>0</button>
  408. <repeatable>false</repeatable>
  409. <binding>
  410. <command>property-assign</command>
  411. <property>/controls/flight/fcs/sas-enabled</property>
  412. <value>0</value>
  413. </binding>
  414. <binding>
  415. <command>property-assign</command>
  416. <property>autopilot/locks/altitude</property>
  417. <value type="string"></value>
  418. </binding>
  419. <binding>
  420. <command>property-assign</command>
  421. <property>autopilot/locks/speed</property>
  422. <value type="string"></value>
  423. </binding>
  424. <binding>
  425. <command>property-assign</command>
  426. <property>autopilot/locks/heading</property>
  427. <value type="string"></value>
  428. </binding>
  429. </action>
  430. <hovered>
  431. <binding>
  432. <command>set-tooltip</command>
  433. <tooltip-id>ap-deactivate</tooltip-id>
  434. <label>Autopilot AFCS Off</label>
  435. </binding>
  436. </hovered>
  437. </animation>
  438. <animation>
  439. <type>pick</type>
  440. <object-name>ap1</object-name>
  441. <object-name>ap2</object-name>
  442. <condition>
  443. <not><property>/controls/flight/fcs/sas-enabled</property></not>
  444. <property>/instrumentation/apcp/serviceable</property>
  445. </condition>
  446. <visible>true</visible>
  447. <action>
  448. <button>0</button>
  449. <repeatable>false</repeatable>
  450. <binding>
  451. <command>property-assign</command>
  452. <property>/controls/flight/fcs/sas-enabled</property>
  453. <value>1</value>
  454. </binding>
  455. </action>
  456. <hovered>
  457. <binding>
  458. <command>set-tooltip</command>
  459. <tooltip-id>ap-activate</tooltip-id>
  460. <label>Autopilot AFCS On</label>
  461. </binding>
  462. </hovered>
  463. </animation>
  464. <animation>
  465. <type>material</type>
  466. <object-name>atrim</object-name>
  467. <condition>
  468. <property>instrumentation/apcp/atrim-bt</property>
  469. </condition>
  470. <emission>
  471. <red>0.5</red>
  472. <green>0.5</green>
  473. <blue>0.5</blue>
  474. </emission>
  475. </animation>
  476. <animation>
  477. <type>textranslate</type>
  478. <object-name>atrim</object-name>
  479. <property>instrumentation/apcp/atrim-bt</property>
  480. <interpolation>
  481. <entry>
  482. <ind>0</ind>
  483. <dep>0.08</dep>
  484. </entry>
  485. <entry>
  486. <ind>1</ind>
  487. <dep>0.0</dep>
  488. </entry>
  489. </interpolation>
  490. <axis>
  491. <x>0</x>
  492. <y>1</y>
  493. </axis>
  494. </animation>
  495. <animation>
  496. <type>material</type>
  497. <object-name>ap1</object-name>
  498. <object-name>ap2</object-name>
  499. <condition>
  500. <property>instrumentation/apcp/ap12-bt</property>
  501. </condition>
  502. <emission>
  503. <red>0.3</red>
  504. <green>0.3</green>
  505. <blue>0.3</blue>
  506. </emission>
  507. </animation>
  508. <animation>
  509. <type>textranslate</type>
  510. <object-name>ap1</object-name>
  511. <object-name>ap2</object-name>
  512. <property>instrumentation/apcp/ap12-bt</property>
  513. <interpolation>
  514. <entry>
  515. <ind>0</ind>
  516. <dep>0.08</dep>
  517. </entry>
  518. <entry>
  519. <ind>1</ind>
  520. <dep>0.0</dep>
  521. </entry>
  522. </interpolation>
  523. <axis>
  524. <x>0</x>
  525. <y>1</y>
  526. </axis>
  527. </animation>
  528. <animation>
  529. <type>material</type>
  530. <object-name>alt</object-name>
  531. <condition>
  532. <property>instrumentation/apcp/alt-bt</property>
  533. </condition>
  534. <emission>
  535. <red>0.3</red>
  536. <green>0.3</green>
  537. <blue>0.3</blue>
  538. </emission>
  539. </animation>
  540. <animation>
  541. <type>textranslate</type>
  542. <object-name>alt</object-name>
  543. <property>instrumentation/apcp/alt-bt</property>
  544. <interpolation>
  545. <entry>
  546. <ind>0</ind>
  547. <dep>0.08</dep>
  548. </entry>
  549. <entry>
  550. <ind>1</ind>
  551. <dep>0.0</dep>
  552. </entry>
  553. </interpolation>
  554. <axis>
  555. <x>0</x>
  556. <y>-1</y>
  557. </axis>
  558. </animation>
  559. </PropertyList>