View Single Post
  #4   Spotlight this post!  
Unread 11-10-2011, 10:07 AM
kinganu123 kinganu123 is offline
Registered User
FRC #1747
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Piscataway, NJ
Posts: 243
kinganu123 is on a distinguished road
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());
Of course you'll need to do some adjusting for the servos and a the twist, but I think that's all that needs to be done.
__________________
Reply With Quote