Jump to content
Sign in to follow this  
Bob Scott

Fuel selector bug

Recommended Posts

The FSW Lear (v4.3c) has a bug in the fuel feed logic that's causing the left engine to feed off the right wing tank, resulting in imbalances.

I suspected at first this might be an initialization issue coming across from the default flight, so I monitored the #1 and #2 fuel selectors via FSUIPC offsets 3880 and 37C0, and I can see that, no matter how the default flight's fuel selectors are configured and after the Lear panel loads, the panel is setting the left fuel selector to feed from the right tank (selector value = 3) and the right fuel selector to crossfeed R to L (selector value = 15).

I wrote a lua script that autoruns via FSUIPC when the L35 panel is loaded which resets the selectors to 2 and 3 respectively, after which fuel feed behavior is normal.

  • Like 1

Bob Scott | President and CEO, AVSIM Inc
ATP Gulfstream II-III-IV-V

System1 (P3Dv5/v4): i9-13900KS @ 6.0GHz, water 2x360mm, ASUS Z790 Hero, 32GB GSkill 7800MHz CAS36, ASUS RTX4090
Samsung 55" JS8500 4K TV@30Hz,
3x 2TB WD SN850X 1x 4TB Crucial P3 M.2 NVME SSD, EVGA 1600T2 PSU, 1.2Gbps internet
Fiber link to Yamaha RX-V467 Home Theater Receiver, Polk/Klipsch 6" bookshelf speakers, Polk 12" subwoofer, 12.9" iPad Pro
PFC yoke/throttle quad/pedals with custom Hall sensor retrofit, Thermaltake View 71 case, Stream Deck XL button box

Sys2 (MSFS/XPlane): i9-10900K @ 5.1GHz, 32GB 3600/15, nVidia RTX4090FE, Alienware AW3821DW 38" 21:9 GSync, EVGA 1000P2
Thrustmaster TCA Boeing Yoke, TCA Airbus Sidestick, 2x TCA Airbus Throttle quads, PFC Cirrus Pedals, Coolermaster HAF932 case

Portable Sys3 (P3Dv4/FSX/DCS): i9-9900K @ 5.0 Ghz, Noctua NH-D15, 32GB 3200/16, EVGA RTX3090, Dell S2417DG 24" GSync
Corsair RM850x PSU, TM TCA Officer Pack, Saitek combat pedals, TM Warthog HOTAS, Coolermaster HAF XB case

Share this post


Link to post
Share on other sites

We have code that loads the fuel selectors to what you discovered startup or any time you reload the aircraft. So you may want to look into why your setup is not updating. Inside the panel folder is a cab file called Learjet_35A. Extract that to a folder and open the systems.xml. The first section of code is to load presets. And what i shared below is in there. So yes you discovery is correct but is also an issue on your end.

	2 (>K:FUEL_SELECTOR_SET)
	3 (>K:FUEL_SELECTOR_2_SET)

 

Edited by Flysimware

Share this post


Link to post
Share on other sites
5 hours ago, w6kd said:

The FSW Lear (v4.3c) has a bug in the fuel feed logic that's causing the left engine to feed off the right wing tank, resulting in imbalances.

Bob,

In P3Dv4.5 I loaded the Lear35 v4.3C onto the runway with the brakes set, shut down the right engine, set the left throttle to 94% (N1 about 89%), set the tip tanks and center tank to 0% fuel, and the wing tanks to 100% fuel. I then monitored the fuel quantity (%) in the wing tanks with a little Lua script (FSUIPC offsets 0x0B94 and 0x0B7C). The right tank stayed at 100% while the left tank went from 100% down to less than 60% before I stopped the experiment. So at least on my system it doesn't seem the left engine is running off the right tank upon initial loading.

Al

Edit: In retrospect, rather than using a Lua script it is easier to just monitor the fuel tank quantities using the P3D dropdown Vehicle > Fuel and Payload...

Edited by ark

Share this post


Link to post
Share on other sites

Thanks Mark/Al

If I load the default scenario  (the LM default F-22 at Eglin AFB) and let it go all the way to ready-to-fly and then switch to the Lear, it initializes properly.  But if I select the L35 at the scenario startup dialog, it initially comes up with both selectors set to 1 (All) and then goes to 3 and 15 after ~5-10 seconds.  Watching the quantities, both engines are feeding off the right main.  Definitely repeatable.  Resetting the selectors with the Lua script repeating the settings for ~ 1 min after the panel completes loading solves the issue.


Bob Scott | President and CEO, AVSIM Inc
ATP Gulfstream II-III-IV-V

System1 (P3Dv5/v4): i9-13900KS @ 6.0GHz, water 2x360mm, ASUS Z790 Hero, 32GB GSkill 7800MHz CAS36, ASUS RTX4090
Samsung 55" JS8500 4K TV@30Hz,
3x 2TB WD SN850X 1x 4TB Crucial P3 M.2 NVME SSD, EVGA 1600T2 PSU, 1.2Gbps internet
Fiber link to Yamaha RX-V467 Home Theater Receiver, Polk/Klipsch 6" bookshelf speakers, Polk 12" subwoofer, 12.9" iPad Pro
PFC yoke/throttle quad/pedals with custom Hall sensor retrofit, Thermaltake View 71 case, Stream Deck XL button box

Sys2 (MSFS/XPlane): i9-10900K @ 5.1GHz, 32GB 3600/15, nVidia RTX4090FE, Alienware AW3821DW 38" 21:9 GSync, EVGA 1000P2
Thrustmaster TCA Boeing Yoke, TCA Airbus Sidestick, 2x TCA Airbus Throttle quads, PFC Cirrus Pedals, Coolermaster HAF932 case

Portable Sys3 (P3Dv4/FSX/DCS): i9-9900K @ 5.0 Ghz, Noctua NH-D15, 32GB 3200/16, EVGA RTX3090, Dell S2417DG 24" GSync
Corsair RM850x PSU, TM TCA Officer Pack, Saitek combat pedals, TM Warthog HOTAS, Coolermaster HAF XB case

Share this post


Link to post
Share on other sites
1 hour ago, w6kd said:

If I load the default scenario  (the LM default F-22 at Eglin AFB) and let it go all the way to ready-to-fly and then switch to the Lear, it initializes properly. 

I always start with my Default flight which is the 'P3D default' F-35A on to R35L at KCOS. But once the sim loads the F-35A into the rotating vehicle selection (or whatever it is called) window, I then switch to the Lear35 so it is in the vehicle window. I then either press on so the Lear is loaded on to 35L at KCOS, or change the target airport.   I have found over time that starting in the rotating vehicle window with a 'simple' default aircraft (F-35A seems to work better than some) seems to help avoid strange problems.  Back in the FSX days PMDG cautioned to always load a default aircraft before loading one of their complex aircraft, and so I have been doing that ever since. I don't know if PMDG still recommends that.

Al

Edited by ark

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
×
×
  • Create New...