mw308 Posted May 6, 2010 Report Posted May 6, 2010 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? Quote
Administrators Nabeel Posted May 6, 2010 Administrators Report Posted May 6, 2010 Which ACARS program are you using? Quote
Administrators Nabeel Posted May 6, 2010 Administrators Report Posted May 6, 2010 I'd let Jeff know of that problem in his thread then, since the connector picks up the fuel used Quote
Guest lorathon Posted May 7, 2010 Report Posted May 7, 2010 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 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.