Class: FlightPlanPredictorUtils
Defined in: src/sdk/utils/predictions/FlightPlanPredictorUtils.ts:6
Utilities for FlightPlanPredictor
Methods
predictFuelUsage()
static
predictFuelUsage(gs
,distance
,fuelFlow
,fuelWeight
):number
Defined in: src/sdk/utils/predictions/FlightPlanPredictorUtils.ts:36
Predicts fuel usage to fly a distance at a ground speed with a fuel flow and weight
Parameters
Parameter | Type | Description |
---|---|---|
gs | number | the GPS ground speed in knots |
distance | number | the distance in nautical miles |
fuelFlow | number | the total fuel flow in gallons per hour |
fuelWeight | number | the fuel weight in pounds per gallon |
Returns
number
the predicted fuel usage in pounds
predictTime()
static
predictTime(gs
,distance
):number
Defined in: src/sdk/utils/predictions/FlightPlanPredictorUtils.ts:22
Predicts time to fly a distance at a ground speed
Parameters
Parameter | Type | Description |
---|---|---|
gs | number | the GPS ground speed in knots |
distance | number | the distance in nautical miles |
Returns
number
the predicted time in seconds duration