While GPS works for long distance changes, I would like to measure a shorter distance by using the iPhone\'s accelerometer.
Say I want to measure a height of a box u
Depending on the application, and how much accuracy you need, you may be able to use the new 6-axis gyro accelerometers in the iPhone 4 and iPod Touch 4th Gen. You could get the total displacement by integrating the acceleration vector.
When integrating acceleration to get displacement, any errors will be cumulative, so this may not be appropriate, but may be worth considering.