Class: DirectToController
Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/DirectTo/DirectToController.ts:25
The controller for the DTO view
Constructors
Constructor
new DirectToController(
store,fms,viewService,goToActivateFunc):DirectToController
Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/DirectTo/DirectToController.ts:46
Creates an instance of direct to controller.
Parameters
| Parameter | Type | Description |
|---|---|---|
store | DirectToStore | This controller's associated direct to menu store. |
fms | Fms | 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
DirectToController
Properties
canActivate
readonlycanActivate:Subject<boolean>
Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/DirectTo/DirectToController.ts:29
inputEnterPressedHandler()
readonlyinputEnterPressedHandler: () =>void
Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/DirectTo/DirectToController.ts:33
Responds to Enter button press events from the waypoint input.
Returns
void
inputIcao
readonlyinputIcao:Subject<string>
Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/DirectTo/DirectToController.ts:28
matchedWaypointsChangedHandler()
readonlymatchedWaypointsChangedHandler: (waypoints) =>void
Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/DirectTo/DirectToController.ts:31
Responds to changes in the waypoint input's matched waypoints list.
Parameters
| Parameter | Type | Description |
|---|---|---|
waypoints | readonly FacilityWaypoint<Facility>[] | The matched waypoints. |
Returns
void
waypointChangedHandler()
readonlywaypointChangedHandler: (waypoint) =>Promise<void>
Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/DirectTo/DirectToController.ts:32
Responds to changes in the waypoint input's selected waypoint.
Parameters
| Parameter | Type | Description |
|---|---|---|
waypoint | null | Waypoint | The selected waypoint. |
Returns
Promise<void>
Methods
activateSelected()
activateSelected(
holdAt):void
Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/DirectTo/DirectToController.ts:271
Activates a Direct To to the selected waypoint.
Parameters
| Parameter | Type | Default value | Description |
|---|---|---|---|
holdAt | boolean | false | Whether to hold at the selected waypoint. |
Returns
void
initializeTarget()
initializeTarget(
dtoData):void
Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/DirectTo/DirectToController.ts:64
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
| Parameter | Type | Description |
|---|---|---|
dtoData | undefined | DirectToInputData | The input data. |
Returns
void
createDtoExistingData()
protectedstaticcreateDtoExistingData(plan,segmentIndex,segmentLegIndex):DirectToExistingData
Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/DirectTo/DirectToController.ts:306
Creates a direct to existing data object for a flight plan leg.
Parameters
| Parameter | 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.