• 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 Fuel systems logics

Messages
181
Country
czechrepublic
Hello, as the very last thing on my EV-55 I have to solve fuel system somehow. The fuel system at this turboprop is simple - fuel pump at each tank (2 tanks), fuel crossfeed valve at each tank and a fire fuel shutoff valve at each engine (2 engines). Could anyone advice me how to solve this?

My idea was (talking about virtual cockpit only):

fuel pumps - use default makemdl switch_fuel_pump part
Code:
<part>
	<name>switch_fuel_pump</name>
	<animation>
		<parameter>
			<sim>
				<variable>GENERAL ENG FUEL PUMP SWITCH:1</variable>
				<units>bool</units>
				<scale>50</scale>
			</sim>
			<lag>400</lag>
		</parameter>
	</animation>
	<mouserect>
		<cursor>Hand</cursor>
		<help_id>HELPID_GAUGE_SWITCH_FUEL_PUMP</help_id>
		<tooltip_id>TOOLTIPTEXT_FUEL_PUMP</tooltip_id>
		<event_id>TOGGLE_ELECT_FUEL_PUMP1</event_id>
	</mouserect>
</part>

Okay, I modelled this part - and it doesnt do anything. I can click it, but it doesnt move and fuel pressure is still the same.

Fuel crossfeeds - because I really dont know how to make two xfeed buttons (each for one tank), I decided to make only simple xfeed on/off switch. I tried this

Code:
<part>  
   <name>evcrossfeed</name>  
   <animation>  
      <parameter>  
    <code>  
       0 1 (A:FUEL CROSS FEED,enum) case 50 *  
    </code>  
    <lag>400</lag>  
       <scale>1</scale>
      </parameter>  
   </animation>  
   <mouserect>  
      <cursor>Hand</cursor>  
	<Tooltip_text>Fuel crossfeed switch</Tooltip_text>
     	<event_id>CROSS_FEED_TOGGLE</event_id>   
</mouserect>  
</part>

Result? THE SAME as at fuel pumps..

and the last one - FIRE FUEL VALVEs - I dont have any idea how to model them, maybe using some logics from fuel tank selectors (left-none and right-none), but I am not sure about interaction with x-feed.

If anyone has any idea how to solve some of those issued, it will be very very appreciated.

Thank you my friends,
Pavel
 
Fuel system scheme:

Code:
(left tank + pump)----(left crosfeed)---(right crosfeed)----(right tank + pump)
                            l                      l
                            l                      l
                            l                      l
                   left fire valve)          (right fire valve)
                            l                      l
                            l                      l
                    (left engine)            (right engine)
 
For the fire valves just use the standard fuel valve variables: (A:GENERAL ENG FUEL VALVE:1, bool)

I used the following format: (A:GENERAL ENG1 FUEL PUMP SWITCH, bool)

Don't know about the rest...
 
The problem is, that those "standard" fuel valves are already used for standard fuel shutting :/
 
The only thing which remains are fuel crossfeeds. Maybe it would be easier to do them as fuel tank selectors, it means (for engine one): right tank-left tank switches... How can I do a 2D XML gauge to toggle between FUEL_SELECTOR_LEFT and FUEL_SELECTOR_RIGHT?

Thank you,
Pavel
 
Hi,

One option:
Turn those "standard fuel valves" into custom valves, and the fire fuel valves too. Then set the FS fuel valve depending on the position of both switches (i.e. if either is OFF, turn the FS fuel valve OFF). Problem will be that "your" fuel valve switches will not necessarily reflect the position of the FS fuel valve switches. Some fancy code to sense the current state of things and set things up properly when the plane loads will minimize that.
 
This sounds good, I will give it a try. But what about the crossfeed switch? Some makemdl code would be great :-))
 
Here is one of mine... (FS9)

Code:
<part>
	<Name>lever_propliner_crossfeed</Name>
	<Animation>
	   <Parameter>
	   <Code> (L:CROSS FEED1, enum) 50 * </Code> 
		<Lag>100</Lag> 
	   </Parameter>
	</Animation>
<MouseRect> 
	   <Cursor>Hand</Cursor> 
	   <Tooltip_Text>Cross Feed 1: %((L:CROSS FEED1, enum))%{case}%{:0}OFF%{:1}Left Side Only%{:2}Cross Ship R to L%{End}</Tooltip_Text>
		<mouse_flags>LeftSingle+RightSingle</mouse_flags> 
		<Callback_Code> 
			(M:Event) 'LeftSingle' scmp 0 == (L:CROSS FEED1, enum) 2 &lt; &amp;&amp;
		    if{ (L:CROSS FEED1, enum) 1 + (&gt;L:CROSS FEED1, enum) }
			(M:Event) 'RightSingle' scmp 0 == (L:CROSS FEED1, enum) 0 &gt; &amp;&amp;
		    if{ (L:CROSS FEED1, enum) 1 - (&gt;L:CROSS FEED1, enum) }
(L:CROSS FEED1, enum) 0 == if{ (L:TANK_SWITCH1, enum) 0 == if{ 9 (&gt;K:FUEL_SELECTOR_SET) } els{ 4 (&gt;K:FUEL_SELECTOR_SET) } (L:TANK_SWITCH2, enum) 0 == if{ 9 (&gt;K:FUEL_SELECTOR_2_SET) } els{  4 (&gt;K:FUEL_SELECTOR_2_SET) } } (L:CROSS FEED1, enum) 0 &gt; if{ 13 (&gt;K:FUEL_SELECTOR_SET) 13 (&gt;K:FUEL_SELECTOR_2_SET) } 	</Callback_Code> 
    </MouseRect> 
</part>
 
Back
Top