A class that provides information about the Fuel and Payload of the current aircraft.
More...
|
FsFuelTank | GetFuelTank (FSFuelTanks Tank) |
| DEPRECATED: Use the accessor on the FuelTanks collection instead. e.g. FsFuelTank leftTank = PayloadServices.FuelTanks[FsFuelTanks.Left_Main];.
|
|
void | RefreshData () |
| Updates all the payload data from FSUIPC.
|
|
void | WriteChanges () |
| Writes the changes to fuel tank levels and payload weights.
|
|
double | LoadFuelUSGallons (double FuelQuantity, bool SetAbsoluteQuantity) |
| Sets the fuel in the aircraft to the specified quantity, or adds the specified quantity. The fuel will be distributed automatically between the fuel tanks present on the aircraft. If adding fuel the algorithm will try to correct any imbalance between the tanks.
|
|
double | LoadFuelLitres (double FuelQuantity, bool SetAbsoluteQuantity) |
| Sets the fuel in the aircraft to the specified quantity, or adds the specified quantity. The fuel will be distributed automatically between the fuel tanks present on the aircraft. If adding fuel the algorithm will try to correct any imbalance between the tanks.
|
|
double | LoadFuelLbs (double FuelQuantity, bool SetAbsoluteQuantity) |
| Sets the fuel in the aircraft to the specified quantity, or adds the specified quantity. The fuel will be distributed automatically between the fuel tanks present on the aircraft. If adding fuel the algorithm will try to correct any imbalance between the tanks.
|
|
double | LoadFuelKgs (double FuelQuantity, bool SetAbsoluteQuantity) |
| Sets the fuel in the aircraft to the specified quantity, or adds the specified quantity. The fuel will be distributed automatically between the fuel tanks present on the aircraft. If adding fuel the algorithm will try to correct any imbalance between the tanks.
|
|
double | LoadFuelNewtons (double FuelQuantity, bool SetAbsoluteQuantity) |
| Sets the fuel in the aircraft to the specified quantity, or adds the specified quantity. The fuel will be distributed automatically between the fuel tanks present on the aircraft. If adding fuel the algorithm will try to correct any imbalance between the tanks.
|
|
double | LoadFuelSlugs (double FuelQuantity, bool SetAbsoluteQuantity) |
| Sets the fuel in the aircraft to the specified quantity, or adds the specified quantity. The fuel will be distributed automatically between the fuel tanks present on the aircraft. If adding fuel the algorithm will try to correct any imbalance between the tanks.
|
|
|
bool | TooManyPayloadStations [get] |
| This will be true if the loaded aircraft has more than 61 payload stations. FSUIPC can only handle the first 61 and therefore the PayloadStations list will never have more than that. Becuase of this limitation, stations above 61 that will not be accessible to your application.
|
|
List< FsPayloadStation > | PayloadStations [get] |
| A strongly-typed list of FsPayloadStation objects. One for each payload station on this aircraft.
|
|
FsFuelTanksCollection | FuelTanks [get] |
| A strongly-typed list of FsFuelTank objects. One for each know possible fuel tank. Check which tanks are present with the IsPresent property.
|
|
double | PayloadWeightLbs [get] |
| The total current weight of all payload stations in Pounds.
|
|
double | PayloadWeightKgs [get] |
| The current weight of all payload stations in Kilograms.
|
|
double | PayloadWeightSlugs [get] |
| The current weight of all payload stations in Slugs.
|
|
double | PayloadWeightNewtons [get] |
| The current weight of all payload stations in Newtons.
|
|
double | GrossWeightLbs [get] |
| The total current weight of the aircraft in Pounds.
|
|
double | GrossWeightKgs [get] |
| The total current weight of the aircraft in Kilograms.
|
|
double | GrossWeightSlugs [get] |
| The total current weight of the aircraft in Slugs.
|
|
double | GrossWeightNewtons [get] |
| The total current weight of the aircraft in Newtons.
|
|
double | MaxGrossWeightLbs [get] |
| The maxmimum allowed weight (including payload and fuel) of the aircraft in Pounds.
|
|
double | MaxGrossWeightKgs [get] |
| The maxmimum allowed weight (including payload and fuel) of the aircraft in Kilograms.
|
|
double | MaxGrossWeightSlugs [get] |
| The maxmimum allowed weight (including payload and fuel) of the aircraft in Slugs.
|
|
double | MaxGrossWeightNewtons [get] |
| The maxmimum allowed weight (including payload and fuel) of the aircraft in Newtons.
|
|
double | EmptyWeightLbs [get] |
| The total current weight of the aircraft not including fuel or payload, in Pounds.
|
|
double | EmptyWeightKgs [get] |
| The total current weight of the aircraft not including fuel or payload, in Kilograms.
|
|
double | EmptyWeightSlugs [get] |
| The total current weight of the aircraft not including fuel or payload, in Slugs.
|
|
double | EmptyWeightNewtons [get] |
| The total current weight of the aircraft not including fuel or payload, in Newtons.
|
|
double | FuelWeightLbs [get] |
| The total current weight of all the fuel in Pounds.
|
|
double | FuelWeightKgs [get] |
| The total current weight of all the fuel in Kilograms.
|
|
double | FuelWeightSlugs [get] |
| The total current weight of all the fuel in Slugs.
|
|
double | FuelWeightNewtons [get] |
| The total current weight of all the fuel in Newtons.
|
|
double | FuelCapacityUSGallons [get] |
| The total capacity of all fuel tanks in US Gallons.
|
|
double | FuelCapacityLitres [get] |
| The total capacity of all fuel tanks in Litres.
|
|
double | FuelCapacityLbs [get] |
| The total current weight of all the fuel in Pounds.
|
|
double | FuelCapacityKgs [get] |
| The total capacity of all fuel tanks in Kilograms.
|
|
double | FuelCapacitySlugs [get] |
| The total capacity of all fuel tanks in Slugs.
|
|
double | FuelCapacityNewtons [get] |
| The total capacity of all fuel tanks in Newtons.
|
|
double | FuelLevelUSGallons [get] |
| The total level of all fuel tanks in US Gallons.
|
|
double | FuelLevelLitres [get] |
| The total level of all fuel tanks in Litres.
|
|
double | FuelPercentage [get] |
| The total percentage fuel level accross all tanks.
|
|
FSFuelTanks[][] | FuelDistributionPlan [get, set] |
| Gets or Sets the FuelTank distribution plan for the fuel loading algorithm used by the LoadFuel() methods.
|
|
A class that provides information about the Fuel and Payload of the current aircraft.
double LoadFuelKgs |
( |
double | FuelQuantity, |
|
|
bool | SetAbsoluteQuantity ) |
|
inline |
Sets the fuel in the aircraft to the specified quantity, or adds the specified quantity. The fuel will be distributed automatically between the fuel tanks present on the aircraft. If adding fuel the algorithm will try to correct any imbalance between the tanks.
The priority for filling tanks is set out in the FuelDistributionPlan. The default plan fills tip and aux tanks first, followed by the main tanks, then centre, and finally external.
- Parameters
-
FuelQuantity | The quantity of fuel in Kg |
SetAbsoluteQuantity | Set to true to set the fuel load to the specified quantity. Set to false to add the specified quantity to the fuel already in the tanks. |
- Returns
- The quantity of fuel that could not be placed in the tanks
double LoadFuelLbs |
( |
double | FuelQuantity, |
|
|
bool | SetAbsoluteQuantity ) |
|
inline |
Sets the fuel in the aircraft to the specified quantity, or adds the specified quantity. The fuel will be distributed automatically between the fuel tanks present on the aircraft. If adding fuel the algorithm will try to correct any imbalance between the tanks.
The priority for filling tanks is set out in the FuelDistributionPlan. The default plan fills tip and aux tanks first, followed by the main tanks, then centre, and finally external.
- Parameters
-
FuelQuantity | The quantity of fuel in Pounds (Lbs) |
SetAbsoluteQuantity | Set to true to set the fuel load to the specified quantity. Set to false to add the specified quantity to the fuel already in the tanks. |
- Returns
- The quantity of fuel that could not be placed in the tanks
double LoadFuelLitres |
( |
double | FuelQuantity, |
|
|
bool | SetAbsoluteQuantity ) |
|
inline |
Sets the fuel in the aircraft to the specified quantity, or adds the specified quantity. The fuel will be distributed automatically between the fuel tanks present on the aircraft. If adding fuel the algorithm will try to correct any imbalance between the tanks.
The priority for filling tanks is set out in the FuelDistributionPlan. The default plan fills tip and aux tanks first, followed by the main tanks, then centre, and finally external.
- Parameters
-
FuelQuantity | The quantity of fuel in Litres |
SetAbsoluteQuantity | Set to true to set the fuel load to the specified quantity. Set to false to add the specified quantity to the fuel already in the tanks. |
- Returns
- The quantity of fuel that could not be placed in the tanks
double LoadFuelNewtons |
( |
double | FuelQuantity, |
|
|
bool | SetAbsoluteQuantity ) |
|
inline |
Sets the fuel in the aircraft to the specified quantity, or adds the specified quantity. The fuel will be distributed automatically between the fuel tanks present on the aircraft. If adding fuel the algorithm will try to correct any imbalance between the tanks.
The priority for filling tanks is set out in the FuelDistributionPlan. The default plan fills tip and aux tanks first, followed by the main tanks, then centre, and finally external.
- Parameters
-
FuelQuantity | The quantity of fuel in Newtons |
SetAbsoluteQuantity | Set to true to set the fuel load to the specified quantity. Set to false to add the specified quantity to the fuel already in the tanks. |
- Returns
- The quantity of fuel that could not be placed in the tanks
double LoadFuelSlugs |
( |
double | FuelQuantity, |
|
|
bool | SetAbsoluteQuantity ) |
|
inline |
Sets the fuel in the aircraft to the specified quantity, or adds the specified quantity. The fuel will be distributed automatically between the fuel tanks present on the aircraft. If adding fuel the algorithm will try to correct any imbalance between the tanks.
The priority for filling tanks is set out in the FuelDistributionPlan. The default plan fills tip and aux tanks first, followed by the main tanks, then centre, and finally external.
- Parameters
-
FuelQuantity | The quantity of fuel in Slugs |
SetAbsoluteQuantity | Set to true to set the fuel load to the specified quantity. Set to false to add the specified quantity to the fuel already in the tanks. |
- Returns
- The quantity of fuel that could not be placed in the tanks
double LoadFuelUSGallons |
( |
double | FuelQuantity, |
|
|
bool | SetAbsoluteQuantity ) |
|
inline |
Sets the fuel in the aircraft to the specified quantity, or adds the specified quantity. The fuel will be distributed automatically between the fuel tanks present on the aircraft. If adding fuel the algorithm will try to correct any imbalance between the tanks.
The priority for filling tanks is set out in the FuelDistributionPlan. The default plan fills tip and aux tanks first, followed by the main tanks, then centre, and finally external.
- Parameters
-
FuelQuantity | The quantity of fuel in US Gallons |
SetAbsoluteQuantity | Set to true to set the fuel load to the specified quantity. Set to false to add the specified quantity to the fuel already in the tanks. |
- Returns
- The quantity of fuel that could not be placed in the tanks