--------------------------------------------------
From: "Alan Teeder" <[email protected]>
Sent: Saturday, March 20, 2010 6:55 PM
To: "FlightGear developers discussions" 
<[email protected]>
Subject: Re: [Flightgear-devel] Bounce at startup.

>
> --------------------------------------------------
> From: "Ron Jensen" <[email protected]>
> Sent: Saturday, March 20, 2010 5:28 PM
>
>>
>> By design a gear doesn't support weight until it reaches >0.99 of
>> extension.  This was done so the gear would collapse rapidly if it was
>> retracted on the ground.
>>
>>  In FGLGear code the gear is initialized to "down"
>>  In Aircraft/controls.cxx gear is initialized to "down"
>>  In preferences.xml gear is initialized to "down"
>>
>> As near as I can tell the gear is always "down" on the c182rg model
>> during initialization.  I verified this by adding a line to
>> source/src/FDM/JSBSim/models/FGLGear.cpp FGLGear::GetBodyForces
>>
>> if (t<30.) cout << "Gear is down : "<<GearDown <<endl;
>>
>> Cheers,
>> Ron
>
>
> Ron
>
> I added your test line to FGLGear.cpp, and with my model GearDown is 0 for 
> 3
> frames and then 1 for 4 frames. This is not so for aircraft that do not
> exhibit the bounce fault, so it looks as if I have go through the 
> spaghetti
> code that is my FDM and model.
>
> Thanks for the help.
>
> Alan
>

Thanks Ron , your patch pointed me to the problem, which is now fixed. I had 
bits of code stolen/borrowed from various aircraft and they were fighting 
each other.

On to the next problem ....

Alan 


------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Flightgear-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to