View Single Post
  #18   Spotlight this post!  
Unread 05-02-2010, 09:39
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: Holonomic drive angle?

Quote:
Originally Posted by Hadi379 View Post
We are currently running into problems with our directional angle as well. I've attached a photo of the angles we are getting in regards to the joystick position.

I feel like the problem is somewhere after we convert from radians to degrees....
What are you using to compute the angle? It looks like you have a sign error in the 270-360 quadrant. That might be an indication that you're using the ATAN function instead of ATAN2.

The "Re/Im to r/theta" vi will do all the heavy lifting of converting from Cartesian to polar coordinates.
Reply With Quote