Code review comment for lp:~elopio/autopilot/fix1257055-slow_drag

Revision history for this message
Leo Arias (elopio) wrote :

201 + step_x = min(rate * intx, dx)
202 + step_y = min(rate * inty, dy)

I'm using it!

Actually, you are using it, as most of this code comes from X11 move. Here we are making sure that if the distance is smaller than the rate (which happens on the last iteration), we will make a move that will get us to the destination point and not farther. I added tests for this condition.

« Back to merge proposal