Skip to main content

Class: AdahrsSystemSelector

Defined in: workingtitle-instruments-epic2/shared/Systems/AdahrsSystemSelector.ts:52

Automatically selects the best ADAHRS from a set of candidates based on the current states of all systems. System state desiribility depends on whether it is providing valid airspeed and altitude data.

Constructors

Constructor

new AdahrsSystemSelector(index, bus, candidateSystemIndexes, systemPriorities?, dataBias?, manualSelection?): AdahrsSystemSelector

Defined in: workingtitle-instruments-epic2/shared/Systems/AdahrsSystemSelector.ts:99

Constructor.

Parameters

ParameterTypeDescription
indexnumberThe index of this selector.
busEventBusThe event bus.
candidateSystemIndexesIterable<number, any, any> | SubscribableSet<number>The indexes of the ADC systems from which to select.
systemPriorities?readonly number[] | SubscribableMap<number, number> | ReadonlyMap<number, number>The priorities for selecting individual ADC systems. If two systems have the same desirability, then the one with the higher priority will be selected. If a system's priority is not defined, then it will default to a value of 0. The priorities can be specified as an array of ADC system indexes or a map of ADC system indexes to the priorities for selecting those systems. If specified as an array of indexes, then each system whose index appears in the array will be assigned a priority equal to array.length - array.indexOf(index).
dataBias?"none" | "altitude" | "airspeed" | "airspeed-only" | "altitude-only"Whether to bias system desirability toward valid airspeed data, valid altitude data, or neither. Defaults to 'none'.
manualSelection?booleanWhether the ADAHRS should be selected manually (by PFD controller events).

Returns

AdahrsSystemSelector

Properties

selectedIndex

readonly selectedIndex: Subject<number>

Defined in: workingtitle-instruments-epic2/shared/Systems/AdahrsSystemSelector.ts:59

Methods

destroy()

destroy(): void

Defined in: workingtitle-instruments-epic2/shared/Systems/AdahrsSystemSelector.ts:279

Destroys this selector.

Returns

void


init()

init(): void

Defined in: workingtitle-instruments-epic2/shared/Systems/AdahrsSystemSelector.ts:155

Initializes this selector. Once initialized, this selector will automatically select the best ADC among its candidates.

Returns

void

Throws

Error if this selector has been destroyed.