Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Compass heading from deviceorientation
Message
De
24/04/2014 08:54:31
 
 
À
24/04/2014 08:46:23
Information générale
Forum:
HTML5
Catégorie:
Problèmes de navigateur
Divers
Thread ID:
01598938
Message ID:
01598957
Vues:
23
>>>It would be nice it I could just find an example HTML5 page out there where this works ;-}
>>
>>This looks promising http://stackoverflow.com/questions/18112729/calculate-compass-heading-from-deviceorientation-event-api
>>
>>Look at the first answer
>>There's a link to an example http://people.opera.com/richt/release/tests/orientation/spec_workedexample.html
>
>I also found that a few minutes ago. The code is basically the same as I'm trying and, on my device at least, just as useless :-{
>Just varying either the x or y axis gives hugely different heading results (including at 'steep' angles Nan)
>
>Do you have a device you could try that page on ?
>Anybody ?

> >Just varying either the x or y axis gives hugely different heading results (including at 'steep' angles Nan)

What about ignoring the new value if more than x degrees difference from the previous reading ?
Gregory
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform