View Single Post
  #3   Spotlight this post!  
Unread 10-01-2014, 20:12
nyaculak nyaculak is offline
Registered User
FRC #0053 (Area 53)
Team Role: Programmer
 
Join Date: Oct 2011
Rookie Year: 2011
Location: Maryland
Posts: 28
nyaculak will become famous soon enough
Re: Programming Gyro

In my experience, gyros are best used for relative angle measurements (i.e. turning 90 degrees relative to your current position). They tend to have a lot of "drift", meaning the angle will change from the true value over time. This doesn't matter if you only need a relative angle, but I wouldn't trust a gyro for an accurate absolute angle.

If you want to measure the angle of an apparatus on your robot, I recommend using some kind of angular potentiometer. The angle potentiometer will output a current between 0V and 5V. After you have the potentiometer set up, it's a matter of taking empirical measurements and creating a function to map the voltage returned to an actual angle. This is the method my team used last year to measure the angle of our disc launcher.
__________________
2013 MUC DC 3rd Place, FRC DC Regional, FRC Chesapeake Regional
2012 FRC DC Regional, FRC Chesapeake Regional
ERHS Robotics Club
- FRC Team 53 "Area 53"
www.erhsroboticsclub.org
Reply With Quote