Sign in to follow this  
phjvh

I thought I knew something about XML.

Recommended Posts

Hi, I thought I knew something about XML but that is a mistake. )-:I ran into this ineteresting code yesterday //(M:Y) (*Get Y*) 30 - (*skip top runof*) 315 / (*divide by running height*) 0 max 1 min (*into [0-1]*) 1 - /-/ (*from bttom to top*) 1 (A:Throttle lower limit,part) s0 - * l0 + (*apply lower limit*) 16384.0 * (*KEY_THROTTLE1_SET requires 16k*) d (>K:THROTTLE1_SET) (>K:THROTTLE2_SET) (>K:THROTTLE3_SET) (>K:THROTTLE4_SET) (A:Autopilot throttle arm,bool) if{ 1 (>K:AUTO_THROTTLE_ARM) }(M:Y) 10 - 162 / 0 max 1 min 1 - /-/ 1 (A:Throttle lower limit,part) s0 - * l0 + 16384.0 * (>K:THROTTLE_SET)This mouse click part is from a Throttle/Reverse throttle xml gauge. The image is a vertical bar. Dependig on where you click on that bar you invoke forward throttle or reverse throttle. 1. It seems to be possible to have 2 click statements in one statement 1a. Would the // in front of

Share this post


Link to post
Share on other sites
Help AVSIM continue to serve you!
Please donate today!

>1. It seems to be possible to have 2 click statements in one> statement >1a. Would the // in front of with that?Of course! the // is commenting out that entire statement! You can still only have one mouse action per area.>2. Never saw Click Kind=. Are there more kinds?Yes, as many variations as you can think of, such as:etc.>3. What does "LeftSingle+LeftDrag" mean, do?The action occurs only if the left button is held down and the mouse is dragged.>4. It seems that x and y position can be obtained by (M:Y)M:X will return the x positionM:Y will return the y position

Share this post


Link to post
Share on other sites

Thanks Bill,Had to look for a while at:>3. What does "LeftSingle+LeftDrag" mean, do?The action occurs only if the left button is held down and the mouse is dragged.

Share this post


Link to post
Share on other sites

>3. What does "LeftSingle+LeftDrag" mean, do?The action occurs only if the left button is held down and the mouse is dragged.(M:Event) 'LeftSingle' scmp 0 == if{ do this as long as the left button is held down }(M:Event) 'Leave' scmp 0 == if{ do this when left button is released }>Another thing that puzzles me is (A:Throttle lower limit,part)What does this var contain? Does it differ between aircraft?Is it a value that is set in the air file or aircraft.cfg?<(A:Throttle lower limit,part or percent) is the bottom index number of a throttle, 0 for GA and usually negative (ie -30 percent) for jet engines with reverse thrust. Tom

Share this post


Link to post
Share on other sites

Hello Tom,I will test the var to see what it gives. I entered this gauge in a 1900D turbo twin and to my surprise it works like a charm.I am working on an autoland for this aircraft so I only need the part that will invoke the reverse throttle on touch down. It's a bit difficult to see (for me )-:) what part of the code would do the trick. Your help is very much appriciated.Thanks for your help,Roelof

Share this post


Link to post
Share on other sites

Roelof,Reversers should work as soon as the nose wheel hits the ground, so I would test for Radio Altimeter decrease = 0 and then apply reverse thrust. Let me know if you still have trouble to make it work :-)Tom

Share this post


Link to post
Share on other sites

>Reversers should work as soon as the nose wheel hits the>ground, so I would test for Radio Altimeter decrease = 0 and>then apply reverse thrust. Let me know if you still have>trouble to make it work :-)>>TomHi Tom,After I discovered that these statements only seem to work when autothrottle is disabled I was on my way. The way I set it up is as follows:at 50 ft above GL disengage AT,(>K:THROTTLE_CUT), disengage AP,-16384.0 (>K:THROTTLE_SET), (A:GROUND VELOCITY,knots) 20 <, (>K:THROTTLE_CUT), Taxi to the gate manually.However, in the aircraft.cfg I found: min_throttle_limit = -0.25; Should I apply the (A:Throttle lower limit,part)?If so, what is the effect on -16384? Do I only apply 25% of that making it look like this: -16384.0 0.25 *(>K:THROTTLE_SET)?That is not very clear to me.Thanks for your time TomRoelof

Share this post


Link to post
Share on other sites

Roelof,That seems correct.In the aircraft.cfg you can set max rev power.So if you code -16384 throttle, only the amount set in the .cfg will be given.(I think...,SDK:Defines the minimum throttle position (percent of max). Normally 0 for piston aircraft and -0.25 for turbine airplane engines with reverse thrust.)Jan"Beatus ille qui procul negotiis..."

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this