You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There might (is a) be some weird hacky way to do this involving multiple threads/processes. However, there is no "nice" way to do this. What I ended up doing (I needed to stop after a certain number of encoder ticks) was copying the code from Motor.py into my own function, changing the condition that ends the loop, and using that. Not exactly nice, but it works and is cleaner than using multithreading for this.
If the question is in the wrong place, delete this question.
Is there a way to stop it when I use the follow_line method of the Move Tank class with the follow_for_forever option?
For example, exit follow_line when the touch sensor is pressed.
The text was updated successfully, but these errors were encountered: