|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools |
Rating:
|
Display Modes |
|
#1
|
|||
|
|||
|
Help with Swerve Drive Programming??
Our team wants to try out swerve drive before season starts, that way we have another drive system to use for the 2012 game if needed. Any help with the coding?
|
|
#2
|
|||
|
|||
|
Re: Help with Swerve Drive Programming??
Two resources: Ether's paper on omnidirectional drive trains here and to use polar coordinates while keeping things a simple as possible.
|
|
#3
|
|||
|
|||
|
Re: Help with Swerve Drive Programming??
Quote:
If it would help i could post my code for swerve drive... Problems you may face are: It is field centric so you need a gyro (you may be able to rewrite i can help you) we used window motors (dont know what you plan on doing) I will gladly help you. Im Matt from team 228 Gus robotics i have been programming for 2 1/2 years now and am getting pretty good at it. Here is our swerve bot from 2010: http://team228.org/media/pictures/view/6721 http://team228.org/media/pictures/view/6202 the thing that makes this robot special is the field centric controls no matter the orientation of the robot forwards is always forwards. you may want to try it, But do let me know if you would like my help |
|
#4
|
|||
|
|||
|
Re: Help with Swerve Drive Programming??
I apologize if I'm looking at this wrong way, but it seems rather simple from my understanding.
Code:
Servos[1-4].set(joystick.getDirectionDegrees()); Motors[1-4].set(joystick.getMagnitude+/-joystick.getTwist()); |
|
#5
|
||||
|
||||
|
Re: Help with Swerve Drive Programming??
Quote:
With the motors, it looks like you are trying to do skid-steer. So, it looks like Crab Drive with skid steering. Quote:
If you could make each wheel instantaneously go to its theoretically correct speed and steering angle, swerve would be simple. But there are dynamics involved. It takes time to steer the wheel and change its speed. During this transition time, the vehicle may do unexpected and/or undesired things. So the real problem in implementing a competent swerve drive is how to control each wheel to obtain predictable operation and acceptable response to driver commands. There are threads (and technical papers) discussing this problem. Last edited by Ether : 10-11-2011 at 11:24. |
|
#6
|
|||
|
|||
|
Re: Help with Swerve Drive Programming??
Quote:
Thanks for info! Definitely gonna look into it now |
|
#7
|
|||
|
|||
|
Re: Help with Swerve Drive Programming??
Quote:
Thank you! |
|
#8
|
|||
|
|||
|
Re: Help with Swerve Drive Programming??
Quote:
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|