On Wed, 24 Jun 2009, Jon S. Berndt wrote:

> This is a result of my experimenting with the multiple FDM feature again -
> which is not ready, but which should be innocuous. Apparently it's not. Did
> you use the JSBSim.cxx from JSBSim CVS? I think I can fix this fairly
> easily.

Jon,

Ron Jensen suggested this idea as a solution for the multiple FDM 
subtrees. It seems to work fine in FlightGear. Would it also work for your 
multiple FDM work in JSBSim/CVS?

Index: src/FDM/JSBSim/FGFDMExec.cpp
===================================================================
RCS file: /var/cvs/FlightGear-0.9/source/src/FDM/JSBSim/FGFDMExec.cpp,v
retrieving revision 1.31
diff -u -p -r1.31 FGFDMExec.cpp
--- src/FDM/JSBSim/FGFDMExec.cpp        1 Jun 2009 08:52:34 -0000 
1.31
+++ src/FDM/JSBSim/FGFDMExec.cpp        25 Jun 2009 20:36:10 -0000
@@ -186,6 +186,8 @@ FGFDMExec::~FGFDMExec()

    PropertyCatalog.clear();

+  FDMctr--;
+
    Debug(1);
  }


Cheers,

Anders
-- 
---------------------------------------------------------------------------
Anders Gidenstam
WWW: http://www.gidenstam.org/FlightGear/

------------------------------------------------------------------------------
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to