Sign in to follow this  
Guest greenco

Help me understand this piece of code

Recommended Posts

I came across this "Fuel Flow" code and I am not sure what it is doing. I think it is checking to see if the aircraft has one engine or two engines and then it adjust the fuel flow accordingly. What is the purpose of the "GPH:1 and GPH:2" in the statement?%Fuel Burn: %((A:Eng fuel flow GPH:2, gallons per hour))%{if}%((A:Eng fuel flow GPH:1, gallons per hour) (A:Eng fuel flow GPH:2, gallons per hour) + 2 / )%!03d!% gph%{else}%((A:Eng fuel flow GPH:1, gallons per hour))%!03d!% gph%{end}Thanksgreenco

Share this post


Link to post
Share on other sites
Help AVSIM continue to serve you!
Please donate today!

Hi,(A:Eng fuel flow GPH:2, gallons per hour) is the same as:(A:Eng2 fuel flow GPH, gallons per hour) The string gives fuel flow for single- and dual engine acft.Jan"Beatus ille qui procul negotiis..."

Share this post


Link to post
Share on other sites

Thanks JanI thought that was what the code was doing, but I had never seen it expressed that way.greenco

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