This writes the source frequency to dme/frequencies/selected-mhz to fix the
dme hold for the second source , and for an indication in the property tree
that it is doing what it's supposed to .
Cheers
Index: dme.cxx
===================================================================
RCS file: /var/cvs/FlightGear-0.9/source/src/Instrumentation/dme.cxx,v
retrieving revision 1.21
diff -U 3 -r1.21 dme.cxx
--- dme.cxx	4 Sep 2009 17:01:53 -0000	1.21
+++ dme.cxx	8 Mar 2010 00:32:22 -0000
@@ -96,7 +96,8 @@
     if (frequency_mhz != _last_frequency_mhz) {
         _time_before_search_sec = 0;
         _last_frequency_mhz = frequency_mhz;
-    }
+    }
+    _frequency_node->setDoubleValue(frequency_mhz);
 
                                 // Get the aircraft position
     double longitude_rad =
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to