Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Compass heading from deviceorientation
Message
De
24/04/2014 11:29:14
 
 
À
24/04/2014 11:19:30
Information générale
Forum:
HTML5
Catégorie:
Problèmes de navigateur
Divers
Thread ID:
01598938
Message ID:
01598984
Vues:
15
>>>
>>>With that correction the heading does seems to remain fairly constant regardless of beta and gamma values. But changes on the x axis still result in the skip :-{
>>>H
>>
>>
>>Can you post the values of( alpha, beta, gamma , absolute) before and those that produce a 'skip' ?
>>
>>Update : and your current code
>
>Also just noticed:
>
>"The compass heading calculation above can be represented in JavaScript as follows to return the correct compass heading when the provided parameters are defined, not null and represent absolute values" here : http://w3c.github.io/deviceorientation/spec-source-orientation.html.
>
>Maybe I should be converting to absolute before calling the function ?

Nope. Results become even more confused :-{
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform