Archived

This topic is now archived and is closed to further replies.

Guest Ron Freimuth

Some questions about a HUD type gauge

Recommended Posts

Help AVSIM continue to serve you!
Please donate today!

Hi,Your code: (P:Zulu time, seconds) 1 % 2 * flr if{ (A:Airspeed select indicated or true, knots) (>L:Airspeed t1, number) } els{ (A:Airspeed select indicated or true, knots) (>L:Airspeed t2, number) } (L:Airspeed t1, number) (L:Airspeed t2, number) - (>L:Airspeed diference, number)won't work as expected because you're continiously updating either LAirspeed var. This code works fine for one sec rate :(P:Absolute time,seconds) abs (L:Time Stamp,seconds) - abs 1 > if{ (A:Airspeed select indicated or true,feet per second) s0 (L:Airspeed previous, feet per second) - (>L:Airspeed diff, feet per second)l0 (>L:Airspeed previous, feet per second)(P:Absolute time,seconds) abs (>L:Time Stamp,seconds)}feet/sec gives a better handling number.As for the HUD part, maybe Jan or other "HUD experts" could give you some help.Tom

Share this post


Link to post
Share on other sites

Ha,First a picture to make clear what is needed or wanted.Jan"Beatus ille qui procul negotiis..."

Share this post


Link to post
Share on other sites

I have attached a screenshot of the hud. The horizon line does shift whit the pitch an aircraft

Share this post


Link to post
Share on other sites

Well,Beautifull hud!!!!The small circle is the "Cue", dependant of the flightdirector.The big circle with wings is the velocity vector.You have to steer the big one over the small one.The velocity code of course must be ok!The horizon line code looks complicated with the moving heading numbers so i don't understand why it should'nt rotate.Anyway this is my solution:other ladder elements-------------------------------------------------------------------------------(A:Attitude indicator bank degrees, radians)other ladder elements(A:Attitude indicator pitch degrees, degrees) /-/So all ladder elements rotate individually and shift together.Hope it helps,Jan"Beatus ille qui procul negotiis..."Soy for the very bad .jpghttp://forums.avsim.net/user_files/136781.jpg

Share this post


Link to post
Share on other sites

Typo: Sorry Tom, I meant Tom instead of Ron, I Think I had A "Lapsus Brutus". Thanks for the code again.Javier.

Share this post


Link to post
Share on other sites

It's ok Javier :-)Y feliz Navidad para vos tambien!(And Merry Christmas to you as well!)Tom

Share this post


Link to post
Share on other sites

Hi,No single bitmap in my HUD.Velocity Vector is related to (A:Velocity body X,Y and Z, m/s)As in:................................(A:Velocity body X, m/s) (A:Velocity body Z, m/s) atg2 rddg (A:Velocity body Y, m/s) (A:Velocity body Z, m/s) atg2 rddg Jan"Beatus ille qui procul negotiis..."

Share this post


Link to post
Share on other sites

Hi,Not using bitmaps this is my code:I(A:Plane heading degrees gyro, degrees) dnor 0 max 10 % (A:Attitude indicator bank degrees, radians)Replace text with bitmap.Hope it works,Jan"Beatus ille qui procul negotiis..."

Share this post


Link to post
Share on other sites

Hi,I think may be it is impossible to shift for heading and rotate the bitmap for bank and shift for pitch together and that has probably to do with the changing axis.That is why i use single text elements.Jan"Beatus ille qui procul negotiis..."

Share this post


Link to post
Share on other sites

Javier:I would say keep at it. What you're after is *probably* possible. In my HUD there was one element that shifted around with the velocity vector, rotated in several different ways around shifting axes, etc., and I had a lot of trouble getting it to work properly. It ended up needing 2 rotates, then 2 shifts, then 1 more rotate to work as needed. The order of those shifts and rotates was the key.... No, this doesn't necessarily help you with your specific problem (sorry!), but the more I fool with XML the more I realize that really a lot more is possible than I first thought. So again, keep at it! And yes, large amounts of aspirin are essential....

Share this post


Link to post
Share on other sites

Hi!Finally!, my horizon line rotates!. I have to change to single elements to rotate them and I don

Share this post


Link to post
Share on other sites

Hi!Finally!, my horizon line rotates!. I have to change to single elements to rotate them and I don

Share this post


Link to post
Share on other sites

Hi!Finally!, my horizon line rotates!. I have to change to single elements to rotate them and I don

Share this post


Link to post
Share on other sites

Resurrected post to recover the necroed XML script - Bill (N4GIX)

Hi,Not using bitmaps this is my code:
<Element><Text X="20" Y="12"  Bright="Yes" Length="3"  Font="Arial black" Color="#00ff00"   Adjust="center" VerticalAdjust="center" Multiline="No"><String>I</String><Axis X="-290" Y="0"/></Text><Shift><Value>(A:Plane heading degrees gyro, degrees) dnor 0 max 10 % </Value><Nonlinearity><Item Value="0" X="0" Y="0"/><Item Value="10" X="-200" Y="0"/></Nonlinearity></Shift><Rotate><Value>(A:Attitude indicator bank degrees, radians)</Value></Rotate><Clip Left="262" Right="762" Top="200" Bottom="604"/></Element>

Replace text with bitmap.Hope it works,Jan"Beatus ille qui procul negotiis..."

Share this post


Link to post
Share on other sites