I have the following setup:

iPhone lies with a display on the ceiling on the table (alpha = 0 degrees). When the iPhone moves up, as shown in the image above the alpha angle, it increases.
How to calculate the alpha angle value without worrying about any other axes that might change. I'm only interested in one axis.
How to get the right alpha angle that iPhone can rise from the table? How to get notified when alpha value changes?
ios objective-c iphone swift gyroscope
confile
source share