Can someone explain the difference between CMAccelerometerData
and CMDeviceMotion
.
It seems to me like the acceleration values of CMAccelerometerData
are raw values, as the data of CMDeviceMotion
is somehow interpolated, or something like that.
These are the differences between CMAccelerometerData
and cmdevicemotion
.
In order to compare both you gotta check CMAccelerometerData.acceleration
against CMDeviceMotion.userAcceleration
+ CMDeviceMotion.gravity
to compare like with like.
In general CMDeviceMotion
is your first choice in most cases when you want precise values and hardware independency.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With