View Single Post
  #5   Spotlight this post!  
Unread 16-01-2014, 15:09
faust1706's Avatar
faust1706 faust1706 is offline
Registered User
FRC #1706 (Ratchet Rockers)
Team Role: College Student
 
Join Date: Apr 2012
Rookie Year: 2011
Location: St Louis
Posts: 498
faust1706 is infamous around these partsfaust1706 is infamous around these parts
Re: Accelerometers and speed

You should expect cheap hardware to not work perfectly, and a gyro and accelerometer is no exception to this rule. Some hardware you can get away with not being perfect, but not these two.

As someone else has mentioned, the gyro measures degrees/sec, so you must integrate it to get degrees. In a perfect world, the integration would be correct, but there is a delay in points on the graph, aka the "function" of degrees/sec is not continuous but rather just a collection of points.

We are still using a gyro this year. It runs through ardiuno and apparently is better than the KOP one. A clever method to combat this would be to calculate yaw from vision (yaw is heading on the field), then every once in awhile (once a second or so) replace the gyro reading with the solution vision gets. This is the method we are using.
__________________
"You're a gentleman," they used to say to him. "You shouldn't have gone murdering people with a hatchet; that's no occupation for a gentleman."