Baub
Baub

Reputation: 5044

Calculate Acceleration iPhone

I am developing an iPhone application that is supposed to calculate acceleration in m/s. To be honest, I know I can calculate the values using the distance coordinates from the GPS, but I'm not sure if they will update as frequently as I'd like them to. With that in mind, I wanted to use the accelerometer.

The values I want to put out are going to be in m/s, i.e. 0.72m/s, etc.

What is the best way to go about this and get started?

Upvotes: 0

Views: 1335

Answers (1)

rob mayoff
rob mayoff

Reputation: 385500

Read about Core Motion.

Core Motion reports acceleration in units of Earth gravity, so multiply by 9.81 to get m/s.

Upvotes: 2

Related Questions