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/Systems/autopilot-dlg.xml
2017-06-28 15:25:11 -04:00

1121 lines
24 KiB
XML

<?xml version="1.0" encoding="UTF-8" ?>
<!-- IT-AUTOFLIGHT Autopilot Control Dialog -->
<PropertyList>
<name>autopilot</name>
<layout>vbox</layout>
<pref-width>260</pref-width>
<group>
<layout>hbox</layout>
<text>
<halign>left</halign>
<label>IT-AUTOFLIGHT System (A3XX)</label>
</text>
<button>
<halign>right</halign>
<pref-width>20</pref-width>
<pref-height>20</pref-height>
<legend>X</legend>
<key>Esc</key>
<binding>
<command>dialog-close</command>
</binding>
</button>
</group>
<hrule/>
<group>
<layout>hbox</layout>
<button>
<legend>AP1</legend>
<pref-width>55</pref-width>
<binding>
<command>property-toggle</command>
<property>/it-autoflight/input/ap1</property>
</binding>
</button>
<button>
<legend>AP2</legend>
<pref-width>55</pref-width>
<binding>
<command>property-toggle</command>
<property>/it-autoflight/input/ap2</property>
</binding>
</button>
<button>
<legend>FD1</legend>
<pref-width>55</pref-width>
<binding>
<command>property-toggle</command>
<property>/it-autoflight/input/fd1</property>
</binding>
</button>
<button>
<legend>FD2</legend>
<pref-width>55</pref-width>
<binding>
<command>property-toggle</command>
<property>/it-autoflight/input/fd2</property>
</binding>
</button>
</group>
<group>
<layout>vbox</layout>
<group>
<layout>hbox</layout>
<hrule>
<stretch type="bool">true</stretch>
</hrule>
<text>
<label>Flight Modes</label>
</text>
<hrule>
<stretch type="bool">true</stretch>
</hrule>
</group>
<group>
<layout>hbox</layout>
<text>
<border>1</border>
<label>99999</label>
<valign>center</valign>
<property>/modes/pfd/fma/ap-mode</property>
<live>1</live>
</text>
<vrule/>
<text>
<border>1</border>
<label>99999</label>
<valign>center</valign>
<property>/modes/pfd/fma/roll-mode</property>
<live>1</live>
</text>
<vrule/>
<text>
<border>1</border>
<label>99999999</label>
<valign>center</valign>
<property>/modes/pfd/fma/pitch-mode</property>
<live>1</live>
</text>
</group>
<group>
<layout>hbox</layout>
<text>
<label> A/THR</label>
<visible>
<equals>
<property>/it-autoflight/output/athr</property>
<value>1</value>
</equals>
</visible>
</text>
<vrule/>
<text>
<border>1</border>
<label>999</label>
<valign>center</valign>
<property>/modes/pfd/fma/roll-mode-armed</property>
<live>1</live>
</text>
<vrule/>
<text>
<border>1</border>
<label>999</label>
<valign>center</valign>
<property>/modes/pfd/fma/pitch-mode2-armed</property>
<live>1</live>
</text>
<vrule/>
<text>
<border>1</border>
<label>999</label>
<valign>center</valign>
<property>/modes/pfd/fma/pitch-mode-armed</property>
<live>1</live>
</text>
<vrule/>
<text>
<border>1</border>
<label>999999</label>
<valign>center</valign>
<property>/modes/pfd/fma/fd-mode</property>
<live>1</live>
</text>
</group>
<group>
<layout>hbox</layout>
<hrule>
<stretch type="bool">true</stretch>
</hrule>
<text>
<label>Thrust Mode</label>
</text>
<hrule>
<stretch type="bool">true</stretch>
</hrule>
</group>
<group>
<layout>hbox</layout>
<button>
<legend>Push</legend>
<pref-width>65</pref-width>
<binding>
<command>nasal</command>
<script>
libraries.mcpSPDKnbPush();
</script>
</binding>
</button>
<button>
<legend>Pull</legend>
<pref-width>65</pref-width>
<binding>
<command>nasal</command>
<script>
libraries.mcpSPDKnbPull();
</script>
</binding>
</button>
<button>
<legend>Speed/Mach</legend>
<binding>
<command>property-cycle</command>
<property>/it-autoflight/input/kts-mach</property>
<value>0</value>
<value>1</value>
</binding>
</button>
</group>
<group>
<layout>table</layout>
<text>
<row>0</row>
<col>0</col>
<label>SPD: </label>
</text>
<button>
<row>0</row>
<col>1</col>
<pref-width>25</pref-width>
<pref-height>25</pref-height>
<legend>&lt;&lt;</legend>
<enable>
<and>
<equals>
<property>/it-autoflight/input/kts-mach</property>
<value>0</value>
</equals>
<equals>
<property>/it-autoflight/input/spd-managed</property>
<value>0</value>
</equals>
</and>
</enable>
<binding>
<command>property-adjust</command>
<property>/it-autoflight/input/spd-kts</property>
<min>100</min>
<max>360</max>
<step>-10</step>
<wrap>false</wrap>
</binding>
</button>
<button>
<row>0</row>
<col>2</col>
<pref-width>25</pref-width>
<pref-height>25</pref-height>
<legend>&lt;</legend>
<enable>
<and>
<equals>
<property>/it-autoflight/input/kts-mach</property>
<value>0</value>
</equals>
<equals>
<property>/it-autoflight/input/spd-managed</property>
<value>0</value>
</equals>
</and>
</enable>
<binding>
<command>property-adjust</command>
<property>/it-autoflight/input/spd-kts</property>
<min>100</min>
<max>360</max>
<step>-1</step>
<wrap>false</wrap>
</binding>
</button>
<input>
<row>0</row>
<col>3</col>
<pref-width>50</pref-width>
<property>/it-autoflight/input/spd-kts</property>
<live type="bool">true</live>
<enable>
<and>
<equals>
<property>/it-autoflight/input/kts-mach</property>
<value>0</value>
</equals>
<equals>
<property>/it-autoflight/input/spd-managed</property>
<value>0</value>
</equals>
</and>
</enable>
<binding>
<command>dialog-apply</command>
</binding>
</input>
<button>
<row>0</row>
<col>4</col>
<pref-width>25</pref-width>
<pref-height>25</pref-height>
<legend>&gt;</legend>
<enable>
<and>
<equals>
<property>/it-autoflight/input/kts-mach</property>
<value>0</value>
</equals>
<equals>
<property>/it-autoflight/input/spd-managed</property>
<value>0</value>
</equals>
</and>
</enable>
<binding>
<command>property-adjust</command>
<property>/it-autoflight/input/spd-kts</property>
<min>100</min>
<max>360</max>
<step>1</step>
<wrap>false</wrap>
</binding>
</button>
<button>
<row>0</row>
<col>5</col>
<halign>left</halign>
<pref-width>25</pref-width>
<pref-height>25</pref-height>
<legend>&gt;&gt;</legend>
<enable>
<and>
<equals>
<property>/it-autoflight/input/kts-mach</property>
<value>0</value>
</equals>
<equals>
<property>/it-autoflight/input/spd-managed</property>
<value>0</value>
</equals>
</and>
</enable>
<binding>
<command>property-adjust</command>
<property>/it-autoflight/input/spd-kts</property>
<min>100</min>
<max>360</max>
<step>10</step>
<wrap>false</wrap>
</binding>
</button>
</group>
<group>
<layout>table</layout>
<text>
<row>0</row>
<col>0</col>
<label>Mach:</label>
</text>
<button>
<row>0</row>
<col>1</col>
<pref-width>25</pref-width>
<pref-height>25</pref-height>
<legend>&lt;&lt;</legend>
<enable>
<and>
<equals>
<property>/it-autoflight/input/kts-mach</property>
<value>1</value>
</equals>
<equals>
<property>/it-autoflight/input/spd-managed</property>
<value>0</value>
</equals>
</and>
</enable>
<binding>
<command>property-adjust</command>
<property>/it-autoflight/input/spd-mach</property>
<min>0.50</min>
<max>0.95</max>
<step>-0.01</step>
<wrap>false</wrap>
</binding>
</button>
<button>
<row>0</row>
<col>2</col>
<pref-width>25</pref-width>
<pref-height>25</pref-height>
<legend>&lt;</legend>
<enable>
<and>
<equals>
<property>/it-autoflight/input/kts-mach</property>
<value>1</value>
</equals>
<equals>
<property>/it-autoflight/input/spd-managed</property>
<value>0</value>
</equals>
</and>
</enable>
<binding>
<command>property-adjust</command>
<property>/it-autoflight/input/spd-mach</property>
<min>0.50</min>
<max>0.95</max>
<step>-0.001</step>
<wrap>false</wrap>
</binding>
</button>
<input>
<row>0</row>
<col>3</col>
<pref-width>50</pref-width>
<property>/it-autoflight/input/spd-mach</property>
<live type="bool">true</live>
<enable>
<and>
<equals>
<property>/it-autoflight/input/kts-mach</property>
<value>1</value>
</equals>
<equals>
<property>/it-autoflight/input/spd-managed</property>
<value>0</value>
</equals>
</and>
</enable>
<binding>
<command>dialog-apply</command>
</binding>
</input>
<button>
<row>0</row>
<col>4</col>
<pref-width>25</pref-width>
<pref-height>25</pref-height>
<legend>&gt;</legend>
<enable>
<and>
<equals>
<property>/it-autoflight/input/kts-mach</property>
<value>1</value>
</equals>
<equals>
<property>/it-autoflight/input/spd-managed</property>
<value>0</value>
</equals>
</and>
</enable>
<binding>
<command>property-adjust</command>
<property>/it-autoflight/input/spd-mach</property>
<min>0.50</min>
<max>0.95</max>
<step>0.001</step>
<wrap>false</wrap>
</binding>
</button>
<button>
<row>0</row>
<col>5</col>
<halign>left</halign>
<pref-width>25</pref-width>
<pref-height>25</pref-height>
<legend>&gt;&gt;</legend>
<enable>
<and>
<equals>
<property>/it-autoflight/input/kts-mach</property>
<value>1</value>
</equals>
<equals>
<property>/it-autoflight/input/spd-managed</property>
<value>0</value>
</equals>
</and>
</enable>
<binding>
<command>property-adjust</command>
<property>/it-autoflight/input/spd-mach</property>
<min>0.50</min>
<max>0.95</max>
<step>0.01</step>
<wrap>false</wrap>
</binding>
</button>
</group>
<group>
<layout>hbox</layout>
<hrule>
<stretch type="bool">true</stretch>
</hrule>
<text>
<label>Lateral Mode</label>
</text>
<hrule>
<stretch type="bool">true</stretch>
</hrule>
</group>
<group>
<layout>hbox</layout>
<button>
<legend>Push</legend>
<pref-width>75</pref-width>
<binding>
<command>nasal</command>
<script>libraries.mcpHDGKnbPush();</script>
</binding>
</button>
<button>
<legend>Pull</legend>
<pref-width>75</pref-width>
<binding>
<command>nasal</command>
<script>libraries.mcpHDGKnbPull();</script>
</binding>
</button>
<button>
<legend>LOC</legend>
<pref-width>75</pref-width>
<binding>
<command>property-assign</command>
<property>/it-autoflight/input/lat</property>
<value>2</value>
</binding>
</button>
</group>
<group>
<layout>table</layout>
<text>
<row>0</row>
<col>0</col>
<label>HDG:</label>
</text>
<button>
<row>0</row>
<col>1</col>
<pref-width>25</pref-width>
<pref-height>25</pref-height>
<legend>&lt;&lt;</legend>
<binding>
<command>property-adjust</command>
<property>/it-autoflight/input/hdg</property>
<min>1</min>
<max>361</max>
<step>-10</step>
<wrap>true</wrap>
</binding>
</button>
<button>
<row>0</row>
<col>2</col>
<pref-width>25</pref-width>
<pref-height>25</pref-height>
<legend>&lt;</legend>
<binding>
<command>property-adjust</command>
<property>/it-autoflight/input/hdg</property>
<min>1</min>
<max>361</max>
<step>-1</step>
<wrap>true</wrap>
</binding>
</button>
<input>
<row>0</row>
<col>3</col>
<pref-width>40</pref-width>
<property>/it-autoflight/input/hdg</property>
<live type="bool">true</live>
<binding>
<command>dialog-apply</command>
</binding>
</input>
<button>
<row>0</row>
<col>4</col>
<pref-width>25</pref-width>
<pref-height>25</pref-height>
<legend>&gt;</legend>
<binding>
<command>property-adjust</command>
<property>/it-autoflight/input/hdg</property>
<min>1</min>
<max>361</max>
<step>1</step>
<wrap>true</wrap>
</binding>
</button>
<button>
<row>0</row>
<col>5</col>
<halign>left</halign>
<pref-width>25</pref-width>
<pref-height>25</pref-height>
<legend>&gt;&gt;</legend>
<binding>
<command>property-adjust</command>
<property>/it-autoflight/input/hdg</property>
<min>1</min>
<max>361</max>
<step>10</step>
<wrap>true</wrap>
</binding>
</button>
</group>
<group>
<layout>hbox</layout>
<hrule>
<stretch type="bool">true</stretch>
</hrule>
<text>
<label>Vertical Mode</label>
</text>
<hrule>
<stretch type="bool">true</stretch>
</hrule>
</group>
<group>
<layout>hbox</layout>
<button>
<legend>ALT Push</legend>
<pref-width>75</pref-width>
<binding>
<command>property-assign</command>
<property>/it-autoflight/input/vert</property>
<value>8</value>
</binding>
</button>
<button>
<legend>ALT Pull</legend>
<pref-width>75</pref-width>
<binding>
<command>property-assign</command>
<property>/it-autoflight/input/vert</property>
<value>4</value>
</binding>
</button>
<button>
<pref-width>75</pref-width>
<legend>EXPED</legend>
<enable>
<property>/systems/unused/unused-button</property>
</enable>
<binding>
<command>property-assign</command>
<property>/systems/unused/unused-button</property>
<value>0</value>
</binding>
</button>
</group>
<group>
<layout>hbox</layout>
<button>
<legend>V/S Push</legend>
<pref-width>75</pref-width>
<binding>
<condition>
<equals>
<property>/it-autoflight/custom/trk-fpa</property>
<value>0</value>
</equals>
</condition>
<command>property-assign</command>
<property>/it-autoflight/input/vert</property>
<value>1</value>
</binding>
<binding>
<condition>
<equals>
<property>/it-autoflight/custom/trk-fpa</property>
<value>0</value>
</equals>
</condition>
<command>property-assign</command>
<property>/it-autoflight/input/vs</property>
<value>0</value>
</binding>
<binding>
<condition>
<equals>
<property>/it-autoflight/custom/trk-fpa</property>
<value>1</value>
</equals>
</condition>
<command>property-assign</command>
<property>/it-autoflight/input/vert</property>
<value>5</value>
</binding>
<binding>
<condition>
<equals>
<property>/it-autoflight/custom/trk-fpa</property>
<value>1</value>
</equals>
</condition>
<command>property-assign</command>
<property>/it-autoflight/input/fpa</property>
<value>0.0</value>
</binding>
</button>
<button>
<legend>V/S Pull</legend>
<pref-width>75</pref-width>
<binding>
<command>nasal</command>
<script>
if (getprop("/it-autoflight/custom/trk-fpa") == 0) {
setprop("/it-autoflight/input/vert", 1);
} else if (getprop("/it-autoflight/custom/trk-fpa") == 1) {
setprop("/it-autoflight/input/vert", 5);
}
</script>
</binding>
</button>
<button>
<pref-width>75</pref-width>
<legend>APPR</legend>
<binding>
<command>property-assign</command>
<property>/it-autoflight/input/vert</property>
<value>2</value>
</binding>
</button>
</group>
<group>
<layout>table</layout>
<text>
<row>0</row>
<col>0</col>
<label>ALT: </label>
</text>
<button>
<row>0</row>
<col>1</col>
<pref-width>25</pref-width>
<pref-height>25</pref-height>
<legend>&lt;&lt;</legend>
<binding>
<command>property-adjust</command>
<property>/it-autoflight/input/alt</property>
<min>0</min>
<max>50000</max>
<step>-1000</step>
<wrap>false</wrap>
</binding>
</button>
<button>
<row>0</row>
<col>2</col>
<pref-width>25</pref-width>
<pref-height>25</pref-height>
<legend>&lt;</legend>
<binding>
<command>property-adjust</command>
<property>/it-autoflight/input/alt</property>
<min>0</min>
<max>50000</max>
<step>-100</step>
<wrap>false</wrap>
</binding>
</button>
<input>
<row>0</row>
<col>3</col>
<pref-width>55</pref-width>
<property>/it-autoflight/input/alt</property>
<live type="bool">true</live>
<binding>
<command>dialog-apply</command>
</binding>
</input>
<button>
<row>0</row>
<col>4</col>
<pref-width>25</pref-width>
<pref-height>25</pref-height>
<legend>&gt;</legend>
<binding>
<command>property-adjust</command>
<property>/it-autoflight/input/alt</property>
<min>0</min>
<max>50000</max>
<step>100</step>
<wrap>false</wrap>
</binding>
</button>
<button>
<row>0</row>
<col>5</col>
<halign>left</halign>
<pref-width>25</pref-width>
<pref-height>25</pref-height>
<legend>&gt;&gt;</legend>
<binding>
<command>property-adjust</command>
<property>/it-autoflight/input/alt</property>
<min>0</min>
<max>50000</max>
<step>1000</step>
<wrap>false</wrap>
</binding>
</button>
</group>
<group>
<layout>table</layout>
<text>
<row>0</row>
<col>0</col>
<label>V/S: </label>
</text>
<button>
<row>0</row>
<col>1</col>
<pref-width>25</pref-width>
<pref-height>25</pref-height>
<legend>&lt;&lt;</legend>
<enable>
<equals>
<property>/it-autoflight/output/vert</property>
<value>1</value>
</equals>
</enable>
<binding>
<command>property-adjust</command>
<property>/it-autoflight/input/vs</property>
<min>-6000</min>
<max>6000</max>
<step>-1000</step>
<wrap>false</wrap>
</binding>
</button>
<button>
<row>0</row>
<col>2</col>
<pref-width>25</pref-width>
<pref-height>25</pref-height>
<legend>&lt;</legend>
<enable>
<equals>
<property>/it-autoflight/output/vert</property>
<value>1</value>
</equals>
</enable>
<binding>
<command>property-adjust</command>
<property>/it-autoflight/input/vs</property>
<min>-6000</min>
<max>6000</max>
<step>-100</step>
<wrap>false</wrap>
</binding>
</button>
<input>
<row>0</row>
<col>3</col>
<pref-width>55</pref-width>
<property>/it-autoflight/input/vs</property>
<live type="bool">true</live>
<enable>
<equals>
<property>/it-autoflight/output/vert</property>
<value>1</value>
</equals>
</enable>
<binding>
<command>dialog-apply</command>
</binding>
</input>
<button>
<row>0</row>
<col>4</col>
<pref-width>25</pref-width>
<pref-height>25</pref-height>
<legend>&gt;</legend>
<enable>
<equals>
<property>/it-autoflight/output/vert</property>
<value>1</value>
</equals>
</enable>
<binding>
<command>property-adjust</command>
<property>/it-autoflight/input/vs</property>
<min>-6000</min>
<max>6000</max>
<step>100</step>
<wrap>false</wrap>
</binding>
</button>
<button>
<row>0</row>
<col>5</col>
<halign>left</halign>
<pref-width>25</pref-width>
<pref-height>25</pref-height>
<legend>&gt;&gt;</legend>
<enable>
<equals>
<property>/it-autoflight/output/vert</property>
<value>1</value>
</equals>
</enable>
<binding>
<command>property-adjust</command>
<property>/it-autoflight/input/vs</property>
<min>-6000</min>
<max>6000</max>
<step>1000</step>
<wrap>false</wrap>
</binding>
</button>
</group>
<group>
<layout>table</layout>
<text>
<row>0</row>
<col>0</col>
<label>FPA:</label>
</text>
<button>
<row>0</row>
<col>1</col>
<pref-width>25</pref-width>
<pref-height>25</pref-height>
<legend>&lt;&lt;</legend>
<enable>
<equals>
<property>/it-autoflight/output/vert</property>
<value>5</value>
</equals>
</enable>
<binding>
<command>property-adjust</command>
<property>/it-autoflight/input/fpa</property>
<min>-20.9</min>
<max>20.9</max>
<step>-1</step>
<wrap>false</wrap>
</binding>
</button>
<button>
<row>0</row>
<col>2</col>
<pref-width>25</pref-width>
<pref-height>25</pref-height>
<legend>&lt;</legend>
<enable>
<equals>
<property>/it-autoflight/output/vert</property>
<value>5</value>
</equals>
</enable>
<binding>
<command>property-adjust</command>
<property>/it-autoflight/input/fpa</property>
<min>-20.9</min>
<max>20.9</max>
<step>-0.1</step>
<wrap>false</wrap>
</binding>
</button>
<input>
<row>0</row>
<col>3</col>
<pref-width>55</pref-width>
<property>/it-autoflight/input/fpa</property>
<live type="bool">true</live>
<enable>
<equals>
<property>/it-autoflight/output/vert</property>
<value>5</value>
</equals>
</enable>
<binding>
<command>dialog-apply</command>
</binding>
</input>
<button>
<row>0</row>
<col>4</col>
<pref-width>25</pref-width>
<pref-height>25</pref-height>
<legend>&gt;</legend>
<enable>
<equals>
<property>/it-autoflight/output/vert</property>
<value>5</value>
</equals>
</enable>
<binding>
<command>property-adjust</command>
<property>/it-autoflight/input/fpa</property>
<min>-20.9</min>
<max>20.9</max>
<step>0.1</step>
<wrap>false</wrap>
</binding>
</button>
<button>
<row>0</row>
<col>5</col>
<halign>left</halign>
<pref-width>25</pref-width>
<pref-height>25</pref-height>
<legend>&gt;&gt;</legend>
<enable>
<equals>
<property>/it-autoflight/output/vert</property>
<value>5</value>
</equals>
</enable>
<binding>
<command>property-adjust</command>
<property>/it-autoflight/input/fpa</property>
<min>-20.9</min>
<max>20.9</max>
<step>1</step>
<wrap>false</wrap>
</binding>
</button>
</group>
<group>
<layout>hbox</layout>
<hrule>
<stretch type="bool">true</stretch>
</hrule>
<text>
<label>Other Mode</label>
</text>
<hrule>
<stretch type="bool">true</stretch>
</hrule>
</group>
<group>
<layout>hbox</layout>
<text>
<label>HDG VS</label>
<visible>
<equals>
<property>/it-autoflight/custom/trk-fpa</property>
<value>0</value>
</equals>
</visible>
</text>
<button>
<legend>HDG VS/TRK FPA</legend>
<pref-width>120</pref-width>
<binding>
<command>nasal</command>
<script>
fmgc.toggle_trkfpa();
</script>
</binding>
</button>
<text>
<label>TRK FPA</label>
<visible>
<equals>
<property>/it-autoflight/custom/trk-fpa</property>
<value>1</value>
</equals>
</visible>
</text>
</group>
</group>
</PropertyList>