Re:Show HN: I taught my little brother JS, and he made this ...
by gugagore on Wednesday January 09, 2019 @10:31PM
(#18871284)
That's a good question. I suppose it may be possible to use GPS data to estimate the phone's absolute heading.
I just took a quick look at https://developer.mozilla.org/en-US/docs/Web/API/Detecting_d..., and it seems to provide orientation, and not angular velocities. So it could also be that browser implementations fuse magnetometer and inertial sensors to produce the orientation estimate. Is there another gyro API?
If you do have some source of absolute orientation, like a compass, surely you just use that and don't need the gyro.