]> git.mxchange.org Git - flightgear.git/commit
Just a tiny change adds a <reference> input to FGDigitalFilters. This is nice to...
authortorsten <torsten>
Sat, 6 Mar 2010 15:40:17 +0000 (15:40 +0000)
committerTim Moore <timoore33@gmail.com>
Tue, 9 Mar 2010 09:38:32 +0000 (10:38 +0100)
commit881d49858dc49860c0af6fec7857068dc9ccc75f
tree40eb79f458af83fb50e614bea1c55640ea1d59cd
parent90e313a8dd6b60fbb14f47ea48a969f33924dfd7
Just a tiny change adds a <reference> input to FGDigitalFilters. This is nice to have to calculate differences of signals using gain-filters.
Old calculation was
output = input * gain
and is now
output = (input-reference) * gain
Note: the PI(D) controller use (reference-input) which effectively reverses the sign. Our notation was picked for backwards compatibility to not break the myriads of <filter> elements currently existing.

All the rest is some code cleanup.
src/Autopilot/xmlauto.cxx