Датчики

Тест компаса

Отобразите курс компаса в реальном времени на основе данных об ориентации устройства и проверьте, как он реагирует на поворот.

Конфиденциальность: Данные о курсе обрабатываются локально. Никакая информация о местоположении или ориентации не загружается.
Переведены метки интерфейсов и названия инструментов. Подробные инструкции и часто задаваемые вопросы на этой странице в настоящее время написаны на английском языке.

Тестовый интерфейс

Ваш браузер может запросить разрешение после того, как вы нажмете «Пуск».
Готовый. Включите компас и медленно поворачивайтесь.
N E S W
— ° —
Заголовок—
Источник датчика—
Показания компаса могут быть искажены магнитами, металлом, динамиками и корпусами. В зависимости от браузера и устройства заголовок может быть относительным, а не истинным севером.

Как использовать этот инструмент

  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.

Реклама

Техническое объяснение

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.

Поиск неисправностей

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.

Часто задаваемые вопросы

Реклама