2023-04-13 00:55:20 +02:00
|
|
|
| Method | Description |
|
|
|
|
|-------------------------------------------------|----------------------------------------|
|
|
|
|
| [`setTargetSpeed(speed)`](#setTargetSpeedspeed) | Sets the target rotation speed |
|
|
|
|
| [`getTargetSpeed()`](#getTargetSpeed) | Gets the current target rotation speed |
|
2023-03-12 01:12:58 +01:00
|
|
|
|
|
|
|
---
|
|
|
|
### `setTargetSpeed(speed)`
|
|
|
|
Sets the rotation speed controller's target speed.
|
|
|
|
|
|
|
|
**Parameters**
|
2023-04-13 00:55:20 +02:00
|
|
|
- _speed:_ `number` The target speed in RPM. Must be an integer within the range of [-256..256]. Values outside of this range will be clamped.
|
2023-03-12 01:12:58 +01:00
|
|
|
|
|
|
|
---
|
|
|
|
### `getTargetSpeed()`
|
|
|
|
Gets the rotation speed controller's current target speed.
|
|
|
|
|
|
|
|
**Returns**
|
2023-04-13 00:55:20 +02:00
|
|
|
- `number` The current target rotation speed in RPM.
|