]> git.mxchange.org Git - flightgear.git/blobdiff - src/Instrumentation/adf.cxx
Fix GPS intercept controller:
[flightgear.git] / src / Instrumentation / adf.cxx
index 8e7de862675c75ad741013342949dd73ffb82bf7..62302c92bd97b2d4a5416c4ee7c09b6fed91eb51 100644 (file)
 
 #include "adf.hxx"
 #include <Sound/morse.hxx>
-
+#include <simgear/sound/sample_group.hxx>
 
 #include <iostream>
 #include <string>
 #include <sstream>
 
+using std::string;
 
 // Use a bigger number to be more responsive, or a smaller number
 // to be more sluggish.
@@ -179,6 +180,7 @@ ADF::update (double delta_time_sec)
         geo_inverse_wgs_84(acPos, _transmitter_pos,
                            &bearing, &az2, &s);
         _in_range_node->setBoolValue(true);
+        _ident_node->setStringValue(_last_ident);
 
         bearing -= heading;
         if (bearing < 0)