On Monday 19 March 2012 07:22:52 Renk Thorsten wrote:
> > You ought to be able to initialize any vehicle at any altitude (up to and
> > even beyond 3000 km). At this time, only the Vostok has control jets, as
> > far as I know.
>
> Actually I can not do that. Trying to initialize the ufo at 1.000.000 ft
> works fine, and so does flying the ufo to the altitude. I've then removed
> the altitude limit detection from the Vostok model leading to an automatic
> scenario termination. Trying to initialize Vostok at 1.000.000 ft causes
> Flightgear not to load properly (it gets stuck and some JSBSim messages
> never appear), trying to fly up beyond 150 km altitude causes a crash of FG
> shortly after reaching the red zone. So something is happening with a
> JSBSim model which isn't happening with the ufo FDM.
>
> Cheers,
>
> * Thorsten

I assume you ran into a bunch of PT_vs_hpt: ran out of layers for h= messages. 
This is from FlightGear's rather brittle atmosphere model. The attached patch 
adds a deep-space layer out to 1e9 meters. I just arbitrarily set the 
pressure to near 0 and the temperature to damn cold. This patch let me 
initialize a random JSBSim model at a million feet, however there were still 
some NaNs present in the property tree when I made it back to sea-level.

Ron

I sent this half an hour ago, and sourceforge ate it. I'll send it again to 
see if this one comes through in a timely fashion...
diff --git a/src/Environment/atmosphere.cxx b/src/Environment/atmosphere.cxx
index 022ea54..f16005f 100644
--- a/src/Environment/atmosphere.cxx
+++ b/src/Environment/atmosphere.cxx
@@ -18,7 +18,8 @@ ISA_layer(3,  32000,  104986,  868.019,    0.256326, 228.65, -44.50, -0.0028,  -
 ISA_layer(4,  47000,  154199,  110.906,   0.0327506, 270.65,  -2.50,       0,           0),
 ISA_layer(5,  51000,  167322,  66.9389,   0.0197670, 270.65,  -2.50,  0.0028,   0.0008534),
 ISA_layer(6,  71000,  232939,  3.95642,  0.00116833, 214.65, -58.50,  0.0020,   0.0006096),
-ISA_layer(7,  80000,  262467,  0.88628, 0.000261718, 196.65, -76.50),
+ISA_layer(7,  80000,  262467,  0.88628, 0.000261718, 196.65, -76.50,  0.0,      0.0),
+ISA_layer(8,  1.0e9,  3.28e9,  0.00001, 3.0e-9,        2.73, -270.4,  0.0,      0.0),
 };
 
 const int ISA_def_size(sizeof(ISA_def) / sizeof(ISA_layer));

------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to