Resets on the ground with JSBSim generally result in the c172 upside
down on the ground.  This is due to the trimming routine attempting to
trim the aircraft for an in-air condition.  This behavior is controlled
by the /sim/presets/onground prop.  On startup, this is set to true (as
it should) and on reset it is reset to that value by the
globals::restoreInitialState(). It does, however, get set to false by
the following code in fgInitPositio():
     if ( fgGetDouble("/sim/presets/altitude-ft") > -9990.0 ) {
         fgSetBool("/sim/presets/onground", false);
     } else {
         fgSetBool("/sim/presets/onground", true);
     }

IIRC, that's there for LaRCSim/UIUC.  Does anyone know if it's still
needed?
 
-- 
Tony Peden <[EMAIL PROTECTED]>


_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel

Reply via email to