12 lines
272 B
Python
12 lines
272 B
Python
from changingtek_p_rtu_Servo import MotorController
|
|
|
|
|
|
PORT = "COM3"
|
|
SLAVE_ID = 1
|
|
|
|
|
|
if __name__ == "__main__":
|
|
sdk = MotorController(PORT, SLAVE_ID, baudrate=115200, timeout=1.0)
|
|
print("Reading gripper position...")
|
|
print("position:", sdk.read_real_position())
|