|
Re: How to code limit switch to stop movement
I have an idea for a small architectural change to make it work. Instead of setting the articulator's motor value directly, have your move() and stop() methods set a global variable. Then have a small piece of "main loop" code that continually reads the global and the limit switches then sets the motor appropriately.
|