Go to Post Cut out the ridiculous vitriol. It's tiresome. Be productive. - Lil' Lavery [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 11-02-2015, 13:35
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 11-02-2015, 18:06
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 11-02-2015, 19:10
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: 523
ozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond repute
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 11-02-2015, 19:54
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: 258
Jefferson has a reputation beyond reputeJefferson has a reputation beyond reputeJefferson has a reputation beyond reputeJefferson has a reputation beyond reputeJefferson has a reputation beyond reputeJefferson has a reputation beyond reputeJefferson has a reputation beyond reputeJefferson has a reputation beyond reputeJefferson has a reputation beyond reputeJefferson has a reputation beyond reputeJefferson has a reputation beyond repute
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 11-02-2015, 21:05
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 14:03.

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