hw_motor()

Returns the current motor position.

Returns a tuple with 9 elements.

Elements represent: x, y, z, a, b, c, u, v, w.

Syntax

planetcnc.hw_motor()

Parameters

Parameter Type Description Comment
None

Return Value

Examples

#! /usr/bin/env python
 
import planetcnc
 
position = planetcnc.hw_motor()
print("Motor position:", position)

See also