//
// 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"
_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();
}