View Single Post
  #7   Spotlight this post!  
Unread 11-01-2016, 08:14 AM
adciv adciv is offline
One Eyed Man
FRC #0836 (RoboBees)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2010
Location: Southern Maryland
Posts: 478
adciv is a name known to alladciv is a name known to alladciv is a name known to alladciv is a name known to alladciv is a name known to alladciv is a name known to all
Re: Gyro vs. Encoders for Driving Straight

Use encoders for distance, use gyro for driving straight. With a properly tuned PID and a good gyro, you'll be off by at most 1/2" over 30 ft. Once we redid our autonomous for champs, we didn't need our camera half the time to score.

That said, with a shooter you want a camera for locking onto the target. Typically you're going to slide laterally during some situations (such as crossing a defense) and only a camera will allow for correction to that error. There's default image processing code in the FRC install every year, I'd recommend looking at it. The roboRIO is powerful enough to process 320x240 @10 fps.
__________________
Quote:
Originally Posted by texarkana View Post
I would not want the task of devising a system that 50,000 very smart people try to outwit.

Last edited by adciv : 11-01-2016 at 08:17 AM.
Reply With Quote