Replies: 2 comments 2 replies
-
I'm not able to reproduce this experiment. The motor is always going to close to 500 degrees for me. I tried with both stable and beta and with medium and large motors. |
Beta Was this translation helpful? Give feedback.
-
It is. It will try to get there normally, but "stop trying" if it takes too long but it is within the tolerances. This is to ensure it won't block your program from proceeding if something is blocking the motor. In your experiments, it looks like your rotation amount is 500 and your tolerance is 200. In both of your experiments it reached the goal within the tolerance, right? |
Beta Was this translation helpful? Give feedback.
-
I thought the position parameter was the margin of error for determining if the motor had reached its target.
So I wrote and tested the following code:
I held the motor by hand and rotated it at the lowest speed, and it stopped at around 300 degrees. (degs 500 - tolerances position 200)
However, if you change the speed, result is completely different.
For example, if test the same way with speed = 500, it will stop at around 430 degrees.
I think I misunderstood the position parameter of target_tolerances().
Can someone explain it to me?
It would be better if there is an experimental example.
thank you.
Beta Was this translation helpful? Give feedback.
All reactions