Skip to content
View in the app

A better way to browse. Learn more.

The AVSIM Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Please help editing xml for fuel quantity gauge/switch

Featured Replies

I would like to place the switch to the right and put the switch directly below the gauge like in the real aircraft. What values need to be edited?

 

<Gauge Name="fuelqty" Version="1.0">

<Image Name="fuelqty.bmp"/>

<Element>

<Position X="113" Y="113"/>

<Image Name="fuelqty_needle.bmp" PointsTo="east">

<Axis X="44" Y="10"/>

</Image>

<Rotate>

<Value Minimum="0" Maximum="7000">(L:Fuel tank, enum) 0 == if{ (A:Fuel tank left tip quantity, gallons) 6.6 * } (L:Fuel tank, enum) 1 == if{ (A:Fuel tank left main quantity, gallons) 6.6 * } (L:Fuel tank, enum) 2 == if{ (A:Fuel tank center quantity, gallons) 6.6 * } (L:Fuel tank, enum) 3 == if{ (A:Fuel tank right main quantity, gallons) 6.6 * } (L:Fuel tank, enum) 4 == if{ (A:Fuel tank right tip quantity, gallons) 6.6 * } (L:Fuel tank, enum) 5 == if{ (A:Fuel total quantity, gallons) 6.6 * }</Value>

<Nonlinearity>

<Item Value="0" X="66" Y="189"/>

<Item Value="7000" X="159" Y="189"/>

</Nonlinearity>

<Delay DegreesPerSecond="180"/>

</Rotate>

</Element>

<Element>

<Position X="0" Y="0"/>

<Select>

<Value>(L:Fuel tank,enum)</Value>

<Failures>

<SYSTEM_ELECTRICAL_PANELS Action="0"/>

</Failures>

<Case Value="0">

<Image Name="fuelqty_0.bmp"/>

</Case>

<Case Value="1">

<Image Name="fuelqty_1.bmp"/>

</Case>

<Case Value="2">

<Image Name="fuelqty_2.bmp"/>

</Case>

<Case Value="3">

<Image Name="fuelqty_3.bmp"/>

</Case>

<Case Value="4">

<Image Name="fuelqty_4.bmp"/>

</Case>

<Case Value="5">

<Image Name="fuelqty_5.bmp"/>

</Case>

</Select>

</Element>

<Mouse>

<Area Left="244" Right="328" Top="38" Bottom="179">

<Click>(L:Fuel tank,enum) 0 > if{ (L:Fuel tank,enum) 1 - (>L:Fuel tank,enum)</Click>

<Cursor Type="DownArrow" Repeat="Yes"/>

</Area>

<Area Left="329" Right="423" Top="38" Bottom="179">

<Click>(L:Fuel tank,enum) 5 < if{ (L:Fuel tank,enum) 1 + (>L:Fuel tank,enum)</Click>

<Cursor Type="UpArrow" Repeat="Yes"/>

</Area>

</Mouse>

</Gauge>

 

I would like the switch to look like this.

You 'll have to experiment with the x=".." and y=".." coordinates in the <Position> tags i think.

Jan

 

 

 

"Beatus ille qui procul negotiis..."

  • Author

I just want to move the switch. So which position value would that be? I assume I ll have to edit the area value as well under the mouse value correct?

It is the second <pos> and yes you must edit the click areas too.

Jan

 

 

 

"Beatus ille qui procul negotiis..."

  • Author

thanks Jan, I ll give it a go.

  • Author

What value is the click areas? Is it the area value? I do not understand the left, right, top, bottom numerical format. Do these values rotate the knob?

<Area Left="..." Right="..." Top="..." Bottom="...">

 

are the coordinates of the area in your background bitmap, fuelqty.bmp, where you can click the knob.

Jan

 

 

 

"Beatus ille qui procul negotiis..."

  • Moderator

You would also have to edit the background image if you wish the switch to be below the gauge face as shown in your example picture!

Fr. Bill    

AOPA Member: 07141481 AARP Member: 3209010556


     Avsim Board of Directors | Avsim Forums Moderator

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.