Hello , after having been away from FG quite long due to work,

I was reading forums yesterday and found a thread where someone points
out that ridge lift works reversed.
( http://www.flightgear.org/forums/viewtopic.php?f=6&t=4706&p=61190#p58077 )

After investigation, it appears that the probes are reversed due to a
little mistake when someone changed how the probe calculations are made.

probe 0 is under the plane. probe 4 should be downwind, probes 1,2 and 3
should be upwind.

in src/Environment/ridge_lift.cxx, line 174 is now :

|double ground_wind_from_rad =
_surface_wind_from_deg_node->getDoubleValue() * SG_DEGREES_TO_RADIANS +
SG_PI;

this should be :

||double ground_wind_from_rad =
_surface_wind_from_deg_node->getDoubleValue() * SG_DEGREES_TO_RADIANS;

This reverts to a correct ridge lift behaviour.


I do not have commit rights, please find the diff at :

http://filebin.ca/evfhet/Environment.diff.bz2


Thank you !

|


------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to