Go to Post bedtime? there's no bedtime while chief delphi is up and running! - Alex Cormier [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 08-02-2013, 16:44
jwakeman jwakeman is offline
Registered User
FRC #0063 (Red Barons)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2010
Location: 16510
Posts: 182
jwakeman is just really nicejwakeman is just really nicejwakeman is just really nicejwakeman is just really nicejwakeman is just really nice
Gyro/Accelerometer Fusion

I would like to compensate for drift in my gyro using an acceleromoter. I collected some data from the accelerometer and gryo and I am looking for some help in designing a filter.

1. My first question is if the accelerometer data looks reasonable since this is the first time I have used an accelerometer. The accelerometer is lying flat on the robot.

- The first attachment (acc_data_1.bmp) shows readings while the robot was stationary (first half) and then moving. I don't understand why the z-axis is jumping around while the robot is stationary (or why it is moving at all even when the robot is driving around).

- The second and third attachements (acc_data_2.bmp and acc_data_3.bmp) show the acceleromoter data and gyro data during a sequence of motions.

Time 368.5-373: Robot turns 90 degrees
Time 373-375: Robot drives 5 feet
Time 375-378.5: Robot turns 90 degrees
Time 378.5 - 381.5 Robot drives 10 feet
Time 381.5-384.5: Robot turns 90 degrees

If I am correct the x-axis is forward/reverse motion of the robot and the y-axis is side to side motion of the robot. I think I can see reasonable correlation from the accelerometer data (for example acceleration followed by deceleration in the x-axis when making the 5' and 10' position moves).

I would like other opinions on the quality of this data and if I should proceed with trying to create a filter.

2. If the data is correct I would then appreciate any suggestions for a filter design. I attempted to implement the suggestion here but I don't really understand it enough to get it working. One of the main sticking points is how to convert the G's from the accelerometer to degrees.

Some theory may be helpful, some practical pointers would be nice, some code or psuedo-code would be awesome! I will leave this sort of open ended and see where it goes.
Attached Images
File Type: bmp acc_data_3.bmp (1.92 MB, 52 views)
File Type: bmp acc_data_1.bmp (1.72 MB, 94 views)
File Type: bmp acc_data_2.bmp (1.72 MB, 57 views)

Last edited by jwakeman : 08-02-2013 at 16:46. Reason: attachments
Reply With Quote
 


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


All times are GMT -5. The time now is 12:56.

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