Closed CrowdHailer closed 8 years ago
Hello,
Which Windows Phone are you using? The phone brand and Windows version? Also, did you try to initialise GyroNorm with the default arguments? Such as:
var gn = new GyroNorm();
gn.init().then(function(){
gn.start(function(data){
...
});
});
I also have another remark about the code above. It is not related with the Windows Phone issue, but general. I see you have the document.querySelector
with in the callback function of gn.start()
.
It means it is called every 50 milliseconds. That would be heavy for the browser. Instead I would do something like this:
// Query outside the function
var alphaText = document.querySelector('#heading');
var gn = new GyroNorm();
gn.init().then(function(){
gn.start(function(data){
// Use in side the callback function
alphaText.innerHTML = data.do.alpha
...
});
});
Hello, I winder if you are having any issues? Else I will close this issue. Cheers, Doruk
Well I have a Nokia lumina 530 running windows 8.1 using mobile IE 10 and I get nothing as well with the demo application. Though I am able get atleast the X,Y,Z values using other methods.
@karneaud which other methods are you using?
@dorukeker I'm using the sample demo provided with the repo
Ok. For my understanding:
If I got it correct:
0
or nothing?Cheers, D.
@dorukeker I have to admit. I had moved on from your framework and went with gyro.js But I think there was some errors concerning how you retrieved the values.
Again. I had opted to use another framework.
I note though that in Windows 8.1 you are unable to retrieve alpha beta or gamma values.
Hi, I seam to get no calls to the start call back on my windows phone. This is odd because the device api works as it should without any normalisation on that phone. I am using the following code
The same page works correctly on an android device and an iphone that I have tested it on