Metadata-Version: 2.1
Name: deltax
Version: 0.0.1.6
Summary: Python library to control an DeltaX robot
Home-page: https://github.com/VanThanBK/python-deltax
Author: Than Nguyen
Author-email: jonyvanthan@gmail.com
License: UNKNOWN
Project-URL: Bug Tracker, https://github.com/VanThanBK/python-deltax
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENCE.txt

# Python library to control a robot from 'Delta X Robot'

## exemple

### DeltaX S
```Python
robot = DeltaX(port = "COM4", model=DeltaX.DeltaX_S)
if robot.connect() == True:
    print("connected")
robot.syncPosition()
robot.wait_for_robot_response()
print(robot.position())
robot.syncInput(I=[0, 1], A=[0])
robot.wait_for_robot_response()
print(robot.getDigitalInput(I=[0, 1]))
print(robot.getAnalogInput(A=[0]))
robot.setDO(D=[0,1], value=DeltaX.ON)
robot.wait_for_robot_response()
while 1:
    robot.moveL([20,0,-800])
    robot.moveL([-20,0,-800])
    robot.moveC(offset=[-30,-30], point=[-20, 0])
    robot.wait_for_robot_response()
```

### DeltaX V2
```Python
robot = DeltaX(port = "COM4", model=DeltaX.DeltaX_V2)
if robot.connect() == True:
    print("connected")
robot.syncPosition()
robot.wait_for_robot_response()
print(robot.position())
robot.setEndEffector(name=DeltaX.Vacuum)
robot.wait_for_robot_response()
robot.controlEndEffector(value=DeltaX.ON)
robot.wait_for_robot_response()
while 1:
    robot.moveL([20,0,-270])
    robot.moveL([-20,0,-270])
    robot.moveC(offset=[-30,-30], point=[-20, 0])
    robot.wait_for_robot_response()
```

## list func
    - connect
    - disconnect
    - is_connected
    - sendGcode
    - wait_for_robot_response
    - robot_response
    - isResponded
    - lastGcodeState
    - syncMotionParameters
    - motionParameters
    - sleep
    - position
    - angle
    - homing
    - syncPosition
    - syncAngle
    - syncInput
    - getDigitalInput
    - getAnalogInput
    - setDO
    - controlEndEffector
    - setEndEffector
    - disableSteppers
    - setAcceleration
    - setStartingAndEndingSpeeds
    - setXYZOffset
    - moveL
    - moveC

![DeltaX S](https://raw.githubusercontent.com/VanThanBK/python-deltax/master/image.png)


