X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FInstrumentation%2Fvertical_speed_indicator.cxx;h=11f72fa4566cedc343d8a0654cf88e71c6ee3fe7;hb=863b0c943251fae620406ec8983e5f69e1424731;hp=295346691025d904303404e945837731db7faabd;hpb=5289055776b645f25234f1f1f012727baa31e863;p=flightgear.git diff --git a/src/Instrumentation/vertical_speed_indicator.cxx b/src/Instrumentation/vertical_speed_indicator.cxx index 295346691..11f72fa45 100644 --- a/src/Instrumentation/vertical_speed_indicator.cxx +++ b/src/Instrumentation/vertical_speed_indicator.cxx @@ -30,22 +30,15 @@ VerticalSpeedIndicator::init () _speed_node = fgGetNode("/instrumentation/vertical-speed-indicator/indicated-speed-fpm", true); -} -void -VerticalSpeedIndicator::bind () -{ -} - -void -VerticalSpeedIndicator::unbind () -{ + // 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();