Google Groups Home
Help | Sign in
Accelerometer
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
jojosim1  
View profile
 More options Mar 26, 7:39 am
From: jojosim1 <jojos...@gmx.net>
Date: Wed, 26 Mar 2008 04:39:55 -0700 (PDT)
Local: Wed, Mar 26 2008 7:39 am
Subject: Accelerometer
Hi

i need to implement the behaviour of an accelerometer but i'm not sure
how to get this task done.
where do i get the accelerations from a box ? is there a way to it ?


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
cbianchi  
View profile
 More options Mar 26, 9:05 am
From: cbianchi <cristian.bian...@gmail.com>
Date: Wed, 26 Mar 2008 06:05:07 -0700 (PDT)
Local: Wed, Mar 26 2008 9:05 am
Subject: Re: Accelerometer
You could probably start thinking at the acceleration as "the change
in velocity in time".
ODE doesn't give you the acceleration directly, but you can compute it
from the velocity change from a step to previous one.
You can use use: dBodyGetLinearVel / dBodyGetAngularVel to retrieve
linear velocity and angular velocity.
Cristian.

On Mar 26, 11:39 am, jojosim1 <jojos...@gmx.net> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jon Watte  
View profile
 More options Mar 26, 2:01 pm
From: Jon Watte <jwa...@gmail.com>
Date: Wed, 26 Mar 2008 11:01:22 -0700
Local: Wed, Mar 26 2008 2:01 pm
Subject: Re: [ode-users] Accelerometer

You have to keep some state. Remember the velocity the box (or the point
of the box where the meter is mounted) for the previous frame, and
compare to the velocity this frame. The delta is the acceleration;
divide by the time step size to normalize to per-second units.

Sincerely,

jw


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Bill Sellers  
View profile
 More options Mar 26, 4:14 pm
From: Bill Sellers <w...@mac.com>
Date: Wed, 26 Mar 2008 20:14:00 +0000
Subject: Re: [ode-users] Re: Accelerometer
Also if you are really trying to emulate a real accelerometer  
remember that they always record 1g _upwards_ due to gravity. You'll  
need to add this to your calculated acceleration. If you want to be  
really clever you could also fiddle with frequency response - some  
accelerometers record down to 0 Hz, some don't and have a minimum  
frequency. They all have a maximum frequency too.

Cheers
Bill

On 26 Mar 2008, at 18:01, Jon Watte wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google