How do I get the direction of the built-in compass of a device using javascript?
There is a minimal implementation of available HTML apis (Chrome@Android) Username=dardoro&ProjectName=compass
Return values are alpha, beta, gamma, absolute
, accordingly to the API
First read == [0,0,0,false]
Unfortunately, I do not get reliable, absolute positioning with any of my devices.
More info : W3C Device Orientation Calibration
Test HTML: Device Motion/Orientation diagnostic measurements
well, the orientation isn't gonna be perfect.
Unfortunately, I cant test this right now because I am using my chromebook.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.