Page 1 of 1

gyro compass heading on android

Posted: Thu Dec 08, 2016 5:44 pm
by nich008
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?

Thanks
John

Re: gyro compass heading on android

Posted: Fri Dec 09, 2016 5:40 pm
by Hopki
Hi John,
Ill add a bug report.
Regards,
Hopki