spin_axis
Description
Rotates an axis indefinitely at the given velocity.
NOTE: This cannot be used on axes that are not infinitely rotating. Pass vel = 0 to stop a spinning axis.
Signature
spin_axis(self, axis: int, vel: int, accel: Optional[int] = None, wait: bool = True) -> CmdToken
Parameters
axis: int
The axis to rotate, [0, 7].
vel: int
The velocity at which to spin in units of cts/s, [0, 100000].
accel: int, optional
The acceleration at which to reach the target velocity, in units of cts/s², [0, 500000]. If None, the default accel is used.
wait: bool, optional
If True, this command blocks until the target velocity is achieved.
Returns
CmdToken
A CmdToken object that can be used to follow up on the status of the spin or wait for it to finish if wait = False.
Example