This commit is contained in:
2025-07-03 09:48:54 +02:00
parent 80cb726501
commit 93c7815d96
12 changed files with 43101 additions and 30 deletions
@@ -1,4 +1,4 @@
const getSimBriefFlightPlan = async (simBriefUsername: string) => {
const getSimBriefFlightPlanKH = async (simBriefUsername: string) => {
const flightPlanURL = `https://www.simbrief.com/api/xml.fetcher.php?username=${simBriefUsername}&json=1`;
let response: Response;
let success = false;
@@ -15,14 +15,14 @@ const getSimBriefFlightPlan = async (simBriefUsername: string) => {
};
};
export const ImportFlightPlan = async (
export const ImportFlightPlanKH = async (
username: string,
maxZFW: number,
maxTOW: number,
maxFuel: number,
isImperial: boolean
) => {
const flightPlan = await getSimBriefFlightPlan(username);
const flightPlan = await getSimBriefFlightPlanKH(username);
if (!flightPlan.success) {
return {
type: 'error',