Setting diameter wheel and trackWidth ?

This is where you talk about the NXJ software itself, installation issues, and programming talk.

Moderators: 99jonathan, roger, imaqine

Setting diameter wheel and trackWidth ?

Postby linh232324 » Wed May 09, 2012 9:23 am

Hi , everyone !

I don't know how to get diameter wheel and trackWidth value in Diferential Pilot. Everytime I set for my Mindstorm , it going to wrong .
In the beginning I set 2.0f - 4.0f then I turn 90 degrees it turn 90 degrees . At the second time I set 2.0f - 4.0f I turn 90 degrees but my Lego turn more than 90 degrees , it was going to ~ 100 degrees . I don't know how to fix that problem .

Beside that , I wanna get value how far my robot go if i use Difrential Wheel .Does Anyone know ? Pls help me
linh232324
New User
 
Posts: 2
Joined: Wed May 09, 2012 8:55 am

Re: Setting diameter wheel and trackWidth ?

Postby kirkpthompson » Wed May 09, 2012 2:08 pm

Hi.
The post
http://lejos.sourceforge.net/forum/viewtopic.php?f=7&t=3186&p=16263&hilit=Differential#p15811 has good information about wheel diameter and trackwidth settings (and slippage which may be one of your problems). If you search the forum, there is a lot of good information to be found.

Beside that , I wanna get value how far my robot go if i use Difrential Wheel .Does Anyone know ?

I would say use a MoveListener (http://lejos.sourceforge.net/nxt/nxj/api/lejos/robotics/navigation/MoveListener.html) to be notified of the Moves (http://lejos.sourceforge.net/nxt/nxj/api/lejos/robotics/navigation/Move.html) that the DifferentialPilot does. You register the listener with the DifferentialPilot via the addMoveListener() method. The Move object will let you determine travel distance via the getDistanceTraveled() method.

Best,
-K
Leg Godt!
User avatar
kirkpthompson
leJOS Team Member
 
Posts: 304
Joined: Wed Dec 05, 2007 1:27 am
Location: New Mexico, USA

Re: Setting diameter wheel and trackWidth ?

Postby linh232324 » Wed May 09, 2012 5:25 pm

Thank for your support :D

I searched that . My problem is design of Lego , it's unstable . After several times testing , my value was going to be wrong :(
linh232324
New User
 
Posts: 2
Joined: Wed May 09, 2012 8:55 am


Return to NXJ Software

Who is online

Users browsing this forum: Yahoo [Bot] and 0 guests

more stuff