_port
-
- Posts: 37
- Joined: Wed Jul 31, 2019 7:24 am
_port
During a crash test, we unplug on purpose the encoder to check if the software stop the motor.
After it, and other tests, I don't manage to communicate with the Motordriver anymore with alway the same problem. Lunching roboclaw_readversion.py
Please help me to find out the problem
After it, and other tests, I don't manage to communicate with the Motordriver anymore with alway the same problem. Lunching roboclaw_readversion.py
Code: Select all
Traceback (most recent call last):
File "/home/pi/Documents/MCP236_py3/Roboclaw_testProgram/roboclaw_readversion.py", line 13, in <module>
version = rc.ReadVersion(0x80)
File "/home/pi/Documents/MCP236_py3/Roboclaw_testProgram/roboclaw_3.py", line 718, in ReadVersion
self._port.flushInput()
AttributeError: 'Roboclaw' object has no attribute '_port'
- Basicmicro Support
- Posts: 1594
- Joined: Thu Feb 26, 2015 9:45 pm
Re: _port
_port is the internal variable that holds the open port pointer. If the Open fails you will get this error when you try to do anything else with the serial port since it wasn't opened.