]> git.mxchange.org Git - flightgear.git/blobdiff - src/Instrumentation/turn_indicator.cxx
Reset: work with threaded OSG modes
[flightgear.git] / src / Instrumentation / turn_indicator.cxx
index 6b91cae37bf256b4f4813d64e884d1d43882fc0a..06fd868e2ba8f313b10b35efe54f581fd64c74b6 100644 (file)
@@ -46,6 +46,15 @@ TurnIndicator::init ()
     _electric_current_node = 
         fgGetNode("/systems/electrical/outputs/turn-coordinator", true);
     _rate_out_node = node->getChild("indicated-turn-rate", 0, true);
+
+    reinit();
+}
+
+void
+TurnIndicator::reinit ()
+{
+    _last_rate = 0;
+    _gyro.reinit();
 }
 
 void