Create/wiki/Lua-Rotation-Speed-Controller.md
2023-04-13 00:55:20 +02:00

768 B

Method Description
setTargetSpeed(speed) Sets the target rotation speed
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.