[jhb] Re: Gauge Help Needed

  • From: Gerry Winskill <gwinsk@xxxxxxx>
  • To: jhb@xxxxxxxxxxxxx
  • Date: Thu, 29 Apr 2010 17:04:41 +0100

Frank,

Finally managed to get it working! Examined several PFD Gauges' PFD.xml files to discover the correct context.

All's well etc etc.

Gerry Winskill

Frank Turley wrote:
Hi Gerry,

Don't have the variables handy since my old m/c went west, but I thought you
needed something like -

A:[Variable],[Units]

So I'm guessing there should be a comma betwixt AIRSPEED and MACH?

Frank T.


-----Original Message-----
From: jhb-bounce@xxxxxxxxxxxxx [mailto:jhb-bounce@xxxxxxxxxxxxx] On Behalf
Of Gerry Winskill
Sent: 28 April 2010 14:52
To: JHB Restricted
Subject: [jhb] Gauge Help Needed

I'm using a Garmin unit in a bizjet, though it was intended for a propjet single. For the jet, it has the disadvantage of not showing mach numbers. So, I'm cobbling together a small supplementary gauge, intending to didplay theM number that's been dialed into the Autopilot with, below it, the current mach number achieved. The text is in but I've not managed either of the two vlaues.

Any advice appreciated. At present the gauge xml file reads:



  <?xml version="1.0"?>
  <Gauge Name="GW_MACH" Version="1.0">
  <Image Name="GW_WIND.bmp"/>







        <Element>
        <Position X="45" Y="15"/>
<Text X="260" Y="40" Length="40" Font="quartz" Color="#FF0000" VerticalAdjust="Center">
             <String>%SELECTED MACH SPEED %</String>
        </Text>
     </Element>

        <Element>
        <Position X="260" Y="15"/>
<Text X="260" Y="40" Length="40" Font="quartz" Color="#FFFF00" VerticalAdjust="Center">
             <String>%((A:AP_MACH_VAR_SET, percent))%!03d! </String>
        </Text>
     </Element>



        <Element>
        <Position X="45" Y="40"/>
<Text X="260" Y="40" Length="40" Font="quartz" Color="#00FF00" VerticalAdjust="Center">
             <String>%CURRENT MACH SPEED %</String>
        </Text>
     </Element>

        <Element>
        <Position X="260" Y="40"/>
<Text X="260" Y="40" Length="40" Font="quartz" Color="#FFFF00" VerticalAdjust="Center">
             <String>%((A:AIRSPEED MACH))%!03d! </String>
        </Text>
     </Element>



  </Gauge>                


The gauge appears OK but neither of the desired values appear, just a pair of 000 displays.



Gerry Winskill

No virus found in this incoming message.
Checked by AVG - www.avg.com Version: 9.0.814 / Virus Database: 271.1.1/2838 - Release Date: 04/27/10
07:27:00




Other related posts: