Thread: Got Gyro?
View Single Post
  #7   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.