OCCRA
Go to Post I wish my biology class was this exciting. - MissInformation [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 05-03-2017, 06:22 PM
Psychicowl's Avatar
Psychicowl Psychicowl is offline
Registered User
FRC #3039
 
Join Date: Jan 2017
Location: Destrehan, Louisiana
Posts: 33
Psychicowl is an unknown quantity at this point
Question Swerve Drive Programming

My team really wants to try out swerve drive and mechanically we are capable of doing it but as a relatively amateur programmer I am not really too sure where to even begin programming swerve drive. I have done plenty of Tank and Mecanum drive trains using WPI's robot drive class but obviously they do not have a version for Swerve. So if anyone has any resources, tips, tricks, and general starting locations for Swerve please share with not only me but also anyone else looking for help. Thanks for any responses and have a Great Day!
Reply With Quote
  #2   Spotlight this post!  
Unread 05-03-2017, 06:31 PM
ahartnet's Avatar
ahartnet ahartnet is offline
Registered User
AKA: Andrew Hartnett
FRC #5414 (Pearadox)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2005
Location: Houston, Texas
Posts: 386
ahartnet has a reputation beyond reputeahartnet has a reputation beyond reputeahartnet has a reputation beyond reputeahartnet has a reputation beyond reputeahartnet has a reputation beyond reputeahartnet has a reputation beyond reputeahartnet has a reputation beyond reputeahartnet has a reputation beyond reputeahartnet has a reputation beyond reputeahartnet has a reputation beyond reputeahartnet has a reputation beyond repute
Re: Swerve Drive Programming

There's lots of good technical papers around on chief to look into it.

But I'm sure if you want, you could start with posting some psuedo code on here and get good feed back. I can get you started with some very basic suggestions. (I have mentored a programming team to develop swerve code in the past, so there are some pitfalls you'd come across if you don't think it through).

Take your joystick (x,y) value
convert to (r, theta)
speed = r
rotate wheels until angle = theta
__________________
Team 5414 Pearadox, Mentor (2015-Present) | Website | Facebook
Team 2936 Gatorzillas, Mentor (2011-2014)
Team 1646 Precision Guessworks, Mentor (2006-2008)
Team 451 The Cat Attack, Student Alumni (2005)
Reply With Quote
  #3   Spotlight this post!  
Unread 05-03-2017, 07:24 PM
EmileH's Avatar
EmileH EmileH is offline
Passion breeds passion.
FRC #1058 (PVC Pirates)
 
Join Date: Dec 2014
Rookie Year: 2011
Location: New Hampshire
Posts: 799
EmileH has a reputation beyond reputeEmileH has a reputation beyond reputeEmileH has a reputation beyond reputeEmileH has a reputation beyond reputeEmileH has a reputation beyond reputeEmileH has a reputation beyond reputeEmileH has a reputation beyond reputeEmileH has a reputation beyond reputeEmileH has a reputation beyond reputeEmileH has a reputation beyond reputeEmileH has a reputation beyond repute
Re: Swerve Drive Programming

This white paper by Ether talks about how to program a swerve drive in detail.

I translated this math into Java code - more info is available in that thread.
__________________
2016-present: FRC 1058
2013-2015: FRC 3467

Member of the New England FRC community? Join the FRC New England Alliance Facebook Group!
Reply With Quote
  #4   Spotlight this post!  
Unread 05-03-2017, 09:52 PM
orangelight's Avatar
orangelight orangelight is offline
Registered User
AKA: Alex
FRC #0548 (Robostangs)
Team Role: Alumni
 
Join Date: Feb 2014
Rookie Year: 2014
Location: Northville
Posts: 193
orangelight has much to be proud oforangelight has much to be proud oforangelight has much to be proud oforangelight has much to be proud oforangelight has much to be proud oforangelight has much to be proud oforangelight has much to be proud oforangelight has much to be proud oforangelight has much to be proud of
Re: Swerve Drive Programming

You can check out the code for my team's off-season swerve
__________________



Reply With Quote
  #5   Spotlight this post!  
Unread 05-03-2017, 10:01 PM
Psychicowl's Avatar
Psychicowl Psychicowl is offline
Registered User
FRC #3039
 
Join Date: Jan 2017
Location: Destrehan, Louisiana
Posts: 33
Psychicowl is an unknown quantity at this point
Re: Swerve Drive Programming

Thanks Everybody for your help these resources are crazy helpful
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 05:59 AM.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi