Fuel Calculator V_1.1

Mischka, could you explain where you out that code to show your results, please?! I wasn’t quite sure where that would be placed. I was trying it in my fleet_main.tpl file, but clearly I am wrong

sorry, totally missed this till now. I put it in schedulesdata I think.. so you would call it with SchedulesData::CalcFuelFlows()

Ok, I will give it a try later tonight

Hi all, this is a great add on but! what is the " Fuel Per Hour In Feet" field? is it just Fuel per hour? what’s the “feet” bit all about? if its not just normal fuel per hour then how do I make a calculation for this field? any insight would be great. Also in the first page of the fuel planner I have every single A320 in my fleet showing in the drop down box, how do I reduce that to just one A320? Thanks all.

The field is required to calculate the climbing fuel. About your aircraft, you have multiple A320s with different registration and that’s why you’ll see more than 1 in the drop box. I’ll have to rewrite the code to pull out the aircraft by type only. We’ll let you know.

The field is required to calculate the climbing fuel. About your aircraft, you have multiple A320s with different registration and that’s why you’ll see more than 1 in the drop box. I’ll have to rewrite the code to pull out the aircraft by type only. We’ll let you know.

Brilliant Many thanks I understand now, Yes please that little mod for the drop down box would be great

I sure will change it ASAP

Hello Parko,

I have a problem: when I try to select an aircraft from the menu did not display any air present in my fleet.

Ideas?

Dylan

Neos Air Va ceo

Some minor changes have been made. Please download and replace the following files at Github:

Files:

  1. FCalculator.class.php in core/common folder.

  2. fuelcalculator.tpl in core/templates/fc folder.

  3. info.png in lib/images folder.

Change Log:

  1. Multiple aircraft types showing in drop down menu is fixed.

  2. Info image added explaining things.

  3. Fields are now required before the form can be submitted.

Enjoy

Hello Parko,

I have a problem: when I try to select an aircraft from the menu did not display any air present in my fleet.

Ideas?

Dylan

Neos Air Va ceo

Just download the new version and does not leave any aircraft.

Where do you not see the aircraft listed? In admin or In module?

I downloaded the new version, removed the old and installed the modules.

But the problem still exists, in the admin side I do not see any aircraft in the aircraft menu

Do you have aircraft added to your fleet?

In Admin, yes 345 aircraft

What’s you table prefix in DB?

phpvms_aircraft

Have you imported the sql file provided into your DB?

you mean

fuel_param

Amazing

Hello guys …

I had the same problem … no aircrafts listed at “SET PARAMETERS”.

I solved in my way … and at lest for me ..works !

So … we have in CORE/COMMON/FSCalculator/FCalculator.class.php :

<?php

class FCalculator extends CodonData

{

public function findaircraft()

{

$sql = “SELECT DISTINCT name FROM”.TABLE_PREFIX.“aircraft”;

return DB::get_results($sql);

}

You must edit /replace the RED line with : $sql = “SELECT * FROM phpvms_aircraft”;

And thats all !! Hope to be a solution for all and not only for my ..PC/phpvms sistem

2 Likes

Thank you very much and I work