|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools |
Rating:
|
Display Modes |
|
#1
|
|||
|
|||
|
Math.atan2 ?
Hello. This year my team is planning to use Mecanum wheels, and we are programming in Java. Since we plan to use RobotDrive.holonomicDrive, we need to convert joystick (Xbox controller, and some of the axes are inverted so WPILibJ's Joystick.getMagnitude, etc. are out of the question) and our algorithm for this involves Math.atan2. However, the JRE on the cRIO doesn't seem to have such a feature. Is there any way to forgo using Math.atan2 or is there some other replacement for converting Cartesian coordinates to polar coordinates?
Thank you, Ilya Ostrovskiy, #334. |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Tetra Math | ZZII 527 | General Forum | 34 | 22-01-2005 14:13 |
| A math haiku | mtrawls | Chit-Chat | 0 | 11-03-2004 20:22 |
| math.h library | mightywombat | Programming | 24 | 17-01-2004 13:10 |
| Math | Hermione692 | Chit-Chat | 15 | 21-02-2003 10:47 |
| Math Help!!! | Leon Machado IV | Chit-Chat | 7 | 16-11-2001 19:38 |