# wait for x and y axis to home while(not y.atHome()) and ON_PI: time.sleep(0.5) print "X and Y Axes Homed" done = False while(not done): txt = raw_input("Press Enter to continue...") if(txt == "Is Y Moving"): print y.isMoving() if(txt == "Is X Moving"): print x.isMoving() if(txt == "r"): y.move(0) if(txt == "l"): y.move(1) if(txt == "s"): y.stop() if(txt == "q"): done = True if(txt == "drop"): dropper.drop() if(txt == "drop -f"): dropper.drop(True) if(txt == "lims"): time.sleep(1) print "LS 0:", LS[0].getState() print "LS 1:", LS[1].getState() print "LS 2:", LS[2].getState()