flight-planner
Version:
Plan and route VFR flights
44 lines (43 loc) • 1.25 kB
JavaScript
/**
* Standard atmospheric pressure at sea level in hectopascals (hPa).
*
* @constant {number}
*/
export const ISA_STANDARD_PRESSURE_HPA = 1013.25;
/**
* Standard atmospheric temperature at sea level in degrees Celsius (°C).
*
* @constant {number}
*/
export const ISA_STANDARD_TEMPERATURE_CELSIUS = 15;
/**
* Standard temperature lapse rate in the troposphere in degrees Celsius per meter (°C/m).
*
* @constant {number}
*/
export const ISA_STANDARD_TEMPERATURE_LAPSE_RATE = 0.0065;
/**
* Default unit settings used throughout the application when specific units aren't provided.
* Uses nautical miles for distance, knots for speed, feet for altitude, Celsius for temperature,
* hectopascals for pressure, kilograms for weight, liters for volume, and degrees for angles.
*
* @constant {UnitOptions}
*/
export const DefaultUnits = {
speed: 'knot',
distance: 'nmi',
altitude: 'ft',
elevation: 'ft',
temperature: 'C',
pressure: 'hPa',
mass: 'kg',
volume: 'l',
angle: 'deg',
};
/**
* Maximum recommended duration for a single flight leg in minutes.
* Used by the advisor to issue a warning for potentially fatiguing legs.
*
* @constant {number}
*/
export const MAX_LEG_DURATION_MINUTES = 120;