O.K., I have found out some things now... :
The code of
jetway-movable.xml and the versions -2 and -3 (for two and three doored jetways) have at least one bug:
The check for "jetway-hood-deg" is done in "/aircraft" rather than "/aircraft/door[x]/"
It took me some time, to find that one out.
On the way I wondered, if there is also a problem with brackets. I do not know how it is with NASAL, but in all programming languages I know the keyword "AND" is superior to any other operator. (I filled in some brackets before I found the missing "door[x]" branch. So I don´t know if that was part of the problem.)
That means:
(1 < 3 AND 1) is FALSE while
((1 < 3) AND 1) is TRUE.
And if You have got that all working, the jetways will do what they want!I am not sure, that the computings in
jetway-movable.xml will lead to the wanted results.
If You use the values from the tutorial, they will not.
Maybe I did not get the hang about what coordinates I have to enter into the "/aircraft" node. (By the way: they are called "/x-m" and so on and NOT "position-x-m" as You are told in the tutorial... but that is a minor problem.)
I read the hole code by now, but with the mathematical functions in it, I will have to check some more things.
There are some obvious algebraic errors. But that´s GEOMETRY for You
Till then,
clint
Happy landings? I had a few...
All the best and many happy landings from clint.