![]() |
My mecanum method wont strafe
I wrote this after looking at some documentation someone wrote up.
Code:
public void mechanumDrive(double v, double r, double s){ |
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. |
Re: My mecanum method wont strafe
the holoNomic Drive function wont let my robot go forwards
|
Re: My mecanum method wont strafe
Quote:
Here are the comments for the holonomicDrive method: Code:
/** |
Re: My mecanum method wont strafe
We have the wheels as such (birds-eye view):
Code:
\/Code:
/\ |
Re: My mecanum method wont strafe
Quote:
|
Re: My mecanum method wont strafe
Quote:
|
Re: My mecanum method wont strafe
then we spent an hour switching the wheels for nothing?
|
Re: My mecanum method wont strafe
Quote:
Searching is your friend... you don't have to wait for a reply and others don't have to keep answering the same questions. -Joe |
| All times are GMT -5. The time now is 09:38. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi