| 1 |
<?xml version="1.0"?> |
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
<PropertyList> |
| 21 |
<nasal> |
| 22 |
<script><![CDATA[ |
| 23 |
var clamp = func(val, min, max) { |
| 24 |
return (val > max) ? max : (val < min) ? min : val; |
| 25 |
} |
| 26 |
|
| 27 |
var adjustprop = func(path, offset, min = -1, max = 1) { |
| 28 |
var val = getprop(path) + offset; |
| 29 |
setprop(path, clamp(val, min, max)); |
| 30 |
return val; |
| 31 |
} |
| 32 |
|
| 33 |
# Usage: setpropf(<format>, <vector or list of args>, <value>); |
| 34 |
var setpropf = func { |
| 35 |
var val = pop(arg); |
| 36 |
setprop(call(sprintf, size(arg) and typeof(arg[0]) == "vector" ? arg[0] : arg), val); |
| 37 |
} |
| 38 |
|
| 39 |
# Usage: getpropf(<format>, <vector or list of args>); |
| 40 |
var getpropf = func { |
| 41 |
getprop(call(sprintf, size(arg) and typeof(arg[0]) == "vector" ? arg[0] : arg)); |
| 42 |
} |
| 43 |
]]></script> |
| 44 |
</nasal> |
| 45 |
|
| 46 |
<key n="58"> |
| 47 |
<name>:</name> |
| 48 |
<desc>User commands</desc> |
| 49 |
|
| 50 |
</key> |
| 51 |
|
| 52 |
<key n="63"> |
| 53 |
<name>?</name> |
| 54 |
<desc>Help</desc> |
| 55 |
<exit/> |
| 56 |
<binding> |
| 57 |
<command>nasal</command> |
| 58 |
<script>multikey.help()</script> |
| 59 |
</binding> |
| 60 |
</key> |
| 61 |
|
| 62 |
<key n="65"> |
| 63 |
<name>A</name> |
| 64 |
<desc>Aircraft</desc> |
| 65 |
|
| 66 |
</key> |
| 67 |
|
| 68 |
<key n="68"> |
| 69 |
<name>D</name> |
| 70 |
<desc>Dialogs</desc> |
| 71 |
|
| 72 |
<key n="89"> |
| 73 |
<name>Y</name> |
| 74 |
<desc>Nasal Console</desc> |
| 75 |
<exit/> |
| 76 |
<binding> |
| 77 |
<command>dialog-show</command> |
| 78 |
<dialog-name>nasal-console</dialog-name> |
| 79 |
</binding> |
| 80 |
</key> |
| 81 |
|
| 82 |
<key n="97"> |
| 83 |
<name>a</name> |
| 84 |
<desc>Autopilot Settings</desc> |
| 85 |
<exit/> |
| 86 |
<binding> |
| 87 |
<command>dialog-show</command> |
| 88 |
<dialog-name>autopilot</dialog-name> |
| 89 |
</binding> |
| 90 |
</key> |
| 91 |
|
| 92 |
<key n="102"> |
| 93 |
<name>f</name> |
| 94 |
<desc>Fuel and Payload</desc> |
| 95 |
<exit/> |
| 96 |
<binding> |
| 97 |
<command>nasal</command> |
| 98 |
<script>gui.showWeightDialog()</script> |
| 99 |
</binding> |
| 100 |
</key> |
| 101 |
|
| 102 |
<key n="103"> |
| 103 |
<name>g</name> |
| 104 |
<desc>GPS Settings</desc> |
| 105 |
<exit/> |
| 106 |
<binding> |
| 107 |
<command>dialog-show</command> |
| 108 |
<dialog-name>gps</dialog-name> |
| 109 |
</binding> |
| 110 |
</key> |
| 111 |
|
| 112 |
<key n="104"> |
| 113 |
<name>h</name> |
| 114 |
<desc>Chat History</desc> |
| 115 |
<exit/> |
| 116 |
<binding> |
| 117 |
<command>dialog-show</command> |
| 118 |
<dialog-name>chat-full</dialog-name> |
| 119 |
</binding> |
| 120 |
</key> |
| 121 |
|
| 122 |
<key n="105"> |
| 123 |
<name>i</name> |
| 124 |
<desc>Instrument Settings</desc> |
| 125 |
<exit/> |
| 126 |
<binding> |
| 127 |
<command>dialog-show</command> |
| 128 |
<dialog-name>instruments</dialog-name> |
| 129 |
</binding> |
| 130 |
</key> |
| 131 |
|
| 132 |
<key n="109"> |
| 133 |
<name>m</name> |
| 134 |
<desc>Multiplayer Pilot List</desc> |
| 135 |
<exit/> |
| 136 |
<binding> |
| 137 |
<command>nasal</command> |
| 138 |
<script>multiplayer.dialog.show()</script> |
| 139 |
</binding> |
| 140 |
</key> |
| 141 |
|
| 142 |
<key n="112"> |
| 143 |
<name>p</name> |
| 144 |
<desc>Position aircraft</desc> |
| 145 |
<key n="97"> |
| 146 |
<name>a</name> |
| 147 |
<desc>Position aircraft in air</desc> |
| 148 |
<exit/> |
| 149 |
<binding> |
| 150 |
<command>dialog-show</command> |
| 151 |
<dialog-name>location-in-air</dialog-name> |
| 152 |
</binding> |
| 153 |
</key> |
| 154 |
|
| 155 |
<key n="103"> |
| 156 |
<name>g</name> |
| 157 |
<desc>Position aircraft on ground</desc> |
| 158 |
<exit/> |
| 159 |
<binding> |
| 160 |
<command>dialog-show</command> |
| 161 |
<dialog-name>airports</dialog-name> |
| 162 |
</binding> |
| 163 |
</key> |
| 164 |
</key> |
| 165 |
|
| 166 |
<key n="114"> |
| 167 |
<name>r</name> |
| 168 |
<desc>Radio Settings</desc> |
| 169 |
<exit/> |
| 170 |
<binding> |
| 171 |
<command>dialog-show</command> |
| 172 |
<dialog-name>radios</dialog-name> |
| 173 |
</binding> |
| 174 |
</key> |
| 175 |
|
| 176 |
<key n="115"> |
| 177 |
<name>s</name> |
| 178 |
<desc>Sound Configuration</desc> |
| 179 |
<exit/> |
| 180 |
<binding> |
| 181 |
<command>dialog-show</command> |
| 182 |
<dialog-name>sound-dialog</dialog-name> |
| 183 |
</binding> |
| 184 |
</key> |
| 185 |
|
| 186 |
<key n="116"> |
| 187 |
<name>t</name> |
| 188 |
<desc>Time Settings</desc> |
| 189 |
<exit/> |
| 190 |
<binding> |
| 191 |
<command>dialog-show</command> |
| 192 |
<dialog-name>timeofday</dialog-name> |
| 193 |
</binding> |
| 194 |
</key> |
| 195 |
|
| 196 |
<key n="118"> |
| 197 |
<name>v</name> |
| 198 |
<desc>View options</desc> |
| 199 |
<exit/> |
| 200 |
<binding> |
| 201 |
<command>dialog-show</command> |
| 202 |
<dialog-name>view</dialog-name> |
| 203 |
</binding> |
| 204 |
</key> |
| 205 |
|
| 206 |
<key n="119"> |
| 207 |
<name>w</name> |
| 208 |
<desc>Weather Conditions</desc> |
| 209 |
<exit/> |
| 210 |
<binding> |
| 211 |
<command>dialog-show</command> |
| 212 |
<dialog-name>weather</dialog-name> |
| 213 |
</binding> |
| 214 |
</key> |
| 215 |
</key> |
| 216 |
|
| 217 |
|
| 218 |
<nasal> |
| 219 |
<script><![CDATA[ |
| 220 |
# Set weather scenario by multikey sequence (based on apply function in FG_ROOT/gui/dialogs/weather.xml). |
| 221 |
# "scenario_name" paramiter is a string of scenario name like "CAT I minimum". |
| 222 |
# "weather_engine" can be: |
| 223 |
# "local" (force to use detailed weather), |
| 224 |
# "global" (force to use basic weather) or |
| 225 |
# "same" (don't change the engine). |
| 226 |
var set_weather_scenario_multikey = func(scenario_name, weather_engine = "same") { |
| 227 |
if (scenario_name == "Manual input") { |
| 228 |
gui.popupTip("\"Manual input\" scenario is not supported here"); |
| 229 |
return; |
| 230 |
} |
| 231 |
|
| 232 |
var scenario = weather_scenario.find_weather_scenario(scenario_name); |
| 233 |
if (scenario == nil) { |
| 234 |
gui.popupTip("Failed to load the \"" ~ scenario_name ~ "\" weather scenario"); |
| 235 |
return; |
| 236 |
} |
| 237 |
|
| 238 |
var is_live_data = scenario_name == "Live data"; |
| 239 |
var is_local_weather = weather_engine == "local" |
| 240 |
? 1 |
| 241 |
: (weather_engine == "global" ? 0 : getprop("/nasal/local_weather/enabled")); |
| 242 |
var metar = is_live_data |
| 243 |
? getprop("environment/metar/data") |
| 244 |
: scenario.getNode("metar", 1).getValue(); |
| 245 |
|
| 246 |
setprop("/environment/params/metar-updates-environment", 1); |
| 247 |
setprop("/environment/realwx/enabled", is_live_data ? 1 : 0); |
| 248 |
setprop("/environment/config/enabled", 1); |
| 249 |
setprop("/environment/weather-scenario", scenario_name); |
| 250 |
setprop("environment/metar/data", metar); |
| 251 |
|
| 252 |
if (is_local_weather) { |
| 253 |
# Clear any local weather that might be running |
| 254 |
local_weather.clear_all(); |
| 255 |
|
| 256 |
# If Local Weather is enabled, re-initialize with updated |
| 257 |
# initial tile and tile selection. |
| 258 |
setprop("/nasal/local_weather/enabled", 1); |
| 259 |
|
| 260 |
# Re-initialize local weather. |
| 261 |
settimer(func {local_weather.set_tile();}, 0.2); |
| 262 |
} else { |
| 263 |
setprop("/nasal/local_weather/enabled", 0); |
| 264 |
} |
| 265 |
}; |
| 266 |
|
| 267 |
var get_current_weather_scenario = func() { |
| 268 |
if (getprop("/environment/realwx/enabled")) { |
| 269 |
# "Live data" is not set to "/environment/weather-scenario" after first launch |
| 270 |
return "Live data"; |
| 271 |
} |
| 272 |
|
| 273 |
return getprop("/environment/weather-scenario"); |
| 274 |
}; |
| 275 |
]]></script> |
| 276 |
</nasal> |
| 277 |
<key n="69"> |
| 278 |
<name>E</name> |
| 279 |
<desc>Environment</desc> |
| 280 |
<key n="69"> |
| 281 |
<name>w</name> |
| 282 |
<desc>Weather</desc> |
| 283 |
|
| 284 |
<key n="98"> |
| 285 |
<name>b</name> |
| 286 |
<desc>Enable Basic Weather</desc> |
| 287 |
<exit/> |
| 288 |
<binding> |
| 289 |
<command>nasal</command> |
| 290 |
<script> |
| 291 |
set_weather_scenario_multikey(get_current_weather_scenario(), "global"); |
| 292 |
</script> |
| 293 |
</binding> |
| 294 |
</key> |
| 295 |
|
| 296 |
<key n="100"> |
| 297 |
<name>d</name> |
| 298 |
<desc>Enable Detailed Weather</desc> |
| 299 |
<exit/> |
| 300 |
<binding> |
| 301 |
<command>nasal</command> |
| 302 |
<script> |
| 303 |
set_weather_scenario_multikey(get_current_weather_scenario(), "local"); |
| 304 |
</script> |
| 305 |
</binding> |
| 306 |
</key> |
| 307 |
|
| 308 |
<key n="119"> |
| 309 |
<name>s</name> |
| 310 |
<desc>Weather Scenario</desc> |
| 311 |
|
| 312 |
<key n="114"> |
| 313 |
<name>r</name> |
| 314 |
<desc>Weather Scenario = Live data</desc> |
| 315 |
<binding> |
| 316 |
<command>nasal</command> |
| 317 |
<script> |
| 318 |
set_weather_scenario_multikey("Live data"); |
| 319 |
</script> |
| 320 |
</binding> |
| 321 |
</key> |
| 322 |
|
| 323 |
<key n="105"> |
| 324 |
<name>i</name> |
| 325 |
<desc>Weather Scenario = International Standard Atmosphere</desc> |
| 326 |
<binding> |
| 327 |
<command>nasal</command> |
| 328 |
<script> |
| 329 |
set_weather_scenario_multikey("International Standard Atmosphere"); |
| 330 |
</script> |
| 331 |
</binding> |
| 332 |
</key> |
| 333 |
|
| 334 |
<key n="72"> |
| 335 |
<name>H</name> |
| 336 |
<desc>Weather Scenario = Core high pressure region</desc> |
| 337 |
<binding> |
| 338 |
<command>nasal</command> |
| 339 |
<script> |
| 340 |
set_weather_scenario_multikey("Core high pressure region"); |
| 341 |
</script> |
| 342 |
</binding> |
| 343 |
</key> |
| 344 |
|
| 345 |
<key n="104"> |
| 346 |
<name>h</name> |
| 347 |
<desc>Weather Scenario = High pressure region</desc> |
| 348 |
<binding> |
| 349 |
<command>nasal</command> |
| 350 |
<script> |
| 351 |
set_weather_scenario_multikey("High pressure region"); |
| 352 |
</script> |
| 353 |
</binding> |
| 354 |
</key> |
| 355 |
|
| 356 |
<key n="66"> |
| 357 |
<name>B</name> |
| 358 |
<desc>Weather Scenario = Border of a high pressure region</desc> |
| 359 |
<binding> |
| 360 |
<command>nasal</command> |
| 361 |
<script> |
| 362 |
set_weather_scenario_multikey("Border of a high pressure region"); |
| 363 |
</script> |
| 364 |
</binding> |
| 365 |
</key> |
| 366 |
|
| 367 |
<key n="98"> |
| 368 |
<name>b</name> |
| 369 |
<desc>Weather Scenario = Border of a low pressure region</desc> |
| 370 |
<binding> |
| 371 |
<command>nasal</command> |
| 372 |
<script> |
| 373 |
set_weather_scenario_multikey("Border of a low pressure region"); |
| 374 |
</script> |
| 375 |
</binding> |
| 376 |
</key> |
| 377 |
|
| 378 |
<key n="108"> |
| 379 |
<name>l</name> |
| 380 |
<desc>Weather Scenario = Low pressure region</desc> |
| 381 |
<binding> |
| 382 |
<command>nasal</command> |
| 383 |
<script> |
| 384 |
set_weather_scenario_multikey("Low pressure region"); |
| 385 |
</script> |
| 386 |
</binding> |
| 387 |
</key> |
| 388 |
|
| 389 |
<key n="76"> |
| 390 |
<name>L</name> |
| 391 |
<desc>Weather Scenario = Core low pressure region</desc> |
| 392 |
<binding> |
| 393 |
<command>nasal</command> |
| 394 |
<script> |
| 395 |
set_weather_scenario_multikey("Core low pressure region"); |
| 396 |
</script> |
| 397 |
</binding> |
| 398 |
</key> |
| 399 |
|
| 400 |
<key n="119"> |
| 401 |
<name>w</name> |
| 402 |
<desc>Weather Scenario = Warm sector</desc> |
| 403 |
<binding> |
| 404 |
<command>nasal</command> |
| 405 |
<script> |
| 406 |
set_weather_scenario_multikey("Warm sector"); |
| 407 |
</script> |
| 408 |
</binding> |
| 409 |
</key> |
| 410 |
|
| 411 |
<key n="102"> |
| 412 |
<name>f</name> |
| 413 |
<desc>Weather Scenario = Fair weather</desc> |
| 414 |
<binding> |
| 415 |
<command>nasal</command> |
| 416 |
<script> |
| 417 |
set_weather_scenario_multikey("Fair weather"); |
| 418 |
</script> |
| 419 |
</binding> |
| 420 |
</key> |
| 421 |
|
| 422 |
<key n="116"> |
| 423 |
<name>t</name> |
| 424 |
<desc>Weather Scenario = Thunderstorm</desc> |
| 425 |
<binding> |
| 426 |
<command>nasal</command> |
| 427 |
<script> |
| 428 |
set_weather_scenario_multikey("Thunderstorm"); |
| 429 |
</script> |
| 430 |
</binding> |
| 431 |
</key> |
| 432 |
|
| 433 |
<key n="115"> |
| 434 |
<name>s</name> |
| 435 |
<desc>Weather Scenario = Stormy Monday</desc> |
| 436 |
<binding> |
| 437 |
<command>nasal</command> |
| 438 |
<script> |
| 439 |
set_weather_scenario_multikey("Stormy Monday"); |
| 440 |
</script> |
| 441 |
</binding> |
| 442 |
</key> |
| 443 |
|
| 444 |
<key n="109"> |
| 445 |
<name>m</name> |
| 446 |
<desc>Weather Scenario = Marginal VFR</desc> |
| 447 |
<binding> |
| 448 |
<command>nasal</command> |
| 449 |
<script> |
| 450 |
set_weather_scenario_multikey("Marginal VFR"); |
| 451 |
</script> |
| 452 |
</binding> |
| 453 |
</key> |
| 454 |
|
| 455 |
<key n="49"> |
| 456 |
<name>1</name> |
| 457 |
<desc>Weather Scenario = CAT I minimum</desc> |
| 458 |
<binding> |
| 459 |
<command>nasal</command> |
| 460 |
<script> |
| 461 |
set_weather_scenario_multikey("CAT I minimum"); |
| 462 |
</script> |
| 463 |
</binding> |
| 464 |
</key> |
| 465 |
|
| 466 |
<key n="50"> |
| 467 |
<name>2</name> |
| 468 |
<desc>Weather Scenario = CAT II minimum</desc> |
| 469 |
<binding> |
| 470 |
<command>nasal</command> |
| 471 |
<script> |
| 472 |
set_weather_scenario_multikey("CAT II minimum"); |
| 473 |
</script> |
| 474 |
</binding> |
| 475 |
</key> |
| 476 |
|
| 477 |
<key n="51"> |
| 478 |
<name>3</name> |
| 479 |
<desc>Weather Scenario = CAT IIIb minimum</desc> |
| 480 |
<binding> |
| 481 |
<command>nasal</command> |
| 482 |
<script> |
| 483 |
set_weather_scenario_multikey("CAT IIIb minimum"); |
| 484 |
</script> |
| 485 |
</binding> |
| 486 |
</key> |
| 487 |
|
| 488 |
<key n="101"> |
| 489 |
<name>e</name> |
| 490 |
<desc>Weather Scenario = Early morning fog</desc> |
| 491 |
<binding> |
| 492 |
<command>nasal</command> |
| 493 |
<script> |
| 494 |
set_weather_scenario_multikey("Early morning fog"); |
| 495 |
</script> |
| 496 |
</binding> |
| 497 |
</key> |
| 498 |
</key> |
| 499 |
</key> |
| 500 |
|
| 501 |
<key n="116"> |
| 502 |
<name>t</name> |
| 503 |
<desc>Time Settings</desc> |
| 504 |
<key n="99"> |
| 505 |
<name>c</name> |
| 506 |
<desc>Clock Time</desc> |
| 507 |
<exit/> |
| 508 |
<binding> |
| 509 |
<command>timeofday</command> |
| 510 |
<timeofday>real</timeofday> |
| 511 |
</binding> |
| 512 |
</key> |
| 513 |
|
| 514 |
<key n="49"> |
| 515 |
<name>1</name> |
| 516 |
<desc>Dawn</desc> |
| 517 |
<exit/> |
| 518 |
<binding> |
| 519 |
<command>timeofday</command> |
| 520 |
<timeofday>dawn</timeofday> |
| 521 |
</binding> |
| 522 |
</key> |
| 523 |
|
| 524 |
<key n="50"> |
| 525 |
<name>2</name> |
| 526 |
<desc>Morning</desc> |
| 527 |
<exit/> |
| 528 |
<binding> |
| 529 |
<command>timeofday</command> |
| 530 |
<timeofday>morning</timeofday> |
| 531 |
</binding> |
| 532 |
</key> |
| 533 |
|
| 534 |
<key n="51"> |
| 535 |
<name>3</name> |
| 536 |
<desc>Noon</desc> |
| 537 |
<exit/> |
| 538 |
<binding> |
| 539 |
<command>timeofday</command> |
| 540 |
<timeofday>noon</timeofday> |
| 541 |
</binding> |
| 542 |
</key> |
| 543 |
|
| 544 |
<key n="52"> |
| 545 |
<name>4</name> |
| 546 |
<desc>Afternoon</desc> |
| 547 |
<exit/> |
| 548 |
<binding> |
| 549 |
<command>timeofday</command> |
| 550 |
<timeofday>afternoon</timeofday> |
| 551 |
</binding> |
| 552 |
</key> |
| 553 |
|
| 554 |
<key n="53"> |
| 555 |
<name>5</name> |
| 556 |
<desc>Dusk</desc> |
| 557 |
<exit/> |
| 558 |
<binding> |
| 559 |
<command>timeofday</command> |
| 560 |
<timeofday>dusk</timeofday> |
| 561 |
</binding> |
| 562 |
</key> |
| 563 |
|
| 564 |
<key n="54"> |
| 565 |
<name>6</name> |
| 566 |
<desc>Evening</desc> |
| 567 |
<exit/> |
| 568 |
<binding> |
| 569 |
<command>timeofday</command> |
| 570 |
<timeofday>evening</timeofday> |
| 571 |
</binding> |
| 572 |
</key> |
| 573 |
|
| 574 |
<key n="55"> |
| 575 |
<name>7</name> |
| 576 |
<desc>Midnight</desc> |
| 577 |
<exit/> |
| 578 |
<binding> |
| 579 |
<command>timeofday</command> |
| 580 |
<timeofday>midnight</timeofday> |
| 581 |
</binding> |
| 582 |
</key> |
| 583 |
|
| 584 |
</key> |
| 585 |
</key> |
| 586 |
|
| 587 |
|
| 588 |
<key n="80"> |
| 589 |
<name>P</name> |
| 590 |
<desc>Position</desc> |
| 591 |
<key n="103"> |
| 592 |
<name>g</name> |
| 593 |
<desc>Position on ground</desc> |
| 594 |
<key n="903"> |
| 595 |
<name>%s</name> |
| 596 |
<desc>Position on ground: airport=%s</desc> |
| 597 |
<key n="32"> |
| 598 |
<name> </name> |
| 599 |
<desc>Position on ground: airport=%s runway=</desc> |
| 600 |
<binding> |
| 601 |
<command>nasal</command> |
| 602 |
<script>aircraft.teleport(airport:arg[0])</script> |
| 603 |
</binding> |
| 604 |
|
| 605 |
<key n="903"> |
| 606 |
<name>%s</name> |
| 607 |
<desc>Position on ground: airport=%s runway=%s</desc> |
| 608 |
<binding> |
| 609 |
<command>nasal</command> |
| 610 |
<script>aircraft.teleport(airport:arg[0], runway:arg[1])</script> |
| 611 |
</binding> |
| 612 |
</key> |
| 613 |
</key> |
| 614 |
</key> |
| 615 |
</key> |
| 616 |
</key> |
| 617 |
|
| 618 |
<key n="89"> |
| 619 |
<name>Y</name> |
| 620 |
<desc>Development functions</desc> |
| 621 |
|
| 622 |
<key n="99"> |
| 623 |
<name>c</name> |
| 624 |
<desc>Reload tile cache</desc> |
| 625 |
<exit/> |
| 626 |
<binding> |
| 627 |
<command>tile-cache-reload</command> |
| 628 |
</binding> |
| 629 |
</key> |
| 630 |
|
| 631 |
<key n="100"> |
| 632 |
<name>d</name> |
| 633 |
<desc>Toggle FDM data logging</desc> |
| 634 |
<exit/> |
| 635 |
<binding> |
| 636 |
<command>property-toggle</command> |
| 637 |
<property>/sim/temp/fdm-data-logging</property> |
| 638 |
</binding> |
| 639 |
</key> |
| 640 |
|
| 641 |
<key n="102"> |
| 642 |
<name>f</name> |
| 643 |
<desc>Set fog ...</desc> |
| 644 |
|
| 645 |
<key n="47"> |
| 646 |
<name>/</name> |
| 647 |
<desc>Fog off</desc> |
| 648 |
<exit/> |
| 649 |
<binding> |
| 650 |
<command>property-assign</command> |
| 651 |
<property>/sim/rendering/fog</property> |
| 652 |
<value>disabled</value> |
| 653 |
</binding> |
| 654 |
</key> |
| 655 |
|
| 656 |
<key n="102"> |
| 657 |
<name>f</name> |
| 658 |
<desc>Fog fastest</desc> |
| 659 |
<exit/> |
| 660 |
<binding> |
| 661 |
<command>property-assign</command> |
| 662 |
<property>/sim/rendering/fog</property> |
| 663 |
<value>fastest</value> |
| 664 |
</binding> |
| 665 |
</key> |
| 666 |
|
| 667 |
<key n="110"> |
| 668 |
<name>n</name> |
| 669 |
<desc>Fog nicest</desc> |
| 670 |
<exit/> |
| 671 |
<binding> |
| 672 |
<command>property-assign</command> |
| 673 |
<property>/sim/rendering/fog</property> |
| 674 |
<value>nicest</value> |
| 675 |
</binding> |
| 676 |
</key> |
| 677 |
</key> |
| 678 |
|
| 679 |
<key n="108"> |
| 680 |
<name>l</name> |
| 681 |
<desc>Force lighting update</desc> |
| 682 |
<exit/> |
| 683 |
<binding> |
| 684 |
<command>lighting-update</command> |
| 685 |
</binding> |
| 686 |
</key> |
| 687 |
|
| 688 |
<key n="109"> |
| 689 |
<name>m</name> |
| 690 |
<desc>Dump Google Maps link</desc> |
| 691 |
<exit/> |
| 692 |
<binding> |
| 693 |
<command>nasal</command> |
| 694 |
<script> |
| 695 |
printf("http://maps.google.com/maps?ll=%.10f,%.10f&z=12&t=h", |
| 696 |
getprop("/position/latitude-deg"), |
| 697 |
getprop("/position/longitude-deg")); |
| 698 |
</script> |
| 699 |
</binding> |
| 700 |
</key> |
| 701 |
|
| 702 |
<key n="112"> |
| 703 |
<name>p</name> |
| 704 |
<desc>Reload panel</desc> |
| 705 |
<exit/> |
| 706 |
<binding> |
| 707 |
<command>panel-load</command> |
| 708 |
</binding> |
| 709 |
</key> |
| 710 |
|
| 711 |
<key n="115"> |
| 712 |
<name>s</name> |
| 713 |
<desc>On-screen statistics level (0-4)</desc> |
| 714 |
<key n="901"> |
| 715 |
<name>%u</name> |
| 716 |
<desc>Set on-screen statistics level</desc> |
| 717 |
<exit/> |
| 718 |
<binding> |
| 719 |
<command>nasal</command> |
| 720 |
<script>setprop("/sim/rendering/on-screen-statistics", arg[0])</script> |
| 721 |
</binding> |
| 722 |
</key> |
| 723 |
</key> |
| 724 |
|
| 725 |
<key n="119"> |
| 726 |
<name>w</name> |
| 727 |
<desc>Toggle wireframe</desc> |
| 728 |
<exit/> |
| 729 |
<binding> |
| 730 |
<command>property-toggle</command> |
| 731 |
<property>/sim/rendering/wireframe</property> |
| 732 |
|
| 733 |
</binding> |
| 734 |
</key> |
| 735 |
|
| 736 |
|
| 737 |
|
| 738 |
|
| 739 |
|
| 740 |
|
| 741 |
|
| 742 |
|
| 743 |
|
| 744 |
|
| 745 |
</key> |
| 746 |
|
| 747 |
|
| 748 |
<key n="97"> |
| 749 |
<name>a</name> |
| 750 |
<desc>Autopilot</desc> |
| 751 |
<key n="104"> |
| 752 |
<name>h</name> |
| 753 |
<desc>Heading Control</desc> |
| 754 |
<key n="119"> |
| 755 |
<name>w</name> |
| 756 |
<desc>Wing Level</desc> |
| 757 |
<binding> |
| 758 |
<command>nasal</command> |
| 759 |
<script>setprop("/autopilot/locks/heading", "wing-leveler")</script> |
| 760 |
</binding> |
| 761 |
</key> |
| 762 |
|
| 763 |
<key n="98"> |
| 764 |
<name>b</name> |
| 765 |
<desc>Heading Bug</desc> |
| 766 |
<key n="901"> |
| 767 |
<name>%f</name> |
| 768 |
<desc>Heading Bug = %.3f degree</desc> |
| 769 |
<binding> |
| 770 |
<command>nasal</command> |
| 771 |
<script> |
| 772 |
setprop("/autopilot/locks/heading", "dg-heading-hold"); |
| 773 |
setprop("/autopilot/settings/heading-bug-deg", arg[0]); |
| 774 |
</script> |
| 775 |
</binding> |
| 776 |
</key> |
| 777 |
</key> |
| 778 |
|
| 779 |
<key n="116"> |
| 780 |
<name>t</name> |
| 781 |
<desc>True Heading</desc> |
| 782 |
<key n="901"> |
| 783 |
<name>%f</name> |
| 784 |
<desc>True Heading = %.3f degree</desc> |
| 785 |
<binding> |
| 786 |
<command>nasal</command> |
| 787 |
<script> |
| 788 |
setprop("/autopilot/locks/heading", "true-heading-hold"); |
| 789 |
setprop("/autopilot/settings/true-heading-deg", arg[0]); |
| 790 |
</script> |
| 791 |
</binding> |
| 792 |
</key> |
| 793 |
</key> |
| 794 |
|
| 795 |
<key n="110"> |
| 796 |
<name>n</name> |
| 797 |
<desc>Nav1 Hold</desc> |
| 798 |
<binding> |
| 799 |
<command>nasal</command> |
| 800 |
<script>setprop("/autopilot/locks/heading", "nav1-hold")</script> |
| 801 |
</binding> |
| 802 |
</key> |
| 803 |
|
| 804 |
<key n="47"> |
| 805 |
<name>/</name> |
| 806 |
<desc>Heading control: disable</desc> |
| 807 |
<binding> |
| 808 |
<command>property-assign</command> |
| 809 |
<property>/autopilot/locks/heading</property> |
| 810 |
<value></value> |
| 811 |
</binding> |
| 812 |
</key> |
| 813 |
</key> |
| 814 |
|
| 815 |
<key n="118"> |
| 816 |
<name>v</name> |
| 817 |
<desc>Velocity control</desc> |
| 818 |
<key n="116"> |
| 819 |
<name>t</name> |
| 820 |
<desc>Speed with throttle</desc> |
| 821 |
<key n="901"> |
| 822 |
<name>%f</name> |
| 823 |
<desc>Speed with throttle = %.1f knots</desc> |
| 824 |
<binding> |
| 825 |
<command>nasal</command> |
| 826 |
<script> |
| 827 |
setprop("/autopilot/settings/target-speed-kt", arg[0]); |
| 828 |
setprop("/autopilot/locks/speed", "speed-with-throttle"); |
| 829 |
</script> |
| 830 |
</binding> |
| 831 |
</key> |
| 832 |
</key> |
| 833 |
|
| 834 |
<key n="112"> |
| 835 |
<name>p</name> |
| 836 |
<desc>Speed with pitch</desc> |
| 837 |
<key n="901"> |
| 838 |
<name>%f</name> |
| 839 |
<desc>Speed with pitch = %.2f knots</desc> |
| 840 |
<binding> |
| 841 |
<command>nasal</command> |
| 842 |
<script> |
| 843 |
setprop("/autopilot/settings/target-speed-kt", arg[0]); |
| 844 |
setprop("/autopilot/locks/speed", "speed-with-pitch-trim"); |
| 845 |
</script> |
| 846 |
</binding> |
| 847 |
</key> |
| 848 |
</key> |
| 849 |
|
| 850 |
<key n="47"> |
| 851 |
<name>/</name> |
| 852 |
<desc>Velocity control: disable</desc> |
| 853 |
<binding> |
| 854 |
<command>property-assign</command> |
| 855 |
<property>/autopilot/locks/speed</property> |
| 856 |
<value></value> |
| 857 |
</binding> |
| 858 |
</key> |
| 859 |
</key> |
| 860 |
|
| 861 |
<key n="112"> |
| 862 |
<name>p</name> |
| 863 |
<desc>Pitch/Altitude control</desc> |
| 864 |
<key n="118"> |
| 865 |
<name>v</name> |
| 866 |
<desc>Vertical Speed Hold</desc> |
| 867 |
<key n="901"> |
| 868 |
<name>%f</name> |
| 869 |
<desc>Vertical Speed = %.2f fpm</desc> |
| 870 |
<binding> |
| 871 |
<command>nasal</command> |
| 872 |
<script> |
| 873 |
setprop("/autopilot/settings/vertical-speed-fpm", arg[0]); |
| 874 |
setprop("/autopilot/locks/altitude", "vertical-speed-hold"); |
| 875 |
</script> |
| 876 |
</binding> |
| 877 |
</key> |
| 878 |
</key> |
| 879 |
|
| 880 |
<key n="112"> |
| 881 |
<name>p</name> |
| 882 |
<desc>Pitch hold</desc> |
| 883 |
<key n="901"> |
| 884 |
<name>%f</name> |
| 885 |
<desc>Pitch angle = %.1f degree</desc> |
| 886 |
<binding> |
| 887 |
<command>nasal</command> |
| 888 |
<script> |
| 889 |
setprop("/autopilot/settings/target-pitch-deg", arg[0]); |
| 890 |
setprop("/autopilot/locks/altitude", "pitch-hold"); |
| 891 |
</script> |
| 892 |
</binding> |
| 893 |
</key> |
| 894 |
</key> |
| 895 |
|
| 896 |
<key n="102"> |
| 897 |
<name>f</name> |
| 898 |
<desc>FPA hold</desc> |
| 899 |
<key n="901"> |
| 900 |
<name>%f</name> |
| 901 |
<desc>FPA = %.1f degree</desc> |
| 902 |
<binding> |
| 903 |
<command>nasal</command> |
| 904 |
<script> |
| 905 |
setprop("/autopilot/settings/target-fpa-deg", arg[0]); |
| 906 |
setprop("/autopilot/locks/altitude", "fpa-hold"); |
| 907 |
</script> |
| 908 |
</binding> |
| 909 |
</key> |
| 910 |
</key> |
| 911 |
|
| 912 |
<key n="97"> |
| 913 |
<name>a</name> |
| 914 |
<desc>Altitude hold</desc> |
| 915 |
<key n="901"> |
| 916 |
<name>%f</name> |
| 917 |
<desc>Target altitude = %.2f feet</desc> |
| 918 |
<binding> |
| 919 |
<command>nasal</command> |
| 920 |
<script> |
| 921 |
setprop("/autopilot/settings/target-altitude-ft", arg[0]); |
| 922 |
setprop("/autopilot/locks/altitude", "altitude-hold"); |
| 923 |
</script> |
| 924 |
</binding> |
| 925 |
</key> |
| 926 |
</key> |
| 927 |
|
| 928 |
<key n="103"> |
| 929 |
<name>g</name> |
| 930 |
<desc>AGL hold</desc> |
| 931 |
<key n="901"> |
| 932 |
<name>%f</name> |
| 933 |
<desc>Target AGL = %.1f feet</desc> |
| 934 |
<binding> |
| 935 |
<command>nasal</command> |
| 936 |
<script> |
| 937 |
setprop("/autopilot/settings/target-agl-ft", arg[0]); |
| 938 |
setprop("/autopilot/locks/altitude", "agl-hold"); |
| 939 |
</script> |
| 940 |
</binding> |
| 941 |
</key> |
| 942 |
</key> |
| 943 |
|
| 944 |
<key n="110"> |
| 945 |
<name>n</name> |
| 946 |
<desc>Nav1 glideslope</desc> |
| 947 |
<binding> |
| 948 |
<command>property-assign</command> |
| 949 |
<property>/autopilot/locks/altitude</property> |
| 950 |
<value>gs1-hold</value> |
| 951 |
</binding> |
| 952 |
</key> |
| 953 |
|
| 954 |
<key n="47"> |
| 955 |
<name>/</name> |
| 956 |
<desc>Pitch/Altitude control: disable</desc> |
| 957 |
<binding> |
| 958 |
<command>property-assign</command> |
| 959 |
<property>/autopilot/locks/altitude</property> |
| 960 |
<value></value> |
| 961 |
</binding> |
| 962 |
</key> |
| 963 |
</key> |
| 964 |
|
| 965 |
<key n="114"> |
| 966 |
<name>r</name> |
| 967 |
<desc>Route Manager</desc> |
| 968 |
<key n="97"> |
| 969 |
<name>a</name> |
| 970 |
<desc>Append waypoint</desc> |
| 971 |
<key n="903"> |
| 972 |
<name>%s</name> |
| 973 |
<desc>Append waypoint: airport ID[@altitude] = %s</desc> |
| 974 |
<binding> |
| 975 |
<command>nasal</command> |
| 976 |
<script>setprop("/autopilot/route-manager/input", arg[0])</script> |
| 977 |
</binding> |
| 978 |
</key> |
| 979 |
</key> |
| 980 |
|
| 981 |
<key n="99"> |
| 982 |
<name>c</name> |
| 983 |
<desc>Clear waypoints</desc> |
| 984 |
<binding> |
| 985 |
<command>nasal</command> |
| 986 |
<script>setprop("/autopilot/route-manager/input", "@clear")</script> |
| 987 |
</binding> |
| 988 |
</key> |
| 989 |
|
| 990 |
<key n="100"> |
| 991 |
<name>d</name> |
| 992 |
<desc>Delete waypoint</desc> |
| 993 |
<key n="902"> |
| 994 |
<name>%u</name> |
| 995 |
<desc>Delete waypoint at %u</desc> |
| 996 |
<binding> |
| 997 |
<command>nasal</command> |
| 998 |
<script> |
| 999 |
var command = sprintf("@delete%d", arg[0] > 0 ? arg[0] - 1 : 0); |
| 1000 |
setprop("/autopilot/route-manager/input", command); |
| 1001 |
</script> |
| 1002 |
</binding> |
| 1003 |
</key> |
| 1004 |
</key> |
| 1005 |
|
| 1006 |
<key n="105"> |
| 1007 |
<name>i</name> |
| 1008 |
<desc>Insert waypoint</desc> |
| 1009 |
<key n="902"> |
| 1010 |
<name>%u</name> |
| 1011 |
<desc>Insert waypoint at %u</desc> |
| 1012 |
<key n="903"> |
| 1013 |
<name>%s</name> |
| 1014 |
<desc>Insert waypoint at %u: airport ID = %s</desc> |
| 1015 |
<binding> |
| 1016 |
<command>nasal</command> |
| 1017 |
<script> |
| 1018 |
var command = sprintf("@insert%d:%s", arg[0] > 0 ? arg[0] - 1 : 0, arg[1]); |
| 1019 |
setprop("/autopilot/route-manager/input", command); |
| 1020 |
</script> |
| 1021 |
</binding> |
| 1022 |
</key> |
| 1023 |
</key> |
| 1024 |
</key> |
| 1025 |
|
| 1026 |
<key n="112"> |
| 1027 |
<name>p</name> |
| 1028 |
<desc>Remove first waypoint</desc> |
| 1029 |
<binding> |
| 1030 |
<command>nasal</command> |
| 1031 |
<script>setprop("/autopilot/route-manager/input", "@delete0")</script> |
| 1032 |
</binding> |
| 1033 |
</key> |
| 1034 |
</key> |
| 1035 |
</key> |
| 1036 |
|
| 1037 |
<nasal> |
| 1038 |
<script> |
| 1039 |
var slewEngineProp = func(format, index, prop, value) { |
| 1040 |
value = controls.slewProp("/controls/engines/engine[" ~ index ~ "]/" ~ prop, value); |
| 1041 |
_ = sprintf(format, index, value); |
| 1042 |
} |
| 1043 |
</script> |
| 1044 |
</nasal> |
| 1045 |
|
| 1046 |
<key n="101"> |
| 1047 |
<name>e</name> |
| 1048 |
<desc>Engines</desc> |
| 1049 |
<key n="109"> |
| 1050 |
<name>m</name> |
| 1051 |
<desc>Mixture (0.0 to 1.0)</desc> |
| 1052 |
<binding> |
| 1053 |
<command>null</command> |
| 1054 |
</binding> |
| 1055 |
|
| 1056 |
<key n="901"> |
| 1057 |
<name>%f</name> |
| 1058 |
<desc>Mixture = %.3f</desc> |
| 1059 |
<binding> |
| 1060 |
<command>nasal</command> |
| 1061 |
<script>props.setAll("/controls/engines/engine", "mixture", arg[0])</script> |
| 1062 |
</binding> |
| 1063 |
</key> |
| 1064 |
|
| 1065 |
<key n="94"> |
| 1066 |
<name>^</name> |
| 1067 |
<desc>Mixture up</desc> |
| 1068 |
<no-exit/> |
| 1069 |
<binding> |
| 1070 |
<command>nasal</command> |
| 1071 |
<script>_ = sprintf("Mixture = %.3f", controls.adjMixture(0.25))</script> |
| 1072 |
</binding> |
| 1073 |
</key> |
| 1074 |
|
| 1075 |
<key n="95"> |
| 1076 |
<name>_</name> |
| 1077 |
<desc>Mixture down</desc> |
| 1078 |
<no-exit/> |
| 1079 |
<binding> |
| 1080 |
<command>nasal</command> |
| 1081 |
<script>_ = sprintf("Mixture = %.3f", controls.adjMixture(-0.25))</script> |
| 1082 |
</binding> |
| 1083 |
</key> |
| 1084 |
</key> |
| 1085 |
|
| 1086 |
<key n="112"> |
| 1087 |
<name>p</name> |
| 1088 |
<desc>Propeller pitch (0.0 to 1.0)</desc> |
| 1089 |
<binding> |
| 1090 |
<command>null</command> |
| 1091 |
</binding> |
| 1092 |
|
| 1093 |
<key n="901"> |
| 1094 |
<name>%f</name> |
| 1095 |
<desc>Propeller pitch = %.3f</desc> |
| 1096 |
<binding> |
| 1097 |
<command>nasal</command> |
| 1098 |
<script>props.setAll("/controls/engines/engine", "propeller-pitch", arg[0])</script> |
| 1099 |
</binding> |
| 1100 |
</key> |
| 1101 |
|
| 1102 |
<key n="94"> |
| 1103 |
<name>^</name> |
| 1104 |
<desc>Propeller pitch up</desc> |
| 1105 |
<no-exit/> |
| 1106 |
<binding> |
| 1107 |
<command>nasal</command> |
| 1108 |
<script>_ = sprintf("Propeller pitch = %.3f", controls.adjPropeller(0.25))</script> |
| 1109 |
</binding> |
| 1110 |
</key> |
| 1111 |
|
| 1112 |
<key n="95"> |
| 1113 |
<name>_</name> |
| 1114 |
<desc>Propeller pitch down</desc> |
| 1115 |
<no-exit/> |
| 1116 |
<binding> |
| 1117 |
<command>nasal</command> |
| 1118 |
<script>_ = sprintf("Propeller pitch = %.3f", controls.adjPropeller(-0.25))</script> |
| 1119 |
</binding> |
| 1120 |
</key> |
| 1121 |
</key> |
| 1122 |
|
| 1123 |
<key n="116"> |
| 1124 |
<name>t</name> |
| 1125 |
<desc>Throttle (0.0 to 1.0)</desc> |
| 1126 |
<binding> |
| 1127 |
<command>null</command> |
| 1128 |
</binding> |
| 1129 |
|
| 1130 |
<key n="901"> |
| 1131 |
<name>%f</name> |
| 1132 |
<desc>Throttle = %.3f</desc> |
| 1133 |
<binding> |
| 1134 |
<command>nasal</command> |
| 1135 |
<script>props.setAll("/controls/engines/engine", "throttle", arg[0])</script> |
| 1136 |
</binding> |
| 1137 |
</key> |
| 1138 |
|
| 1139 |
<key n="94"> |
| 1140 |
<name>^</name> |
| 1141 |
<desc>Throttle up</desc> |
| 1142 |
<no-exit/> |
| 1143 |
<binding> |
| 1144 |
<command>nasal</command> |
| 1145 |
<script>_ = sprintf("Throttle = %.3f", controls.adjThrottle(0.25))</script> |
| 1146 |
</binding> |
| 1147 |
</key> |
| 1148 |
|
| 1149 |
<key n="95"> |
| 1150 |
<name>_</name> |
| 1151 |
<desc>Throttle down</desc> |
| 1152 |
<no-exit/> |
| 1153 |
<binding> |
| 1154 |
<command>nasal</command> |
| 1155 |
<script>_ = sprintf("Throttle = %.3f", controls.adjThrottle(-0.25))</script> |
| 1156 |
</binding> |
| 1157 |
</key> |
| 1158 |
</key> |
| 1159 |
|
| 1160 |
<key n="902"> |
| 1161 |
<name>%u</name> |
| 1162 |
<desc>Engine #%u</desc> |
| 1163 |
<key n="109"> |
| 1164 |
<name>m</name> |
| 1165 |
<desc>Mixture (0.0 to 1.0)</desc> |
| 1166 |
<binding> |
| 1167 |
<command>null</command> |
| 1168 |
</binding> |
| 1169 |
|
| 1170 |
<key n="901"> |
| 1171 |
<name>%f</name> |
| 1172 |
<desc>Mixture = %.3f</desc> |
| 1173 |
<binding> |
| 1174 |
<command>nasal</command> |
| 1175 |
<script>setprop("/controls/engines/engine[" ~ arg[0] ~ "]/mixture", arg[1])</script> |
| 1176 |
</binding> |
| 1177 |
</key> |
| 1178 |
|
| 1179 |
<key n="94"> |
| 1180 |
<name>^</name> |
| 1181 |
<desc>Mixture up</desc> |
| 1182 |
<no-exit/> |
| 1183 |
<binding> |
| 1184 |
<command>nasal</command> |
| 1185 |
<script>slewEngineProp("Mixture #%u = %.3f", arg[0], "mixture", 0.25)</script> |
| 1186 |
</binding> |
| 1187 |
</key> |
| 1188 |
|
| 1189 |
<key n="95"> |
| 1190 |
<name>_</name> |
| 1191 |
<desc>Mixture down</desc> |
| 1192 |
<no-exit/> |
| 1193 |
<binding> |
| 1194 |
<command>nasal</command> |
| 1195 |
<script>slewEngineProp("Mixture #%u = %.3f", arg[0], "mixture", -0.25)</script> |
| 1196 |
</binding> |
| 1197 |
</key> |
| 1198 |
</key> |
| 1199 |
|
| 1200 |
<key n="112"> |
| 1201 |
<name>p</name> |
| 1202 |
<desc>Propeller pitch (0.0 to 1.0)</desc> |
| 1203 |
<binding> |
| 1204 |
<command>null</command> |
| 1205 |
</binding> |
| 1206 |
|
| 1207 |
<key n="901"> |
| 1208 |
<name>%f</name> |
| 1209 |
<desc>Propeller pitch = %.3f</desc> |
| 1210 |
<binding> |
| 1211 |
<command>nasal</command> |
| 1212 |
<script>setprop("/controls/engines/engine[" ~ arg[0] ~ "]/propeller-pitch", arg[1])</script> |
| 1213 |
</binding> |
| 1214 |
</key> |
| 1215 |
|
| 1216 |
<key n="94"> |
| 1217 |
<name>^</name> |
| 1218 |
<desc>Propeller up</desc> |
| 1219 |
<no-exit/> |
| 1220 |
<binding> |
| 1221 |
<command>nasal</command> |
| 1222 |
<script>slewEngineProp("Propeller pitch #%u = %.3f", arg[0], "propeller-pitch", 0.25)</script> |
| 1223 |
</binding> |
| 1224 |
</key> |
| 1225 |
|
| 1226 |
<key n="95"> |
| 1227 |
<name>_</name> |
| 1228 |
<desc>Propeller down</desc> |
| 1229 |
<no-exit/> |
| 1230 |
<binding> |
| 1231 |
<command>nasal</command> |
| 1232 |
<script>slewEngineProp("Propeller pitch #%u = %.3f", arg[0], "propeller-pitch", -0.25)</script> |
| 1233 |
</binding> |
| 1234 |
</key> |
| 1235 |
</key> |
| 1236 |
|
| 1237 |
<key n="116"> |
| 1238 |
<name>t</name> |
| 1239 |
<desc>Throttle (0.0 to 1.0)</desc> |
| 1240 |
<binding> |
| 1241 |
<command>null</command> |
| 1242 |
</binding> |
| 1243 |
|
| 1244 |
<key n="901"> |
| 1245 |
<name>%f</name> |
| 1246 |
<desc>Throttle = %.3f</desc> |
| 1247 |
<binding> |
| 1248 |
<command>nasal</command> |
| 1249 |
<script>setprop("/controls/engines/engine[" ~ arg[0] ~ "]/throttle", arg[1])</script> |
| 1250 |
</binding> |
| 1251 |
</key> |
| 1252 |
|
| 1253 |
<key n="94"> |
| 1254 |
<name>^</name> |
| 1255 |
<desc>Throttle up</desc> |
| 1256 |
<no-exit/> |
| 1257 |
<binding> |
| 1258 |
<command>nasal</command> |
| 1259 |
<script>slewEngineProp("Throttle #%u = %.3f", arg[0], "throttle", 0.25)</script> |
| 1260 |
</binding> |
| 1261 |
</key> |
| 1262 |
|
| 1263 |
<key n="95"> |
| 1264 |
<name>_</name> |
| 1265 |
<desc>Throttle down</desc> |
| 1266 |
<no-exit/> |
| 1267 |
<binding> |
| 1268 |
<command>nasal</command> |
| 1269 |
<script>slewEngineProp("Throttle #%u = %.3f", arg[0], "throttle", -0.25)</script> |
| 1270 |
</binding> |
| 1271 |
</key> |
| 1272 |
</key> |
| 1273 |
</key> |
| 1274 |
</key> |
| 1275 |
|
| 1276 |
|
| 1277 |
<key n="102"> |
| 1278 |
<name>f</name> |
| 1279 |
<desc>Flight controls</desc> |
| 1280 |
<key n="97"> |
| 1281 |
<name>a</name> |
| 1282 |
<desc>Aileron</desc> |
| 1283 |
<key n="901"> |
| 1284 |
<name>%f</name> |
| 1285 |
<desc>Aileron adjustment: %.3f</desc> |
| 1286 |
<binding> |
| 1287 |
<command>nasal</command> |
| 1288 |
<script>adjustprop("/controls/flight/aileron", arg[0])</script> |
| 1289 |
</binding> |
| 1290 |
</key> |
| 1291 |
|
| 1292 |
<key n="116"> |
| 1293 |
<name>t</name> |
| 1294 |
<desc>Aileron trim</desc> |
| 1295 |
<binding> |
| 1296 |
<command>null</command> |
| 1297 |
</binding> |
| 1298 |
|
| 1299 |
<key n="901"> |
| 1300 |
<name>%f</name> |
| 1301 |
<desc>Aileron trim adjustment: %.3f</desc> |
| 1302 |
<binding> |
| 1303 |
<command>nasal</command> |
| 1304 |
<script>adjustprop("/controls/flight/aileron-trim", arg[0])</script> |
| 1305 |
</binding> |
| 1306 |
</key> |
| 1307 |
|
| 1308 |
<key n="60"> |
| 1309 |
<name><</name> |
| 1310 |
<desc>Aileron trim adjustment left</desc> |
| 1311 |
<no-exit/> |
| 1312 |
<binding> |
| 1313 |
<command>nasal</command> |
| 1314 |
<script>_ = sprintf("Aileron trim = %.3f", controls.aileronTrim(-0.5))</script> |
| 1315 |
</binding> |
| 1316 |
</key> |
| 1317 |
|
| 1318 |
<key n="62"> |
| 1319 |
<name>></name> |
| 1320 |
<desc>Aileron trim adjustment right</desc> |
| 1321 |
<no-exit/> |
| 1322 |
<binding> |
| 1323 |
<command>nasal</command> |
| 1324 |
<script>_ = sprintf("Aileron trim = %.3f", controls.aileronTrim(0.5))</script> |
| 1325 |
</binding> |
| 1326 |
</key> |
| 1327 |
</key> |
| 1328 |
</key> |
| 1329 |
|
| 1330 |
<key n="101"> |
| 1331 |
<name>e</name> |
| 1332 |
<desc>Elevator</desc> |
| 1333 |
<key n="901"> |
| 1334 |
<name>%f</name> |
| 1335 |
<desc>Elevator adjustment: %.3f</desc> |
| 1336 |
<binding> |
| 1337 |
<command>nasal</command> |
| 1338 |
<script>adjustprop("/controls/flight/elevator", arg[0])</script> |
| 1339 |
</binding> |
| 1340 |
</key> |
| 1341 |
|
| 1342 |
<key n="116"> |
| 1343 |
<name>t</name> |
| 1344 |
<desc>Elevator trim</desc> |
| 1345 |
<binding> |
| 1346 |
<command>null</command> |
| 1347 |
</binding> |
| 1348 |
|
| 1349 |
<key n="901"> |
| 1350 |
<name>%f</name> |
| 1351 |
<desc>Elevator trim adjustment: %.3f</desc> |
| 1352 |
<binding> |
| 1353 |
<command>nasal</command> |
| 1354 |
<script>adjustprop("/controls/flight/elevator-trim", arg[0])</script> |
| 1355 |
</binding> |
| 1356 |
</key> |
| 1357 |
|
| 1358 |
<key n="94"> |
| 1359 |
<name>^</name> |
| 1360 |
<desc>Elevator trim adjustment down</desc> |
| 1361 |
<no-exit/> |
| 1362 |
<binding> |
| 1363 |
<command>nasal</command> |
| 1364 |
<script>_ = sprintf("Elevator trim = %.3f", controls.elevatorTrim(0.5))</script> |
| 1365 |
</binding> |
| 1366 |
</key> |
| 1367 |
|
| 1368 |
<key n="95"> |
| 1369 |
<name>_</name> |
| 1370 |
<desc>Elevator trim adjustment up</desc> |
| 1371 |
<no-exit/> |
| 1372 |
<binding> |
| 1373 |
<command>nasal</command> |
| 1374 |
<script>_ = sprintf("Elevator trim = %.3f", controls.elevatorTrim(-0.5))</script> |
| 1375 |
</binding> |
| 1376 |
</key> |
| 1377 |
</key> |
| 1378 |
</key> |
| 1379 |
|
| 1380 |
<key n="114"> |
| 1381 |
<name>r</name> |
| 1382 |
<desc>Rudder</desc> |
| 1383 |
<key n="901"> |
| 1384 |
<name>%f</name> |
| 1385 |
<desc>Rudder adjustment: %.3f</desc> |
| 1386 |
<binding> |
| 1387 |
<command>nasal</command> |
| 1388 |
<script>adjustprop("/controls/flight/rudder", arg[0])</script> |
| 1389 |
</binding> |
| 1390 |
</key> |
| 1391 |
|
| 1392 |
|
| 1393 |
|
| 1394 |
|
| 1395 |
|
| 1396 |
|
| 1397 |
|
| 1398 |
|
| 1399 |
|
| 1400 |
|
| 1401 |
|
| 1402 |
|
| 1403 |
|
| 1404 |
|
| 1405 |
<key n="116"> |
| 1406 |
<name>t</name> |
| 1407 |
<desc>Rudder trim</desc> |
| 1408 |
<binding> |
| 1409 |
<command>null</command> |
| 1410 |
</binding> |
| 1411 |
|
| 1412 |
<key n="901"> |
| 1413 |
<name>%f</name> |
| 1414 |
<desc>Rudder trim adjustment: %.3f</desc> |
| 1415 |
<binding> |
| 1416 |
<command>nasal</command> |
| 1417 |
<script>adjustprop("/controls/flight/rudder-trim", arg[0])</script> |
| 1418 |
</binding> |
| 1419 |
</key> |
| 1420 |
|
| 1421 |
<key n="60"> |
| 1422 |
<name><</name> |
| 1423 |
<desc>Rudder trim adjustment left</desc> |
| 1424 |
<no-exit/> |
| 1425 |
<binding> |
| 1426 |
<command>nasal</command> |
| 1427 |
<script>_ = sprintf("Rudder trim = %.3f", controls.rudderTrim(-0.5))</script> |
| 1428 |
</binding> |
| 1429 |
</key> |
| 1430 |
|
| 1431 |
<key n="62"> |
| 1432 |
<name>></name> |
| 1433 |
<desc>Rudder trim adjustment right</desc> |
| 1434 |
<no-exit/> |
| 1435 |
<binding> |
| 1436 |
<command>nasal</command> |
| 1437 |
<script>_ = sprintf("Rudder trim = %.3f", controls.rudderTrim(0.5))</script> |
| 1438 |
</binding> |
| 1439 |
</key> |
| 1440 |
</key> |
| 1441 |
</key> |
| 1442 |
|
| 1443 |
<key n="105"> |
| 1444 |
<name>i</name> |
| 1445 |
<desc>Initialize</desc> |
| 1446 |
<key n="97"> |
| 1447 |
<name>a</name> |
| 1448 |
<desc>Initialize all trims</desc> |
| 1449 |
<binding> |
| 1450 |
<command>nasal</command> |
| 1451 |
<script> |
| 1452 |
setprop("/controls/flight/aileron-trim", 0); |
| 1453 |
setprop("/controls/flight/elevator-trim", 0); |
| 1454 |
setprop("/controls/flight/rudder-trim", 0); |
| 1455 |
</script> |
| 1456 |
</binding> |
| 1457 |
</key> |
| 1458 |
</key> |
| 1459 |
|
| 1460 |
<key n="119"> |
| 1461 |
<name>w</name> |
| 1462 |
<desc>Wing</desc> |
| 1463 |
<key n="102"> |
| 1464 |
<name>f</name> |
| 1465 |
<desc>Toggle wing fold</desc> |
| 1466 |
<binding> |
| 1467 |
<command>property-toggle</command> |
| 1468 |
<property>/controls/flight/wing-fold</property> |
| 1469 |
</binding> |
| 1470 |
</key> |
| 1471 |
|
| 1472 |
<key n="115"> |
| 1473 |
<name>s</name> |
| 1474 |
<desc>Wing sweep</desc> |
| 1475 |
<key n="901"> |
| 1476 |
<name>%f</name> |
| 1477 |
<desc>Wing sweep = %.3f</desc> |
| 1478 |
<binding> |
| 1479 |
<command>nasal</command> |
| 1480 |
<script>setprop("/controls/flight/wing-sweep", arg[0])</script> |
| 1481 |
</binding> |
| 1482 |
</key> |
| 1483 |
</key> |
| 1484 |
</key> |
| 1485 |
</key> |
| 1486 |
|
| 1487 |
|
| 1488 |
<nasal> |
| 1489 |
<script> |
| 1490 |
var radio_fmt = "/instrumentation/%s[%u]/frequencies/%s-mhz"; |
| 1491 |
|
| 1492 |
var setfreq = func(type, index, which, value) { |
| 1493 |
index = (index >= 1) ? index - 1 : 0; |
| 1494 |
setpropf(radio_fmt, type, index, which, value); |
| 1495 |
} |
| 1496 |
|
| 1497 |
var togglefreq = func(type, index) { |
| 1498 |
index = (index >= 1) ? index - 1 : 0; |
| 1499 |
var sel = sprintf(radio_fmt, type, index, "selected"); |
| 1500 |
var stby = sprintf(radio_fmt, type, index, "standby"); |
| 1501 |
var s = getprop(stby); |
| 1502 |
setprop(stby, getprop(sel)); |
| 1503 |
setprop(sel, s); |
| 1504 |
} |
| 1505 |
|
| 1506 |
var settacan = func(number, letter) { |
| 1507 |
var ch = sprintf("%03u%s", number, letter); |
| 1508 |
var p = "/instrumentation/tacan/frequencies/selected-channel[%u]"; |
| 1509 |
setpropf(p, 1, chr(ch[0])); |
| 1510 |
setpropf(p, 2, chr(ch[1])); |
| 1511 |
setpropf(p, 3, chr(ch[2])); |
| 1512 |
setpropf(p, 4, chr(ch[3])); |
| 1513 |
} |
| 1514 |
</script> |
| 1515 |
</nasal> |
| 1516 |
|
| 1517 |
<key n="114"> |
| 1518 |
<name>r</name> |
| 1519 |
<desc>Radio</desc> |
| 1520 |
|
| 1521 |
<key n="97"> |
| 1522 |
<name>a</name> |
| 1523 |
<desc>ADF</desc> |
| 1524 |
<key n="102"> |
| 1525 |
<name>f</name> |
| 1526 |
<desc>ADF frequency = ? kHz</desc> |
| 1527 |
<key n="902"> |
| 1528 |
<name>%u</name> |
| 1529 |
<desc>ADF frequency = %u kHz</desc> |
| 1530 |
<binding> |
| 1531 |
<command>nasal</command> |
| 1532 |
<script>setprop("/instrumentation/adf[0]/frequencies/selected-khz", arg[0])</script> |
| 1533 |
</binding> |
| 1534 |
</key> |
| 1535 |
</key> |
| 1536 |
</key> |
| 1537 |
|
| 1538 |
<key n="99"> |
| 1539 |
<name>c</name> |
| 1540 |
<desc>Comm</desc> |
| 1541 |
<key n="902"> |
| 1542 |
<name>%u</name> |
| 1543 |
<desc>Comm%u</desc> |
| 1544 |
<key n="102"> |
| 1545 |
<name>f</name> |
| 1546 |
<desc>Comm%u frequency = ? MHz</desc> |
| 1547 |
<key n="37"> |
| 1548 |
<name>%f</name> |
| 1549 |
<desc>Comm%u frequency = %.3f MHz</desc> |
| 1550 |
<binding> |
| 1551 |
<command>nasal</command> |
| 1552 |
<script>setfreq("comm", arg[0], "selected", arg[1])</script> |
| 1553 |
</binding> |
| 1554 |
</key> |
| 1555 |
</key> |
| 1556 |
|
| 1557 |
<key n="115"> |
| 1558 |
<name>s</name> |
| 1559 |
<desc>Comm%u standby frequency = ? MHz</desc> |
| 1560 |
<key n="901"> |
| 1561 |
<name>%f</name> |
| 1562 |
<desc>Comm%u standby frequency = %.3f MHz</desc> |
| 1563 |
<binding> |
| 1564 |
<command>nasal</command> |
| 1565 |
<script>setfreq("comm", arg[0], "standby", arg[1])</script> |
| 1566 |
</binding> |
| 1567 |
</key> |
| 1568 |
</key> |
| 1569 |
|
| 1570 |
<key n="116"> |
| 1571 |
<name>t</name> |
| 1572 |
<desc>Comm%u toggle selected/standby</desc> |
| 1573 |
<binding> |
| 1574 |
<command>nasal</command> |
| 1575 |
<script>togglefreq("comm", arg[0])</script> |
| 1576 |
</binding> |
| 1577 |
</key> |
| 1578 |
</key> |
| 1579 |
</key> |
| 1580 |
|
| 1581 |
<key n="110"> |
| 1582 |
<name>n</name> |
| 1583 |
<desc>Nav</desc> |
| 1584 |
<key n="902"> |
| 1585 |
<name>%u</name> |
| 1586 |
<desc>Nav%u</desc> |
| 1587 |
<key n="102"> |
| 1588 |
<name>f</name> |
| 1589 |
<desc>Nav%u frequency = ? MHz</desc> |
| 1590 |
<key n="901"> |
| 1591 |
<name>%f</name> |
| 1592 |
<desc>Nav%u frequency = %.3f MHz</desc> |
| 1593 |
<binding> |
| 1594 |
<command>nasal</command> |
| 1595 |
<script>setfreq("nav", arg[0], "selected", arg[1])</script> |
| 1596 |
</binding> |
| 1597 |
</key> |
| 1598 |
</key> |
| 1599 |
|
| 1600 |
<key n="115"> |
| 1601 |
<name>s</name> |
| 1602 |
<desc>Nav%u standby frequency = ? MHz</desc> |
| 1603 |
<key n="901"> |
| 1604 |
<name>%f</name> |
| 1605 |
<desc>Nav%u standby frequency = %.3f MHz</desc> |
| 1606 |
<binding> |
| 1607 |
<command>nasal</command> |
| 1608 |
<script>setfreq("nav", arg[0], "standby", arg[1])</script> |
| 1609 |
</binding> |
| 1610 |
</key> |
| 1611 |
</key> |
| 1612 |
|
| 1613 |
<key n="116"> |
| 1614 |
<name>t</name> |
| 1615 |
<desc>Nav%u toggle selected/standby</desc> |
| 1616 |
<binding> |
| 1617 |
<command>nasal</command> |
| 1618 |
<script>togglefreq("nav", arg[0])</script> |
| 1619 |
</binding> |
| 1620 |
</key> |
| 1621 |
</key> |
| 1622 |
</key> |
| 1623 |
|
| 1624 |
<key n="116"> |
| 1625 |
<name>t</name> |
| 1626 |
<desc>TACAN channel = ?</desc> |
| 1627 |
<key n="902"> |
| 1628 |
<name>%3u</name> |
| 1629 |
<desc>TACAN channel = %u</desc> |
| 1630 |
<key n="120"> |
| 1631 |
<name>x</name> |
| 1632 |
<desc>TACAN channel = %uX</desc> |
| 1633 |
<binding> |
| 1634 |
<command>nasal</command> |
| 1635 |
<script>settacan(arg[0], "X")</script> |
| 1636 |
</binding> |
| 1637 |
</key> |
| 1638 |
|
| 1639 |
<key n="121"> |
| 1640 |
<name>y</name> |
| 1641 |
<desc>TACAN channel = %uY</desc> |
| 1642 |
<binding> |
| 1643 |
<command>nasal</command> |
| 1644 |
<script>settacan(arg[0], "Y")</script> |
| 1645 |
</binding> |
| 1646 |
</key> |
| 1647 |
</key> |
| 1648 |
</key> |
| 1649 |
</key> |
| 1650 |
|
| 1651 |
<key n="120"> |
| 1652 |
<name>x</name> |
| 1653 |
<desc>Experimental</desc> |
| 1654 |
|
| 1655 |
</key> |
| 1656 |
|
| 1657 |
<key n="902"> |
| 1658 |
<name>%u</name> |
| 1659 |
<desc>Execute nasal-console tab #%u</desc> |
| 1660 |
<exit/> |
| 1661 |
<binding> |
| 1662 |
<command>nasal</command> |
| 1663 |
<script> |
| 1664 |
fgcommand("nasal", props.Node.new({ |
| 1665 |
module: "__nasal_console", |
| 1666 |
script: getpropf("/sim/gui/dialogs/nasal-console/code[%u]", arg[0]) or "", |
| 1667 |
})); |
| 1668 |
</script> |
| 1669 |
</binding> |
| 1670 |
</key> |
| 1671 |
</PropertyList> |