Skip to main content

Class: LegsPageController

Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21v2/FMC/Pages/LegsPageController.ts:22

LEGS PAGE Controller

Constructors​

Constructor​

new LegsPageController(eventBus, fms, store, page, wptAlreadyExistsPrompt): LegsPageController

Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21v2/FMC/Pages/LegsPageController.ts:179

Creates the Controller.

Parameters​

ParameterTypeDescription
eventBusEventBusThe event bus
fmsWT21FmsThe Fms
storeLegsPageStoreThe Store
pageWT21FmcPageThe FMC Page
wptAlreadyExistsPromptWaypointAlreadyExistsPromptThe WPT ALREADY EXISTS prompt wrapper

Returns​

LegsPageController

Properties​

currentPage​

readonly currentPage: Subject<number>

Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21v2/FMC/Pages/LegsPageController.ts:33


isForHoldSelection​

isForHoldSelection: boolean = false

Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21v2/FMC/Pages/LegsPageController.ts:25


legsList​

legsList: FmcListUtility<LegPageItem>

Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21v2/FMC/Pages/LegsPageController.ts:167


lnavSequencing: boolean = true

Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21v2/FMC/Pages/LegsPageController.ts:53


pageCount​

readonly pageCount: ComputedSubject<number, number>

Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21v2/FMC/Pages/LegsPageController.ts:34


ppos​

readonly ppos: ConsumerSubject<LatLongAlt>

Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21v2/FMC/Pages/LegsPageController.ts:55


activeHeaderString​

readonly static activeHeaderString: " ACT LEGS[blue]" = ' ACT LEGS[blue]'

Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21v2/FMC/Pages/LegsPageController.ts:30


discoAltitudeString​

readonly static discoAltitudeString: "- DISCONTINUITY - " = '- DISCONTINUITY - '

Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21v2/FMC/Pages/LegsPageController.ts:28


discoCourseString​

readonly static discoCourseString: " THEN" = ' THEN'

Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21v2/FMC/Pages/LegsPageController.ts:29


discoIdentString​

readonly static discoIdentString: "□□□□□" = '□□□□□'

Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21v2/FMC/Pages/LegsPageController.ts:27


modHeaderString​

readonly static modHeaderString: " MOD[white] LEGS[blue]" = ' MOD[white] LEGS[blue]'

Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21v2/FMC/Pages/LegsPageController.ts:31

Methods​

destroy()​

destroy(): void

Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21v2/FMC/Pages/LegsPageController.ts:218

Destroys the Controller.

Returns​

void


init()​

init(): void

Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21v2/FMC/Pages/LegsPageController.ts:190

Initializes the Controller

Returns​

void


insertCurrentFplnHoldFacility()​

insertCurrentFplnHoldFacility(): number | null

Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21v2/FMC/Pages/LegsPageController.ts:473

Inserts a flight plan hold based on the HOLD AT facility being the parent leg already present in the flight plan

Returns​

number | null

the index of the inserted hold leg

Throws​

if an error occurs during the process


isFmcPageInDirectToExistingState()​

isFmcPageInDirectToExistingState(): boolean

Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21v2/FMC/Pages/LegsPageController.ts:852

Checks if we are in a Direct To Existing state for ACT plan, or MOD when plan is in MOD.

Returns​

boolean

Whether we are in a Direct To Existing state for ACT plan, or MOD when plan is in MOD.


renderPageRows()​

renderPageRows(): FmcRenderTemplate

Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21v2/FMC/Pages/LegsPageController.ts:345

Renders the Page

Returns​

FmcRenderTemplate

The FmcRenderTemplate


renderRow()​

renderRow(page, indexInDisplay, prevData, data, nextData?): FmcRenderTemplateRow[]

Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21v2/FMC/Pages/LegsPageController.ts:57

Parameters​

ParameterType
pageAbstractFmcPage
indexInDisplaynumber
prevDataLegPageItem | undefined
dataLegPageItem | undefined
nextData?LegPageItem

Returns​

FmcRenderTemplateRow[]


setDirectToCourse()​

setDirectToCourse(modPlan, newCourse): boolean

Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21v2/FMC/Pages/LegsPageController.ts:949

Sets the Direct To INTC CRS.

Parameters​

ParameterTypeDescription
modPlanFlightPlanThe MOD Flight Plan.
newCoursenumberThe scratchpad contents

Returns​

boolean

whether this was successfully completed.