View Single Post
  #6   Spotlight this post!  
Unread 03-05-2013, 12:47
Jared Russell's Avatar
Jared Russell Jared Russell is offline
Taking a year (mostly) off
FRC #0254 (The Cheesy Poofs), FRC #0341 (Miss Daisy)
Team Role: Engineer
 
Join Date: Nov 2002
Rookie Year: 2001
Location: San Francisco, CA
Posts: 3,078
Jared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond repute
Re: Best way to improve my coding skills for next year?

Quote:
Originally Posted by bumblebee3339 View Post
Thx.

What about the driving straight with PID? How does it work?
Your gyro tells you what your heading is. When you start driving straight, remember what the heading is. As you drive, if your heading drifts clockwise, steer a little bit counter-clockwise. And visa versa.

You could also use the difference between left and right encoder counts to figure out what direction you are driving, but the gyro has the nice property of not caring whether or not your wheels are slipping.
Reply With Quote