X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FInstrumentation%2Fvertical_speed_indicator.cxx;h=11f72fa4566cedc343d8a0654cf88e71c6ee3fe7;hb=863b0c943251fae620406ec8983e5f69e1424731;hp=d707b704442d0dc81d371b4cadfd84948ef682d5;hpb=f72891e113b79c96e23f46a8ae2a0ecdacc9155f;p=flightgear.git diff --git a/src/Instrumentation/vertical_speed_indicator.cxx b/src/Instrumentation/vertical_speed_indicator.cxx index d707b7044..11f72fa45 100644 --- a/src/Instrumentation/vertical_speed_indicator.cxx +++ b/src/Instrumentation/vertical_speed_indicator.cxx @@ -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();