From b6c8cc2f1bf6c548d65f669790aa500cd8760676 Mon Sep 17 00:00:00 2001 From: adligeerik Date: Sat, 24 Nov 2018 12:59:56 +0100 Subject: [PATCH] Example --- movearm/move.py | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/movearm/move.py b/movearm/move.py index 730eace..6d272d5 100644 --- a/movearm/move.py +++ b/movearm/move.py @@ -2,6 +2,28 @@ import time import threading import DobotDllType as dType + + +''' +Six actuators: + linear rail + base rotation + rear arm + forarm + gripperrotation + gripper + +First five takes argument 1 or -1 (direction) +Example: +#initialisation +c = Candybot() +c.linear(1) # move linear in positive direction +c.gripp() # gripp candy +c.letgo() # let go of candy +c.stopcmp() # stoop compressor + +c.panic() # stops everything +''' class Candybot: def __init__(self): CON_STR = {