John Denker wrote:

> I observe that if the aircraft is initialized to an airborne 
> position, the /gear/gear/wow property is stuck at 1, 
> indicating weight on the wheels, even though the 
> compression-norm property is zero.
> 
>    This initialization can come via the command line
>    via --altitude=.... or via the location-in-air
>    popup menu.  The symptoms are the same either way.
> 
> In contrast, if the aircraft is initialized to a ground 
> location and actually performs a takeoff, the wow property 
> behaves as expected.
> 
>    This was observed with a variety of JSBsim aircraft,
>    including the default c172.
> 
> I surmise that the FDM is systematically updating the 
> compression-norm property, but is updating the wow property 
> only on occasion ... on too few occasions.
> 
> This causes bizarre bugs in aircraft with retractable gear 
> that try to use wow to implement a squat switch.
> 
> As a workaround, for now, unless somebody has a better idea, 
> I'm gonna check the compression-norm property instead of the 
> wow property.
> 
> Comments?  Suggestions?

I can't test this right now, but I suspect that this line in FGLGear.cpp
is the culprit:

  WOW = lastWOW = true; // should the value be initialized to true?

I recommend changing this to:

  WOW = lastWOW = false;

I suspect that will do the trick.

Jon



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Flightgear-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to