helicopter_pushback.xml 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. <?xml version="1.0"?>
  2. <PropertyList>
  3. <name>pushback</name>
  4. <layout>vbox</layout>
  5. <nasal>
  6. <open>
  7. var pushback_position = aircraft.door.new("sim/model/pushback", 10.0);
  8. pushback_position.setpos(pushback_position.getpos());
  9. props.globals.getNode("/sim/model/pushback/enabled", 1 ).setBoolValue(1);
  10. props.globals.initNode("/sim/model/pushback/target-speed-fps", 0.0 );
  11. </open>
  12. <close>
  13. pushback_position.setpos(0);
  14. setprop("/sim/model/pushback/enabled", 0 );
  15. setprop("/sim/model/pushback/target-speed-fps", 0 );
  16. setprop("/sim/model/pushback/target-speed-fps-y", 0 );
  17. setprop("/sim/model/pushback/force", 0);
  18. </close>
  19. </nasal>
  20. <group>
  21. <layout>hbox</layout>
  22. <text>
  23. <label>Pushback</label>
  24. </text>
  25. <empty>
  26. <stretch>true</stretch>
  27. </empty>
  28. <button>
  29. <legend/>
  30. <key>Esc</key>
  31. <pref-width>16</pref-width>
  32. <pref-height>16</pref-height>
  33. <border>2</border>
  34. <binding>
  35. <command>dialog-close</command>
  36. </binding>
  37. </button>
  38. </group>
  39. <hrule/>
  40. <group>
  41. <stretch>true</stretch>
  42. <layout>vbox</layout>
  43. <halign>center</halign>
  44. <valign>top</valign>
  45. <checkbox>
  46. <halign>left</halign>
  47. <label>(Dis)Connect pushback</label>
  48. <property>/sim/model/pushback/position-norm</property>
  49. <binding>
  50. <command>nasal</command>
  51. <script>pushback_position.toggle();</script>
  52. </binding>
  53. </checkbox>
  54. <group>
  55. <layout>hbox</layout>
  56. <text>
  57. <label>Speed</label>
  58. </text>
  59. <slider>
  60. <row>0</row>
  61. <col>2</col>
  62. <min>-10</min> <!-- +/- 15kts -->
  63. <max>10</max>
  64. <property>/sim/model/pushback/target-speed-fps</property>
  65. <binding>
  66. <command>dialog-apply</command>
  67. </binding>
  68. </slider>
  69. <text>
  70. <pref-width>16</pref-width>
  71. <property>/sim/model/pushback/target-speed-fps</property>
  72. <format>%2.0f</format>
  73. <live>true</live>
  74. </text>
  75. <text>
  76. <label>fps</label>
  77. </text>
  78. </group>
  79. <group>
  80. <layout>hbox</layout>
  81. <text>
  82. <label>Turn Speed</label>
  83. </text>
  84. <slider>
  85. <row>0</row>
  86. <col>2</col>
  87. <min>-.5</min> <!-- +/- 15kts -->
  88. <max>.5</max>
  89. <property>/sim/model/pushback/target-speed-fps-y</property>
  90. <binding>
  91. <command>dialog-apply</command>
  92. </binding>
  93. </slider>
  94. <text>
  95. <pref-width>16</pref-width>
  96. <property>/sim/model/pushback/target-speed-fps-y</property>
  97. <format>%2.0f</format>
  98. <live>true</live>
  99. </text>
  100. <text>
  101. <label>fps</label>
  102. </text>
  103. </group>
  104. </group> </PropertyList>