View Single Post
  #6   Spotlight this post!  
Unread 19-01-2009, 12:52
Bongle's Avatar
Bongle Bongle is offline
Registered User
FRC #2702 (REBotics)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2002
Location: Waterloo
Posts: 1,069
Bongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond repute
Send a message via MSN to Bongle
Re: Accelerometer - acceleration value help

You can't do much about the constantly-increasing distance. You see the same thing with the gyro: it has a little bit of error in it, so the robot constantly drifts a little bit. You can work on your integration routines to make them a bit more accurate, but you'll always have that little error.

To fix it:
-If you ever have a point where you KNOW the robot isn't moving (encoder speed on a freely turning wheel = 0), then you can zero out the velocity and start integrating from there again
-Use encoders on a free wheel to track distance, rather than accelerometers. Encoders do not require any integration, and so have much less error. According to QA responses, you are allowed having an unpowered wheel touch the ground that isn't a rover wheel, so long as it does not add substantial grip for acceleration or braking.