Detect acceleration in absolute vertical axis
问题 I'm writing an app in which I want to access the acceleration data in an absolute vertical axis (i.e., from the ground to the floor), but with CoreMotion I'm only able to retrieve acceleration from the device's relative axis. For example if the device is laying flat on the table, it's vertical axis is actually at 90º from the absolute vertical axis. I've been playing with the gyro data to try to fix this, but data don't make sense. // Make sure the accelerometer hardware is available. if self