Jump to content
Sign in to follow this  
Guest greenco

Help me understand this piece of code

Recommended Posts

Guest greenco

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

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
Guest greenco

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  

  • 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...