Am 25.01.2011 12:59, schrieb Geoff McLane:
> [... JSBSim trim failure report]
> Is this a problem? Certainly do not like seeing 'Failed',
> but it seems fg runs ok, and the aircraft seems to fly ;=))
> so maybe not a problem...
It is probably not a problem, except for adding complexity when hunting
NaNs...
What happens is that the JSBSim trim routine is bound as a listener to
the property /fdm/jsbsim/simulation/do_simple_trim. When a reset is
triggered, the whole property tree is copied to a new instance. This
triggers the listener. However, it runs on the old instance of JSBSim,
so the results will be dropped anyway as a new instance will be created.
I suggested a fix for that on the JSBSim-devel list, but that breaks
backwards compatibility, so we'll have to find something else. The best
way is probably -- as Jon proposed -- to reinitialize the existing
instance without copying the property tree. But this might be quite a
large task.
Is the do_simple_trim property used in any FlightGear aircraft? I didn't
find a reference to it in the fgdata aircraft dir, so it could be
possible to completely untie this in JSBSim.cxx or so. If not, it should
at least be untied before resetting.
Best regards,
Andreas
------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires
February 28th, so secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
Flightgear-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/flightgear-devel