OCCRA
Go to Post Being a part of FIRST is inspirational regardless of what else happens. - Jon Stratis [more]
Home
Go Back   Chief Delphi > Technical > Technical Discussion
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 12-06-2018, 10:26 PM
sthump sthump is offline
Registered User
AKA: Elmer Lee
FRC #5205 (Full Metal Jackets)
Team Role: Mentor
 
Join Date: Feb 2017
Rookie Year: 2016
Location: Michigan
Posts: 64
sthump is a name known to allsthump is a name known to allsthump is a name known to allsthump is a name known to allsthump is a name known to allsthump is a name known to all
Swerve Control Algorithm

Do most teams simply use pure PID to control their swerve drives? Or is there something more? Do teams use velocity and acceleration following? If so, how do you generate the profiles on the fly as the driver is continuously changing the heading?

If anyone can provide any technical pointers I would really appreciate it.

Thanks

Elmer
Reply With Quote
  #2   Spotlight this post!  
Unread 12-07-2018, 02:25 AM
PatrickW PatrickW is offline
Engineering Mentor
AKA: Patrick Woolfenden
FRC #2910 (Jack in the Bot)
Team Role: Engineer
 
Join Date: Jun 2017
Rookie Year: 2009
Location: Mill Creek WA
Posts: 102
PatrickW has a reputation beyond reputePatrickW has a reputation beyond reputePatrickW has a reputation beyond reputePatrickW has a reputation beyond reputePatrickW has a reputation beyond reputePatrickW has a reputation beyond reputePatrickW has a reputation beyond reputePatrickW has a reputation beyond reputePatrickW has a reputation beyond reputePatrickW has a reputation beyond reputePatrickW has a reputation beyond repute
Re: Swerve Control Algorithm

For teleop driving, the target angle and drive power each wheel gets are usually determined with some vector math based on the joystick inputs. One joystick for translation and one for rotation. PID is used to steer the wheels to their target angle. So no motion profiling on the fly or velocity or acceleration targeting. I think this is how most teams are doing it still.

When coding our swerve we found Ether's swerve kinematics papers really helpful. This one in particular gets strait to the point including field oriented calculations.
https://www.chiefdelphi.com/media/papers/download/3028
__________________

COTS Swerve Modules: SwerveDriveSpecialties.com
Reply With Quote
  #3   Spotlight this post!  
Unread 12-07-2018, 11:33 AM
sthump sthump is offline
Registered User
AKA: Elmer Lee
FRC #5205 (Full Metal Jackets)
Team Role: Mentor
 
Join Date: Feb 2017
Rookie Year: 2016
Location: Michigan
Posts: 64
sthump is a name known to allsthump is a name known to allsthump is a name known to allsthump is a name known to allsthump is a name known to allsthump is a name known to all
Re: Swerve Control Algorithm

We have the inverse kinematics down. Ether's publishings were immensely informative and helpful. Thanks Ether.

We are having a lot of variable friction and thus PID tuning is proving to be really challenging.

I've concluded that velocity and acceleration following is the only way to get it done if at all.

We are working on a differential swerve drive design -

https://www.chiefdelphi.com/forums/s...32#post1781432

It feels like we have too much speed and not enough speed control resolution to be able to respond to the friction variations.
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 06:33 AM.

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


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