Capteurs

Test de boussole

Affichez un cap de boussole en direct à partir des données d'orientation de l'appareil et vérifiez comment il réagit lorsque vous tournez.

Confidentialité: Les données de rubrique sont traitées localement. Aucune information de localisation ou d'orientation n'est téléchargée.
Les étiquettes d’interface et les noms d’outils sont traduits. Les conseils détaillés et les FAQ sur cette page sont actuellement rédigés en anglais.

Interface de test

Votre navigateur peut demander l'autorisation après avoir appuyé sur Démarrer.
Prêt. Activez la boussole et tournez lentement.
N E S W
— ° —
Titre—
Source du capteur—
Les lectures de la boussole peuvent être déformées par les aimants, le métal, les haut-parleurs et les boîtiers. Le cap peut être relatif plutôt que vrai nord selon le navigateur et l'appareil.

Comment utiliser cet outil

  1. Click Enable compass and grant motion permission if your browser asks.
  2. Hold the device flat and slowly turn in a circle.
  3. Compare the displayed heading with a known direction or a physical compass.
  4. Stop the test when finished.

Publicité

Explication technique

The page reads DeviceOrientationEvent.alpha and, on iOS, webkitCompassHeading. It converts the value into a 0–360° heading and draws a compass dial. Some browsers only provide a relative orientation until an absolute orientation event is available.

Magnetic interference from speakers, metal desks, cases, and magnets can distort the reading. The browser may also apply smoothing. A phone compass is a navigation aid, not a surveying instrument, and it is not calibrated by this page.

Dépannage

The compass is unsupported

Desktop devices usually lack a magnetometer. Use a phone or tablet with a modern browser.

Heading is stuck or jumps

Move away from metal and magnetic objects, then wave the device in a figure-eight to help the system calibrate.

North is wrong

Check whether the reading is relative or absolute. Some browsers do not expose true north without a permission or sensor fusion.

Permission was denied

Reset motion access for the site and reload, then press Enable again.

Questions fréquemment posées

Publicité