Ahoy Guys,

while doing some research for the wiki[1] the idea came across to
center the (seemingly not properly working) "runway projection", the
big fat arrow on the default HUD, pointing to one o'clock here[2], and
make it more flexible. Even though it does not actually project the
active runway on the HUD, it still points to its direction. I am aware
that sooner or later canvas[3] will replace the actual HUD system and
therefore probably not much effort will go into the current one
anymore. However, until then it would be nice to make something more
useful out of it or, as a second option, disable the instrument in
Huds/default.xml. And because the arrow is very obvious, just letting
it hang out at the corner does not make the HUD prettier.

Enclosed are two patches, both tested on FG 2.10 and git "next":
HUD-runway_offset-fgdata.diff
  Changes the coordinates in runway.xml to have it centered. Nearly, at
  least. For unknown reason it disappears if centered along the y-axis.
  Therefore that one unit offset in the patch.
HUD-runway_property-fg_source.diff
  Alters the property for the airport "runway" is pointing at from
  "/sim/presets/airport-id" to "/sim/tower/airport-id". Right after
  starting FG these are the same but now the user is able to make the
  arrow pointing to some other airport or to the closest one by setting
  up the "Tower Position" via menu.

A screenshot[4] showing the centered one for your approval or not.

Thank you very much
Alex

[1] http://wiki.flightgear.org/HUD
[2] http://wiki.flightgear.org/File:HUD_default_overview.png
[3] http://wiki.flightgear.org/Canvas_HUD
[4] http://www.zimagez.com/zimage/fgfs-screen-259.php
diff --git a/Huds/Instruments/runway.xml b/Huds/Instruments/runway.xml
index 3fed52d..995b505 100644
--- a/Huds/Instruments/runway.xml
+++ b/Huds/Instruments/runway.xml
@@ -3,14 +3,14 @@
 <PropertyList>
 	<runway>
 		<name>Runway</name>
-		<x>-240</x>
-		<y>-180</y>
+		<x>-320</x>
+		<y>-239</y>
 		<width>640</width>
 		<height>480</height>
 
 		<scale-dist-nm>5</scale-dist-nm>
 		<line-scale>5.0</line-scale>
-		<arrow-always>false</arrow-always>
+		<arrow-always>true</arrow-always>
 		<arrow-scale>1.0</arrow-scale>
 		<arrow-radius>50.0</arrow-radius>
 		<outer-stipple>-1</outer-stipple> <!-- 0xffff -->
diff --git a/src/Instrumentation/HUD/HUD_runway.cxx b/src/Instrumentation/HUD/HUD_runway.cxx
index 5ad4592..1d6ee13 100644
--- a/src/Instrumentation/HUD/HUD_runway.cxx
+++ b/src/Instrumentation/HUD/HUD_runway.cxx
@@ -158,7 +158,7 @@ void HUD::Runway::draw()
 
 FGRunway* HUD::Runway::get_active_runway()
 {
-  const FGAirport* apt = fgFindAirportID(fgGetString("/sim/presets/airport-id"));
+  const FGAirport* apt = fgFindAirportID(fgGetString("/sim/tower/airport-id"));
   if (!apt) return NULL;
   
   return apt->getActiveRunwayForUsage();
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_jan
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to