Sign in to follow this  
phjvh

Gauge Editing

Recommended Posts

Hi all.I am trying to do something I thought was simple. Adding prop rpm to the tooltip section (See gauge xml below)of this gauge from Rick Piper's great Armsrong Whitworth Argosy.When you hover the mouse over the gauge now, all you get is "No2RPM" and I would like to get the rpm like the gauge with his excellent HS748.I have a real good XML editor, Altova XMLSpy so editing is no problem.Any help would be great, I think I am missing something simple.&ltGauge Name="No2_RPM_Indicator" Version="3.0"> &ltImage Name="RPM_Background.bmp" ImageSizes="143,143" Luminous="0"/> &ltElement> &ltPosition X="72" Y="72"/> &ltImage Name="RPM_Needle2.bmp" PointsTo="East" ImageSizes="62,13," Luminous="0"> &ltAxis X="7" Y="6.5"/> &ltRotate> &ltValue Minimum="-7520" Maximum="9390">(A:GENERAL ENG2 RPM,RPM) 7520 &ampampgt; (L:No2_HP_Cock, number) 1 &amplt; (A:general eng2 propeller lever position, percent) 0 &ampgt; &ampamp;&ampamp; &ampamp;&ampamp; if{ (A:general eng2 throttle lever position,percent) 93.8 * } els{ (A:GENERAL ENG2 RPM,RPM) 200 &amplt; (L:No2_HP_Cock, number) 2 &amplt; &ampamp;&ampamp; if{ (A:Eng2 oil pressure,PSI) 7520 - } els{ (A:GENERAL ENG2 RPM,RPM) 7520 - } } &ltFailures> &ltSYSTEM_ENGINE Action="0"/> &ltNonlinearity> &ltItem Value="-7520" X="71" Y="8"/> &ltItem Value="0" X="99" Y="17"/> &ltItem Value="3752" X="112" Y="23"/> &ltItem Value="4502.4" X="113" Y="24"/> &ltItem Value="8442" X="119" Y="34"/> &ltItem Value="9380" X="121" Y="36"/> &ltDelay DegreesPerSecond="10"/> &ltElement> &ltPosition X="72" Y="72"/> &ltImage Name="RPM_Needle1.bmp" PointsTo="East" ImageSizes="66,10," Luminous="0"> &ltAxis X="7" Y="5"/> &ltRotate> &ltValue Minimum="-7520" Maximum="9380">(A:GENERAL ENG2 RPM,RPM) 7520 &ampgt; (L:No2_HP_Cock, number) 1 &amplt; (A:general eng2 propeller lever position, percent) 0 &ampgt; &ampamp;&ampamp; &ampamp;&ampamp; if{ (A:general eng2 throttle lever position,percent) 93.8 * } els{ (A:GENERAL ENG2 RPM,RPM) 200 &amplt; (L:No2_HP_Cock, number) 2 &amplt; &ampamp;&ampamp; if{ (A:Eng2 oil pressure,PSI) 7520 - } els{ (A:GENERAL ENG2 RPM,RPM) 7520 - } } &ltFailures> &ltSYSTEM_ENGINE Action="0"/> &ltNonlinearity> &ltItem Value="-7520" X="71" Y="8"/> &ltItem Value="-7500" X="131" Y="48"/> &ltItem Value="0" X="11" Y="76"/> &ltItem Value="3752" X="109" Y="21"/> &ltItem Value="4502.4" X="121" Y="36"/> &ltItem Value="8442" X="100" Y="125"/> &ltItem Value="9380" X="70" Y="131"/> &ltDelay DegreesPerSecond="26"/> //---------------------------PROPELLER CONTROL UNIT----DART 520-------------- &ltElement> &ltSelect> &ltValue>(A:general eng2 throttle lever position,percent) 91 &amplt; (A:general eng2 propeller lever position, percent) 0 &ampgt; (L:No2_HP_Cock, number) 1 &amplt; (A:Sim on ground, bool) 0 &ampgt; (L:Emergency_Power, enum) 1 &amplt; &ampamp;&ampamp; &ampamp;&ampamp; &ampamp;&ampamp; &ampamp;&ampamp; if{ 16384 (&ampgt;K:PROP_PITCH2_SET) } els{ (A:general eng2 throttle lever position,percent) 90 &ampgt; (A:general eng2 propeller lever position, percent) 0 &ampgt; (L:No2_HP_Cock, number) 1 &amplt; (A:Airspeed true,knots) 25 &ampgt; (A:Airspeed true,knots) 140 &amplt; (A:ENG2 TORQUE, ft-lbs) 499 &ampgt; &ampamp;&ampamp; &ampamp;&ampamp; &ampamp;&ampamp; &ampamp;&ampamp; &ampamp;&ampamp; if{ 11960 (&ampgt;K:PROP_PITCH2_SET) } els{ (A:general eng2 throttle lever position,percent) 68 &ampgt; (A:general eng2 propeller lever position, percent) 0 &ampgt; (L:No2_HP_Cock, number) 1 &amplt; (A:Sim on ground, bool) 1 &amplt; (A:ENG2 TORQUE, ft-lbs) 499 &ampgt; (A:Airspeed true,knots) 139 &ampgt; &ampamp;&ampamp; &ampamp;&ampamp; &ampamp;&ampamp; &ampamp;&ampamp; &ampamp;&ampamp; if{ (A:general eng2 throttle lever position,percent) 95.07 / 16384 * (&ampgt;K:PROP_PITCH2_SET) } els{ (A:general eng2 throttle lever position,percent) 69 &amplt; (A:general eng2 propeller lever position, percent) 0 &ampgt; (L:No2_HP_Cock, number) 1 &amplt; (A:Sim on ground, bool) 1 &amplt; (A:ENG2 TORQUE, ft-lbs) 499 &ampgt; (A:Airspeed true,knots) 139 &ampgt; &ampamp;&ampamp; &ampamp;&ampamp; &ampamp;&ampamp; &ampamp;&ampamp; &ampamp;&ampamp; if{ 11957 (&ampgt;K:PROP_PITCH2_SET) } } } } &ltMouse> &ltTooltip&gtNo2 RPM Thanks.Dave.

Share this post


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

It's displaying exactly what you are telling it to:No2 RPMWhatever you place between the opening and closing tooltip tags is what will be displayed.

Share this post


Link to post
Share on other sites

Hi.I guess I didn't make myself as clear as I should have.I have tried all kinds of options in the tooltip box such as:No1RPM ((L:GENERAL ENG1 RPM number) 0 max 20000 min)No1RPM ((L:No1_Turbine_RPM, number) 0 max 20000 min)No1RPM ((L:No1_Turbine_RPM, number)-7520 max 9390 min)and so on, with no luck.I just posted the gauge xml "as is". Dave.

Share this post


Link to post
Share on other sites

Well, I don't do XML but a couple things I see:1) You're calling GENERAL ENG1 RPM as an L var not an A var, it's an A var.2) You're requesting it as a number here, but above as RPM.3) You're setting max value to 0 and min value 20000, is that correct?4) Would it be better to use the format within the tooltip to construct a display string?

Share this post


Link to post
Share on other sites

Try this code: %Engine RPM %((A:General eng rpm:1,RPM))%!d!%The whole tooltip all in one line of course.Herbert

Share this post


Link to post
Share on other sites

Hi,Or(from the SDK):or Propeller 1 RPM %((A:PROP1 RPM, rpm))%!d! RPMHope it helps,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