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!
|
Its 26.2 ms and its a bad way to keep track of time. Use a timer instead.
Kevin's interrupt code should help you with this.