Skip to main content

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

ParameterTypeDescription
gsnumberthe GPS ground speed in knots
distancenumberthe distance in nautical miles
fuelFlownumberthe total fuel flow in gallons per hour
fuelWeightnumberthe 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

ParameterTypeDescription
gsnumberthe GPS ground speed in knots
distancenumberthe distance in nautical miles

Returns

number

the predicted time in seconds duration