Jump to content

Fuel problem


mw308

Recommended Posts

Hi all does anyone else have a problem with fuel calculations? When a flight is logged the fuel is charged at 0 even though in the local.config.php it's 5.10. Is there somewhere else that it should be specified?

Cheers

EDIT: Scrub this it started working! However something tells me I haven't used £2800 of fuel travelling 40nm! If I had 971 lbs to start and landed with 626 lbs, how does that get seen as "566 fuel used" - is this 566 units? I've set the LiquidUnit setting to "3" for lbs, so shouldn't it say 345 fuel used?

Link to comment
Share on other sites

Guest lorathon

I'd let Jeff know of that problem in his thread then, since the connector picks up the fuel used

kACARS reports in lbs. The conversion is handled with the module. Depending upon your settings you will get a different result.

/* Fuel conversion - kAcars only reports in lbs */
				$fuelused = $xml->pirep->fuelUsed;
				if(Config::Get('LiquidUnit') == '0')
				{
					# Convert to KGs, divide by density since d = mass * volume
					$fuelused = ($fuelused * .45359237) / .8075;
				}
				# Convert lbs to gallons
				elseif(Config::Get('LiquidUnit') == '1')
				{
					$fuelused = $fuelused * 6.84;
				}
				# Convert lbs to kgs
				elseif(Config::Get('LiquidUnit') == '2')
				{
					$fuelused = $fuelused * .45359237;
				}				

local configuration settings

Config::Set('LiquidUnit', '2');   # 0=liter 1=gal 2=kg 3=lbs

We are using kg (#2). I just checked my last flight

366lbs burned (366 * .45359237) = 166.0148074

Link to PIREP report. Seems to be working to me. I would check your settings. Let me know if something is different with a different setting.

Report

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...