Hello

There is a bug reported with HUD 'minimal' since some changes in 
cockpit.cxx. This HUD does not use 'heading' for Gyrocompass, it uses 
'view_direction'.
http://code.google.com/p/flightgear-bugs/issues/detail?id=146

Since some changes in cockpit.cxx it seems like 'view_direction' is broken.

I did a change now in cockpit.cxx and it seems to be fixed here. Can you 
please check this and commit this change to 'next' when you think this 
is right?

Thanks, Yves

Diff:

--- a/src/Cockpit/cockpit.cxx
+++ b/src/Cockpit/cockpit.cxx
@@ -245,7 +245,7 @@ float get_climb_rate( void )
  float get_view_direction( void )
  {
      double view_off = 360.0 - 
globals->get_current_view()->getHeadingOffset_deg();
-    double view = 
SGMiscd::normalizeAngle(fgGetDouble("/orientation/heading-deg") + view_off);
+    double view = fgGetDouble("/orientation/heading-deg") + view_off;
      return view;
  }

------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to