View Single Post
  #6   Spotlight this post!  
Unread 05-03-2004, 13:47
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Distance timing out

Quote:
Originally Posted by bludstayne
I have a problem. Whenever I try to find distance between two points the robot controller times out due to the square root calculations...
Do you actually need to compute the square root, or can you do what you need to with the square of the distance? For instance, if you're comparing the distance to a constant value, you can change the constant to be the square of what it would otherwise be.