From: ehofman Date: Mon, 26 Jan 2004 20:24:29 +0000 (+0000) Subject: Make it possible to show the DME in the HUD X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=8c129e84705c7b4d0c37921585ce27c4f2efff1d;p=flightgear.git Make it possible to show the DME in the HUD --- diff --git a/src/Cockpit/cockpit.cxx b/src/Cockpit/cockpit.cxx index 931cb517d..c6cb01eec 100644 --- a/src/Cockpit/cockpit.cxx +++ b/src/Cockpit/cockpit.cxx @@ -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 )