Go to Post Would FIRST be as amazing if not for CD? I mean it would still be this amazing place for students and mentors to be but the explosion of innovation and gathering of people together across communities has to have been greatly effected by CD. - dodar [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
CD-Media   CD-Spy  
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 02-11-2015, 01:35 PM
joliet cyborgs joliet cyborgs is offline
Registered User
FRC #4241
 
Join Date: Jan 2013
Location: Joliet
Posts: 4
joliet cyborgs is an unknown quantity at this point
Swerve Drive Help

Our team is trying to implement swerve drive for the first time and we are having problems with oscillation on our steer motors and the steer motors not getting to the setpoints properly. The setpoints seem to be calculating just fine however. We are using MA3 absolute analog encoders and CANTalon motor controllers for all 8 of our motors. Our encoders are coupled directly to the shafts of the steer motors.

Here is our code for reference. It is a stripped down and simplified version of team 16 BombSquad's code from last year:
https://github.com/JTHSConnelly/Cyborgs2015
Reply With Quote
  #2   Spotlight this post!  
Unread 02-11-2015, 06:06 PM
joliet cyborgs joliet cyborgs is offline
Registered User
FRC #4241
 
Join Date: Jan 2013
Location: Joliet
Posts: 4
joliet cyborgs is an unknown quantity at this point
Re: Swerve Drive Help

Nevermind! We fixed it. It was all the build team's fault.
Reply With Quote
  #3   Spotlight this post!  
Unread 02-11-2015, 07:10 PM
ozrien's Avatar
ozrien ozrien is online now
Omar Zrien
AKA: Omar
no team
Team Role: Mentor
 
Join Date: Sep 2006
Rookie Year: 2003
Location: Sterling Heights, MI
Posts: 516
ozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant future
Re: Swerve Drive Help

Can you explain what the root cause was, and how you figured it out? Might help another team.

Also I was curious...
Reply With Quote
  #4   Spotlight this post!  
Unread 02-11-2015, 07:54 PM
Jefferson Jefferson is offline
Registered User
AKA: Jeff Clements
FRC #0016 (Bomb Squad)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Mountain Home, AR
Posts: 257
Jefferson has a brilliant futureJefferson has a brilliant futureJefferson has a brilliant futureJefferson has a brilliant futureJefferson has a brilliant futureJefferson has a brilliant futureJefferson has a brilliant futureJefferson has a brilliant futureJefferson has a brilliant futureJefferson has a brilliant futureJefferson has a brilliant future
Re: Swerve Drive Help

I'll let them explain it, but, given their code base, I was happy to hear it wasn't code related.
Reply With Quote
  #5   Spotlight this post!  
Unread 02-11-2015, 09:05 PM
joliet cyborgs joliet cyborgs is offline
Registered User
FRC #4241
 
Join Date: Jan 2013
Location: Joliet
Posts: 4
joliet cyborgs is an unknown quantity at this point
Re: Swerve Drive Help

Thanks again Jefferson! So helpful! The leads to the steer motors were reversed. When we switched the leads or instead just put in a negative P value in our PID for the code, it worked. Not sure why it caused the motors to behave in the way they did. Someone more technically versed than I can probably explain it better.
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 09:15 AM.

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


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi