Capture sensor check v2

Measures orientation as a quaternion as well as Euler angles. v1 reported implausible drift near the upright pose, which is a known weakness of Euler angles rather than of the hardware — this version reports both so they can be compared.

1 · Sensors

Secure context
DeviceOrientation (Euler)
Quaternion sensor
Absolute heading
Update rate

2 · Live reading

Yaw
Pitch
Roll

3 · Drift test

Prop the phone upright — portrait, camera at a wall, the way you will hold it shooting. Hands off for 20 seconds.

Away from metal and electronics. The compass is a magnetometer; a laptop, fridge or radiator will bend the reading. Book or mug, on wood or plastic.

Tilt (beta)
quaternion · median
quaternion · final
Euler · median

4 · Rotation test

Hold it up, turn a full circle on the spot, stop exactly where you started, then tap Finish. About five seconds.

Aim at a sharp vertical edge — door frame, window frame, room corner. This measures sensor error and aiming error together, so a crisp reference keeps the number honest about the phone.

quaternion turn
Euler turn

5 · Camera

Rear camera
Stream size
Still capture

Verdict

Run the tests above