View Single Post
  #9   Spotlight this post!  
Unread 09-10-2010, 14:59
buildmaster5000 buildmaster5000 is offline
Trying to program the swerve drive
AKA: Alex
FRC #2421 (Rolling Thunder Robotics)
Team Role: Alumni
 
Join Date: May 2009
Rookie Year: 2009
Location: Northern Virginia
Posts: 207
buildmaster5000 has much to be proud ofbuildmaster5000 has much to be proud ofbuildmaster5000 has much to be proud ofbuildmaster5000 has much to be proud ofbuildmaster5000 has much to be proud ofbuildmaster5000 has much to be proud ofbuildmaster5000 has much to be proud ofbuildmaster5000 has much to be proud of
Re: No atan() method in FRC version of java

Quote:
Originally Posted by biojae View Post
What are you using the atan() function for?
If you are going to have negative numbers for the input, it may be better to use atan2(x,y).
I am using it to calcluate the desired angle of a wheel in a swerve configuration. I calculate the x and y components of the vector representing each wheel. Getting the magnitude (speed) is easy, but without atan, the angle was going to be a challenge.
__________________
-Alex



2010 Washington DC Regional: Engineering Excellence Award
Reply With Quote