Hi Emmanuel,

good finding.

It seems, that I am mixing up different coordinate systems in line 389 of Rotorpart.cpp

   float relgrav = Math::dot3(_normal,_rotor->getGravDirection());

While _normal is within the coordinate system of the helicopter, _rotor->getGravDirection() is in the world coordinate system.

The enclosed patch should fix this. Unfortunately flightgear does not run on my machine actually. I would be thankful, if someone could check, if the patch works.

Best regards,
Maik

BARANGER Emmanuel schrieb am 21.02.2009 20:28:
Hi all,

After some tests, I just discovered something amusing in FG.

In fact, you do not know can be, but the gravity is reversed between the northern hemisphere and southern hemisphere. Finally it is the impression that it was ;)

Look the Bo105 in northen hemisphere : http://helijah.free.fr/LFKJ2.png
the same in southern hemisphere : http://helijah.free.fr/FACT2.png

Or the Aircrane (blades longer) in northen hemisphere : http://helijah.free.fr/LFKJ.png
and in southern hemisphere : http://helijah.free.fr/FACT.png

Although this will not interfere with many of us. Many of us live in the northern hemisphere. But what should we say to those who live in the southern hemisphere ?

Funny is not it ?

Best regards. Emmanuel

--
BARANGER Emmanuel

http://helijah.free.fr
http://helijah.free.fr/flightgear/hangar.htm
http://helijah.free.fr/flightgear/H4-Hercules.htm
http://helijah.free.fr/flightgear/flightgear.htm
http://www.jamendo.com/fr/album/27163
------------------------------------------------------------------------

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
------------------------------------------------------------------------

_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Index: Rotor.cpp
===================================================================
RCS file: /var/cvs/FlightGear-0.9/source/src/FDM/YASim/Rotor.cpp,v
retrieving revision 1.30
diff -u -p -r1.30 Rotor.cpp
--- Rotor.cpp   27 Jul 2008 16:25:15 -0000      1.30
+++ Rotor.cpp   22 Feb 2009 12:30:29 -0000
@@ -830,6 +830,7 @@ void Rotor::calcLiftFactor(float* v, flo
 
     //store the gravity direction
     Glue::geodUp(s->pos, _grav_direction);
+    s->velGlobalToLocal(_grav_direction, _grav_direction);
 }
 
 void Rotor::findGroundEffectAltitude(Ground * ground_cb,State *s)
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to