rsmont / nxt-python

Automatically exported from code.google.com/p/nxt-python
GNU General Public License v3.0
0 stars 0 forks source link

cnc.py does not work (any other way to move multiple motors?) #46

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. run cnc.py on Windows 7 via Bluetooth on NXT latest standard firmware
2.
3.

What is the expected output? What do you see instead?
I expect to see two motors moving at the same time. I see one motor moving and 
an error message as soon as the second motor is supposed to move.

What version of nxt-python are you using? On what operating system?
Win7x64 (but all sw installed as 32bit) Python 2.6Win32  PyBluez_win32_py2_6  
PyScripterWin32

Please provide any additional information below.
*** Remote Interpreter Reinitialized  ***
>>> 
Tick 0
Tick 1
Unhandled exception in thread started by 
Traceback (most recent call last):
  File "<string>", line 532, in write
  File "C:\Program Files (x86)\PyScripter\Lib\rpyc.zip\rpyc\core\protocol.py", line 439, in _async_request
  File "C:\Program Files (x86)\PyScripter\Lib\rpyc.zip\rpyc\core\protocol.py", line 229, in _send_request
  File "C:\Program Files (x86)\PyScripter\Lib\rpyc.zip\rpyc\core\protocol.py", line 244, in _box
  File "C:\Program Files (x86)\PyScripter\Lib\rpyc.zip\rpyc\core\brine.py", line 369, in dumpable
  File "C:\Program Files (x86)\PyScripter\Lib\rpyc.zip\rpyc\core\brine.py", line 369, in <genexpr>
  File "C:\Program Files (x86)\PyScripter\Lib\rpyc.zip\rpyc\core\brine.py", line 369, in dumpable
  File "C:\Program Files (x86)\PyScripter\Lib\rpyc.zip\rpyc\core\brine.py", line 369, in <genexpr>
  File "D:\_DOCUMENTS\_Learning_Python\Nxt20\cnc.py", line 16, in turnmotor
    m.turn(power, degrees)
  File "C:\Python26\Lib\site-packages\nxt\motor.py", line 211, in turn
    raise BlockedException("Blocked!")
nxt.motor.BlockedException: Blocked!
Tick 2
Tick 3
Tick 4
>>> 

Original issue reported on code.google.com by Andrea.G...@gmail.com on 15 Oct 2012 at 2:25

GoogleCodeExporter commented 9 years ago
sorry: my fault. it works well.

Do you have got examples also for the motcont class?

Original comment by Andrea.G...@gmail.com on 15 Oct 2012 at 3:45

GoogleCodeExporter commented 9 years ago
I don't think so; the docstrings are pretty self-explanatory. If you want, I 
could try and come up with something.

Original comment by marcus@wanners.net on 15 Oct 2012 at 8:07