JackOfAllTrade5
17-01-2015, 18:44
We are attempting using mecanum_Polar drive for our robot this year. According to the WPILib class for Java, it is declared as:
*robotDriveName*.mecanumDrive_Polar(double magnitude, double direction, double rotatation)
The the explanation form the class says that...
- "magnitude" is it's speed
- "direction" determines strafing
- "rotation" is the spin.
However, when actually applied to the roboRIO, things go awry. What actually happens is this:
- "magnitude" is actually spin
- "rotation" is actually speed
- "direction" doesn't transmit anything, or the roboRIO reads "0" and doesn't send code to Talon motor controllers.
Has anyone else experienced or fixed this? Or have we just done something terribly wrong?
*robotDriveName*.mecanumDrive_Polar(double magnitude, double direction, double rotatation)
The the explanation form the class says that...
- "magnitude" is it's speed
- "direction" determines strafing
- "rotation" is the spin.
However, when actually applied to the roboRIO, things go awry. What actually happens is this:
- "magnitude" is actually spin
- "rotation" is actually speed
- "direction" doesn't transmit anything, or the roboRIO reads "0" and doesn't send code to Talon motor controllers.
Has anyone else experienced or fixed this? Or have we just done something terribly wrong?