so, a possible fix : line 218-220 should be :
probe_lon_rad[i] = fmod((deg2rad*user_longitude_deg+asin(sin(ground_wind_from_rad) *sin(dist_probe_m[i]/earth_rad_m)/cos(probe_lat_rad[i]))+PI) ,(2.0*PI))-PI; ( the" last probe_lat_rad[i] " was written wrong as " probe_lon_rad[i] "... which doesn't surprise me too much if sending weird things, as this is what we are calculating here... ty Jentron for pointing it out ) and line 205-206 : double ground_wind_from_rad = PI*( ground_wind_from_deg/180.0); ( no need anymore for checking if lon is >0, this was due to the previous error ) I even wonder how this worked my side without errors, and even behaved good... I posted the correct version to www.bentha.net/fgfs/ridge-lift/ridge-lift-in-environment.zip Hopefully this was the culpript, and there is no other... ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel