Go to Post A mentor doesn't have to win the WFA at a competition to know that they've inspired the team. - Laura 1547 [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 19-01-2009, 12:03
Felipe Sagui Felipe Sagui is offline
Registered User
FRC #1382 (EtepTeam)
Team Role: Mentor
 
Join Date: Apr 2007
Rookie Year: 2007
Location: Brazil
Posts: 25
Felipe Sagui is an unknown quantity at this point
Send a message via MSN to Felipe Sagui
Accelerometer - acceleration value help

I have a problem with the return value of accelerometer.

What is the unit of value returned? The help file shows that it is in Gs.

I guess: 1 G = 9,81 m/sē. Is it correct or the unit is in feets?

Thanks.
__________________
Felipe Cezar Salgado
ETEPTEAM #1382

Last edited by Felipe Sagui : 19-01-2009 at 12:05.
  #2   Spotlight this post!  
Unread 19-01-2009, 12:05
Jared Russell's Avatar
Jared Russell Jared Russell is offline
Taking a year (mostly) off
FRC #0254 (The Cheesy Poofs), FRC #0341 (Miss Daisy)
Team Role: Engineer
 
Join Date: Nov 2002
Rookie Year: 2001
Location: San Francisco, CA
Posts: 3,073
Jared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond repute
Re: Accelerometer - acceleration value help

1G = 9.81 m/s^2 = 386 inches/s^2 = 32.2 feet/s^2

You can convert it to whatever unit you want (the value returned by the WPILib routines is in G).
  #3   Spotlight this post!  
Unread 19-01-2009, 12:18
Felipe Sagui Felipe Sagui is offline
Registered User
FRC #1382 (EtepTeam)
Team Role: Mentor
 
Join Date: Apr 2007
Rookie Year: 2007
Location: Brazil
Posts: 25
Felipe Sagui is an unknown quantity at this point
Send a message via MSN to Felipe Sagui
Re: Accelerometer - acceleration value help

Thanks,

I have other problem...

I get the acceleration value (in G) and convert it for m/sē. After this signal is integrated to obtain the velocity and do another integration to get the distance, but on the second integration the velocity never returns to 0 and as consequence the distance value continues raising.

I want to know how can I fix this problem or some ideia to stop the velocity integration.

Any idea?
__________________
Felipe Cezar Salgado
ETEPTEAM #1382
  #4   Spotlight this post!  
Unread 19-01-2009, 12:26
XXShadowXX's Avatar
XXShadowXX XXShadowXX is offline
They call me Cody.
no team (None currently :\)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Pontiac; MI
Posts: 408
XXShadowXX has much to be proud ofXXShadowXX has much to be proud ofXXShadowXX has much to be proud ofXXShadowXX has much to be proud ofXXShadowXX has much to be proud ofXXShadowXX has much to be proud ofXXShadowXX has much to be proud ofXXShadowXX has much to be proud ofXXShadowXX has much to be proud ofXXShadowXX has much to be proud of
Re: Accelerometer - acceleration value help

you don't stop moving...
Or
your distance has no vector, victor. So your robot is tracking it's forward motion, as if it is moving in a line... so even if you turn your program thinks your going in the same line. This could be corrected by assigning a angle to the distance, which could get very complex...
__________________
Is now an engineer thanks to FIRST.
  #5   Spotlight this post!  
Unread 19-01-2009, 12:28
Russ Beavis Russ Beavis is offline
Registered User
no team
 
Join Date: Nov 2005
Location: Manchester, NH - DEKA R&D Corp.
Posts: 341
Russ Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond repute
Re: Accelerometer - acceleration value help

This is a very common problem with integration - what happens when the average value is NOT zero? Well, the integrator output just keeps growing and growing...

There's an excellent chance that your accelerometer has a small amount of offset error. It's unavoidable.

The only way to eliminate the growing error is to "de-drift" the offset error by folding in and "subtracting" a true heading/position sensor somewhere in the calculations (eg a magnetic compass or horizon sensor).

There is one other way - use a highpass filter on your accelerometer output. Unfortunately, you'll never reliably measure DC accelerations (eg measurement of pitch/roll tilt) without that DC measurement.

Russ
  #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.
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
accelerometer help!! wildcats Electrical 2 18-01-2009 15:51
Help with accelerometer. ThisIsFood NI LabVIEW 6 17-01-2009 12:40
Accelerometer Help! Questions4mQ202 Electrical 4 15-01-2009 19:44
Accelerometer help Red Mage Programming 3 30-01-2008 18:49
Accelerometer Connection Help crazykid234 Electrical 2 11-02-2005 08:23


All times are GMT -5. The time now is 10:13.

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