Optica-set.xml 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317
  1. <?xml version="1.0"?>
  2. <!--
  3. Edgley OA-7 Optica
  4. Nov 2010 Gary "Buckaroo" Neely
  5. -->
  6. <PropertyList>
  7. <sim include="Systems/Optica-views.xml">
  8. <description>Optica</description>
  9. <author>Gary Neely</author>
  10. <flight-model>yasim</flight-model>
  11. <aero>Optica-yasim</aero>
  12. <fuel-fraction>0.6</fuel-fraction> <!-- Determines initial fuel load -->
  13. <model>
  14. <path>Aircraft/Optica/Models/Optica.xml</path>
  15. <livery>
  16. <file type="string">White</file>
  17. </livery>
  18. </model>
  19. <systems include="Systems/Optica-electrical-new.xml">
  20. </systems>
  21. <sound>
  22. <path>Aircraft/Optica/Sounds/Optica-sound.xml</path>
  23. </sound>
  24. <help include="Help/help.xml"/>
  25. <instrumentation>
  26. <path>Aircraft/Optica/Systems/Optica-instrumentation.xml</path>
  27. </instrumentation>
  28. <!-- Temporary flap detents. The real Optica has no detents. -->
  29. <flaps>
  30. <setting>0.0</setting>
  31. <setting>0.2</setting>
  32. <setting>0.4</setting>
  33. <setting>0.6</setting>
  34. <setting>0.8</setting>
  35. <setting>1.0</setting>
  36. </flaps>
  37. <weight n="0">
  38. <name>Crew</name>
  39. <weight-lb>250</weight-lb>
  40. <max-lb>500</max-lb>
  41. <min-lb>170</min-lb>
  42. </weight>
  43. <weight n="1">
  44. <name>Nose Ballast</name>
  45. <weight-lb>0</weight-lb>
  46. <max-lb>80</max-lb>
  47. <min-lb>0</min-lb>
  48. </weight>
  49. <weight n="2">
  50. <name>Tail Ballast</name>
  51. <weight-lb>0</weight-lb>
  52. <max-lb>40</max-lb>
  53. <min-lb>0</min-lb>
  54. </weight>
  55. <menubar>
  56. <default>
  57. <menu n="100">
  58. <label>Optica</label>
  59. <item>
  60. <label>Select Livery</label>
  61. <binding>
  62. <command>nasal</command>
  63. <script>aircraft.livery.dialog.toggle();</script>
  64. </binding>
  65. </item>
  66. <item>
  67. <label>Fast Engine Startup</label>
  68. <binding>
  69. <command>nasal</command>
  70. <script>Optica.QuickStart();</script>
  71. </binding>
  72. </item>
  73. <item>
  74. <label>Left Door</label>
  75. <binding>
  76. <command>nasal</command>
  77. <script>Optica.Optica_doors_left();</script>
  78. </binding>
  79. </item>
  80. <item>
  81. <label>Right Door</label>
  82. <binding>
  83. <command>nasal</command>
  84. <script>Optica.Optica_doors_right();</script>
  85. </binding>
  86. </item>
  87. <item>
  88. <label>Toggle Shadow</label>
  89. <binding>
  90. <command>property-toggle</command>
  91. <property>/sim/Optica/use-shadow</property>
  92. </binding>
  93. </item>
  94. <item>
  95. <label>Set Comm 1 to 122.75</label>
  96. <binding>
  97. <command>property-assign</command>
  98. <property>instrumentation/comm[0]/frequencies/selected-mhz</property>
  99. <value type="double">122.75</value>
  100. </binding>
  101. </item>
  102. </menu>
  103. </default>
  104. </menubar>
  105. <!-- These values are used to pass properties over MP -->
  106. <multiplay>
  107. <generic>
  108. <float n="0" alias="/controls/doors/left/position-norm"/>
  109. <float n="1" alias="/controls/doors/right/position-norm"/>
  110. <!-- <float n="3" alias="/sim/model/lighting/beacon"/> --> <!-- Doesn't work, but reserve float[3] for this; see Optica.nas -->
  111. <int n="0" alias="/controls/lighting/beacon"/> <!-- Currently unused -->
  112. <int n="1" alias="/systems/electrical/outputs/lights-tail"/>
  113. <int n="2" alias="/systems/electrical/outputs/lights-nav"/>
  114. <int n="3" alias="/systems/electrical/outputs/lights-landing"/>
  115. <int n="4" alias="/systems/electrical/outputs/lights-taxi"/>
  116. </generic>
  117. </multiplay>
  118. <Optica>
  119. <use-shadow type="bool">1</use-shadow>
  120. <sound-agl type="float">0</sound-agl>
  121. <sound-volume type="float">0</sound-volume>
  122. <engine-checks type="bool">false</engine-checks>
  123. <engine-warns type="bool">false</engine-warns>
  124. <sound>
  125. <volume-engine type="float">0</volume-engine>
  126. </sound>
  127. </Optica>
  128. </sim>
  129. <engines>
  130. <engine n="0">
  131. <mp-inhg type="float">0.0</mp-inhg>
  132. <fuel-flow-pph type="float">0.0</fuel-flow-pph>
  133. <cyltempc type="float">15.0</cyltempc>
  134. <cyltempc-biased type="float">15.0</cyltempc-biased>
  135. <oiltempc type = "float">15.0</oiltempc>
  136. <oil-visc type = "float">1</oil-visc>
  137. <oil-press type = "float">0.0</oil-press>
  138. <fuel-press type ="float">0.0</fuel-press>
  139. <fuel-flow-adj type ="float">0.0</fuel-flow-adj>
  140. <strain type="int">0</strain>
  141. <strain-clk-rev type="float">0</strain-clk-rev>
  142. <strain-clk-temp type="float">0</strain-clk-temp>
  143. <overrev type="int">0</overrev>
  144. <overheat type="int">0</overheat>
  145. <!-- for engine testing:-->
  146. <cyl-dt type="float">0.0</cyl-dt>
  147. <cyl-dte type="float">0.0</cyl-dte>
  148. <cyl-dtt type="float">0.0</cyl-dtt>
  149. <cyl-dta type="float">0.0</cyl-dta>
  150. <cyl-dtm type="float">0.0</cyl-dtm>
  151. </engine>
  152. </engines>
  153. <controls include="Systems/Optica-init-controls.xml"/>
  154. <instrumentation include="Systems/Optica-init-instrumentation.xml"/>
  155. <systems include="Systems/Optica-init-systems.xml"/>
  156. <input>
  157. <keyboard>
  158. <!-- Replace default Mixture controls, delta was too small for quick tests -->
  159. <key n="77">
  160. <name>M</name>
  161. <desc>Lean Mixture</desc>
  162. <binding>
  163. <command>nasal</command>
  164. <script>Optica.Optica_mixture(0);</script>
  165. </binding>
  166. </key>
  167. <key n="109">
  168. <name>m</name>
  169. <desc>Richen Mixture</desc>
  170. <binding>
  171. <command>nasal</command>
  172. <script>Optica.Optica_mixture(1);</script>
  173. </binding>
  174. </key>
  175. <!--
  176. <key n="91">
  177. <name>[</name>
  178. <desc>Decrease flaps.</desc>
  179. <repeatable>true</repeatable>
  180. <binding>
  181. <command>property-assign</command>
  182. <property>/controls/switches/flaps</property>
  183. <value>1</value>
  184. </binding>
  185. <binding>
  186. <command>nasal</command>
  187. <script>Optica.Optica_flaps(0);</script>
  188. </binding>
  189. <mod-up>
  190. <binding>
  191. <command>property-assign</command>
  192. <property>/controls/switches/flaps</property>
  193. <value>0</value>
  194. </binding>
  195. </mod-up>
  196. </key>
  197. <key n="93">
  198. <name>]</name>
  199. <desc>Increase flaps.</desc>
  200. <repeatable>true</repeatable>
  201. <binding>
  202. <command>property-assign</command>
  203. <property>/controls/switches/flaps</property>
  204. <value>-1</value>
  205. </binding>
  206. <binding>
  207. <command>nasal</command>
  208. <script>Optica.Optica_flaps(1);</script>
  209. </binding>
  210. <mod-up>
  211. <binding>
  212. <command>property-assign</command>
  213. <property>/controls/switches/flaps</property>
  214. <value>0</value>
  215. </binding>
  216. </mod-up>
  217. </key>
  218. -->
  219. <key n="91">
  220. <name>[</name>
  221. <desc>Decrease flaps.</desc>
  222. <repeatable>true</repeatable>
  223. <binding>
  224. <command>nasal</command>
  225. <script>controls.flapsDown(-1)</script>
  226. </binding>
  227. <mod-up>
  228. <binding>
  229. <command>nasal</command>
  230. <script>controls.flapsDown(0)</script>
  231. </binding>
  232. </mod-up>
  233. </key>
  234. <key n="93">
  235. <name>]</name>
  236. <desc>Increase flaps.</desc>
  237. <repeatable>true</repeatable>
  238. <binding>
  239. <command>nasal</command>
  240. <script>controls.flapsDown(1)</script>
  241. </binding>
  242. <mod-up>
  243. <binding>
  244. <command>nasal</command>
  245. <script>controls.flapsDown(0)</script>
  246. </binding>
  247. </mod-up>
  248. </key>
  249. <key n="115">
  250. <name>s</name>
  251. <desc>Engine Starter</desc>
  252. <binding>
  253. <command>nasal</command>
  254. <script>Optica.starter_null();</script>
  255. </binding>
  256. </key>
  257. <key n="123">
  258. <name>{</name>
  259. <desc>Decrease Magneto</desc>
  260. <binding>
  261. <command>nasal</command>
  262. <script>Optica.ignition_switch(-1,0);</script>
  263. </binding>
  264. </key>
  265. <key n="125">
  266. <name>}</name>
  267. <desc>Increase Magneto</desc>
  268. <binding>
  269. <command>nasal</command>
  270. <script>Optica.ignition_switch(1,0);</script>
  271. </binding>
  272. </key>
  273. </keyboard>
  274. </input>
  275. <nasal>
  276. <Optica>
  277. <file>Aircraft/Optica/Nasal/Electrical.nas</file>
  278. <file>Aircraft/Optica/Nasal/Optica_ammeter.nas</file>
  279. <file>Aircraft/Optica/Nasal/rmi.nas</file>
  280. <file>Aircraft/Optica/Nasal/kx155.nas</file>
  281. <file>Aircraft/Optica/Nasal/kt76c.nas</file>
  282. <file>Aircraft/Optica/Nasal/kn62a.nas</file>
  283. <file>Aircraft/Optica/Nasal/Optica_fuel.nas</file>
  284. <file>Aircraft/Optica/Nasal/Optica_engine.nas</file>
  285. <file>Aircraft/Optica/Nasal/Optica.nas</file>
  286. </Optica>
  287. </nasal>
  288. </PropertyList>