X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FInstrumentation%2Fairspeed_indicator.cxx;h=a3ff2df4eecb75d06af945c5d74bb5b936189b8c;hb=ccb890447ae2f950b8032649ca8b8190bdafaf90;hp=0622f2103adfc2ac9d4c49880ccd597f80da1c28;hpb=ebdeb3eed386199d9d54f819ba3c472b501ae6f7;p=flightgear.git diff --git a/src/Instrumentation/airspeed_indicator.cxx b/src/Instrumentation/airspeed_indicator.cxx index 0622f2103..a3ff2df4e 100644 --- a/src/Instrumentation/airspeed_indicator.cxx +++ b/src/Instrumentation/airspeed_indicator.cxx @@ -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 #include @@ -76,6 +80,12 @@ AirspeedIndicator::init () _environmentManager = (FGEnvironmentMgr*) globals->get_subsystem("environment"); } +void +AirspeedIndicator::reinit () +{ + _speed_node->setDoubleValue(0.0); +} + #ifndef FPSTOKTS # define FPSTOKTS 0.592484 #endif