]> git.mxchange.org Git - flightgear.git/blobdiff - src/Systems/static.cxx
Moved some of the low level scene graph construction code over to simgear.
[flightgear.git] / src / Systems / static.cxx
index 9e2b6aff19989d02ff092aa7000949f64a14fb89..7f9a287be75b227b71835187096dbfccdf634fb4 100644 (file)
@@ -5,6 +5,7 @@
 
 #include "static.hxx"
 #include <Main/fg_props.hxx>
+#include <Main/util.hxx>
 
 
 StaticSystem::StaticSystem ()
@@ -37,11 +38,11 @@ void
 StaticSystem::update (double dt)
 {
     if (_serviceable_node->getBoolValue()) {
+        
         double target = _pressure_in_node->getDoubleValue();
         double current = _pressure_out_node->getDoubleValue();
         double delta = target - current;
-        current += delta * dt;
-        _pressure_out_node->setDoubleValue(current);
+        _pressure_out_node->setDoubleValue(fgGetLowPass(current, target, dt));
     }
 }