Go to Post If you're in the Chairman's Award just to win the Chairman's Award, you're doing it for all the wrong reasons. The award is there as a goal to strive for, but it shouldn't be the reason why you conduct yourself and reach out to your community and beyond the way you do. - Lil' Lavery [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 23-01-2013, 06:29
matthewgkerr matthewgkerr is offline
Registered User
FRC #4529 (Team Melbourne)
Team Role: Mentor
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Melbourne, Australia
Posts: 26
matthewgkerr is an unknown quantity at this point
PID Control

My rookie team has created their first cut at drive code. Currently, there is a lot of jerk motions and a lot of wheel spin. I'm quite impressed with what they have achieved so far, but i think there is a lot of room to improve. What I have been considering is using a PID controller. I have seen that this year there is a tutorial on the NI site to do just this. I was wondering what other teams were doing to achieve smooth controlled drive motion and if PID is a worth while path to go down? Thanks in advance.
  #2   Spotlight this post!  
Unread 23-01-2013, 07:08
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,751
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: PID Control

A PID is a useful tool, but if you don't know why the jerking and wheel spinning are taking place, you may be applying a SW band-aid rather than solving the problem. Similarly, there are other approaches that are simpler and won't introduce instabilities like an improperly tuned PID can/will.

For example, if the drivers are just too aggressive with the stick, you can either let them practice until they learn not to spin and bounce, or you can lower the acceleration in the code. Both are simpler and more effective than a PID.

See if you can identify the problem more clearly, and ask again.

Greg McKaskle
  #3   Spotlight this post!  
Unread 23-01-2013, 07:30
Chadfrom308's Avatar
Chadfrom308 Chadfrom308 is offline
Slave to the bot
AKA: Chad Krause
FRC #0308 (The Monsters)
Team Role: Driver
 
Join Date: Jan 2013
Rookie Year: 2011
Location: Novi
Posts: 272
Chadfrom308 is a splendid one to beholdChadfrom308 is a splendid one to beholdChadfrom308 is a splendid one to beholdChadfrom308 is a splendid one to beholdChadfrom308 is a splendid one to beholdChadfrom308 is a splendid one to beholdChadfrom308 is a splendid one to behold
Re: PID Control

I don't think PIDs are going to be the best option, I think maybe having encoders and to stop it turning and spinning, and lower the gain on the controller
  #4   Spotlight this post!  
Unread 23-01-2013, 08:37
Sparks333's Avatar
Sparks333 Sparks333 is offline
Robotics Engineer
AKA: Dane B.
FRC #1425 (Wilsonville Robotics)
Team Role: Alumni
 
Join Date: Feb 2004
Rookie Year: 2003
Location: Wilsonville, Oregon
Posts: 184
Sparks333 is a glorious beacon of lightSparks333 is a glorious beacon of lightSparks333 is a glorious beacon of lightSparks333 is a glorious beacon of lightSparks333 is a glorious beacon of lightSparks333 is a glorious beacon of light
Send a message via AIM to Sparks333
Re: PID Control

To echo the current sentiment in the thread...

PID may help you, but there are easier ways to fix this.

First - the jerking. Do you have multi-motor gearboxes on the drivetrain? If so, calibrate your motor controllers - nothing messes with fine control as much as having two motors trying to do different things when geared together.

Next - try a drive curve. Implement a deadzone so the robot doesn't try to move when the speed controllers aren't on enough to move it, and map the joystick inputs so that closer in the robot will try to move less, and ramps up quickly to maximum at the extremes.

Lastly - beware braking. Depending on your gear ratio, setting braking in the speed controller can either make you stop quickly and be hard to push, or can make you stop immediately when input isn't given and cause the robot to move in a jerky fashion when the sticks move through the zero position.

Luck,

Sparks
__________________
ICs do weird things when voltage is run out of spec.

I love to take things apart. The fact that they work better when I put them back together it just a bonus.

http://www.ravenblack.net/random/surreal.html
Closed Thread


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 02:15.

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