|
Re: My mecanum method wont strafe
There is a macanum drive method built into the RobotDrive class in WPILib. If you create a RobotDrive object with the port numbers for the 4 SpeedControllers, you can call the holonomicDrive method that takes a direction (X and Y value) and a rate of rotation. There are a number of teams that are using that code and it seems to be working for them.
If you would like to write it yourself, feel free to check out the source code for that class. The math is pretty well tested.
__________________
Brad Miller
Robotics Resource Center
Worcester Polytechnic Institute
|