Type import
This commit is contained in:
parent
95aef94c71
commit
1c7caf986a
@ -1,6 +1,27 @@
|
||||
import { SimBrief } from '../types/general';
|
||||
|
||||
export const ImportFlightPlanKH = (plan: any, maxZFW: number, maxTOW: number, maxFuel: number, isImperial: boolean) => {
|
||||
type Plan = {
|
||||
params: {
|
||||
units: 'kgs' | 'lbs';
|
||||
};
|
||||
weights: {
|
||||
est_zfw: number;
|
||||
est_ramp: number;
|
||||
pax_count_actual: number;
|
||||
freight_added: number;
|
||||
};
|
||||
fuel: {
|
||||
plan_ramp: number;
|
||||
};
|
||||
};
|
||||
|
||||
export const ImportFlightPlanKH = (
|
||||
plan: Plan,
|
||||
maxZFW: number,
|
||||
maxTOW: number,
|
||||
maxFuel: number,
|
||||
isImperial: boolean
|
||||
) => {
|
||||
if (!plan) return { type: 'error', message: 'Empty plan' };
|
||||
|
||||
let convFactor = 1;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user