]> git.mxchange.org Git - flightgear.git/blobdiff - src/Instrumentation/vertical_speed_indicator.cxx
Make the AI models a bit more intelligent. The Gear should be extended and retracted...
[flightgear.git] / src / Instrumentation / vertical_speed_indicator.cxx
index d707b704442d0dc81d371b4cadfd84948ef682d5..11f72fa4566cedc343d8a0654cf88e71c6ee3fe7 100644 (file)
@@ -30,12 +30,15 @@ VerticalSpeedIndicator::init ()
     _speed_node =
         fgGetNode("/instrumentation/vertical-speed-indicator/indicated-speed-fpm",
                   true);
+
+                                // Initialize at ambient pressure
+    _internal_pressure_inhg = _pressure_node->getDoubleValue();
 }
 
 void
 VerticalSpeedIndicator::update (double dt)
 {
-                                // model take from steam.cxx, with change
+                                // model taken from steam.cxx, with change
                                 // from 10000 to 10500 for manual factor
     if (_serviceable_node->getBoolValue()) {
         double pressure = _pressure_node->getDoubleValue();