Quote:
Originally Posted by yash101
Also, say that the path is:
Code:
00000001000000000
00000000200000000
00000000030000000
00000000004000000
00000000000500000
how can i make the robot drive more straight and not go forward, left, forward, right, etc.?
Thanks for all your time, mentors and other programmers!
|
The path that you've plotted seems to imply that the robot can go in diagonals. Otherwise it would look like:
Code:
00000001200000000
00000000340000000
00000000056000000
00000000007800000
00000000000900000
And adding diagonals is probably the simplest we to make it do more than literally just left/right/up/down. This is of course not the only way, and doesn't give you nice curves.