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
Name | Type | Description |
---|---|---|
store | DirectToStore | This controller's associated direct to menu store. |
fms | Fms <any > | The flight management system. |
viewService | ViewService | The view service used by this controller. |
goToActivateFunc | () => void | A function which focuses the Activate button of this controller's associated view. |
Returns
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
Name | Type | Description |
---|---|---|
waypoints | readonly 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
Name | Type | Description |
---|---|---|
waypoint | null | Waypoint | The 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
Name | Type | Default value | Description |
---|---|---|---|
holdAt | boolean | false | Whether 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
Name | Type | Description |
---|---|---|
dtoData | undefined | DirectToInputData | The 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
Name | Type | Description |
---|---|---|
plan | FlightPlan | A flight plan. |
segmentIndex | number | The index of the segment in which the leg resides. |
segmentLegIndex | number | The 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