gyro compass heading on android

Q&A about the latest versions
Post Reply
nich008
Posts: 21
Joined: Mon Apr 13, 2015 9:50 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?

Thanks
John
User avatar
Hopki
Gnome
Posts: 13025
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Hi John,
Ill add a bug report.
Regards,
Hopki
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
Post Reply