Skip to main content

Class: FlightTimerController<ID>

Defined in: src/sdk/instruments/FlightTimer.ts:159

A controller for a set of flight timers.

Type Parameters

Type Parameter
ID extends string

Constructors

Constructor

new FlightTimerController<ID>(bus, id): FlightTimerController<ID>

Defined in: src/sdk/instruments/FlightTimer.ts:171

Creates a new instance of FlightTimerController.

Parameters

ParameterTypeDescription
busEventBusThe event bus.
idIDThe ID of the timers controlled by this controller.

Returns

FlightTimerController<ID>

Properties

id

readonly id: ID

Defined in: src/sdk/instruments/FlightTimer.ts:171

The ID of the timers controlled by this controller.

Methods

reset()

reset(index): void

Defined in: src/sdk/instruments/FlightTimer.ts:230

Resets a timer to its initial value.

Parameters

ParameterTypeDescription
indexnumberThe index of the timer.

Returns

void


setInitialValue()

setInitialValue(index, initialValue): void

Defined in: src/sdk/instruments/FlightTimer.ts:197

Sets the initial value for a timer.

Parameters

ParameterTypeDescription
indexnumberThe index of the timer.
initialValuenumberThe initial value to set, in milliseconds.

Returns

void


setMode()

setMode(index, mode): void

Defined in: src/sdk/instruments/FlightTimer.ts:188

Sets the active counting mode for a timer.

Parameters

ParameterTypeDescription
indexnumberThe index of the timer.
modeFlightTimerModeThe mode to set.

Returns

void


setValue()

setValue(index, value): void

Defined in: src/sdk/instruments/FlightTimer.ts:206

Sets the current value for a timer.

Parameters

ParameterTypeDescription
indexnumberThe index of the timer.
valuenumberThe value to set, in milliseconds.

Returns

void


start()

start(index): void

Defined in: src/sdk/instruments/FlightTimer.ts:214

Starts a timer.

Parameters

ParameterTypeDescription
indexnumberThe index of the timer.

Returns

void


stop()

stop(index): void

Defined in: src/sdk/instruments/FlightTimer.ts:222

Stops a timer.

Parameters

ParameterTypeDescription
indexnumberThe index of the timer.

Returns

void