Sign in to follow this  
Jimmy Angel

Creating a simple speed/alt/heading display

Recommended Posts

Hi, all.I am trying to create a simple gauge that will display things like aircraft heading, speed, and altitude. My goal is to have something I can refer to in the virtual cockpit to overcome issues of gauge refresh rate and clarity.I created a gray (600x30) bmp that I will use as the background in my test. I put this and the "Quickstrip" xml file into a directory called "Quickstrip" under gauges.I am referencing this new gauge from the panel.cfg like so:---[Window08]size_mm=600,30position=1background_color=0,0,0visible=0ident=12345gauge00=Quickstrip!Quickstrip,600,30---and here is the actual code for the gauge:<Gauge Name="Quickstrip" Version="1.0" Author="Shawn Click"> <Image Name="Quickstrip_bg.bmp" ImageSizes="600,30" Bright="Yes"/> <!--NUMERIC--> <Element> <Position X="10" Y="10"/> <Text X="30" Y="12" Length="3" Adjust="Center" Font="Arial" Multiline="No" Color="Red" Bright="Yes"> <String>%(360 (A:Plane heading degrees gyro, degrees) dnor near d 0 == ?)%!03d!</String> </Text> </Element> <Element> <Position X="50" Y="10"/> <Text X="33" Y="12" Length="5" Adjust="right" Font="Arial" Multiline="No" Color="Red" Bright="Yes"> <String>%((A:Airspeed select indicated or true,knots))%!3.0f!</String> </Text> </Element> <Element> <Position X="100" Y="33"/> <Text X="33" Y="12" Length="5" Adjust="right" Font="Arial" Multiline="No" Color="Red" Bright="Yes"> <String>%((A:Radio height,feet) 7 -)%!5.0f!</String> </Text> </Element> <Element> <Position X="150" Y="53"/> <Text X="33" Y="12" Length="5" Adjust="right" Font="Arial" Multiline="No" Color="Red" Bright="Yes"> <String>%((A:Vertical speed,feet per minute) 100 / int 100 *)%!3.0f!</String> </Text> </Element></Gauge>Problem is ... it just doesn't work. The "Quickstrip" window shows up in panel view or exterior view, but not in the VC view. When it does show up, the data and the gray background are not visible (it's just a black box).I am new at this so I am sure I am making some bonehad mistakes. Can someone point out what I am doing wrong, or offer any advice? Thanks in advance!

Share this post


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

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