i am trying to controll servo attached to arduino with logitech joystich, but with no success. I attach arduino and joystick service in myrobotlab. In joystick service my jojytick is working perfect, also in servo service i can rotate servo with mouse (moving potentiometer left-right).

I copy phyton code from here http://myrobotlab.org/content/fine-servo-control-joystick-0

When i try to execute the code i ger phyton error code something about servoPing

I would be glad if someone could help me, because i dont have a clue about phyton :)

-----Traceback (most recent call last):  File string, line 28, in moduleNameError: name servoPing is not defined at org.python.core.Py.NameError(Py.java:246) at org.python.core.PyFrame.getname(PyFrame.java:257) at org.python.pycode._pyx70.f$0(string:57) at org.python.pycode._pyx70.call_function(string) at org.python.core.PyTableCode.call(PyTableCode.java:165) at org.python.core.PyCode.call(PyCode.java:18) at org.python.core.Py.runCode(Py.java:1261) at org.python.core.Py.exec(Py.java:1305) at org.python.util.PythonInterpreter.exec(PythonInterpreter.java:206) at org.myrobotlab.service.Python$PIThread.run(Python.java:149)------


8 years 2 months ago

Hi Robko... I fixed the script... Try again... It was a typo error... (servoPing vs servoPin)

Let me know