How would I implement something that can make use of the iPhone 4's gyroscope and accelerometer in order to find out the speed/velocity at which the object is moving?
For example, if I took the iPhone into a car, it would tell me how fast the car is going? Or even take a simpiler case, assuming constant acceleration, say I attached the iPhone to small plastic cart and let it go down a mild slope. Could the iPhone take the velocity two times in order to compute the acceleration and thus calculate the velocity at each moment?
Thanks.