1
0
Fork 0

Set new route-path / flightplan control values.

Propagation is done by the FMSDelegate so custom FMS/GPS
systems can trivially replace this behaviour.
This commit is contained in:
James Turner 2015-01-08 19:48:17 +00:00
parent 0e9dcbbd08
commit f786e57c96
2 changed files with 21 additions and 0 deletions

View file

@ -100,6 +100,13 @@ var FMSDelegate = {
return nil; return nil;
var m = { parents: [FMSDelegate], flightplan:fp, landingCheck:nil }; var m = { parents: [FMSDelegate], flightplan:fp, landingCheck:nil };
# make FlightPlan behaviour match GPS config state
fp.followLegTrackToFix = getprop('/instrumentation/gps/config/follow-leg-track-to-fix');
# similarly, make FlightPlan follow the performance category settings
fp.aircraftCategory = getprop('/autopilot/settings/icao-aircraft-category');
return m; return m;
}, },

View file

@ -1090,6 +1090,12 @@ Started September 2000 by David Megginson, david@megginson.com
<approach-arm type="bool">false</approach-arm> <approach-arm type="bool">false</approach-arm>
<approach-active type="bool">false</approach-active> <approach-active type="bool">false</approach-active>
<cdi-deflection type="double">0</cdi-deflection> <cdi-deflection type="double">0</cdi-deflection>
<approach-active type="bool">false</approach-active>
<!-- default configuration -->
<config>
<follow-leg-track-to-fix type="bool">false</follow-leg-track-to-fix>
</config>
</gps> </gps>
<kln89> <kln89>
<scan-pull type="bool" archive="y">false</scan-pull> <scan-pull type="bool" archive="y">false</scan-pull>
@ -1176,6 +1182,14 @@ Started September 2000 by David Megginson, david@megginson.com
<route-manager> <route-manager>
<min-lock-altitude-agl-ft type="double">300</min-lock-altitude-agl-ft> <min-lock-altitude-agl-ft type="double">300</min-lock-altitude-agl-ft>
</route-manager> </route-manager>
<settings>
<!-- values as per
http://en.wikipedia.org/wiki/Aircraft_approach_category
Default to category C on the assumption people using the route-manager
which cares about this will be flying larger aircraft, not smaller.
-->
<icao-aircraft-category type="string">C</icao-aircraft-category>
</settings>
</autopilot> </autopilot>
<logging> <logging>
<log n="0"> <log n="0">