From da0449a4d95637ced52b05f9f9bd0bc19149046b Mon Sep 17 00:00:00 2001 From: BARANGER Emmanuel Date: Wed, 9 Jun 2010 00:33:37 +0200 Subject: [PATCH 1/3] Merge branch 'master' of git://gitorious.org/fg/fgdata From 7a7ac553fab747cde19d7bee97d4c9ee309c14a9 Mon Sep 17 00:00:00 2001 From: Torsten Dreyer Date: Fri, 11 Jun 2010 22:05:55 +0200 Subject: [PATCH 2/3] Prepare for moving the hard coded A/P helpers into XML Currently, there are some hard coded autopilot helpers. They can (and should) easily be modeled in an external XML file. The filter in this file produce the exact same output as the hard coded filters. This is just a preparation step for a smooth transition at a later time. --- Aircraft/Generic/generic-autopilot-helper.xml | 145 ++++++++++++++++++ 1 file changed, 145 insertions(+) create mode 100644 Aircraft/Generic/generic-autopilot-helper.xml diff --git a/Aircraft/Generic/generic-autopilot-helper.xml b/Aircraft/Generic/generic-autopilot-helper.xml new file mode 100644 index 000000000..94ebb1ba3 --- /dev/null +++ b/Aircraft/Generic/generic-autopilot-helper.xml @@ -0,0 +1,145 @@ + + + + + + + heading bug error computer/normalizer + false + gain + + autopilot/settings/heading-bug-deg + + orientation/heading-magnetic-deg + -1.0 + + + autopilot/internal/heading-bug-error-deg + autopilot/internal/fdm-heading-bug-error-deg + + -180 + 180 + + 1.0 + + + + true heading error computer/normalizer + false + gain + + autopilot/settings/true-heading-deg + + orientation/heading-deg + -1.0 + + + autopilot/internal/true-heading-error-deg + + -180 + 180 + + 1.0 + + + + nav1 heading error computer/normalizer + false + gain + + instrumentation/nav[0]/radials/target-auto-hdg-deg + + orientation/heading-deg + -1.0 + + + autopilot/internal/nav1-heading-error-deg + + -180 + 180 + + 1.0 + + + + nav1 selected course error computer/normalizer + false + gain + + instrumentation/nav[0]/radials/selected-deg + + orientation/heading-magnetic-deg + -1.0 + + + autopilot/internal/nav1-course-error + + -180 + 180 + + 1.0 + + + + vertical speed fpm computer + false + gain + velocities/vertical-speed-fps + autopilot/internal/vert-speed-fpm + 60.0 + + + + speed in 5 seconds predictor + false + velocities/airspeed-kt + autopilot/internal/lookahead-5-sec-airspeed-kt + 5.0 + 0.0 + + + + speed in 10 seconds predictor + false + velocities/airspeed-kt + autopilot/internal/lookahead-10-sec-airspeed-kt + 10.0 + 0.0 + + + + static port pressure rate computer + false + differential + systems/static[0]/pressure-inhg + autopilot/internal/pressure-rate + 1.0 + + + + nav1 track error computer + false + gain + + instrumentation/nav[0]/radials/target-auto-hdg-deg + + orientation/track-deg + -1.0 + + + autopilot/internal/nav1-track-error-deg + + -180 + 180 + + 1.0 + + + + From 767b8f179db811731530da1907fe9e10928fb03c Mon Sep 17 00:00:00 2001 From: Torsten Dreyer Date: Fri, 11 Jun 2010 22:10:08 +0200 Subject: [PATCH 3/3] Nondestructive preparation for replacement of hard coded A/P helpers --- preferences.xml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/preferences.xml b/preferences.xml index daa3e8506..206e78511 100644 --- a/preferences.xml +++ b/preferences.xml @@ -269,6 +269,12 @@ Started September 2000 by David Megginson, david@megginson.com Aircraft/Generic/generic-autopilot.xml + Aircraft/Generic/generic-instrumentation.xml