Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Compass heading from deviceorientation
Message
De
24/04/2014 07:35:27
 
 
À
24/04/2014 07:27:03
Information générale
Forum:
HTML5
Catégorie:
Problèmes de navigateur
Divers
Thread ID:
01598938
Message ID:
01598949
Vues:
30
>>Maybe you should update the screen in steps to make it smooth
>>
>>
>>for( x = oldPosition; x <= newPosition; x += 0.5 ) // degrees  ( or less than 0.5)
>>   updateScreen();
>>
>
>Hmm. The events come in fast enough - in fact, as in previous reply, I'm taking the opposite approach to *reduce* the number of screen updates (which draws an arrow on HTML5 Canvas)


The Nexus has a gyroscope ? Try this http://www.sundh.com/blog/2011/09/stabalize-compass-of-iphone-with-gyroscope/
Gregory
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform