Quote:
|
Originally Posted by magical hands
since master code runs only like at 2.26 milliseconds or something. but we can assume that the accelerometer gives out values at every 2.26 m/s therefore we can say that velocity = acceleration/processor time^2. If i am wrong please correct me  Thank you once again guys!
|
No, velocity = Vo + A * T (T = SW loop cycle time)
Vo is the velocity at the last time you sampled the sensor, you need to integrate A*T to get velocity (integrate means keep a running summation: add A * T to a variable that is initialized = 0 when you know the bot is not moving).