• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

FS2004 Some advice required!

Messages
1,468
Country
italy
I have some exterior fuel dials which show the fuel level in each tank (white needle) and required fuel level (yellow needle) for automatic uplift.
I want to use the knob bottom right to manually turn the yellow pointer and then for its position to be recorded as the required fuel level which I'll send to the fuel gauge when required.
What I'm looking for is the best way to turn the yellow needle. Many thanks.
vololiberista
 

Attachments

  • dial.jpg
    dial.jpg
    8.6 KB · Views: 393
Make an L var to store the required fuel level in the same unit you measure the fuel level.
Add clickpoints that increase/decrease the L var.
Then rotate the required fuel needle in the same way as the fuel level needle.
No need to convert from a needle position to a fuel amount.
 
Thanks for that. I'll have go.
The actual gauge values are:-
Code:
<Value Min="400" Max="8000">(A:FUEL LEFT QUANTITY, meter cubed) 802.84 * 0.5 * 0.5714 *</Value>  

<Mouse>
      <Tooltip>Tank 1 (%((A:FUEL LEFT QUANTITY, meter cubed) (A:FUEL LEFT CAPACITY, meter cubed) / 100 * near)%!d!%%)</Tooltip>
   </Mouse>
vololiberista
 
Some years ago i wrote a DC8 Fuelpanel according to a DC8-55 AOM.
It has a tank 1A/B, 2A/B , Centertank, 3A/B and 4A/B configuration.

As far as i know the VC10 has a tank 1, 2A/B , Centertank, 3A/B and 4 configuration.
So at all it shouldn't be to difficult to adopt the xml coding to the VC10.

This panel offers also the opportunity you to want to do by setting a needle.
Also it includes a Fuelloader and - unloader.

http://simviation.com/1/search?submit=1&keywords=fuelpanel+dc8&categoryId=36

Edi
 
Thanks for that Edi,
Everything is working "except" the yellow needles. I'll have a look at your work. Many thanks.
vololiberista
 
So far the code that controls the yellow needle is:-
Code:
 <Mouse>
<Tooltip>Fuel Set Knob</Tooltip>
      <Area Left="0" Top="0" Right="10" Bottom="14">
      <Cursor Type="Hand"/>
      <Click Repeat="Yes">(L:T1a,number) 10 &gt; if{ (L:T1a,number) -- (&gt;L:T1a,number) } </Click>
      </Area>
      <Area Left="11" Top="0" Right="21" Bottom="14">
      <Cursor Type="Hand"/>
      <Click Repeat="Yes">(L:T1a,number) 6000 &lt; if{ (L:T1a,number) ++ (&gt;L:T1a,number) } </Click>
      </Area>
   </Mouse>

It works but the needle moves too slowly. How can I speed it up?
vololiberista
 
Code:
(L:T1a,number) -- (&gt;L:T1a,number) 
(L:T1a,number) ++ (&gt;L:T1a,number)

Use this one

Code:
(L:T1a,number)  10 - (&gt;L:T1a,number) 
(L:T1a,number)  10 + (&gt;L:T1a,number)

It will go 10 times faster!

Edi

btw What are making at the moment?
A fuelsystem or only a fuleloader / - unloader?

Change how much "T1a" is changed per mouse click.

++ or --
 
Last edited:
Hi Edi,
I ended up with:-
Code:
<Mouse>
<Tooltip>Fuel Set Knob</Tooltip>
      <Area Left="0" Top="0" Right="10" Bottom="14">
      <Cursor Type="Hand"/>
      <Click Repeat="Yes">(L:T1a,number) 10 &gt; if{ (L:T1a,number) [COLOR="Red"]1.05 / --[/COLOR] (&gt;L:T1a,number) } </Click>
      </Area>
      <Area Left="11" Top="0" Right="21" Bottom="14">
      <Cursor Type="Hand"/>
      <Click Repeat="Yes">(L:T1a,number) 6000 &lt; if{ (L:T1a,number) [COLOR="Red"]1.05 * ++[/COLOR] (&gt;L:T1a,number) } </Click>
      </Area>
   </Mouse>

The needle starts off slowly and gathers speed!
I'm using Rob Barandregts's front end gauge for Doug's fuel gauge. It also allows for in flight refuelling pertinant for the C1k variant of the VC10.

All works ok now except that in the course of developing the exterior fuel panel I discovered that the needles (white) do not show the correct values.
For example the tooltip
Code:
<Tooltip>Tank 1A (%((A:FUEL LEFT QUANTITY, meter cubed) (A:FUEL LEFT CAPACITY, meter cubed) / 100 * near)%!d!%%)</Tooltip>
shows 100% when the needle shows only 90%

The needle code is
Code:
<Value Min="0" Max="6000">(A:FUEL LEFT QUANTITY, meter cubed) 802.84 * 0.5 * 0.4286 *</Value>
This example is for tank 1a which has a capacity of 6000 kgs. Quite what the maths mean is vague to say the least. The cfg. file has leftaux 8180 which is divided between tank1a 6000kgs, tank1 8000kgs and tank2 14000kgs. I need to adjust the needle code to get the white needle to point to 6000 when the tank is at 100% capacity.

This problem applies to all the tanks even the centre one.
vololiberista
 
I have all Rob Barandregts's gauge on my hard disk! I learned a lot from him!!

I have just shut down the engines of the C1K. I was very impressed by David's work.

Code:
<Gauge Name="Fuel Load Tank 4A" Version="1.0">
   <Image Name="FUEL_LOAD_6.bmp" Luminous="1" ImageSizes="80,80"/>
   <Element>
      <Position X="39.5" Y="39.5"/>
      <Image Name="NEEDLE_FUEL.bmp" Luminous="1" PointsTo="North" ImageSizes="9,40">
         <Axis X="4" Y="36"/>
      </Image>
      <Rotate>
         <Value Min="0" Max="6000">(A:FUEL RIGHT QUANTITY, meter cubed) 802.84 * 0.5 * 0.4286 *</Value>
         <Failures>
            <SYSTEM_ELECTRICAL_PANELS Action="0"/>
            <GAUGE_FUEL_INDICATORS Action="Freeze"/>
         </Failures>
         <Nonlinearity>
            <Item Value="0" X="27" Y="72"/>
            <Item Value="6000" X="53" Y="71"/>
         </Nonlinearity>
         <Delay DegreesPerSecond="20"/>
      </Rotate>
   </Element>
   <Mouse>
      <Tooltip>Tank 4A (%((A:FUEL RIGHT QUANTITY, meter cubed) (A:FUEL RIGHT CAPACITY, meter cubed) / 100 * near)%!d!%%)</Tooltip>
   </Mouse>
</Gauge>

You are speaking from this gauge?

Code:
A:FUEL RIGHT QUANTITY, meter cubed) 802.84 * 0.5 * 0.4286 *

I would like to say there is a little maths error!
This English! they have always so funny units;)

6000 is 100 %! What is the quantity of the tank? 8180 Gallon?
So i think you have to adapt the formular.

Edi
 
This is my fuel section

Code:
[fuel]
Center1= 0.000, 0.000, 0.000, 5260.000, 0.000
Center2= 0.000, 0.000, 0.000, 1620.000, 0.000
LeftAux= 0.000, 20.000, 0.000, 8180.000, 600.000
RightAux= 0.000, -20.000, 0.000, 8180.000, 600.000
fuel_type=2.000000
number_of_tank_selectors=4
electric_pump=1

4 Tanks. But the panel has 7 tanks.

There is no right tank!


What shows (A:FUEL RIGHT QUANTITY, meter cubed) ?

edi
 
Last edited:
I looked into the gauges!
I remember that David did some interesting thinks!

FUEL LEFT ist tank 1, 1A und 2
FUEL RIGHT is tank 3, 4, 4A.
CENTER is center

so play a little bit with this factor " 802.84 ".
The other factors are for dividing 1 tank into 3.

BUT there is only one small problem!!
There are no FUEL LEFT and FUEL RIGHT tanks!!
Only AUX! This should be a differnce!

Edi
 
(L:T1a,number) 10 &gt; if{ (L:T1a,number) 1.05 / -- (&gt;L:T1a,number) }
(L:T1a,number) 6000 &lt; if{ (L:T1a,number) 1.05 * ++ (&gt;L:T1a,number) }

There is a lack of precision on those formulas.
You should remove the -- and ++ part, or better use a <mousedown> timer control to keep small updates together with the factor_increasing lap.

Tom
 
I looked into the gauges!
I remember that David did some interesting thinks!

FUEL LEFT ist tank 1, 1A und 2
FUEL RIGHT is tank 3, 4, 4A.
CENTER is center

so play a little bit with this factor " 802.84 ".
The other factors are for dividing 1 tank into 3.

BUT there is only one small problem!!
There are no FUEL LEFT and FUEL RIGHT tanks!!
Only AUX! This should be a differnce!

Edi

Hi Edi,
I did a few calculations just before I went to bed. I think DM intended that the tanks were never actually at full capacity. I did try splitting the tanks but it was a lot of work just to achieve effectively the same result. So I decided to go with the original tank cfg.
What is good is that all the needles in the tanks have exactly the same orientation so the EO can see at a glance any discrepancy. If the total fuel load is say 22% then each tank shows 22% (obviously) but the needles in each tank point to SW by W.
vololiberista
 
There is a lack of precision on those formulas.
You should remove the -- and ++ part, or better use a <mousedown> timer control to keep small updates together with the factor_increasing lap.

Tom

I'll try that Tom, Thanks.
vololiberista
 
Here's another more stupid question!!
How do I get one L:var to be the sum of three others?
As each one of the three L:vars increases/decreases I want one L:var to be the sum of the three.
I've tried various ways but can't get the required result.
many thanks.
vololiberista
 
Tom,
I tried that but it only adds the last L:var
Code:
<Value>(L:T1a,number) (L:T1,number) (L:T2,number) ++ (>L:laux_req,number)</Value>
I have three dials and as I operate the refuelling needle I want the last L:var L:laux_req,number to accumulate all three each time I move any one of the three refuelling needles.


however, I tried this and it seems to work!

Code:
<Value>(L:T1a,number) (L:T1,number) + (L:T2,number) + (>L:laux_req,number) ++ </Value>
vololiberista
 
Last edited:
Code:
 ++

add a blank between the pluses! " + + "

Have you done a CFG with 7 fueltanks??
And proper position and capacitysize?

Could i have it ??

Edi
 
Back
Top