View unanswered posts | View active topics It is currently Fri Nov 21, 2014 6:25 am






Reply to topic  [ 3 posts ] 
configure wheel radius for pointTurn() 
Author Message
Rookie

Joined: Fri Aug 07, 2009 1:26 am
Posts: 11
Post configure wheel radius for pointTurn()
Hi,

How/where do you set robot wheel radius to enable pointTurn() and other such commands to work with standard angles/left/right? At the moment 90 degrees is a 360 (roughly). :roll:

Thanks!

Cheers


Sat Sep 21, 2013 7:03 pm
Profile
Site Admin
Site Admin
User avatar

Joined: Tue Oct 09, 2012 10:34 am
Posts: 192
Post Re: configure wheel radius for pointTurn()
Hi tstex,
Can you paste your code into a post so that we can see it? (use the [code][/code] tags to format it correctly) This will help us help you.

The best advice I can give right now is that there's nothing inherent in the pointTurn function to measure rotation (per the documentation). Usually you would couple this function with one of the wait functions or one of the until functions. If you're using it with the untilRotations function, a common misconception is that this is rotations of the robot, but it's actually counting rotations of the wheels. The number of wheel rotations required to turn the robot 90 degrees will depend on both the radius of the wheels and how far apart the wheels are.

Best,
--Ryan

_________________
Ryan Cahoon
CMU Robotics Academy
RVW Software Developer

Robot Potato Head; Virtual NXT


Wed Sep 25, 2013 2:10 pm
Profile
Rookie

Joined: Fri Aug 07, 2009 1:26 am
Posts: 11
Post Re: configure wheel radius for pointTurn()
Yep. Thanks. That occurred to me after posting here. I'm kind of spoilt by emulators where "turn right" means exactly 90.0000 degrees. The real world is shaping up to be more interesting....

Thanks again.


Wed Sep 25, 2013 11:04 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 3 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  



Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.