1
0
Fork 0

GPS: updated generic GPS dialog, with OBS course selection dial.

This commit is contained in:
jmt 2010-03-25 16:42:37 +00:00
parent d8f6ccf49b
commit 26607856c6

View file

@ -1,11 +1,8 @@
<?xml version="1.0"?>
<PropertyList>
<width>620</width>
<height>430</height>
<modal>false</modal>
<nasal>
<open>
var gps = props.globals.getNode("/instrumentation/gps/", 1);
@ -25,18 +22,15 @@
var slaved = props.globals.getNode("/instrumentation/nav[0]/slaved-to-gps", 1);
</open>
</nasal>
<name>gps</name>
<layout>vbox</layout>
<text><label>GPS</label></text>
<text>
<label>GPS</label>
</text>
<hrule/>
<!-- show current state -->
<group>
<layout>table</layout>
<text>
<row>0</row>
<col>0</col>
@ -45,7 +39,6 @@
<property>/instrumentation/gps/mode</property>
<live>true</live>
</text>
<text>
<visible>
<equals>
@ -53,7 +46,6 @@
<value>leg</value>
</equals>
</visible>
<row>0</row>
<col>1</col>
<label>MMM</label>
@ -61,23 +53,22 @@
<property>/autopilot/route-manager/current-wp</property>
<live>true</live>
</text>
<text>
<visible>
<not>
<equals>
<property>/instrumentation/gps/mode</property>
<value>obs</value>
<value>leg</value>
</equals>
</not>
</visible>
<row>0</row>
<col>1</col>
<label>MMM</label>
<format>Selected Course: %5.1f*</format>
<property>/instrumentation/gps/selected-course-deg</property>
<format>Desired Course: %5.1f*</format>
<property>/instrumentation/gps/desired-course-deg</property>
<live>true</live>
</text>
<text>
<row>0</row>
<col>2</col>
@ -86,7 +77,6 @@
<property>/instrumentation/gps/wp/wp[1]/course-error-nm</property>
<live>true</live>
</text>
<text>
<row>1</row>
<col>0</col>
@ -111,7 +101,6 @@
<property>/instrumentation/gps/indicated-altitude-ft</property>
<live>true</live>
</text>
<text>
<row>2</row>
<col>0</col>
@ -136,7 +125,6 @@
<property>/instrumentation/gps/indicated-vertical-speed</property>
<live>true</live>
</text>
<text>
<row>3</row>
<col>0</col>
@ -145,7 +133,6 @@
<property>/instrumentation/gps/odometer</property>
<live>true</live>
</text>
<text>
<row>3</row>
<col>1</col>
@ -154,7 +141,6 @@
<property>/instrumentation/gps/raim</property>
<live>true</live>
</text>
<!-- mode dependent properties -->
<text>
<row>4</row>
@ -164,7 +150,6 @@
<property>/instrumentation/gps/wp/wp[1]/ID</property>
<live>true</live>
</text>
<text>
<row>4</row>
<col>1</col>
@ -174,7 +159,6 @@
<property>/instrumentation/gps/wp/wp[1]/name</property>
<live>true</live>
</text>
<text>
<row>5</row>
<col>0</col>
@ -199,7 +183,6 @@
<property>/instrumentation/gps/wp/wp[1]/altitude-ft</property>
<live>true</live>
</text>
<!-- distance / bearing info -->
<text>
<row>6</row>
@ -225,7 +208,6 @@
<property>/instrumentation/gps/wp/wp[1]/TTW</property>
<live>true</live>
</text>
<text>
<visible>
<equals>
@ -233,7 +215,6 @@
<value>leg</value>
</equals>
</visible>
<row>7</row>
<col>0</col>
<label>MMMMMM</label>
@ -241,7 +222,6 @@
<property>/instrumentation/gps/wp/leg-mag-course-deg</property>
<live>true</live>
</text>
<text>
<visible>
<equals>
@ -249,7 +229,6 @@
<value>leg</value>
</equals>
</visible>
<row>7</row>
<col>1</col>
<label>MMMMMM</label>
@ -257,7 +236,6 @@
<property>/instrumentation/gps/wp/leg-distance-nm</property>
<live>true</live>
</text>
<text>
<visible>
<equals>
@ -266,12 +244,10 @@
</equals>
<property>/instrumentation/gps/to-flag</property>
</visible>
<row>7</row>
<col>0</col>
<label>TO</label>
</text>
<text>
<visible>
<equals>
@ -280,26 +256,20 @@
</equals>
<property>/instrumentation/gps/from-flag</property>
</visible>
<row>7</row>
<col>0</col>
<label>FROM</label>
</text>
</group>
<hrule/>
<!-- ident text field, type combo, next/prev paging buttons
nearest and search buttons
-->
<group>
<layout>hbox</layout>
<valign>fill</valign>
<group>
<layout>vbox</layout>
<group>
<layout>hbox</layout>
<valign>fill</valign>
@ -322,8 +292,6 @@
</binding>
</combo>
</group>
<group>
<layout>hbox</layout>
<valign>fill</valign>
@ -343,7 +311,6 @@
</binding>
</input>
</group>
<group>
<layout>hbox</layout>
<valign>fill</valign>
@ -357,7 +324,6 @@
</script>
</binding>
</button>
<button>
<legend>Search Names</legend>
<binding>
@ -368,7 +334,6 @@
</script>
</binding>
</button>
<button>
<legend>Nrst</legend>
<binding>
@ -385,12 +350,10 @@
</script>
</binding>
</button>
<button>
<enable>
<property>/autopilot/route-manager/active</property>
</enable>
<legend>Actv RTE WPT</legend>
<binding>
<command>nasal</command>
@ -400,25 +363,17 @@
</script>
</binding>
</button>
<empty><stretch>true</stretch></empty>
<empty>
<stretch>true</stretch>
</empty>
</group>
</group>
<vrule/>
<group>
<visible>
<property>/instrumentation/gps/scratch/valid</property>
</visible>
<layout>table</layout>
<text>
<row>0</row>
<col>0</col>
@ -427,7 +382,6 @@
<property>/instrumentation/gps/scratch/ident</property>
<live>true</live>
</text>
<text>
<row>0</row>
<col>1</col>
@ -437,7 +391,6 @@
<property>/instrumentation/gps/scratch/name</property>
<live>true</live>
</text>
<text>
<row>1</row>
<col>0</col>
@ -462,7 +415,6 @@
<property>/instrumentation/gps/scratch/altitude-ft</property>
<live>true</live>
</text>
<!-- distance / bearing info -->
<text>
<row>2</row>
@ -480,7 +432,6 @@
<property>/instrumentation/gps/scratch/distance-nm</property>
<live>true</live>
</text>
<!-- navaid info -->
<text>
<visible>
@ -489,7 +440,6 @@
<value>vor</value>
</equals>
</visible>
<row>3</row>
<col>0</col>
<label>MMMMMM</label>
@ -497,7 +447,6 @@
<property>/instrumentation/gps/scratch/frequency-mhz</property>
<live>true</live>
</text>
<text>
<visible>
<equals>
@ -505,7 +454,6 @@
<value>ndb</value>
</equals>
</visible>
<row>3</row>
<col>0</col>
<label>MMMMMM</label>
@ -513,8 +461,6 @@
<property>/instrumentation/gps/scratch/frequency-khz</property>
<live>true</live>
</text>
<!-- prev/next buttons -->
<button>
<enable>
@ -523,7 +469,6 @@
<value>0</value>
</greater-than>
</enable>
<row>5</row>
<col>0</col>
<legend>Prev</legend>
@ -537,7 +482,6 @@
<enable>
<property>/instrumentation/gps/scratch/has-next</property>
</enable>
<row>5</row>
<col>1</col>
<legend>Next</legend>
@ -547,19 +491,13 @@
<script>cmd.setValue("next")</script>
</binding>
</button>
</group>
</group>
<hrule/>
<group>
<layout>hbox</layout>
<halign>fill</halign>
<default-padding>6</default-padding>
<button>
<legend>LEG</legend>
<equal>true</equal>
@ -568,15 +506,6 @@
<script>cmd.setValue("leg")</script>
</binding>
</button>
<button>
<legend>OBS</legend>
<binding>
<command>nasal</command>
<script>cmd.setValue("obs")</script>
</binding>
</button>
<button>
<legend>DTO</legend>
<binding>
@ -584,18 +513,55 @@
<script>cmd.setValue("direct")</script>
</binding>
</button>
<button>
<legend>OBS</legend>
<binding>
<command>nasal</command>
<script>cmd.setValue("obs")</script>
</binding>
</button>
<text>
<visible>
<equals>
<property>/instrumentation/gps/mode</property>
<value>obs</value>
</equals>
</visible>
<pref-width>100</pref-width>
<label>MMM</label>
<format>Selected Course: %03d*</format>
<property>/instrumentation/gps/selected-course-deg</property>
<live>true</live>
</text>
<dial>
<visible>
<equals>
<property>/instrumentation/gps/mode</property>
<value>obs</value>
</equals>
</visible>
<pref-width>30</pref-width>
<pref-height>30</pref-height>
<wrap>true</wrap>
<min>0</min>
<max>359</max>
<stretch>true</stretch>
<property>/instrumentation/gps/selected-course-deg</property>
<binding>
<command>dialog-apply</command>
</binding>
</dial>
<empty>
<stretch>true</stretch>
</empty>
<checkbox>
<halign>left</halign>
<label>NAV Slave</label>
<label>NAV1 Slave</label>
<property>/instrumentation/nav[0]/slaved-to-gps</property>
<binding>
<command>dialog-apply</command>
</binding>
</checkbox>
<empty><stretch>true</stretch></empty>
<button>
<legend>Close</legend>
<default>true</default>
@ -605,7 +571,4 @@
</binding>
</button>
</group>
</PropertyList>