Send/Receive arbitrary commands to the resource.
The command to execute.
Return the position of the motor relative to its zero position. Raise an error if position reporting is not supported.
Optional
extra: StructTypeReturn the motor's properties.
Optional
extra: StructTypeTurn the motor at a specified speed for either a specified number of revolutions or indefinitely. Raise an error if position reporting is not supported.
Speed in revolutions per minute.
Number of revolutions relative to the motor's starting position. If this value is 0, this will run the motor at the given rpm indefinitely. If this value is nonzero, this will block until the number of revolutions has been completed or another operation comes in.
Optional
extra: StructTypeMove the motor to a specific position relative to its home position at a specified speed. Raise an error if position reporting is not supported.
Speed in revolutions per minute.
Number of revolutions relative to the motor's home position.
Optional
extra: StructTypeReturn true if the motor is on.
Optional
extra: StructTypeSet the current position of the motor as the new zero position, offset by a given position. Raise an error if position reporting is not supported.
Position from which to offset the current position.
Optional
extra: StructTypeSet the percentage of the motor's total power that should be employed.
A value between -1 and 1 where negative values indicate a backwards direction and positive values a forward direction.
Optional
extra: StructTypeTurn the motor off.
Optional
extra: StructTypeGenerated using TypeDoc
Represents a physical motor.