]> git.mxchange.org Git - flightgear.git/commitdiff
bugfix
authortorsten <torsten>
Fri, 22 Jan 2010 17:00:32 +0000 (17:00 +0000)
committerTim Moore <timoore@redhat.com>
Mon, 25 Jan 2010 14:06:53 +0000 (15:06 +0100)
 Patrice Poly:
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.

src/Environment/ridge_lift.cxx

index 1dd5cb26e57309fca00bbe1edc85a8e4edd4b148..9598f2bbb908400c9ead7f396232aeaf8b0f6f80 100644 (file)
@@ -171,7 +171,7 @@ void FGRidgeLift::update(double dt) {
                // position is geodetic, need geocentric for advanceRadM
                SGGeod myGeodPos = SGGeod::fromDegM( probe_lon_deg[0], probe_lat_deg[0], 20000.0 );
                SGGeoc myGeocPos = SGGeoc::fromGeod( myGeodPos );
-               double ground_wind_from_rad = _surface_wind_from_deg_node->getDoubleValue() * SG_DEGREES_TO_RADIANS + SG_PI;
+               double ground_wind_from_rad = _surface_wind_from_deg_node->getDoubleValue() * SG_DEGREES_TO_RADIANS;
 
                // compute the remaining probes
                for (unsigned i = 1; i < sizeof(probe_elev_m)/sizeof(probe_elev_m[0]); i++) {