CAPTAIN SIM FORUM
B-52 Driver >> B-52 Driver >> Fuel Warning Light
https://www.captainsim.org/forum/csf.pl?num=1299439961

Message started by MustanGrande on Mar 6th, 2011 at 7:32pm

Title: Re: Fuel Warning Light
Post by Lost in Isaan on Sep 19th, 2011 at 4:04am
There appears to be an error in the Captain_Sim.b520.L38.cab/L38_013_lt.spb code causing the amber lamp to be ON when there is fuel available with either of the 4 External or Tip tanks and they are selected.

In fact I believe the Amber lamp should only be ON if either of the tanks are empty but selected. I have modified the code to look like this as a remedy:-

xxxxxxxx
                             (A:ELECTRICAL AVIONICS BUS VOLTAGE,Volts) 1 > if{
                                   (A:FUEL TANK EXTERNAL1 QUANTITY,Gallons) 1 < (L:L38_013_SW2,bool) &&
                                   (A:FUEL TANK LEFT TIP QUANTITY,Gallons)  1 < (L:L38_014_SW2,bool) && ||
                                   (A:FUEL TANK RIGHT TIP QUANTITY,Gallons) 1 < (L:L38_036_SW2,bool) && ||
                                   (A:FUEL TANK EXTERNAL2 QUANTITY,Gallons) 1 < (L:L38_037_SW2,bool) && ||
                                   
                             } els{ 0 }
                             if{ 2 } els{ (E:TIME OF DAY,enum) 1 != (A:LIGHT PANEL,bool) ! && }
                             xxxxxxxxxx

Now when I get a RED warning that the tank is Empty and select that tank the Amber Light comes ON.

I would like CS's opinion before telling anyone how to do this.


CAPTAIN SIM FORUM » Powered by YaBB 2.6.0!
YaBB Forum Software © 2000-2024. All Rights Reserved.