From 3c20f3b38c72c34d74b30b61a8ae21bd53ca9549 Mon Sep 17 00:00:00 2001 From: Torsten Dreyer Date: Sun, 17 Apr 2011 14:57:13 +0200 Subject: [PATCH] Fix bug #287: gyro correction ignored by autopilot The generic-autopilot-helper computes heading-bug-error from magnetic heading, not indicated heading. This patch corrects this by pulling the two used generic helper filters into our own config (so the generic-ap-helper.xml can go away). --- Aircraft/c172p/Systems/KAP140.xml | 29 +++++++++++++++++++++++++++++ Aircraft/c172p/c172p-set.xml | 4 ---- 2 files changed, 29 insertions(+), 4 deletions(-) diff --git a/Aircraft/c172p/Systems/KAP140.xml b/Aircraft/c172p/Systems/KAP140.xml index 609cd031f..4af4a7623 100644 --- a/Aircraft/c172p/Systems/KAP140.xml +++ b/Aircraft/c172p/Systems/KAP140.xml @@ -5,6 +5,26 @@ + + heading bug error computer/normalizer + false + gain + + autopilot/settings/heading-bug-deg + + instrumentation/heading-indicator/indicated-heading-deg + -1.0 + + + autopilot/internal/heading-bug-error-deg + + -180 + 180 + + 1.0 + + + @@ -228,6 +248,15 @@ + + static port pressure rate computer + false + derivative + systems/static[0]/pressure-inhg + autopilot/internal/pressure-rate + 1.0 + + pressure-rate-filter false diff --git a/Aircraft/c172p/c172p-set.xml b/Aircraft/c172p/c172p-set.xml index 6974923fc..d22b7fb9a 100644 --- a/Aircraft/c172p/c172p-set.xml +++ b/Aircraft/c172p/c172p-set.xml @@ -68,10 +68,6 @@ Started October 23 2001 by John Check, fgpanels@rockfish.net - - autopilot helpers - Aircraft/Generic/generic-autopilot-helper.xml - Aircraft/c172p/Systems/KAP140.xml