Thread: Compass sensor
View Single Post
  #13   Spotlight this post!  
Unread 13-01-2010, 21:39
DonRotolo's Avatar
DonRotolo DonRotolo is offline
Back to humble
FRC #0832
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Atlanta GA
Posts: 6,998
DonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond repute
Re: Compass sensor

Just to be clear, the Gyro used in FRC gives you the Rate of Turning, in degrees per second. So if you want to keep your robot from turning, just maintain the gyro value at zero - if it turns at 2 degrees per second for 3 seconds, then turn it back the same 6 degrees.

Just be aware that a gyro has some "drift"; that is, it reports small turn rates even while not moving. This can be mostly managed by adjusting for temperature (there is a temperature sensor on-board) and some empirical measurements, not perfectly but well enough for a 2 minute match. Not to mention your driver can 'adjust' the actual position a little if/when necessary, leaving the majority of the work to the automated system.
__________________

I am N2IRZ - What's your callsign?