> I have checked your code and it breaks the previous behaviour for
> JSBSim. Your code is overwriting JSBSim values during initialization,
> I would rather do it the other way around and make JSBSim overwrite
> FlightGear default values. Especially because the capacity of all the
> tanks is now set to zero instead of using the FDM model definition.
> 
> Enclosed is a patch that restores the normal behaviour : fuel
> capacity, level and density are set after the values defined in the
> aircraft JSBSim XML definition.
Ouch - that was my bad. I only initialized JSBSim properties from FlightGear 
properties which didn't work if tanks are only defined within the JSBSim 
config file. 
Your patch turns this the other way round. I tried to combine both versions 
and set JSBSim properties from FlightGear properties if they exist and create 
the FlightGear properties from JSBSim properties if not.

Looks good for me with the p51d-jsbsim, the c172p and the SenecaII.

Thanks for the fast bug-report and the solution!

Torsten 

------------------------------------------------------------------------------
The modern datacenter depends on network connectivity to access resources
and provide services. The best practices for maximizing a physical server's
connectivity to a physical network are well understood - see how these
rules translate into the virtual world? 
http://p.sf.net/sfu/oracle-sfdevnlfb
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to