From ac90d8ff8ac0e9f82854a8bbec3e1653aadc53e6 Mon Sep 17 00:00:00 2001 From: torsten Date: Fri, 22 Jan 2010 17:00:32 +0000 Subject: [PATCH] bugfix 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Environment/ridge_lift.cxx b/src/Environment/ridge_lift.cxx index 1dd5cb26e..9598f2bbb 100644 --- a/src/Environment/ridge_lift.cxx +++ b/src/Environment/ridge_lift.cxx @@ -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++) { -- 2.39.5