Jim Wilson said: > Mathias Fröhlich said: > > > > > Well, my first guesses were wrong, but I have found what JSBSim does now: > > > > The code in question is in FGJSBSim::do_trim(): > > > > if ( fgGetBool("/sim/presets/onground") ) > > { > > fgic->SetVcalibratedKtsIC(0.0); > > fgtrim = new FGTrim(fdmex,tGround); > > } else { > > fgtrim = new FGTrim(fdmex,tLongitudinal); > > } > > > > At initialization time /sim/presets/onground is true, at reset time it is > > false. > > It lookes like tGround triming also adjusts the height of the aircraft so that > > it does not get pushed into the air by the gear springs. Whereas > > tLongitudinal triming does not adjust the altitude. > > > > Just taking tGround triming all the time fixes the reset issue. But this is > > obviously not the right fix here. > > > > Did you trace this in a debugger? fgGetBook("/sim/preset/onground") is > definately true at the time the reset key is hit....otherwise that hack I > posted earlier would not work. >
Nevermind, I see it gets changed in fgInitPosition. Best, Jim _______________________________________________ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel