From 4bf0e50651fe6371878cf14906bac7472f40ac15 Mon Sep 17 00:00:00 2001 From: jimw <jimw> Date: Sun, 21 Mar 2004 22:23:41 +0000 Subject: [PATCH] Add vertical speed hold to autopilot dialog --- gui/dialogs/autopilot.xml | 67 ++++++++++++++++++++++++++++----------- 1 file changed, 49 insertions(+), 18 deletions(-) diff --git a/gui/dialogs/autopilot.xml b/gui/dialogs/autopilot.xml index 7c182ded0..219022e2e 100644 --- a/gui/dialogs/autopilot.xml +++ b/gui/dialogs/autopilot.xml @@ -4,12 +4,12 @@ <name>autopilot</name> <width>500</width> - <height>550</height> + <height>580</height> <modal>false</modal> <text> <x>10</x> - <y>520</y> + <y>550</y> <label>AutoPilot Settings</label> </text> @@ -17,7 +17,7 @@ <text> <x>10</x> - <y>480</y> + <y>510</y> <label>Heading Modes:</label> </text> @@ -25,7 +25,7 @@ <input> <name>heading-modes</name> <x>150</x> - <y>480</y> + <y>510</y> <width>150</width> <height>25</height> <property>/autopilot/locks/heading</property> @@ -34,7 +34,7 @@ <button> <x>310</x> - <y>480</y> + <y>510</y> <legend>Deactivate</legend> <binding> <command>nasal</command> @@ -47,13 +47,13 @@ <text> <x>10</x> - <y>450</y> + <y>480</y> <label>Wing Leveler:</label> </text> <button> <x>310</x> - <y>450</y> + <y>480</y> <legend>Activate</legend> <binding> <command>nasal</command> @@ -66,14 +66,14 @@ <text> <x>10</x> - <y>420</y> + <y>450</y> <label>Heading Bug:</label> </text> <input> <name>heading-bug</name> <x>150</x> - <y>420</y> + <y>450</y> <width>150</width> <height>25</height> <property>/autopilot/settings/heading-bug-deg</property> @@ -81,7 +81,7 @@ <button> <x>310</x> - <y>420</y> + <y>450</y> <legend>Activate</legend> <binding> <command>nasal</command> @@ -97,14 +97,14 @@ <text> <x>10</x> - <y>390</y> + <y>420</y> <label>True Heading:</label> </text> <input> <name>true-heading</name> <x>150</x> - <y>390</y> + <y>420</y> <width>150</width> <height>25</height> <property>/autopilot/settings/true-heading-deg</property> @@ -112,7 +112,7 @@ <button> <x>310</x> - <y>390</y> + <y>420</y> <legend>Activate</legend> <binding> <command>nasal</command> @@ -128,13 +128,13 @@ <text> <x>10</x> - <y>360</y> + <y>390</y> <label>NAV1 CDI Hold:</label> </text> <button> <x>310</x> - <y>360</y> + <y>390</y> <legend>Activate</legend> <binding> <command>nasal</command> @@ -149,7 +149,7 @@ <text> <x>10</x> - <y>320</y> + <y>350</y> <label>Pitch/Altitude Modes:</label> </text> @@ -157,7 +157,7 @@ <input> <name>pitch-modes</name> <x>150</x> - <y>320</y> + <y>350</y> <width>150</width> <height>25</height> <property>/autopilot/locks/heading</property> @@ -166,7 +166,7 @@ <button> <x>310</x> - <y>320</y> + <y>350</y> <legend>Deactivate</legend> <binding> <command>nasal</command> @@ -177,6 +177,37 @@ </binding> </button> + <text> + <x>10</x> + <y>320</y> + <label>Vertical Speed:</label> + </text> + + <input> + <name>vertical-speed-fpm</name> + <x>150</x> + <y>320</y> + <width>150</width> + <height>25</height> + <property>/autopilot/settings/vertical-speed-fpm</property> + </input> + + <button> + <x>310</x> + <y>320</y> + <legend>Activate</legend> + <binding> + <command>nasal</command> + <script> + node = props.globals.getNode("/autopilot/locks/altitude", 1); + node.setValue( "vertical-speed-hold" ); + </script> + </binding> + <binding> + <command>dialog-apply</command> + </binding> + </button> + <text> <x>10</x> <y>290</y>