From: david Date: Tue, 25 Feb 2003 20:04:22 +0000 (+0000) Subject: Initialize the internal pressure to ambient pressure. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=21d3b2848ad9363a6b3c2720a951031195a0eedd;p=flightgear.git Initialize the internal pressure to ambient pressure. --- diff --git a/src/Instrumentation/vertical_speed_indicator.cxx b/src/Instrumentation/vertical_speed_indicator.cxx index 2092b439f..11f72fa45 100644 --- a/src/Instrumentation/vertical_speed_indicator.cxx +++ b/src/Instrumentation/vertical_speed_indicator.cxx @@ -30,6 +30,9 @@ VerticalSpeedIndicator::init () _speed_node = fgGetNode("/instrumentation/vertical-speed-indicator/indicated-speed-fpm", true); + + // Initialize at ambient pressure + _internal_pressure_inhg = _pressure_node->getDoubleValue(); } void