]> git.mxchange.org Git - flightgear.git/blobdiff - src/Instrumentation/airspeed_indicator.cxx
Improve gyro heading indicator failure simulation
[flightgear.git] / src / Instrumentation / airspeed_indicator.cxx
index 0622f2103adfc2ac9d4c49880ccd597f80da1c28..a3ff2df4eecb75d06af945c5d74bb5b936189b8c 100644 (file)
@@ -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 <math.h>
 
 #include <simgear/math/interpolater.hxx>
@@ -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