motion_sensors icon indicating copy to clipboard operation
motion_sensors copied to clipboard

motionSensors.orientation doesn't differentiate between pointing down or up

Open dvagala opened this issue 1 year ago • 1 comments

When using motionSensors.orientation or motionSensors.absoluteOrientation to get pitch, the value is the same if I move the device down or up. Therefore you cannot differentiate from up and down.

Measurements on ios:

device pointing up: pitch = 0
device pointing a little bit up: pitch = 1
device pointing straight, pitch = 1.57
device pointing a little bit down: pitch = 1
device pointing down: pitch = 1

dvagala avatar Jul 07 '23 13:07 dvagala

I just tried this on Android and it works fine, so this might just be an iOS issue.

dragazo avatar Aug 02 '23 21:08 dragazo