mirror of
https://github.com/Creators-of-Create/Create.git
synced 2025-01-13 07:47:21 +01:00
18 lines
768 B
Markdown
18 lines
768 B
Markdown
| Method | Description |
|
|
|-------------------------------------------------|----------------------------------------|
|
|
| [`setTargetSpeed(speed)`](#setTargetSpeedspeed) | Sets the target rotation speed |
|
|
| [`getTargetSpeed()`](#getTargetSpeed) | Gets the current target rotation speed |
|
|
|
|
---
|
|
### `setTargetSpeed(speed)`
|
|
Sets the rotation speed controller's target speed.
|
|
|
|
**Parameters**
|
|
- _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.
|
|
|
|
---
|
|
### `getTargetSpeed()`
|
|
Gets the rotation speed controller's current target speed.
|
|
|
|
**Returns**
|
|
- `number` The current target rotation speed in RPM.
|