Go to Post I was outvoted by conservative teenagers (curse them...). - Rick TYler [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
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 18-02-2012, 23:57
jhellr13 jhellr13 is offline
Registered User
FRC #4272
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2010
Location: US
Posts: 187
jhellr13 is an unknown quantity at this point
Speed Correction

From my observations today, it seems like one side of the robot is slightly faster than the other. How can I get the faster side to move at the same speed as the slower side?
We have an encoder on each side so I figure I can do something with that? I was thinking something like a pid system, but I don't know how to do it. If anyone could hook me up with some code examples on how I can correct this speed error, it would be greatly appreciated.

Thanks
Reply With Quote
  #2   Spotlight this post!  
Unread 19-02-2012, 13:30
DonRotolo's Avatar
DonRotolo DonRotolo is offline
Back to humble
FRC #0832
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Atlanta GA
Posts: 7,011
DonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond repute
Re: Speed Correction

You could use some kind of PID system where the faster side is slowed down to follow the slower speed. For that you'd use PID to match the fast side to the slow side encoder rate. May be overkill though.

Generally, if they're off by enough to notice, the mechanical team needs to find out why one side has much more friction than the other. You should not fix this in software if you can avoid it. Build it right.

An easy and effective method is to just multiply the fast side's control value by some factor, say 0.89, and feed that to the speed controllers. Play with the number until it works well at top speed.

But again, remind the mechanical team that you are slowing down the better-performing side to compensate for their inadequate assembly technique. That means the whole robot gets slower. Build it tight instead.
__________________

I am N2IRZ - What's your callsign?
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 22:10.

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