]> git.mxchange.org Git - flightgear.git/blobdiff - src/Instrumentation/vertical_speed_indicator.cxx
Make various PUI widgets private.
[flightgear.git] / src / Instrumentation / vertical_speed_indicator.cxx
index 1ad62253b61a29ffff7d6aec4b940ef5a6e44ffe..55d3a77ed5a686fea385fbd28b59d4bbaa2ba871 100644 (file)
@@ -3,6 +3,10 @@
 //
 // This file is in the Public Domain and comes with no warranty.
 
+#ifdef HAVE_CONFIG_H
+#  include "config.h"
+#endif
+
 #include <simgear/math/interpolater.hxx>
 
 #include "vertical_speed_indicator.hxx"
@@ -35,7 +39,13 @@ VerticalSpeedIndicator::init ()
     _speed_node = node->getChild("indicated-speed-fpm", 0, true);
     _speed_up_node = fgGetNode("/sim/speed-up", true);
 
-                                // Initialize at ambient pressure
+    reinit();
+}
+
+void
+VerticalSpeedIndicator::reinit ()
+{
+    // Initialize at ambient pressure
     _internal_pressure_inhg = _pressure_node->getDoubleValue();
 }