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
Parameter | Type | Description |
---|---|---|
bus | EventBus | The event bus. |
id | ID | The 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
Parameter | Type | Description |
---|---|---|
index | number | The 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
Parameter | Type | Description |
---|---|---|
index | number | The index of the timer. |
initialValue | number | The 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
Parameter | Type | Description |
---|---|---|
index | number | The index of the timer. |
mode | FlightTimerMode | The 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
Parameter | Type | Description |
---|---|---|
index | number | The index of the timer. |
value | number | The value to set, in milliseconds. |
Returns
void
start()
start(
index
):void
Defined in: src/sdk/instruments/FlightTimer.ts:214
Starts a timer.
Parameters
Parameter | Type | Description |
---|---|---|
index | number | The index of the timer. |
Returns
void
stop()
stop(
index
):void
Defined in: src/sdk/instruments/FlightTimer.ts:222
Stops a timer.
Parameters
Parameter | Type | Description |
---|---|---|
index | number | The index of the timer. |
Returns
void