• 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.

FSX Fuel Transfer Help

Messages
292
Country
unitedkingdom
I am in the middle of coding the fuel panel for my Learjet, as it only burns fuel from the wing tanks I am using a fuel manager to only use fuel from the tip tanks first then the wing tanks which means that the fuel from the fuselage tank has to be manually transfered into the wing tanks via a switch on the fuel panel, I am using Doug Dawson's excellent dsd_fuel_dump gauge to do this, I have managed to code the switch, but there is a problem that when in the sim the switch is in the off position & I click it on it shows in the on position & begins transfering fuel from the fuselage tank into the wing tanks but when I click into the off position the on switch disappears & off position switch does not appear but it does stop tranfering fuel.

Here's the code:

Code:
        <Element id="XFER SW">
            <FloatPosition>50.000,58.500</FloatPosition>
            <Select id="Select">
                <Expression id="Expression">
                    <Script>(L:Fuel_Xfer_Switch,enum)</Script>
                </Expression>
                <Case id="Case">
                    <ExpressionResult>0.000</ExpressionResult>
                    <Image id="Fuel_Panel_SW_Mid.bmp" Name="Fuel_Panel_SW_Mid.bmp">
                        <Transparent>True</Transparent>
                        <Axis>20.000,38.500</Axis>
                        <Bright>True</Bright>
                    </Image>
                </Case>
                <Case id="Case">
                    <ExpressionResult>1.000</ExpressionResult>
                    <Image id="Fuel_Panel_SW_On.bmp" Name="Fuel_Panel_SW_On.bmp">
                        <Transparent>True</Transparent>
                        <Axis>20.000,38.500</Axis>
                    </Image>
                </Case>
            </Select>
        </Element>
        <MouseArea id="MouseArea">
            <FloatPosition>10.000,10.000</FloatPosition>
            <Size>80,100</Size>
            <MouseArea id="MouseArea">
                <FloatPosition>0.000,0.000</FloatPosition>
                <Size>40,50</Size>
                <CursorType>DownArrow</CursorType>
                <MouseClick id="MouseClick">
                    <Script>    (L:Fuel_Xfer_Switch,enum) 0  &gt;
        if{
                    (L:Fuel_Xfer_Switch,enum) ++ (&gt;L:Fuel_Xfer_Switch,enum)
            0 (&gt;L:RATE_TANK_MAIN_LEFT, number)
            0 (&gt;L:RATE_TANK_MAIN_RIGHT, number)
            0 (&gt;L:RATE_TANK_CENTER, number)
                }</Script>
                    <ClickRepeat>True</ClickRepeat>
                </MouseClick>
            </MouseArea>
            <MouseArea id="MouseArea">
                <FloatPosition>0.000,50.000</FloatPosition>
                <Size>80,100</Size>
                <CursorType>UpArrow</CursorType>
                <MouseClick id="MouseClick">
                    <Script>    (L:Fuel_Xfer_Switch,enum) 1 &lt;
        if{
                    (L:Fuel_Xfer_Switch,enum) ++ (&gt;L:Fuel_Xfer_Switch,enum)
            -2000(&gt;L:RATE_TANK_MAIN_LEFT, number)
            -2000 (&gt;L:RATE_TANK_MAIN_RIGHT, number)
            2000 (&gt;L:RATE_TANK_CENTER, number)
            }</Script>
                    <ClickRepeat>True</ClickRepeat>
                </MouseClick>
            </MouseArea>

I would appreciate any help given.
 
1. Each of the two "case" should be in a Separate Element / Select ,
Eg;
Element
Select
Case # 1
Select end
Element end

Element
Select
Case # 2
Select end
Element end

2. In Mouse section , a space is missing after the first -2000 .

Cheers
Karol
 
Thanks Karol. I did as you suggested having two seperate select case elements, but still no joy, in fact I think I got it wrong in my first post, what happens when I click transfer on nothing happens then when I click transfer off, transfer begins & the switch disappears & it can't be stopped, I feel a bit confused, I am sure my description in my first post is the way it was working.
 
I would say this is wrong

Code:
  (L:Fuel_Xfer_Switch,enum) ++ (&gt;L:Fuel_Xfer_Switch,enum)


Try this
Code:
  (L:Fuel_Xfer_Switch,enum) ! (&gt;L:Fuel_Xfer_Switch,enum)

Is this correct??
Code:
            -2000 (&gt;L:RATE_TANK_MAIN_LEFT, number)
            -2000 (&gt;L:RATE_TANK_MAIN_RIGHT, number)
            2000 (&gt;L:RATE_TANK_CENTER, number)

You pump 2000 away from the maintank, so it should be only 1000 per wingtank!!??
 
Thank's EduHir your a hero!! I did notice that the left & right mains should be -1000 after I posted the code.

Thank's for the help, I am very much a newbie to gauge coding.
 
That Lear fuel system is insane... I did one also. Getting it all working right in FS is a major feat of engineering..
 
Are you doing a model that has one single fuel gauge for the entire fuel system? measured in pounds?
 
Yes Bill, I am doing the Learjet 35A.

Here's the fuel panel, still work in progress.

Fuel Panel.jpeg


I am trying to get it right, I know that the jet pump orange LED's only flash on briefly when the jet pumps are turned on, in the fuel transfer section the green LED illuninates when fuselage tank is full & the white LED when there is insufficient pressure (2.75 psi), possible failure of the transfer pump, faulty pressure switch (xfer line) or a faulty wing fuel pressure switch, but when does the orange LED illuminate?
 
Man, thats a good question. Remember, I did the first generation when they were just making the fuel system. Mine is different.

You might find a Lear pilots forum where you can ask this question. Maybe try to find out if there are Lear 35 pilots in a FS forum also. Surely someone knows. Also, any videos in YouTube, you can email those guys in the YouTube messenger system and see if they know, text on their video.

This is my version of fuel panel for the 24B. Mine has red as the 'Empty' alert and green as the 'Full' alert.

oeignoeri.JPG
 
I wish I could help more. There are also a few flight manuals floating around out there. I was able to find one for a LJ24. You might see if you can find a POH for a LJ35. They are out there. That is what you need.
 
I managed to find an online LR35 POH, which is very helpful, it appears that all the amber lights on the fuel panel apart from the fuel jettison ones only flash on briefly when the switch is turned on or off so now I have to work out how to get them to do this .
 
I managed to find an online LR35 POH, which is very helpful, it appears that all the amber lights on the fuel panel apart from the fuel jettison ones only flash on briefly when the switch is turned on or off so now I have to work out how to get them to do this .


You can make 2 versions of the LED's, one dark textured, and one bright textured with illumination for night mode, then animate them with one frame overlap point so it appears to turn on. Use the knob or switch animation.

The other way is classic 2d gauge code mapped over the part. Easiest.
 
Back
Top