Sign in to follow this  
spokes2112

XML - Setting Decision Height in 10 foot increments

Recommended Posts

To Arne Bartels and all,I am working on a 737-400 EADI and have some problems with setting the Decision Height in 10 foot increments. Here's the working code of this element where increments are set to 1 meter: "(A:Circuit general panel on, bool)DH %((A:DECISION HEIGHT, feet))%!3d! feet) 1 (>K:DECREASE_DECISION_HEIGHT) 1 (>K:INCREASE_DECISION_HEIGHT) "By using the " 3" (Mouse Area) argument increments are set to 3 meters, but that's not as accurate as required, as 1 foot equals 0.3048 meter. I have tried to round off the value by using the "near 10" argument, but the result is either the fixed values "0", "1" or a blank EADI Display!Best regardsJan Harry Sorensen

Share this post


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

Sorry, it's always multiples of meters as increment, you can't use exact feet for it. All you an do is to "fake" a bit on the display and adapted step sizes, so that it displays always steps of 10 feet, even if they aren't exactly 10 feet.Arne Bartels

Share this post


Link to post
Share on other sites

Thank you Arne. I will try to do as you suggest. Don't know exactly how right know, but maybe to put in a mask area with the fixed "value" "0" (text) to cover up for the third digit. Another solution could be to program the whole EADI with the FS2002 SDK and VC++ 6 and using the meter/feet conversion factor?Best regardsJan Harry Sorensen

Share this post


Link to post
Share on other sites

The problems aren't solvable in C gauges, the increment is always in meters.Arne Bartels

Share this post


Link to post
Share on other sites

>The problems aren't solvable in C gauges, the increment is >always in meters. >Arne BartelsOkay, thanks anyway. I will keep on with XML editing instead of the VC++ coding.Best regardsJan Harry Sorensen

Share this post


Link to post
Share on other sites

I'll think of adaptable increments in XML, but it will take a bit time.Arne Bartels

Share this post


Link to post
Share on other sites

>I'll think of adaptable increments in XML, but it will take >a bit time. >Arne BartelsThat's very kind, Arne. I have in a way fixed this issue by adding an extra element with text and by adjusting the DH "X" and "Y" text values. Another problem: The Mach indication should only be visible when speed exceeds .40 MACH. The MACH element:(A:Circuit general panel on, bool)%((A:Airspeed mach, machs) 0 max 9.99 min)%!.3f!Below pictures of the EADI, first at high speed approaching the high speed buffer zone, and secondly on approach.badderjet:Yes, I am planning to build in an aural warning for "Minimums", but that will require quite some "tinkering" :-). A new sound gauge would have to be built in C.Best regardsJan Harry Sorensen

Share this post


Link to post
Share on other sites

Something like:<Visible> (A:Circuit general panel on, bool) (A:Airspeed mach, machs) 0.4 > && </Visible>?Arne Bartels

Share this post


Link to post
Share on other sites

>Something like: > (A:Circuit general panel on, bool) >(A:Airspeed mach, machs) 0.4 > && > >? >Arne BartelsHi Arne,I will certainly test this code and report back here. Thanks a lot for your effort :-). Best regardsJan Harry Sorensen

Share this post


Link to post
Share on other sites

Hi Arne,What can I say? You are the king :-), no doubt about that! The Mach indicator comes on at .40 MACH on the way up and goes off when speed is below .40 MACH again! Just amazing and thank you very much indeed! Here's the code:(A:Circuit general panel on, bool) (A:Airspeed mach, machs) 0.4 > && %((A:Airspeed mach, machs) 0 max 9.99 min)%!.3f!Best regardsJan Harry Sorensen

Share this post


Link to post
Share on other sites

Hi badderjet,I am not the expert for sure! Arne Bartels however has made a document were he summarizes all used operators, functions and modifiers, and I guess that you can find this document in the AVSIM File Library. Unfortunately the postings on this forum with the code examples are changed (HTML), it's therefore difficult to use them here.One thing I have found out regarding XML is to open the .xml document in Internet Explorer, which in turn will check and report if the XML syntax have errors with a reference to the error origin. If using for example a text editor with line and column functionality it's fairly easy to find the spot. But that does not necessarily mean that the error is right there, it's usually somewhere else :-). IE does not really check for errors in a FS2002 .xml document, just for XML in general.Best regardsJan Harry Sorensenwww.jspanels.com

Share this post


Link to post
Share on other sites

There are some tricks avoiding the reformatiing here in the forum, but it takes a certain amount of work (I edited my last code example four times until I got all operators right). All <'s have to be typed <, all >'s have to be typed > all &'s replaced by &.

Share this post


Link to post
Share on other sites

Jan,Badderjet's reply seems like the best way to get around the Decision Height Variable being set solely to meters. You could then use A:Radio Height, Feet to compare for a warning. For example based on your code, using G:Var1, and having the display turn red upon reaching and under the DH set by G:Var1.Your site looks like a very good place for gauge and panels designers to "converse". Going to sign up right after this reply, Thanks for the work :-)"(A:Circuit general panel on, bool) >DH %((G:Var1))%!3d!%{end} >(G:Var1) 10 - 0 max (>G:Var1)(G:Var1) 10 + 1000 min (>G:Var1)" Roman(KGRB)

Share this post


Link to post
Share on other sites

>Hey THATS your site??? :-eek :-eek Cool thing!!! I like it! >And... I should get that ATR42... :-) ... but tomorrow. >Do you make EVERYTHING by yourself? Or are you 'just the >panel man'? >>Regards :-wave from EDDF >>http://flightsimmers.net/airport/etti/signature_pro.jpgYes sir, that's my site :-) You are welcome to download the ATR42-500 package. I am doing the panels and some of the gauges, and some FDE. Repainting is not my stuff :-). For the new 737-400 project I plan to code almost all gauges. I have BTW made a small update of the ATR42 Timer/Clock (fixed sim rate) and if you submit a message in the Feedback module, I can email this one to you.Best regardsJan Harry Sorensenwww.jspanels.com

Share this post


Link to post
Share on other sites

Hi Roman,You wrote:Badderjet's reply seems like the best way to get around the Decision Height Variable being set solely to meters. You could then use A:Radio Height, Feet to compare for a warning. For example based on your code, using G:Var1, and having the display turn red upon reaching and under the DH set by G:Var1.This is just terrific! I will try this code ASAP, and I will let you know what happens here.Best regardsJan Harry Sorensen

Share this post


Link to post
Share on other sites

>Jan, >>Just tried a few times to get registered into your site with >no success. On the "would be" confirmation page I got _error > that's it. >>http://home.new.rr.com/spokes2112/xmlexplorer.htm >>Roman >(KGRB) Hi Roman,I am very sorry for the inconvenience, and will have a check on the web files again, and will come back to you.Best regardsJan Harry Sorensenwww.jspanels.com

Share this post


Link to post
Share on other sites

*yawn* Gd'morning Jan, morning Romann and everyone else,I have just registered at jspanels.com, hehe I like the thing with the different site themes!The ATR is great! Especially panel&sounds, well I don't think the outside model is bad, but it doesn't seem to be a gmax model (no doors, no reflective textures...). I like the big primary instruments, they're readable very well. :-hahHave a nice day :-)http://flightsimmers.net/airport/etti/signature_pro.jpg

Share this post


Link to post
Share on other sites

>*yawn* Gd'morning Jan, morning Romann and everyone else, >>I have just registered at jspanels.com, hehe I like the >thing with the different site themes! >The ATR is great! Especially panel&sounds, well I don't >think the outside model is bad, but it doesn't seem to be a >gmax model (no doors, no reflective textures...). I like the >big primary instruments, they're readable very well. :-hah >>Have a nice day :-) >>http://flightsimmers.net/airport/etti/signature_pro.jpg** Yawn ** Indeed and Good Morning to you all :-)I have just sent you, Etienne the updated ATR Timer/Clock. You are right that the ATR42 is not a GMax model, but there are two doors there, just press the ['] key (left of the ENTER key) on the keyboard.Also thanks to Arne for the tips on how to enter the XML operators correctly on this forum, it really helped me when I used Roman's code for the DH Annunciator :-)Best regardsJan Harry Sorensenwww.jspanels.com

Share this post


Link to post
Share on other sites

I too am one of a long line of people learning the new xml format gauges and was wondering what that XML explorer was. Is it available or just a preview.David G

Share this post


Link to post
Share on other sites

David, Well, I never got a word back from the first tester I sent it to. I am assuming it didn't work as now that I am patrnering up with another gentleman on a project his gauges did not work with it either. It is all dependant on programmer style. While it does follw the MS SDK style for programming, in my mind it is not the most effecient way now that I've seen others work. It is not a dead horse, but has now fallen back almost to step 1. Roman(KGRB)

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