Skip to main content

Class: ActiveFlightPlanStore

A flight plan store containing information about the G3X's active primary flight plan. The active primary flight plan is the primary flight plan of the selected flight plan source (either internal or external).

Implements

Constructors

constructor

new ActiveFlightPlanStore(fms, fplSource): ActiveFlightPlanStore

Creates a new instance of ActiveFlightPlanStore.

Parameters

NameTypeDescription
fmsG3XFmsThe FMS.
fplSourceSubscribable<G3XFplSource>The selected flight plan source.

Returns

ActiveFlightPlanStore

Defined in

src/workingtitle-instruments-g3x-touch/html_ui/Pages/VCockpit/Instruments/NavSystems/G3XTouch/Shared/FlightPlan/ActiveFlightPlanStore.ts:54

Properties

destinationAirport

Readonly destinationAirport: Subscribable<null | AirportFacility>

The flight plan's destination airport, or null if the flight plan does not have a destination.

Implementation of

FlightPlanStore.destinationAirport

Defined in

src/workingtitle-instruments-g3x-touch/html_ui/Pages/VCockpit/Instruments/NavSystems/G3XTouch/Shared/FlightPlan/ActiveFlightPlanStore.ts:31


loadedVfrApproachData

Readonly loadedVfrApproachData: Subscribable<null | Readonly<G3XFmsFplLoadedApproachData>>

Data describing the flight plan's loaded VFR approach, or null if the flight plan does not have a loaded VFR approach or does not support VFR approaches.

Implementation of

FlightPlanStore.loadedVfrApproachData

Defined in

src/workingtitle-instruments-g3x-touch/html_ui/Pages/VCockpit/Instruments/NavSystems/G3XTouch/Shared/FlightPlan/ActiveFlightPlanStore.ts:35


name

Readonly name: Subscribable<null | string>

The name of the flight plan, or null if the plan does not have a name.

Implementation of

FlightPlanStore.name

Defined in

src/workingtitle-instruments-g3x-touch/html_ui/Pages/VCockpit/Instruments/NavSystems/G3XTouch/Shared/FlightPlan/ActiveFlightPlanStore.ts:23


originAirport

Readonly originAirport: Subscribable<null | AirportFacility>

The flight plan's origin airport, or null if the flight plan does not have an origin.

Implementation of

FlightPlanStore.originAirport

Defined in

src/workingtitle-instruments-g3x-touch/html_ui/Pages/VCockpit/Instruments/NavSystems/G3XTouch/Shared/FlightPlan/ActiveFlightPlanStore.ts:27


vfrApproachActiveStatus

Readonly vfrApproachActiveStatus: Subscribable<"none" | "active" | "vtf">

The activation status of the flight plan's loaded VFR approach.

  • none: the approach is not active.
  • active: the approach is active.
  • vtf: the approach is active in vectors-to-final (VTF) form.

If the flight plan has no loaded VFR approach, then the status will be none.

Implementation of

FlightPlanStore.vfrApproachActiveStatus

Defined in

src/workingtitle-instruments-g3x-touch/html_ui/Pages/VCockpit/Instruments/NavSystems/G3XTouch/Shared/FlightPlan/ActiveFlightPlanStore.ts:39

Methods

destroy

destroy(): void

Destroys this store. Once destroyed, this store will no longer update its provided data, and can no longer be paused or resumed.

Returns

void

Defined in

src/workingtitle-instruments-g3x-touch/html_ui/Pages/VCockpit/Instruments/NavSystems/G3XTouch/Shared/FlightPlan/ActiveFlightPlanStore.ts:318


init

init(paused?): void

Initializes this store. Once initialized, this store will continuously update its data until paused or destroyed.

Parameters

NameTypeDefault valueDescription
pausedbooleanfalseWhether to initialize this store as paused. If true, then this store's data will not be initialized until the first time it is resumed. Defaults to false.

Returns

void

Throws

Error if this store has been destroyed.

Defined in

src/workingtitle-instruments-g3x-touch/html_ui/Pages/VCockpit/Instruments/NavSystems/G3XTouch/Shared/FlightPlan/ActiveFlightPlanStore.ts:66


pause

pause(): void

Pauses this store. Once paused, this store will not update its data until it is resumed.

Returns

void

Throws

Error if this store has been destroyed.

Defined in

src/workingtitle-instruments-g3x-touch/html_ui/Pages/VCockpit/Instruments/NavSystems/G3XTouch/Shared/FlightPlan/ActiveFlightPlanStore.ts:112


resume

resume(): void

Resumes this store. Once resumed, this store will continuously update its data until paused or destroyed.

Returns

void

Throws

Error if this store has been destroyed.

Defined in

src/workingtitle-instruments-g3x-touch/html_ui/Pages/VCockpit/Instruments/NavSystems/G3XTouch/Shared/FlightPlan/ActiveFlightPlanStore.ts:90