fd-control.xml 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198
  1. <?xml version="1.0"?>
  2. <!--
  3. KFC-200 FlightDirector / Autopilot Controller
  4. Syd Adams
  5. -->
  6. <PropertyList>
  7. <path>fd-control.ac</path>
  8. <animation>
  9. <type>material</type>
  10. <object-name>FDbase</object-name>
  11. <emission>
  12. <red>0.028</red>
  13. <green>0.014</green>
  14. <blue>0.007</blue>
  15. <factor-prop>systems/electrical/outputs/instrument-lights</factor-prop>
  16. </emission>
  17. </animation>
  18. <!--
  19. <animation>
  20. <type>pick</type>
  21. <object-name>Pitch.down</object-name>
  22. <condition>
  23. <not-equals>
  24. <property>/autopilot/locks/altitude</property>
  25. <value></value>
  26. </not-equals>
  27. </condition>
  28. <action>
  29. <button>0</button>
  30. <repeatable>true</repeatable>
  31. <interval-sec>0.1</interval-sec>
  32. <binding>
  33. <command>property-adjust</command>
  34. <property>/autopilot/settings/target-pitch-deg</property>
  35. <step>-0.05</step>
  36. <min>-15.0</min>
  37. <max>15.0</max>
  38. <wrap>false</wrap>
  39. </binding>
  40. </action>
  41. </animation>
  42. <animation>
  43. <type>pick</type>
  44. <object-name>Pitch.up</object-name>
  45. <condition>
  46. <not-equals>
  47. <property>/autopilot/locks/altitude</property>
  48. <value></value>
  49. </not-equals>
  50. </condition>
  51. <action>
  52. <button>0</button>
  53. <repeatable>true</repeatable>
  54. <interval-sec>0.1</interval-sec>
  55. <binding>
  56. <command>property-adjust</command>
  57. <property>/autopilot/settings/target-pitch-deg</property>
  58. <step>0.05</step>
  59. <min>-15.0</min>
  60. <max>15.0</max>
  61. <wrap>false</wrap>
  62. </binding>
  63. </action>
  64. </animation>
  65. <animation>
  66. <type>pick</type>
  67. <object-name>HDG.btn</object-name>
  68. <action>
  69. <button>0</button>
  70. <repeatable>false</repeatable>
  71. <binding>
  72. <command>nasal</command>
  73. <script>
  74. if(getprop("/instrumentation/kfc200/fdmode") != "hdg"){
  75. setprop("/instrumentation/kfc200/fdmode","hdg");}
  76. else{setprop("/instrumentation/kfc200/fdmode","off");}
  77. </script>
  78. </binding>
  79. </action>
  80. </animation>
  81. <animation>
  82. <type>pick</type>
  83. <object-name>FD.btn</object-name>
  84. <action>
  85. <button>0</button>
  86. <repeatable>false</repeatable>
  87. <binding>
  88. <command>property-toggle</command>
  89. <property>/instrumentation/kfc200/fd-on</property>
  90. </binding>
  91. </action>
  92. </animation>
  93. <animation>
  94. <type>pick</type>
  95. <object-name>ALT.btn</object-name>
  96. <action>
  97. <button>0</button>
  98. <repeatable>false</repeatable>
  99. <binding>
  100. <command>nasal</command>
  101. <script>
  102. if(getprop("/instrumentation/kfc200/fdmodeV") != "alt-arm"){
  103. setprop("/instrumentation/kfc200/fdmodeV","alt-arm");}
  104. else{setprop("/instrumentation/kfc200/fdmodeV","off");}
  105. </script>
  106. </binding>
  107. </action>
  108. </animation>
  109. <animation>
  110. <type>pick</type>
  111. <object-name>NAV.btn</object-name>
  112. <action>
  113. <button>0</button>
  114. <repeatable>false</repeatable>
  115. <binding>
  116. <command>nasal</command>
  117. <script>
  118. if(getprop("/instrumentation/kfc200/fdmode") != "nav-arm"){
  119. setprop("/instrumentation/kfc200/fdmode","nav-arm");}
  120. else{setprop("/instrumentation/kfc200/fdmode","off");}
  121. </script>
  122. </binding>
  123. </action>
  124. </animation>
  125. <animation>
  126. <type>pick</type>
  127. <object-name>BC.btn</object-name>
  128. <action>
  129. <button>0</button>
  130. <repeatable>false</repeatable>
  131. <binding>
  132. <command>nasal</command>
  133. <script>
  134. if(getprop("/instrumentation/kfc200/fdmode") != "bc"){
  135. setprop("/instrumentation/kfc200/fdmode","bc");}
  136. else{setprop("/instrumentation/kfc200/fdmode","off");}
  137. </script>
  138. </binding>
  139. </action>
  140. </animation>
  141. <animation>
  142. <type>pick</type>
  143. <object-name>APPR.btn</object-name>
  144. <action>
  145. <button>0</button>
  146. <repeatable>false</repeatable>
  147. <binding>
  148. <command>nasal</command>
  149. <script>
  150. if(getprop("/instrumentation/kfc200/fdmode") != "appr"){
  151. setprop("/instrumentation/kfc200/fdmode","appr");}
  152. else{setprop("/instrumentation/kfc200/fdmode","off");}
  153. </script>
  154. </binding>
  155. </action>
  156. </animation>
  157. <animation>
  158. <type>pick</type>
  159. <object-name>APtoggle</object-name>
  160. <action>
  161. <button>0</button>
  162. <repeatable>false</repeatable>
  163. <binding>
  164. <command>property-toggle</command>
  165. <property>/autopilot/locks/passive-mode</property>
  166. </binding>
  167. </action>
  168. </animation>
  169. -->
  170. <animation>
  171. <type>rotate</type>
  172. <object-name>APtoggle</object-name>
  173. <property>/autopilot/locks/passive-mode</property>
  174. <factor>40</factor>
  175. <axis>
  176. <x>0.0</x>
  177. <y>1.0</y>
  178. <z>0.0</z>
  179. </axis>
  180. <center>
  181. <x-m>0.002</x-m>
  182. <y-m>0.046</y-m>
  183. <z-m>0.002</z-m>
  184. </center>
  185. </animation>
  186. </PropertyList>