Quote:
|
Originally Posted by magical hands
Can anyone explain me in simple words what integrate accelerometer means and how it actually works? and how can i integrate my accelerometer?
|
In this context, integration refers to the mathematical function which is the opposite of differentiation. Differentiation is finding the slope of something, and integration is basically finding the area underneath a curve.
You will be using something called Riemann sums to integrate. Someone on your team who has taken calculus should be able to tell you more about the theory of it if you want to know more.
For what you're doing, it boils down to doing:
(velocity)+=(acceleration)*(time since last reading)
(distance)+=(velocity)*(time since last reading)
Think of it this way: If you're moving 60mph in a car, and you drive for 1/2 hour, you'll go 30 miles. Likewise, if you're accelerating at 2 ft./sec for 10 seconds, then you're moving at a rate of 20 ft./sec.