Re: [Flightgear-devel] working ridge lift !!

2009-04-23 Thread Stuart Buchanan
Patrice Poly wrote: I'm a bit at lost for now, as I really don't see any NaN anymore here, and don't have another platform to test on. I would be interested to see on which platforms / configuration this happens, maybe when more feedback comes in ?? I've been seeing this every time I

Re: [Flightgear-devel] working ridge lift !!

2009-04-23 Thread Martin Spott
Stuart Buchanan wrote: I've been seeing this every time I load on Ubuntu Hardy. I'm 90% sure that the ridge-lift enhancement is the root cause - it's the only source change that went in when I rebuilt last. We've occasionally seen lots of NaN's before addition of the ridge-lift as well and

Re: [Flightgear-devel] working ridge lift !!

2009-04-23 Thread gerard robin
On jeudi 23 avril 2009, Martin Spott wrote: Stuart Buchanan wrote: I've been seeing this every time I load on Ubuntu Hardy. I'm 90% sure that the ridge-lift enhancement is the root cause - it's the only source change that went in when I rebuilt last. We've occasionally seen lots of NaN's

Re: [Flightgear-devel] working ridge lift !!

2009-04-23 Thread Erik Hofman
gerard robin wrote: Yes it is difficult to trap these nan which are coming ( + or - randomly ? ? ? , though, getting trouble with carrier) ), and when we get it the system is closed to be frozen , with black screen, and command line overflowed with messages. And when i tried with GDB

Re: [Flightgear-devel] working ridge lift !!

2009-04-23 Thread Patrice Poly
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)

Re: [Flightgear-devel] working ridge lift !!

2009-04-23 Thread Patrice Poly
the fix, as a patch http://www.bentha.net/fgfs/ridge-lift/Environment.diff.bz2 hope this works... This includes the correction for the lee side, according to Ian's advice based on real fly. -- Stay on top of

Re: [Flightgear-devel] working ridge lift !!

2009-04-23 Thread Patrice Poly
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)

Re: [Flightgear-devel] working ridge lift !!

2009-04-23 Thread Torsten Dreyer
I posted the correct version to www.bentha.net/fgfs/ridge-lift/ridge-lift-in-environment.zip Can you please send a diff to current cvs? Torsten -- Stay on top of everything new and different, both inside and around

Re: [Flightgear-devel] working ridge lift !!

2009-04-23 Thread Patrice Poly
Can you please send a diff to current cvs? its in the previous post I made. Sorry, I messed up a bit with mail this morning... -- Stay on top of everything new and different, both inside and around Java (TM)

Re: [Flightgear-devel] working ridge lift !!

2009-04-23 Thread jean pellotier
Patrice Poly a écrit : the fix, as a patch http://www.bentha.net/fgfs/ridge-lift/Environment.diff.bz2 hope this works... nope, same behaviour!! i think that on my slow PC, your ridge lift is sometimes initialised a little to early (while position is 0,0,0 maybe), resulting in some nan

Re: [Flightgear-devel] working ridge lift !!

2009-04-23 Thread Patrice Poly
nope, same behaviour!! i think that on my slow PC, your ridge lift is sometimes initialised a little to early (while position is 0,0,0 maybe), resulting in some nan in the result of terrain scan, wich lead to a nan in /environment/ridge-lift-fps. and as it's used to compute the next

[Flightgear-devel] Adding AIs while FG execution.

2009-04-23 Thread James Bond
Hi every one, I want to use the AIManager to add AIs to FlightGear while it run. I added a subSystem to receve the modele and the calssing of the object to load, i used the AIManager Attach methode but i dosn't work. SOS. Vuris.

Re: [Flightgear-devel] working ridge lift !!

2009-04-23 Thread Ron Jensen
On Thu, 2009-04-23 at 11:56 -0400, Patrice Poly wrote: nope, same behaviour!! i think that on my slow PC, your ridge lift is sometimes initialised a little to early (while position is 0,0,0 maybe), resulting in some nan in the result of terrain scan, wich lead to a nan in

Re: [Flightgear-devel] working ridge lift !!

2009-04-23 Thread Ron Jensen
On Thu, 2009-04-23 at 10:56 -0600, Ron Jensen wrote: On Thu, 2009-04-23 at 11:56 -0400, Patrice Poly wrote: nope, same behaviour!! i think that on my slow PC, your ridge lift is sometimes initialised a little to early (while position is 0,0,0 maybe), resulting in some nan in the

Re: [Flightgear-devel] working ridge lift !!

2009-04-23 Thread Detlef Faber
Am Donnerstag, den 23.04.2009, 17:43 +0200 schrieb jean pellotier: Patrice Poly a écrit : the fix, as a patch http://www.bentha.net/fgfs/ridge-lift/Environment.diff.bz2 hope this works... nope, same behaviour!! i think that on my slow PC, your ridge lift is sometimes

Re: [Flightgear-devel] Fatal error: name must begin with alpha or '_'

2009-04-23 Thread John Waget
thank you ! I will try another cvs update! -- Crystal Reports #45; New Free Runtime and 30 Day Trial Check out the new simplified licensign option that enables unlimited royalty#45;free distribution of the report engine

Re: [Flightgear-devel] working ridge lift !!

2009-04-23 Thread syd adams
I tried this but no luck here Im still getting this message about every second: Warning: invalid line segment passed to IntersectVisitor::addLineSegment(..) nan nan 3.87514e+06 nan nan 3.85687e+06 segment ignored. i tested : _ridge_lift_fps_node-setDoubleValue( 0 ); and no

[Flightgear-devel] Mouse cursor showing mode again in Windows version

2009-04-23 Thread Frederic Bouvier
Hi friends, just a quick note to tell that I found the bug in OSG that prevent the cursor to change shape and display the current input mode. I submitted the fix to Robert, and uploaded a new fg win32 binary with the not yet official fix at the usual location. Enjoy ;-) -Fred -- Frédéric

Re: [Flightgear-devel] working ridge lift !!

2009-04-23 Thread Alex Romosan
syd adams writes: I tried this but no luck here Im still getting this message about every second: Warning: invalid line segment passed to IntersectVisitor::addLineSegment(..) nan nan 3.87514e+06 nan nan 3.85687e+06 segment ignored. i think this depends on the version of osg

Re: [Flightgear-devel] working ridge lift !!

2009-04-23 Thread Patrice Poly
so here comes another attempt to reduce these error to silence : line 238 : if ( alt 0.1 ) { probe_elev_m[i] = alt; } else { probe_elev_m[i] = 0.1 ;}; lines 319-321 for desperate cases : strength = lift_mps * SG_METER_TO_FEET ; if(isnan(strength)) strength=0;

Re: [Flightgear-devel] working ridge lift !!

2009-04-23 Thread Patrice Poly
udpated the patch again, with another Nan killer from jano. That seems to have worked for him, at least http://www.bentha.net/fgfs/ridge-lift/Environment.diff.bz2 -- Crystal Reports #45; New Free Runtime and 30 Day Trial

Re: [Flightgear-devel] working ridge lift !!

2009-04-23 Thread syd adams
On Thu, Apr 23, 2009 at 12:29 PM, Alex Romosan romo...@sycorax.lbl.govwrote: syd adams writes: I tried this but no luck here Im still getting this message about every second: Warning: invalid line segment passed to IntersectVisitor::addLineSegment(..) nan nan

Re: [Flightgear-devel] working ridge lift !!

2009-04-23 Thread syd adams
Just a note : I applied the last patch posted here and success ! No more warnings so far ,with the 777-200, at least. I'll try more. -- Crystal Reports #45; New Free Runtime and 30 Day Trial Check out the new simplified

Re: [Flightgear-devel] nan report

2009-04-23 Thread Mathias Fröhlich
Hi, On Tuesday 21 April 2009 02:34:06 gerard robin wrote: On mardi 21 avril 2009, syd adams wrote: Im getting the same messages at startup , at any airport I try , but usually it stops after an exit and restart. I thought it was something local since no one on IRC had the same