Skip to main content

Class: DirectToController

The controller for the DTO view

Constructors

constructor

new DirectToController(store, fms, viewService, goToActivateFunc): DirectToController

Creates an instance of direct to controller.

Parameters

NameTypeDescription
storeDirectToStoreThis controller's associated direct to menu store.
fmsFms<any>The flight management system.
viewServiceViewServiceThe view service used by this controller.
goToActivateFunc() => voidA function which focuses the Activate button of this controller's associated view.

Returns

DirectToController

Defined in

workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/DirectTo/DirectToController.ts:46

Properties

canActivate

Readonly canActivate: Subject<boolean>

Defined in

workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/DirectTo/DirectToController.ts:29


inputEnterPressedHandler

Readonly inputEnterPressedHandler: () => void

Type declaration

▸ (): void

Responds to Enter button press events from the waypoint input.

Returns

void

Defined in

workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/DirectTo/DirectToController.ts:33


inputIcao

Readonly inputIcao: Subject<string>

Defined in

workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/DirectTo/DirectToController.ts:28


matchedWaypointsChangedHandler

Readonly matchedWaypointsChangedHandler: (waypoints: readonly FacilityWaypoint<Facility>[]) => void

Type declaration

▸ (waypoints): void

Responds to changes in the waypoint input's matched waypoints list.

Parameters
NameTypeDescription
waypointsreadonly FacilityWaypoint<Facility>[]The matched waypoints.
Returns

void

Defined in

workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/DirectTo/DirectToController.ts:31


waypointChangedHandler

Readonly waypointChangedHandler: (waypoint: null | Waypoint) => Promise<void>

Type declaration

▸ (waypoint): Promise<void>

Responds to changes in the waypoint input's selected waypoint.

Parameters
NameTypeDescription
waypointnull | WaypointThe selected waypoint.
Returns

Promise<void>

Defined in

workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/DirectTo/DirectToController.ts:32

Methods

activateSelected

activateSelected(holdAt?): void

Activates a Direct To to the selected waypoint.

Parameters

NameTypeDefault valueDescription
holdAtbooleanfalseWhether to hold at the selected waypoint.

Returns

void

Defined in

workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/DirectTo/DirectToController.ts:271


initializeTarget

initializeTarget(dtoData): void

Initializes the direct to target based on input data. If the input data is defined, the target will be set to that defined by the input data. If the input data is undefined, an attempt will be made to set the target to the following, in order:

  • The current active direct to target.
  • The current active flight plan leg.
  • The next leg in the primary flight plan, following the active leg, that is a valid direct to target.
  • The previous leg in the primary flight plan, before the active leg, that is a valid direct to target.

Parameters

NameTypeDescription
dtoDataundefined | DirectToInputDataThe input data.

Returns

void

Defined in

workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/DirectTo/DirectToController.ts:64


createDtoExistingData

createDtoExistingData(plan, segmentIndex, segmentLegIndex): DirectToExistingData

Creates a direct to existing data object for a flight plan leg.

Parameters

NameTypeDescription
planFlightPlanA flight plan.
segmentIndexnumberThe index of the segment in which the leg resides.
segmentLegIndexnumberThe index of the leg in its segment.

Returns

DirectToExistingData

A direct to existing data object.

Defined in

workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/DirectTo/DirectToController.ts:306