Skip to main content

Class: FlightPlanPredictorUtils

Utilities for FlightPlanPredictor

Methods

predictFuelUsage

predictFuelUsage(gs, distance, fuelFlow, fuelWeight): number

Predicts fuel usage to fly a distance at a ground speed with a fuel flow and weight

Parameters

NameTypeDescription
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

Defined in

src/sdk/utils/predictions/FlightPlanPredictorUtils.ts:36


predictTime

predictTime(gs, distance): number

Predicts time to fly a distance at a ground speed

Parameters

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

Returns

number

the predicted time in seconds duration

Defined in

src/sdk/utils/predictions/FlightPlanPredictorUtils.ts:22