Python Get a value when limit switch is reached
Posted: Tue Aug 27, 2019 5:16 am
I have a problem with detecting if my limit switch is reached. I'm using the python library roboclaw.py.
The error led goes red when my limit switches are reached but when i use the ReadError command I don't get a useful value. The value is all the time (0,0) whether the claw moves or reached its final position.
Is there an other way to check if the limit switch is reached? I read the documentation and thought it should work with reading the error state.
The error led goes red when my limit switches are reached but when i use the ReadError command I don't get a useful value. The value is all the time (0,0) whether the claw moves or reached its final position.
Is there an other way to check if the limit switch is reached? I read the documentation and thought it should work with reading the error state.