Skip to content

Commit

Permalink
refactor: change to a different hack for t-p
Browse files Browse the repository at this point in the history
  • Loading branch information
tracernz committed Feb 2, 2025
1 parent 3f304f1 commit ab9b541
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ export class FlightPlanService<P extends FlightPlanPerformanceData = FlightPlanP
lat,
long,
},
},
} as Waypoint, // Needed to avoid type error with ElevatedCoordinates on Airport.
});
}

Expand Down
6 changes: 3 additions & 3 deletions fbw-common/src/systems/navdata/shared/types/Airport.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Coordinates, Feet, Metres, NauticalMiles } from 'msfs-geo';
import { DatabaseItem, Knots, FlightLevel } from './Common';
import { Feet, Metres, NauticalMiles } from 'msfs-geo';
import { DatabaseItem, Knots, FlightLevel, ElevatedCoordinates } from './Common';
import { RunwaySurfaceType } from './Runway';
import { AirportSubsectionCode, SectionCode } from './SectionCode';
import { WaypointArea } from './Waypoint';
Expand All @@ -14,7 +14,7 @@ export interface Airport extends DatabaseItem<SectionCode.Airport> {
/**
* Airport reference location, and elevation
*/
location: Coordinates & { alt?: number };
location: ElevatedCoordinates;
/**
* Speed limit in the airport's terminal area, applicable below the altitude in {@link Airport/speedLimitAltitude}
*/
Expand Down

0 comments on commit ab9b541

Please sign in to comment.