From f09b49e006c5b14e1fadd0ee3da07591c4d6f115 Mon Sep 17 00:00:00 2001 From: Stuart Buchanan Date: Thu, 21 Feb 2019 22:09:48 +0000 Subject: [PATCH] FG1000 : APR and GS modes Approach and GS modes - FG1000 and GFC700 can now be used for autopilot coupled ILS or GPS approaches Also: - FLC mdoe now include an airspeed bug - VDI indicator beside altitude tape now works - Marker beacon displays O/M/I as appropriate --- .../FG1000/GFC700-lateral-FSM.xml | 118 ++++++++++--- .../FG1000/GFC700-vertical-FSM.xml | 107 ++++++++++++ Aircraft/Instruments-3d/FG1000/GFC700.xml | 122 +++++++++++-- .../FG1000/MFDPages/PFDInstruments.svg | 161 +++++++++--------- .../Nasal/Interfaces/GFC700Publisher.nas | 1 + .../Interfaces/GenericNavComPublisher.nas | 9 +- .../Instruments-3d/FG1000/Nasal/MFDPage.nas | 8 +- .../PFDInstruments/PFDInstruments.nas | 40 ++++- .../PFDInstrumentsController.nas | 61 ++++++- .../Nasal/MFDPages/Surround/Surround.nas | 69 ++++++-- 10 files changed, 571 insertions(+), 125 deletions(-) diff --git a/Aircraft/Instruments-3d/FG1000/GFC700-lateral-FSM.xml b/Aircraft/Instruments-3d/FG1000/GFC700-lateral-FSM.xml index af0041709..cde32c929 100644 --- a/Aircraft/Instruments-3d/FG1000/GFC700-lateral-FSM.xml +++ b/Aircraft/Instruments-3d/FG1000/GFC700-lateral-FSM.xml @@ -185,14 +185,56 @@ LOC-ARM - - /autopilot/settings/nav-mode-source - NAV1 - - - /autopilot/settings/nav-mode-source - NAV2 - + + + /autopilot/settings/nav-mode-source + NAV1 + + + /instrumentation/nav[0]/nav-loc + true + + + + + /autopilot/settings/nav-mode-source + NAV2 + + + /instrumentation/nav[1]/nav-loc + true + + + + + + + + NAV-VOR + NAV-SRC + VOR-ARM + + + + + /autopilot/settings/nav-mode-source + NAV1 + + + /instrumentation/nav[0]/nav-loc + false + + + + + /autopilot/settings/nav-mode-source + NAV1 + + + /instrumentation/nav[1]/nav-loc + false + + @@ -212,16 +254,10 @@ GPS-ARM GPS - - - /instrumentation/gps/wp/wp[1]/course-error-nm - 0.5 - - - /instrumentation/gps/wp/wp[1]/course-error-nm - -0.5 - - + + /autopilot/internal/nav-capture + 1 + @@ -239,6 +275,18 @@ + + LOC-ARM - LOC + LOC-ARM + LOC + + + /autopilot/internal/nav-capture + 1 + + + + VOR-ARM @@ -253,6 +301,18 @@ + + VOR-ARM - VOR + VOR-ARM + VOR + + + /autopilot/internal/nav-capture + 1 + + + + GPS @@ -289,6 +349,11 @@ /autopilot/annunciator/lateral-mode-armed + + property-assign + /autopilot/locks/heading + nav-hold + @@ -303,6 +368,11 @@ /autopilot/annunciator/lateral-mode-armed + + property-assign + /autopilot/locks/heading + nav-hold + @@ -323,7 +393,6 @@ - OFF-HDG OFF @@ -414,19 +483,26 @@ - + To NAV NAV-SRC true - /autopilot/lateral-mode-buttonNAV + + /autopilot/lateral-mode-buttonNAV + /autopilot/lateral-mode-buttonAPR + /autopilot/locks/headingnav-hold + From NAV GPS-ARM diff --git a/Aircraft/Instruments-3d/FG1000/GFC700-vertical-FSM.xml b/Aircraft/Instruments-3d/FG1000/GFC700-vertical-FSM.xml index 9dfeb38c7..0b6481586 100644 --- a/Aircraft/Instruments-3d/FG1000/GFC700-vertical-FSM.xml +++ b/Aircraft/Instruments-3d/FG1000/GFC700-vertical-FSM.xml @@ -305,6 +305,100 @@ VNV + + GS-ARM + + property-assign + /autopilot/annunciator/vertical-mode-armed + GS + + + + property-assign + /autopilot/vertical-mode-button + + + + + + GS Enabled + GS-ARM + GS + + + + + /autopilot/settings/nav-mode-source + NAV2 + + + /instrumentation/nav[0]/gs-in-range + true + + + + /instrumentation/nav[0]/gs-needle-deflection-norm + 0.2 + + + + /instrumentation/nav[0]/gs-needle-deflection-norm + 0.0 + + + + + /autopilot/settings/nav-mode-source + NAV2 + + + /instrumentation/nav[1]/gs-in-range + true + + + + /instrumentation/nav[1]/gs-needle-deflection-norm + 0.2 + + + + /instrumentation/nav[1]/gs-needle-deflection-norm + 0.0 + + + + + + + + GS + + property-assign + /autopilot/annunciator/vertical-mode + GS + + + property-assign + /autopilot/annunciator/vertical-mode-armed + + + + property-assign + /autopilot/annunciator/vertical-mode-target + + + + property-assign + /autopilot/locks/altitude + gs-hold + + + property-assign + /autopilot/locks/speed + + + + BC @@ -446,6 +540,19 @@ + + + GS-ON + GS-ARM + true + + + /autopilot/vertical-mode-buttonAPR + /autopilot/locks/altitudegs-hold + + + + diff --git a/Aircraft/Instruments-3d/FG1000/GFC700.xml b/Aircraft/Instruments-3d/FG1000/GFC700.xml index a89dff50c..fc71a5973 100644 --- a/Aircraft/Instruments-3d/FG1000/GFC700.xml +++ b/Aircraft/Instruments-3d/FG1000/GFC700.xml @@ -262,6 +262,58 @@ /autopilot/annunciator/flight-director-enabled + + + + + + + /autopilot/settings/nav-mode-source + NAV1 + + + /instrumentation/nav[0]/heading-needle-deflection + 4.0 + + + /instrumentation/nav[0]/heading-needle-deflection + -4.0 + + + + + /autopilot/settings/nav-mode-source + NAV2 + + + /instrumentation/nav[1]/heading-needle-deflection + 4.0 + + + /instrumentation/nav[1]/heading-needle-deflection + -4.0 + + + + + /autopilot/settings/nav-mode-source + GPS + + + /instrumentation/gps/wp/wp[1]/course-error-nm + 0.5 + + + /instrumentation/gps/wp/wp[1]/course-error-nm + -0.5 + + + + + /autopilot/internal/nav-capture + + + @@ -655,16 +707,27 @@ - - Glideslope Hold + NAV1/GPS Glideslope Hold false - - /autopilot/locks/altitude - gs1-hold - + + + /autopilot/locks/altitude + gs-hold + + + + /autopilot/settings/nav-mode-source + GPS + + + /autopilot/settings/nav-mode-source + NAV1 + + + @@ -677,15 +740,54 @@ /autopilot/settings/target-pitch-deg - -0.01 + 0.1 1.0 0.1 0.0 - 10.0 + 1.0 0.00001 - -1.0 - 1.0 + -15.0 + 15.0 + + + + + NAV1/GPS Glideslope Hold + false + + + + + /autopilot/locks/altitude + gs-hold + + + /autopilot/settings/nav-mode-source + NAV2 + + + + + + /velocities/vertical-speed-fps + + + /instrumentation/nav[1]/gs-rate-of-climb + + + /autopilot/settings/target-pitch-deg + + + 0.1 + 1.0 + 0.1 + 0.0 + + 1.0 + 0.00001 + -15.0 + 15.0 diff --git a/Aircraft/Instruments-3d/FG1000/MFDPages/PFDInstruments.svg b/Aircraft/Instruments-3d/FG1000/MFDPages/PFDInstruments.svg index 1fd96d535..306575c60 100644 --- a/Aircraft/Instruments-3d/FG1000/MFDPages/PFDInstruments.svg +++ b/Aircraft/Instruments-3d/FG1000/MFDPages/PFDInstruments.svg @@ -11,7 +11,7 @@ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" sodipodi:docname="PFDInstruments.svg" - inkscape:version="0.91 r13725" + inkscape:version="0.92.3 (2405546, 2018-03-11)" version="1.1" id="svg3140" height="768" @@ -24,18 +24,18 @@ borderopacity="1" inkscape:pageopacity="1" inkscape:pageshadow="2" - inkscape:zoom="2.6295535" - inkscape:cx="378.97168" - inkscape:cy="351.68237" + inkscape:zoom="1.8593751" + inkscape:cx="588.67127" + inkscape:cy="449.20136" inkscape:document-units="px" - inkscape:current-layer="PFDInstrumentsBankPoint" + inkscape:current-layer="PFDInstrumentsSelectedALT" showgrid="false" showguides="false" inkscape:guide-bbox="true" - inkscape:window-width="2495" - inkscape:window-height="1416" - inkscape:window-x="65" - inkscape:window-y="24" + inkscape:window-width="2493" + inkscape:window-height="1385" + inkscape:window-x="67" + inkscape:window-y="27" inkscape:window-maximized="1" inkscape:snap-grids="true" inkscape:snap-to-guides="true" @@ -2335,8 +2335,7 @@ y="427.92041" x="460.43945" style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:30px;line-height:0%;font-family:Sans;-inkscape-font-specification:'Sans, Normal';text-align:center;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:middle;display:inline;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" - xml:space="preserve" - sodipodi:linespacing="0%"> + G + + + 99999 +