From: Bertrand C. <bco...@gm...> - 2019-04-06 21:15:06
|
Hi Gijs, This should now be fixed in JSBSim and FlightGear. Regards, Bertrand. Le dim. 17 mars 2019 à 19:26, Bertrand Coconnier <bco...@gm...> a écrit : > Hi Gijs, > > I have opened an issue on GitHub > https://github.com/JSBSim-Team/jsbsim/issues/176 about the problem you > reported. > > Thanks. > > Bertrand > > Le lun. 11 mars 2019 à 18:12, Gijs de Rooy <gij...@ho...> a > écrit : > >> Hi all, >> >> I've got a question about nested tests in switches. The following code >> does not work as advertised in current FlightGear. Whenever >> fcs/flaps/cmd-detent-deg == 25 or 30, fcs/flaps/int-cmd-deg is set to >> 20, even tough the velocity is smaller than 203 (in fact it is 0). >> Apparently the first nested test ignores the velocity test. >> >> <switch name="fcs/flaps/int-cmd-deg"> >> <default value="fcs/flaps/cmd-detent-deg"/> >> <test logic="AND" value="20"> >> velocities/vc-kts GT 203 >> <test logic="OR"> >> fcs/flaps/cmd-detent-deg == 25 >> fcs/flaps/cmd-detent-deg == 30 >> </test> >> </test> >> <test logic="AND" value="25"> >> velocities/vc-kts GT 170 >> velocities/vc-kts LT 203 >> fcs/flaps/cmd-detent-deg == 30 >> </test> >> </switch> >> >> The following does work, but it leads to more duplicated code: >> >> <switch name="fcs/flaps/int-cmd-deg"> >> <default value="fcs/flaps/cmd-detent-deg"/> >> <test logic="AND" value="20"> >> velocities/vc-kts GT 203 >> fcs/flaps/cmd-detent-deg == 25 >> </test> >> <test logic="AND" value="20"> >> velocities/vc-kts GT 203 >> fcs/flaps/cmd-detent-deg == 30 >> </test> >> <test logic="AND" value="25"> >> velocities/vc-kts GT 170 >> velocities/vc-kts LT 203 >> fcs/flaps/cmd-detent-deg == 30 >> </test> >> </switch> >> >> According to an old message by Jon [1], the first one was known to fail >> back in 2012, but I think it should work nowadays, right? Is it broken >> (again) or did I miss anything? >> >> Thanks! >> >> Gijs >> >> [1] https://sourceforge.net/p/jsbsim/mailman/message/30022194/ >> _______________________________________________ >> Jsbsim-devel mailing list >> Jsb...@li... >> https://lists.sourceforge.net/lists/listinfo/jsbsim-devel >> _______________________________________________ >> The JSBSim Flight Dynamics Model project >> http://www.JSBSim.org >> _______________________________________________ >> >> |