gyro compass heading on android

Q&A about the latest versions
Post Reply
Posts: 17
Joined: Mon Apr 13, 2015 9:50 pm

Thu Dec 08, 2016 5:44 pm

I'm experiencing a surprising difference between iOS and Android using pano2vrGyro to set device orientation.
iOS works perfectly, but chrome on Android is consistently 90 degrees out.

In fact, I've added the following at line 82 in pano2vrGyro which seems to fix the problem:

Code: Select all

var isAndroid=/Android/i.test(navigator.userAgent);
if (isAndroid) { 
	yaw -=90;
I'm on current 5.0, and NOT using the version of pano2vrGyro that Thomas posted on this forum in October. (I tried it but it made things jerky). However his additions gave me a clue as to how and where to put the yaw change above.

Have I missed something? Is there a better fix than this?

User avatar
Posts: 9921
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK

Fri Dec 09, 2016 5:40 pm

Hi John,
Ill add a bug report.
Post Reply