]> git.mxchange.org Git - flightgear.git/blobdiff - src/Instrumentation/tacan.cxx
Prepare and implement reinit methods for instruments
[flightgear.git] / src / Instrumentation / tacan.cxx
index b17c8bb346386e06a01cc995085621808b966d48..dfdab58fde6a0ee262ec52bdfd1fd227ff76aa0e 100644 (file)
@@ -18,7 +18,7 @@
 #include "tacan.hxx"
 
 using std::vector;
-
+using std::string;
 
 /**
  * Adjust the range.
@@ -124,6 +124,12 @@ TACAN::init ()
     _electrical_node = fgGetNode("/systems/electrical/outputs/tacan", true);
 }
 
+void
+TACAN::reinit ()
+{
+    _time_before_search_sec = 0;
+}
+
 void
 TACAN::update (double delta_time_sec)
 {