Skip to content

Commit

Permalink
don't require explicit Fmgc namespace reference when calling fmgc's D…
Browse files Browse the repository at this point in the history
…ataManager
  • Loading branch information
flogross89 committed Jan 3, 2024
1 parent bcb9bd1 commit a28688a
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ export class DataManager {
const waypoint: LatLonWaypoint = {
type: PilotWaypointType.LatLon,
storedIndex: index,
waypoint: Fmgc.WaypointFactory.fromLocation(ident, coordinates),
waypoint: WaypointFactory.fromLocation(ident, coordinates),
};

if (stored) {
Expand Down Expand Up @@ -285,7 +285,7 @@ export class DataManager {
const waypoint: PbxWaypoint = {
type: PilotWaypointType.Pbx,
storedIndex: index,
waypoint: Fmgc.WaypointFactory.fromLocation(ident, coordinates),
waypoint: WaypointFactory.fromLocation(ident, coordinates),
pbxPlace1: place1.ident.substring(0, 5),
pbxBearing1: bearing1,
pbxPlace2: place2.ident.substring(0, 5),
Expand Down Expand Up @@ -319,7 +319,7 @@ export class DataManager {
const waypoint: PbdWaypoint = {
type: PilotWaypointType.Pbd,
storedIndex: index,
waypoint: Fmgc.WaypointFactory.fromLocation(ident, coordinates),
waypoint: WaypointFactory.fromLocation(ident, coordinates),
pbdPlace: origin.ident,
pbdBearing: bearing,
pbdDistance: distance,
Expand Down

0 comments on commit a28688a

Please sign in to comment.