Class: FlightTimerController<ID>
A controller for a set of flight timers.
Type parameters
Name | Type |
---|---|
ID | extends string |
Constructors
constructor
• new FlightTimerController<ID
>(bus
, id
): FlightTimerController
<ID
>
Creates a new instance of FlightTimerController.
Type parameters
Name | Type |
---|---|
ID | extends string |
Parameters
Name | Type | Description |
---|---|---|
bus | EventBus | The event bus. |
id | ID | The ID of the timers controlled by this controller. |
Returns
Defined in
src/sdk/instruments/FlightTimer.ts:171
Properties
id
• Readonly
id: ID
The ID of the timers controlled by this controller.
Defined in
src/sdk/instruments/FlightTimer.ts:171
Methods
reset
▸ reset(index
): void
Resets a timer to its initial value.
Parameters
Name | Type | Description |
---|---|---|
index | number | The index of the timer. |
Returns
void
Defined in
src/sdk/instruments/FlightTimer.ts:230
setInitialValue
▸ setInitialValue(index
, initialValue
): void
Sets the initial value for a timer.
Parameters
Name | Type | Description |
---|---|---|
index | number | The index of the timer. |
initialValue | number | The initial value to set, in milliseconds. |
Returns
void
Defined in
src/sdk/instruments/FlightTimer.ts:197
setMode
▸ setMode(index
, mode
): void
Sets the active counting mode for a timer.
Parameters
Name | Type | Description |
---|---|---|
index | number | The index of the timer. |
mode | FlightTimerMode | The mode to set. |
Returns
void
Defined in
src/sdk/instruments/FlightTimer.ts:188
setValue
▸ setValue(index
, value
): void
Sets the current value for a timer.
Parameters
Name | Type | Description |
---|---|---|
index | number | The index of the timer. |
value | number | The value to set, in milliseconds. |
Returns
void
Defined in
src/sdk/instruments/FlightTimer.ts:206
start
▸ start(index
): void
Starts a timer.
Parameters
Name | Type | Description |
---|---|---|
index | number | The index of the timer. |
Returns
void
Defined in
src/sdk/instruments/FlightTimer.ts:214
stop
▸ stop(index
): void
Stops a timer.
Parameters
Name | Type | Description |
---|---|---|
index | number | The index of the timer. |
Returns
void
Defined in
src/sdk/instruments/FlightTimer.ts:222