POST No. 2407536
[measure moving distance xl430]
2019-08-13 17:43:19 ashokorea


I am developing a basic application to test run xl430 in this way:


-move 1m in forward direction ;

-wait for 1s;

-move 1m in backward direction;

-wait for 1s;

this should be running until the total moving distance reach 30 meter. I am using the delay() to run in for particular time interval, calculated by the speed(rpm). but i am not able to measure the total distance traveled. please suggest some better way!

Thank You!

2019-08-13 17:43:19
2019-08-14 10:03:18 Will Son


If I were you, I'd use Present Position(132) to precisely calculate the distance traveled.

This will be easier over the RPM calculation.

Especially, when you are using Velocity Control mode, you'll be able to use 2^32(4byte) encoder range, so it'll be quite enough to run the platform for certain time.

Thank you.

2019-08-14 16:38:28 ashokorea
Thank you; It would be certainly helpful!
2019-08-14 16:38:28
2019-08-14 10:03:18
웹에디터 시작 웹 에디터 끝