传感器

指南针测试

根据设备方向数据显示实时罗盘航向,并检查它在您转动时的响应方式。

隐私: 航向数据在本地处理。没有上传位置或方向信息。
界面标签和工具名称已翻译。此页面上的详细指南和常见问题解答目前以英文编写。

测试接口

按“开始”后,您的浏览器可能会请求许可。
准备好。启用指南针并缓慢转动。
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.

常见问题

广告