rotate-slow

xod-dev/servo/rotate-slow

Rotates a servo shaft to the given angular position with the rate specified.
rotate-slow
@/rotate-slow
Rotates a servo shaft to the given angular position with the rate specified.
DEV@/servo-device
The servo device
MUXxod/mutex/mutex
The mutex which will be tried to be locked before the rotation. If the lock acquisition fails, the rotation will not start. The mutex is released when rotation completes. Leave unconected if the servo is not controlled by multiple nodes.
VALnumber
The target shaft rotation position in the [0; 1] range. The real angle/pulse values corresponding to the 0 and 1 boundaries are defined by the servo device node.
RATEnumber
Defines the desired rate of rotation: amount of `VAL` change per second. To achieve correctness should be lower than the rated servo shaft rotation speed.
DOpulse
Set the new target rotation value for the given device.
rotate-slow
MUX'
DEV'
DONE
DEV
MUX
VAL
RATE
DO
DONEpulse
Emits a pulse when the rotation is complete. Will pulse at the right moment only if `RATE` is lower than the real servo speed.
DEV'@/servo-device
The servo device
MUX'xod/mutex/mutex
The mutex, same as `MUX`
To use the node in your project you should have the xod-dev/servo library installed. Use the “File → Add Library” menu item in XOD IDE if you don’t have it yet. See Using libraries for more info.