init
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
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())
|
||||
Reference in New Issue
Block a user