]> git.mxchange.org Git - flightgear.git/commitdiff
Make it possible to show the DME in the HUD
authorehofman <ehofman>
Mon, 26 Jan 2004 20:24:29 +0000 (20:24 +0000)
committerehofman <ehofman>
Mon, 26 Jan 2004 20:24:29 +0000 (20:24 +0000)
src/Cockpit/cockpit.cxx

index 931cb517d61233a04aaf184b444c9b5603b4d0ab..c6cb01eec41c618900c770da77221647ea7a576d 100644 (file)
@@ -276,6 +276,15 @@ float get_view_direction( void )
     return view;
 }
 
+// Added by Markus Hof on 5. Jan 2004
+float get_dme( void )
+{
+    static const SGPropertyNode * dme_node =
+        fgGetNode("/radios/dme/distance-nm");
+
+    return dme_node->getFloatValue();
+}
+
 // $$$ begin - added, VS Renganathan 13 Oct 2K
 // #ifdef FIGHTER_HUD
 float get_Vx   ( void )