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.

Problem with fuel Contents gauge

Featured Replies

Hi guys, I hope you can help. I am new to XML, what a learning curve. I am trying to recreate the Panavia Tornado Fuel Contents gauge. Everything is working ok apart from my mouse click events. The test button works OK, both needles go to zero. But when I try to use the next mouse event on a different part of the gauge the needles both go to zero instead going to the correct value, which is the wing fuel contents. //------------------------Front / Left Fuel Quantity Needle <Element> <Position X="128" Y="128"/> <Image Name="FT_LF_Needle.bmp" Luminous="1" PointsTo="East" ImageSizes="117,36"> <Axis X="18" Y="18"/> </Image> <Rotate> <Value>(L:FUEL TANK FRONT QUANTITY,Gallons) if{ 1 (>L:FUEL TANK FRONT QUANTITY,Gallons) 0 3.8 * 0.8 * } els{ 0 (A:FUEL TANK CENTER QUANTITY,Gallons) (A:FUEL TANK CENTER2 QUANTITY,Gallons) + if{ (>L:FUEL TANK FRONT QUANTITY,Gallons) (A:FUEL TANK CENTER QUANTITY,Gallons) (A:FUEL TANK CENTER2 QUANTITY,Gallons) + 3.8 * 0.8 * } } </Value> <Failures> <SYSTEM_ELECTRICAL_PANELS Action="0"/> <GAUGE_FUEL_INDICATORS Action="Freeze"/> </Failures> <Nonlinearity> <Item Value="0" X="31" Y="157"/> <Item Value="500" X="38" Y="83"/> <Item Value="1000" X="97" Y="32"/> <Item Value="1500" X="174" Y="38"/> <Item Value="2000" X="224" Y="96"/> <Item Value="2500" X="224" Y="157"/> </Nonlinearity> <Delay DegreesPerSecond="60"/> </Rotate></Element><Mouse>//------------------------ Test Button <Area Left="0" Right="50" Top="0" Bottom="50"> <Cursor Type="Hand"/> <Click Kind="LeftSingle+LeftRelease"> (L:FUEL TANK FRONT QUANTITY,Gallons) ! (>L:FUEL TANK FRONT QUANTITY,Gallons) (L:FUEL TANK FRONT QUANTITY,Gallons) 0 == if{ 1 } els{ 0 } </Click> </Area> //------------------------ Wing Tanks <Area Left="200" Right="250" Top="0" Bottom="50"> <Cursor Type="Hand"/> <Click Kind="LeftSingle+LeftRelease"> (L:FUEL TANK FRONT QUANTITY,Gallons) ! (>L:FUEL TANK FRONT QUANTITY,Gallons) (L:FUEL TANK FRONT QUANTITY,Gallons) 1 == if{ 1 (A:FUEL TANK LEFT AUX QUANTITY,Gallons) if{ (>L:FUEL TANK FRONT QUANTITY,Gallons) (A:FUEL TANK LEFT AUX QUANTITY,Gallons) 3.8 * 0.8 * } } els{ 0 (A:FUEL TANK CENTER QUANTITY,Gallons) (A:FUEL TANK CENTER2 QUANTITY,Gallons) + if{ (>L:FUEL TANK FRONT QUANTITY,Gallons) (A:FUEL TANK CENTER QUANTITY,Gallons) (A:FUEL TANK CENTER2 QUANTITY,Gallons) + 3.8 * 0.8 * } } </Click> </Area></Mouse>This code snippet shows the front fuel group, the test button and an attempt to see the left wing contents. I hope you can help, I have gone through every forum, fs2x document and the SDK to no avail.Thank you in advanceGR4Jockey

Hi,No pics and other code, so couldn't test.In the mean time you could try something like:

<Click>(L:FUEL TANK QUANTITY BUTTON,bool) ! (>L:FUEL TANK QUANTITY BUTTON,bool) (L:FUEL TANK QUANTITY BUTTON,bool) if{ (A:FUEL TANK LEFT AUX QUANTITY,Gallons) 3.04 * (>L:FUEL TANK FRONT QUANTITY,Gallons)  } els{ (A:FUEL TANK CENTER QUANTITY,Gallons) (A:FUEL TANK CENTER2 QUANTITY,Gallons) + 3.04 * (>L:FUEL TANK FRONT QUANTITY,Gallons)  }  </Click>

You see:Change the click L:Var. to (L:FUEL TANK QUANTITY BUTTON,bool) and 3.8 * 0.8 * to 3.04 *Hope it works,Jan

Jan

 

 

 

"Beatus ille qui procul negotiis..."

  • Author

Hi phjvh,Thanks for your response, tried your code, the needle goes to zero and stays there.This is an image if the real fuel contents indicatorThe idea is that the needles normally show the front (LF Fuel Group) and rear (R Fuel Group)When you press the test button the needles and counter go to zero, when you release the button the needles go back to the normal state.When you press the WING, CFUS (Both needles come together to act as one needle), UFUS or UWING buttons the needles show the tank contents, the counter remains at total remaining fuel, when you release the button the needles go back to the normal state. This is the current state using your code This is the whole code for the gauge

<Gauge Name="Fuel Quantity Indicator / Selector Unit" Version="1.0">   <Image Name="Fuel_Total.bmp" Luminous="1" ImageSizes="256,256"/>//-------------------- Total Fuel 1 Digit   <Element>  <Position X="0" Y="0"/>  <MaskImage Name="FT_Mask.bmp" ImageSizes="256,256">  <Axis X="152" Y="136"/>  </MaskImage>       <Image Name="FT_strip.bmp" ImageSizes="34,375">  <Axis X="0" Y="0"/>  </Image> <Shift>  <Value>(L:FUEL TANK TOTAL1 QUANTITY,Gallons)   if{ 1 (>L:FUEL TANK TOTAL1 QUANTITY,Gallons) 0 3.8 * 0.8 * }   els{ 0 (A:FUEL TANK CENTER QUANTITY,Gallons)    (A:FUEL TANK CENTER2 QUANTITY,Gallons) +   (A:FUEL TANK CENTER3 QUANTITY,Gallons) +   (A:FUEL TANK LEFT AUX QUANTITY,Gallons) +   (A:FUEL TANK RIGHT AUX QUANTITY,Gallons) +   (A:FUEL TANK EXTERNAL1 QUANTITY,Gallons) +   (A:FUEL TANK EXTERNAL2 QUANTITY,Gallons) +   if{ (>L:FUEL TANK TOTAL1 QUANTITY,Gallons)    (A:FUEL TANK CENTER QUANTITY,Gallons)   (A:FUEL TANK CENTER2 QUANTITY,Gallons) +    (A:FUEL TANK CENTER3 QUANTITY,Gallons) +    (A:FUEL TANK LEFT AUX QUANTITY,Gallons) +   (A:FUEL TANK RIGHT AUX QUANTITY,Gallons) +   (A:FUEL TANK EXTERNAL1 QUANTITY,Gallons) +   (A:FUEL TANK EXTERNAL2 QUANTITY,Gallons) + 3.8 * 0.8 * 1 / 10 % flr }  </Value>    <Nonlinearity>   <Item Value="0" X="0" Y="34"/>   <Item Value="10" X="0" Y="-307"/>  </Nonlinearity>         <Delay PixelsPerSecond="200"/>  </Shift>   </Element>//-------------------- Total Fuel 10 Digit   <Element> <Position X="0" Y="0"/>  <MaskImage Name="FT_Mask.bmp" ImageSizes="256,256">  <Axis X="126" Y="136"/>  </MaskImage>  <Image Name="FT_strip.bmp" ImageSizes="34,375">  <Axis X="0" Y="0"/>  </Image> <Shift>  <Value>(L:FUEL TANK TOTAL10 QUANTITY,Gallons)   if{ 1 (>L:FUEL TANK TOTAL10 QUANTITY,Gallons) 0 3.8 * 0.8 * }   els{ 0 (A:FUEL TANK CENTER QUANTITY,Gallons)    (A:FUEL TANK CENTER2 QUANTITY,Gallons) +   (A:FUEL TANK CENTER3 QUANTITY,Gallons) +   (A:FUEL TANK LEFT AUX QUANTITY,Gallons) +   (A:FUEL TANK RIGHT AUX QUANTITY,Gallons) +   (A:FUEL TANK EXTERNAL1 QUANTITY,Gallons) +   (A:FUEL TANK EXTERNAL2 QUANTITY,Gallons) +   if{ (>L:FUEL TANK TOTAL1 QUANTITY,Gallons)    (A:FUEL TANK CENTER QUANTITY,Gallons)   (A:FUEL TANK CENTER2 QUANTITY,Gallons) +    (A:FUEL TANK CENTER3 QUANTITY,Gallons) +    (A:FUEL TANK LEFT AUX QUANTITY,Gallons) +   (A:FUEL TANK RIGHT AUX QUANTITY,Gallons) +   (A:FUEL TANK EXTERNAL1 QUANTITY,Gallons) +   (A:FUEL TANK EXTERNAL2 QUANTITY,Gallons) + 3.8 * 0.8 * 10 / 10 % flr }  </Value>  <Nonlinearity>    <Item Value="0" X="0" Y="34"/>    <Item Value="10" X="0" Y="-307"/>  </Nonlinearity>          <Delay PixelsPerSecond="120"/> </Shift>   </Element>  //-------------------- Total Fuel 100 Digit   <Element> <Position X="0" Y="0"/>  <MaskImage Name="FT_Mask.bmp" ImageSizes="256,256">  <Axis X="100" Y="136"/>  </MaskImage>  <Image Name="FT_strip.bmp" ImageSizes="34,375">  <Axis X="0" Y="0"/>  </Image> <Shift>  <Value>(L:FUEL TANK TOTAL100 QUANTITY,Gallons)   if{ 1 (>L:FUEL TANK TOTAL100 QUANTITY,Gallons) 0 3.8 * 0.8 * }   els{ 0 (A:FUEL TANK CENTER QUANTITY,Gallons)    (A:FUEL TANK CENTER2 QUANTITY,Gallons) +   (A:FUEL TANK CENTER3 QUANTITY,Gallons) +   (A:FUEL TANK LEFT AUX QUANTITY,Gallons) +   (A:FUEL TANK RIGHT AUX QUANTITY,Gallons) +   (A:FUEL TANK EXTERNAL1 QUANTITY,Gallons) +   (A:FUEL TANK EXTERNAL2 QUANTITY,Gallons) +   if{ (>L:FUEL TANK TOTAL1 QUANTITY,Gallons)    (A:FUEL TANK CENTER QUANTITY,Gallons)   (A:FUEL TANK CENTER2 QUANTITY,Gallons) +    (A:FUEL TANK CENTER3 QUANTITY,Gallons) +    (A:FUEL TANK LEFT AUX QUANTITY,Gallons) +   (A:FUEL TANK RIGHT AUX QUANTITY,Gallons) +   (A:FUEL TANK EXTERNAL1 QUANTITY,Gallons) +   (A:FUEL TANK EXTERNAL2 QUANTITY,Gallons) + 3.8 * 0.8 * 100 / 10 % flr }  </Value>  <Nonlinearity>   <Item Value="0" X="0" Y="34"/>   <Item Value="10" X="0" Y="-307"/>  </Nonlinearity>          <Delay PixelsPerSecond="120"/> </Shift>   </Element>//-------------------- Total Fuel 1000 Digit   <Element> <Position X="0" Y="0"/>  <MaskImage Name="FT_Mask.bmp" ImageSizes="256,256">  <Axis X="74" Y="136"/>  </MaskImage>  <Image Name="FT_strip.bmp" ImageSizes="34,375">  <Axis X="0" Y="0"/>  </Image> <Shift>  <Value>(L:FUEL TANK TOTAL1 QUANTITY,Gallons)   if{ 1 (>L:FUEL TANK TOTAL1000 QUANTITY,Gallons) 0 3.8 * 0.8 * }   els{ 0 (A:FUEL TANK CENTER QUANTITY,Gallons)    (A:FUEL TANK CENTER2 QUANTITY,Gallons) +   (A:FUEL TANK CENTER3 QUANTITY,Gallons) +   (A:FUEL TANK LEFT AUX QUANTITY,Gallons) +   (A:FUEL TANK RIGHT AUX QUANTITY,Gallons) +   (A:FUEL TANK EXTERNAL1 QUANTITY,Gallons) +   (A:FUEL TANK EXTERNAL2 QUANTITY,Gallons) +   if{ (>L:FUEL TANK TOTAL1 QUANTITY,Gallons)    (A:FUEL TANK CENTER QUANTITY,Gallons)   (A:FUEL TANK CENTER2 QUANTITY,Gallons) +    (A:FUEL TANK CENTER3 QUANTITY,Gallons) +    (A:FUEL TANK LEFT AUX QUANTITY,Gallons) +   (A:FUEL TANK RIGHT AUX QUANTITY,Gallons) +   (A:FUEL TANK EXTERNAL1 QUANTITY,Gallons) +   (A:FUEL TANK EXTERNAL2 QUANTITY,Gallons) + 3.8 * 0.8 * 1000 / 10 % flr }  </Value>  <Nonlinearity>   <Item Value="0" X="0" Y="34"/>   <Item Value="10" X="0" Y="-307"/>  </Nonlinearity>  <Delay PixelsPerSecond="120"/> </Shift>   </Element>    //------------------------Rear / Right Fuel Quantity Needle   <Element> <Position X="128" Y="128"/>  <Image Name="FT_R_Needle.bmp" Luminous="1" PointsTo="East" ImageSizes="117,36">  <Axis X="18" Y="18"/>  </Image> <Rotate>  <Value>(L:FUEL TANK REAR QUANTITY,Gallons)   if{ 1 (>L:FUEL TANK REAR QUANTITY,Gallons) 0 3.8 * 0.8 * }   els{ 0 (A:FUEL TANK CENTER3 QUANTITY,Gallons)   if{ (>L:FUEL TANK REAR QUANTITY,Gallons)   (A:FUEL TANK CENTER3 QUANTITY,Gallons) 3.8 * 0.8 * } }      </Value>  <Failures>   <SYSTEM_ELECTRICAL_PANELS Action="0"/>   <GAUGE_FUEL_INDICATORS Action="Freeze"/>  </Failures>   <Nonlinearity>   <Item Value="0" X="31" Y="157"/>   <Item Value="500" X="38" Y="83"/>   <Item Value="1000" X="97" Y="32"/>   <Item Value="1500" X="174" Y="38"/>   <Item Value="2000" X="224" Y="96"/>   <Item Value="2500" X="224" Y="157"/>  </Nonlinearity>  <Delay DegreesPerSecond="60"/> </Rotate>   </Element>//------------------------Front / Left Fuel Quantity Needle   <Element> <Position X="128" Y="128"/>  <Image Name="FT_LF_Needle.bmp" Luminous="1" PointsTo="East" ImageSizes="117,36">  <Axis X="18" Y="18"/>  </Image>       <Rotate>  <Value>(L:FUEL TANK FRONT QUANTITY,Gallons)   if{ 1 (>L:FUEL TANK FRONT QUANTITY,Gallons) 0 3.8 * 0.8 * }   els{ 0 (A:FUEL TANK CENTER QUANTITY,Gallons) (A:FUEL TANK CENTER2 QUANTITY,Gallons) +   if{ (>L:FUEL TANK FRONT QUANTITY,Gallons) (A:FUEL TANK CENTER QUANTITY,Gallons)    (A:FUEL TANK CENTER2 QUANTITY,Gallons) + 3.8 * 0.8 * } }  </Value>  <Failures>   <SYSTEM_ELECTRICAL_PANELS Action="0"/>   <GAUGE_FUEL_INDICATORS Action="Freeze"/>  </Failures>  <Nonlinearity>   <Item Value="0" X="31" Y="157"/>   <Item Value="500" X="38" Y="83"/>   <Item Value="1000" X="97" Y="32"/>   <Item Value="1500" X="174" Y="38"/>   <Item Value="2000" X="224" Y="96"/>   <Item Value="2500" X="224" Y="157"/>  </Nonlinearity>  <Delay DegreesPerSecond="60"/> </Rotate>   </Element>   <Mouse>//------------------------ Test Button <Area Left="0" Right="50" Top="0" Bottom="50">  <Cursor Type="Hand"/>  <Click Kind="LeftSingle+LeftRelease">      (L:FUEL TANK FRONT QUANTITY,Gallons) ! (>L:FUEL TANK FRONT QUANTITY,Gallons)   (L:FUEL TANK FRONT QUANTITY,Gallons) 0 ==   if{ 1 } els{ 0 }   (L:FUEL TANK REAR QUANTITY,Gallons) ! (>L:FUEL TANK REAR QUANTITY,Gallons)   (L:FUEL TANK REAR QUANTITY,Gallons) 0 ==   if{ 1 } els{ 0 }   (L:FUEL TANK TOTAL1 QUANTITY,Gallons) ! (>L:FUEL TANK TOTAL1 QUANTITY,Gallons)   (L:FUEL TANK TOTAL1 QUANTITY,Gallons) 0 ==   if{ 1 } els{ 0 }   (L:FUEL TANK TOTAL10 QUANTITY,Gallons) ! (>L:FUEL TANK TOTAL10 QUANTITY,Gallons)   (L:FUEL TANK TOTAL10 QUANTITY,Gallons) 0 ==   if{ 1 } els{ 0 }        (L:FUEL TANK TOTAL100 QUANTITY,Gallons) ! (>L:FUEL TANK TOTAL100 QUANTITY,Gallons)   (L:FUEL TANK TOTAL100 QUANTITY,Gallons) 0 ==   if{ 1 } els{ 0 }   (L:FUEL TANK TOTAL1000 QUANTITY,Gallons) ! (>L:FUEL TANK TOTAL1000 QUANTITY,Gallons)   (L:FUEL TANK TOTAL1000 QUANTITY,Gallons) 0 ==   if{ 1 } els{ 0 }  </Click> </Area>//------------------------ Wing Tanks<Area Left="200" Right="250" Top="0" Bottom="50">  <Cursor Type="Hand"/>  <Click Kind="LeftSingle+LeftRelease">   (L:FUEL TANK QUANTITY BUTTON,bool) ! (>L:FUEL TANK QUANTITY BUTTON,bool)   (L:FUEL TANK QUANTITY BUTTON,bool)   if{ (A:FUEL TANK LEFT AUX QUANTITY,Gallons) 3.04 * (>L:FUEL TANK FRONT QUANTITY,Gallons) }    els{ (A:FUEL TANK CENTER QUANTITY,Gallons) (A:FUEL TANK CENTER2 QUANTITY,Gallons) + 3.04 *    (>L:FUEL TANK FRONT QUANTITY,Gallons) }    </Click> </Area>   </Mouse></Gauge>

Sorry for no tab, happened when I added the code.my original mouse code sent the needle to zero but when you released it it returned to the normal position

 <Area Left="200" Right="250" Top="0" Bottom="50">  <Cursor Type="Hand"/>  <Click Kind="LeftSingle+LeftRelease">   (L:FUEL TANK FRONT QUANTITY,Gallons) ! (>L:FUEL TANK FRONT QUANTITY,Gallons)   (L:FUEL TANK FRONT QUANTITY,Gallons) 1 ==   if{ 1 (A:FUEL TANK LEFT AUX QUANTITY,Gallons)   if{ (>L:FUEL TANK FRONT QUANTITY,Gallons) (A:FUEL TANK LEFT AUX QUANTITY,Gallons) 3.8 * 0.8 * } }   els{ 0 (A:FUEL TANK CENTER QUANTITY,Gallons) (A:FUEL TANK CENTER2 QUANTITY,Gallons) +   if{ (>L:FUEL TANK FRONT QUANTITY,Gallons) (A:FUEL TANK CENTER QUANTITY,Gallons)   (A:FUEL TANK CENTER2 QUANTITY,Gallons) + 3.8 * 0.8 * } }   </Click> </Area> 

I hope this info gives a better idea, your help would be most appreciated as I am trying to create an authentic Panavia Tornado GR1 panel with accurate systems and gauges, now that the air publications have been declassified.Thanking you in advanceGR4Jockey

OK, understand, but cannot reproduce your gauge.Instead made this one, a bit similar, to test in my panel and it works.Normally it shows center and center2 quantity.Pressing TEST both needles goes to zero and laeving the button they show center and center2 again.Pressing the LEFT or RIGHT wing button shows the content of left and right main tanks and leaving again c and c2.

<Element> <Position X="1257" Y="590"/> <Image Name="duct pressure needle.bmp" PointsTo="East"><Axis X="10" Y="10"/></Image><Rotate> <Value>(L:FUEL TANK FRONT BUTTON,bool) (L:FUEL TANK LEFT MAIN BUTTON,bool) ! (L:FUEL TANK RIGHT MAIN BUTTON,bool) ! and and if{ 0 } els{ (L:FUEL TANK LEFT MAIN BUTTON,bool)  if{ (A:Fuel tank left main quantity,pounds) } els{ (A:FUEL TANK CENTER QUANTITY,pounds) } }  </Value> <Nonlinearity><Item Value= "0" X="1272" Y="611"/><Item Value="20" X="1273" Y="568"/></Nonlinearity> <Delay DegreesPerSecond="200"/> </Rotate> </Element><Element> <Position X="1257" Y="590"/> <Image Name="duct pressure needle.bmp" PointsTo="East"><Axis X="10" Y="10"/></Image> <Rotate> <Value>(L:FUEL TANK REAR BUTTON,bool) if{ 0 } els{ (L:FUEL TANK RIGHT MAIN BUTTON,bool)  if{ (A:Fuel tank right main quantity,pounds) } els{ (A:FUEL TANK CENTER2 QUANTITY,pounds) } }  </Value> <Nonlinearity><Item Value= "0" X="1272" Y="611"/><Item Value="20" X="1273" Y="568"/></Nonlinearity> <Delay DegreesPerSecond="200"/> </Rotate> </Element><Mouse>//-------------------- Test button ------------------- <Area Left="0" Right="200" Top="710" Bottom="800"><Tooltip>TEST BUTTON</Tooltip><Cursor Type="Hand"/><Click Kind="LeftSingle+Leave">(M:Event) 'LeftSingle' scmp 0 == if{ 1 (>L:FUEL TANK FRONT BUTTON,bool) 1 (>L:FUEL TANK REAR BUTTON,bool) } (M:Event) 'Leave' scmp 0 == if{ 0 (>L:FUEL TANK FRONT BUTTON,bool) 0 (>L:FUEL TANK REAR BUTTON,bool) } </Click></Area>//------------------------ Left main button -----------------<Area Left="0" Right="100" Top="810" Bottom="900"><Tooltip>LEFT MAIN</Tooltip> <Cursor Type="Hand"/><Click Kind="LeftSingle+Leave">(M:Event) 'LeftSingle' scmp 0 == if{ 1 (>L:FUEL TANK LEFT MAIN BUTTON,bool) } (M:Event) 'Leave' scmp 0 == if{ 0 (>L:FUEL TANK LEFT MAIN BUTTON,bool) } </Click></Area>//------------------------ Right main button -----------------<Area Left="110" Right="200" Top="810" Bottom="900"><Tooltip>RIGHT MAIN</Tooltip> <Cursor Type="Hand"/><Click Kind="LeftSingle+Leave">(M:Event) 'LeftSingle' scmp 0 == if{ 1 (>L:FUEL TANK RIGHT MAIN BUTTON,bool) } (M:Event) 'Leave' scmp 0 == if{ 0 (>L:FUEL TANK RIGHT MAIN BUTTON,bool) } </Click></Area>

Hope you can translate it for your gauge,Jan

Jan

 

 

 

"Beatus ille qui procul negotiis..."

GR4Jockey,Thanks for posting the pics of your gauge face. Question - what is the font type used in your gauge, and where did you purchase it? I have been trying find that font type for a while..Thanks again,Bob

  • Author

Hi phjvhThanks for your help, success its working as I wanted it to, on button for test and one button for wings. I should now be able to add UFUS, UWING and CFUS. Think it shoulld only need a few extra definitions and els{} statements.OK here we goFront Fuel Group and Left wing Code

   (L:FUEL TANK FRONT BUTTON,bool) (L:FUEL TANK LEFT WING BUTTON,bool) ! and   if{ 0 }    els{ (L:FUEL TANK LEFT WING BUTTON,bool)   if{ (A:FUEL TANK LEFT AUX QUANTITY,Gallons) 3.04 * }   els{ (A:FUEL TANK CENTER QUANTITY,Gallons) (A:FUEL TANK CENTER2 QUANTITY,Gallons) + 3.04 * } }

Rear fuel Group and Right wing Code

   (L:FUEL TANK REAR BUTTON,bool) (L:FUEL TANK RIGHT WING BUTTON,bool) ! and   if{ 0 }    els{ (L:FUEL TANK RIGHT WING BUTTON,bool)   if{ (A:FUEL TANK RIGHT AUX QUANTITY,Gallons) 3.04 * }    els{ (A:FUEL TANK CENTER3 QUANTITY,Gallons) 3.04 * } }

Test Button One Button for Front and Rear Fuel Groups

<Click Kind="LeftSingle+Leave">      (M:Event) 'LeftSingle' scmp 0 ==    if{ 1 (>L:FUEL TANK FRONT BUTTON,bool) 1 (>L:FUEL TANK REAR BUTTON,bool) }    (M:Event) 'Leave' scmp 0 ==    if{ 0 (>L:FUEL TANK FRONT BUTTON,bool) 0 (>L:FUEL TANK REAR BUTTON,bool) }</Click>

Wing Button - One Button for Left and Right Wings

<Click Kind="LeftSingle+Leave">    (M:Event) 'LeftSingle' scmp 0 ==    if{ 1 (>L:FUEL TANK LEFT WING BUTTON,bool) 1 (>L:FUEL TANK RIGHT WING BUTTON,bool) }    (M:Event) 'Leave' scmp 0 ==    if{ 0 (>L:FUEL TANK LEFT WING BUTTON,bool) 0 (>L:FUEL TANK RIGHT WING BUTTON,bool) }</Click>

Thank you once again for all your help on this, I sure I will be asking more questions as there is a long way to go to create all systems.CheersGR4Jockey

Hi,Glad it worked for you.Always happy to help.Fun to test a fighter in a 767...Jan

Jan

 

 

 

"Beatus ille qui procul negotiis..."

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.