From: grtuxhangar t. <grt...@gm...> - 2014-01-18 23:43:02
|
Hello, Erik Ok, i understand why i have some models which get some strange behaviour. Looking at your code within jsbsim.cxx i find the following: static SGPropertyNode_ptr terrain_nas = fgGetNode("/fdm/jsbsim/environment/terrain-hight", false); if (!terrain_nas && material) { thus the condition at ("/fdm/jsbsim/environment/terrain-hight", false) makes fg terrain taken in account or not. Unfortunately "/fdm/jsbsim/environment/terrain-hight" is not ever present it depends on the aircraft and the age of the models ( older have not that property). So the condition cannot be hardcoded on it. We must define a flag which will be used by every JSBSim Aircraft. Bertrand is right the feature could be disabled by default, and the flag if present will enable the feature That's the best way to be sure we don't break the others models (jsbsim). Thanks Josh On 18 January 2014 15:49, grtuxhangar team <grt...@gm...> wrote: > Oh yes, > > Did not know there was disciple. > Or only because of: > the same requirements leads to the same solution > > Josh > > > > On 18 January 2014 15:37, Bertrand Coconnier <bco...@gm...> wrote: > >> 2014/1/18 grtuxhangar team <grt...@gm...> >> >>> Hello, Bertrand >>> >>> You are right, however we may make an exception, since that Nasal script >>> with JSB systems workaround seems to be not popular ( only the Gerard's >>> models were using it ). >>> However if there is an easy way with switch (with FG terrain or without >>> ), we "buy" it :) >>> >>> thanks >>> >>> Josh >>> >>> >> >> Flug seems to have conducted an effort similar to yours (see >> http://forum.flightgear.org/viewtopic.php?f=49&t=21780&start=60#p197817). >> So I would not bet that your models would the only ones to be affected. >> >> Bertrand. >> >> >> ------------------------------------------------------------------------------ >> CenturyLink Cloud: The Leader in Enterprise Cloud Services. >> Learn Why More Businesses Are Choosing CenturyLink Cloud For >> Critical Workloads, Development Environments & Everything In Between. >> Get a Quote or Start a Free Trial Today. >> >> http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk >> _______________________________________________ >> Jsbsim-devel mailing list >> Jsb...@li... >> https://lists.sourceforge.net/lists/listinfo/jsbsim-devel >> _______________________________________________ >> The JSBSim Flight Dynamics Model project >> http://www.JSBSim.org >> _______________________________________________ >> >> >> > |