Go to Post That is just ridonkulous. - Brandon Holley [more]
Home
Go Back   Chief Delphi > Technical > Control System
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 22-01-2007, 11:35
jdejoannis jdejoannis is offline
Registered User
FRC #1845
 
Join Date: Feb 2006
Location: Atlanta,GA
Posts: 48
jdejoannis will become famous soon enoughjdejoannis will become famous soon enough
Re: Got Gyro?

Quote:
Originally Posted by kaszeta View Post
We're using a gyro this year as well, it was really nice when the students rigged up a PID loop to keep the robot driving perfectly straight.
That sounds interesting. I wouldn't mind learning more about this technique.

/Jason
  #2   Spotlight this post!  
Unread 22-01-2007, 11:47
kaszeta's Avatar
kaszeta kaszeta is offline
Registered User
FRC #0095 (Grasshoppers)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2002
Location: Lebanon, NH
Posts: 334
kaszeta is a glorious beacon of lightkaszeta is a glorious beacon of lightkaszeta is a glorious beacon of lightkaszeta is a glorious beacon of lightkaszeta is a glorious beacon of light
Re: Got Gyro?

Quote:
Originally Posted by jdejoannis View Post
That sounds interesting. I wouldn't mind learning more about this technique.
Our robot is basically a tank drive (left side and right side wheels centered on the robot), driven by a single joystick:

1. p1_y determines the speed of the robot. Set both L and R motors to this speed.
2. p1_x adjusts the desired heading of the robot.
3. Every time through the loop, you look at your current heading, and the
desired heading, and use the error between the two in a PID control loop
to set the amount you're adding to one side and subtracting from the other
to turn the robot to correct the heading.

This allows us to correct for motor biases and different traction between left and right and drive in a straight heading.

We've also used this same approach with a omnidirectional drive system, although we've never gone to competition with it.
  #3   Spotlight this post!  
Unread 22-01-2007, 16:44
Kyveck Kyveck is offline
Registered User
FRC #1014 (Dublin Robotics)
Team Role: Programmer
 
Join Date: Jan 2006
Location: Ohio
Posts: 16
Kyveck is an unknown quantity at this point
Re: Got Gyro?

On 1014 we used a gyro drive very successfully last year. On the night before ship the mechanical teams accidentally estroyed the last of our encoders, so we had to scrap our encoder-PID drive. Since our drivetrain was fairly difficult to control as it was, we decided to work out something with our only remaining working sensor, the gyro.
Our algorithm was essentially like the descirption above. It took us about 45 minutes to code and tune. After it was done, our robot could easily be driven by almost anyone who wanted too. Even with the PID drive on the encoders, only a few people on the team were coordinated enough to not hit things. When the coding was done I was able to drive it on my own and chase the person who killed our last encoder around the room shooting balls at him. (That was fun.)
We got our camera working Saturday so that we can chase a green light on a cart around the school with a PI loop, and now are reimplementing the same gyro algorithm as last year to try to approach the cart without waffling side to side as much. Since the robot doesn't have encoders installed yet, the only feedback currently is from the camera.
I don't know how much experience you have programming for FRC, but if you need some help, I can talk to my programming team and get some code samples.

Kyle W
Engineering Director, Team 1014
  #4   Spotlight this post!  
Unread 24-01-2007, 12:41
purduephotog purduephotog is offline
Active Defense Design Engineer
AKA: Jason
FRC #3015
Team Role: Leadership
 
Join Date: Jan 2007
Rookie Year: 2004
Location: Rochester, NY
Posts: 162
purduephotog is a jewel in the roughpurduephotog is a jewel in the roughpurduephotog is a jewel in the roughpurduephotog is a jewel in the rough
Send a message via AIM to purduephotog
Re: Got Gyro?

Quote:
Originally Posted by Kyveck View Post
On 1014 we used a gyro drive very successfully last year. On the night before ship the mechanical teams accidentally estroyed the last of our encoders, so we had to scrap our encoder-PID drive. Since our drivetrain was fairly difficult to control as it was, we decided to work out something with our only remaining working sensor, the gyro.
Our algorithm was essentially like the descirption above. It took us about 45 minutes to code and tune. After it was done, our robot could easily be driven by almost anyone who wanted too. Even with the PID drive on the encoders, only a few people on the team were coordinated enough to not hit things. When the coding was done I was able to drive it on my own and chase the person who killed our last encoder around the room shooting balls at him. (That was fun.)
We got our camera working Saturday so that we can chase a green light on a cart around the school with a PI loop, and now are reimplementing the same gyro algorithm as last year to try to approach the cart without waffling side to side as much. Since the robot doesn't have encoders installed yet, the only feedback currently is from the camera.
I don't know how much experience you have programming for FRC, but if you need some help, I can talk to my programming team and get some code samples.

Kyle W
Engineering Director, Team 1014
Very interesting. Did you start with Kevin's code? We're going to be trying this this year- assuming we ever get the Gyro offering.
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Got Weight? Dominicano0519 General Forum 56 27-02-2006 22:06
Got NERVE? KathieK General Forum 0 13-02-2006 18:11
I got GAME! Goober!!! Games/Trivia 3 07-02-2005 21:43
Got Mak? Quentinfool General Forum 5 19-05-2003 17:54
Got Robot? Chubtoad General Forum 19 08-05-2002 22:21


All times are GMT -5. The time now is 20:28.

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