Go to Post Dreams come and go, but once life throws a football you have to think fast. - Pavan Dave [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 01-02-2010, 18:37
nabioullinr nabioullinr is offline
Registered User
FRC #1073
 
Join Date: Jan 2010
Location: Hollis, NH
Posts: 17
nabioullinr has a spectacular aura aboutnabioullinr has a spectacular aura aboutnabioullinr has a spectacular aura about
Implementing a Kalman Filter for Gyro+Accelerometers

I am thinking of implementing a Kalman filter for estimating the heading and later the position. Would this be a good idea or are there simpler alternatives which result in almost the same accuracy?
Also, any suggestions on how to properly temperature-compensate the gyro? The datasheet stated that there is an appnote for this but I cannot find it.
  #2   Spotlight this post!  
Unread 02-02-2010, 09:12
Bigcheese Bigcheese is offline
C++0x FTW!
AKA: Michael Spencer
FRC #1771
Team Role: Mentor
 
Join Date: Feb 2008
Rookie Year: 2008
Location: GA
Posts: 36
Bigcheese is a jewel in the roughBigcheese is a jewel in the roughBigcheese is a jewel in the roughBigcheese is a jewel in the rough
Re: Implementing a Kalman Filter for Gyro+Accelerometers

I've played with Kalman filtering a bit on the bot. Personally I think it could help quite a bit, as long as you get your RMS noise correctly. It would also have less lag than averaging.

As for temp compensation, doesn't that datasheet have the info for how temp effects the output? I don't know if you can change the sensitivity without resetting the accumulator however.
  #3   Spotlight this post!  
Unread 02-02-2010, 10:48
Joe Johnson's Avatar Unsung FIRST Hero
Joe Johnson Joe Johnson is offline
Engineer at Medrobotics
AKA: Dr. Joe
FRC #0088 (TJ2)
Team Role: Engineer
 
Join Date: May 2001
Rookie Year: 1996
Location: Raynham, MA
Posts: 2,648
Joe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond repute
Re: Implementing a Kalman Filter for Gyro+Accelerometers

My experience is that simpler is better.

I haven't had that much difficulty with a simple integrator to for the gyro to turn angular rate into angular position (a virtual compass). With grippy tires on carpet (flat floor) I have been able to move down 40 ft via a serpentine path and return to home and have the virtual compass still be within a few degrees. Others claim even better performance.

As to accelerometers, I haven't personally done the double integration, but it is quite simple to implement and from what I understand it works pretty well.

For both cases, the integration gets off over time (and with high G events that overflow the sensor like a robot to robot collision) but it is surprisingly good for short time frames (like autonomous mode). You also have other sensors to help you get the integration constants right (like wheel encoders).

Good luck.

Joe J.
__________________
Joseph M. Johnson, Ph.D., P.E.
Mentor
Team #88, TJ2
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Accelerometers & Gyros for N00bs ManicMechanic Electrical 23 09-01-2010 18:21
Implementing Traction Control for an advantage in the 2009 game DonRotolo Programming 143 27-02-2009 11:53
Kalman Filters nickmagus Programming 15 05-09-2008 23:20
Kalman Filter for Heading information. Tatsu Programming 1 22-02-2007 02:20
Gyro Filter MikeDubreuil Electrical 7 04-02-2003 17:26


All times are GMT -5. The time now is 21:32.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi