From 8c129e84705c7b4d0c37921585ce27c4f2efff1d Mon Sep 17 00:00:00 2001 From: ehofman Date: Mon, 26 Jan 2004 20:24:29 +0000 Subject: [PATCH] Make it possible to show the DME in the HUD --- src/Cockpit/cockpit.cxx | 9 +++++++++ 1 file changed, 9 insertions(+) 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 ) -- 2.39.5