November 22, 200223 yr HiCan someone help me with the following code:A light has to come one when there is an unbalance between the left- and right main fueltanks of app. 1000 lbs.Something like this:{(A:FUEL TANK left MAIN QUANTITY,gallons)(A:Fuel weight per gallon,pounds per gallon)}{(A:FUEL TANK RIGHT MAIN QUANTITY,gallons(A:Fuel weight per gallon,pounds per gallon)} - > 1000FUELThis one doesn't work.Please advice!Thankshttp://www.geocities.com/phjvh/plaatjes/logo.JPG Jan "Beatus ille qui procul negotiis..."
November 22, 200223 yr You could try something like this, as your syntax is a little wrong:(A:FUEL TANK left MAIN QUANTITY,gallons) (A:FUEL TANK right MAIN QUANTITY,gallons) - abs 10 >I believe (not sure though) that fuel weight is constant in FS2002, so unless you're prepared to make temperature variations (when you fuel the aircraft), there is no need to get involved with it.I didn't check the correctness of the variables used, but they "seem" ok. Replace > with & g t ;Don't guarantee it will work, but this would have been my first attempt ;)
November 22, 200223 yr Author Thanks Karl,In the mean time I made some changes; this one works ok:(A:FUEL TANK LEFT MAIN LEVEL,percent)(A:FUEL TANK RIGHT MAIN LEVEL,percent) - 5 >FUEL(5%=about 1800lbs)http://www.geocities.com/phjvh/plaatjes/logo.JPG Jan "Beatus ille qui procul negotiis..."
November 23, 200223 yr Looking good, but I still believe you should use the absolute value, so that it works "both ways". ;)
November 23, 200223 yr Author Yes Karl, You 're right.With " - abs 5 > " i can scrap the half formula.ThanksJan Jan "Beatus ille qui procul negotiis..."
Create an account or sign in to comment