This repository has been archived on 2021-09-26. You can view files and clone it, but cannot push or open issues or pull requests.
IDG-A32X/AircraftConfig/autopush.xml

298 lines
5.7 KiB
XML
Raw Normal View History

<?xml version="1.0"?>
<!--
AUTOPUSH
Pushback dialog.
Copyright (c) 2018 Autopush authors:
Michael Danilov <mike.d.ft402 -eh- gmail.com>
Joshua Davidson http://github.com/it0uchpods
Merspieler http://github.com/merspieler
Original code (c) FlightGear
Distribute under the terms of GPLv2.
-->
<PropertyList>
<name>autopush</name>
<layout>vbox</layout>
<group>
<layout>hbox</layout>
<text>
<label>Pushback</label>
</text>
<empty>
<stretch>true</stretch>
</empty>
<button>
<halign>right</halign>
<pref-width>16</pref-width>
<pref-height>16</pref-height>
<legend/>
<key>Esc</key>
<binding>
<command>dialog-close</command>
</binding>
</button>
</group>
<hrule/>
<group>
<stretch>true</stretch>
<layout>vbox</layout>
<halign>center</halign>
<valign>top</valign>
<checkbox>
<halign>left</halign>
<label>Connect</label>
<property>/sim/model/pushback/enabled</property>
<live>true</live>
<binding>
<command>dialog-apply</command>
</binding>
</checkbox>
<group>
<layout>table</layout>
<text>
<row>0</row>
<col>0</col>
<label>Steering:</label>
<halign>left</halign>
</text>
<button>
<row>0</row>
<col>1</col>
<pref-width>25</pref-width>
<pref-height>25</pref-height>
<legend>&lt;</legend>
<binding>
<command>property-adjust</command>
<property>/sim/model/pushback/steer-cmd-norm</property>
<min>-1.0</min>
<max>1.0</max>
<step>-0.02</step>
<wrap>false</wrap>
</binding>
</button>
<slider>
<row>0</row>
<col>2</col>
<min>-1.0</min>
<max>1.0</max>
<property>/sim/model/pushback/steer-cmd-norm</property>
<live>true</live>
<binding>
<command>dialog-apply</command>
</binding>
</slider>
<button>
<row>0</row>
<col>3</col>
<pref-width>25</pref-width>
<pref-height>25</pref-height>
<legend>&gt;</legend>
<binding>
<command>property-adjust</command>
<property>/sim/model/pushback/steer-cmd-norm</property>
<min>-1.0</min>
<max>1.0</max>
<step>0.02</step>
<wrap>false</wrap>
</binding>
</button>
<button>
<row>0</row>
<col>4</col>
<pref-width>50</pref-width>
<pref-height>25</pref-height>
<legend>Center</legend>
<binding>
<command>property-assign</command>
<property>/sim/model/pushback/steer-cmd-norm</property>
<value>0</value>
</binding>
</button>
<text>
<row>1</row>
<col>0</col>
<label>Speed:</label>
<halign>left</halign>
</text>
<button>
<row>1</row>
<col>1</col>
<pref-width>25</pref-width>
<pref-height>25</pref-height>
<legend>&lt;</legend>
<binding>
<command>property-adjust</command>
<property>/sim/model/pushback/target-speed-km_h</property>
<min>-25</min>
<max>25</max>
<step>-1</step>
<wrap>false</wrap>
</binding>
</button>
<slider>
<row>1</row>
<col>2</col>
<min>-25</min>
<max>25</max>
<property>/sim/model/pushback/target-speed-km_h</property>
<live>true</live>
<binding>
<command>dialog-apply</command>
</binding>
</slider>
<button>
<row>1</row>
<col>3</col>
<pref-width>25</pref-width>
<pref-height>25</pref-height>
<legend>&gt;</legend>
<binding>
<command>property-adjust</command>
<property>/sim/model/pushback/target-speed-km_h</property>
<min>-25</min>
<max>25</max>
<step>1</step>
<wrap>false</wrap>
</binding>
</button>
<button>
<row>1</row>
<col>4</col>
<pref-width>50</pref-width>
<pref-height>25</pref-height>
<legend>Stop</legend>
<binding>
<command>property-assign</command>
<property>/sim/model/pushback/target-speed-km_h</property>
<value>0</value>
</binding>
</button>
<text>
<row>1</row>
<col>5</col>
<pref-width>16</pref-width>
<property>/sim/model/pushback/target-speed-km_h</property>
<format>%3.0f</format>
<live>true</live>
<halign>right</halign>
</text>
<text>
<row>1</row>
<col>6</col>
<label> km/h</label>
<halign>left</halign>
</text>
</group>
<hrule/>
<group>
<layout>table</layout>
<text>
<row>0</row>
<col>0</col>
<label>Auto push:</label>
<halign>left</halign>
</text>
<button>
<row>0</row>
<col>1</col>
<pref-width>50</pref-width>
<pref-height>25</pref-height>
<legend>Start</legend>
<binding>
<command>nasal</command>
<script>autopush_driver.start();</script>
</binding>
</button>
<button>
<row>0</row>
<col>2</col>
<pref-width>50</pref-width>
<pref-height>25</pref-height>
<legend>Stop</legend>
<binding>
<command>nasal</command>
<script>autopush_driver.stop();</script>
</binding>
</button>
<text>
<row>1</row>
<col>0</col>
<label>Route in advance:</label>
<halign>left</halign>
</text>
<button>
<row>1</row>
<col>1</col>
<pref-width>50</pref-width>
<pref-height>25</pref-height>
<legend>Enter</legend>
<binding>
<command>nasal</command>
<script>autopush_route.enter();</script>
</binding>
</button>
<button>
<row>1</row>
<col>2</col>
<pref-width>50</pref-width>
<pref-height>25</pref-height>
<legend>Done</legend>
<binding>
<command>nasal</command>
<script>autopush_route.done();</script>
</binding>
</button>
<checkbox>
<row>1</row>
<col>3</col>
<label>Show</label>
<property>/sim/model/pushback/route/show</property>
<binding>
<command>dialog-apply</command>
</binding>
</checkbox>
</group>
</group>
</PropertyList>