传感器

运动和指南针测试

读取可用的加速度计、陀螺仪和指南针数据,并带有气泡水平仪和实时方向显示。

隐私: 传感器样本在本地处理。不上传或存储任何运动或方向数据。
界面标签和工具名称已翻译。此页面上的详细指南和常见问题解答目前以英文编写。

测试接口

按“开始”后,您的浏览器可能会请求许可。
在某些设备上,必须通过按下按钮来授予运动和方向访问权限。
按开始开始。
阿尔法 / 标题—
贝塔 / 前/后倾斜—
伽玛 / 左右倾斜—
罗盘—
加速X—
加速Y—
加速Z—
样品0
传感器值取决于硬件校准、浏览器支持和设备方向模型。缺失读数通常意味着浏览器没有暴露该传感器。

如何使用这个工具

  1. Click Enable sensors and grant motion permission if your browser asks.
  2. Tilt the device and watch the bubble level and axis values.
  3. Rotate the device to check compass behaviour where supported.
  4. Stop the test to remove event listeners and end sensor access.

广告

技术说明

The Generic Sensor API and DeviceOrientation/DeviceMotion events expose orientation and motion depending on platform. iOS requires an explicit permission request after a gesture; many desktops expose no motion sensors at all.

Compass readings can be affected by magnetic interference from cases, speakers, and metal surfaces. A browser cannot calibrate the sensor or prove that a reading is physically accurate.

故障排除

Sensors are unsupported

Desktop browsers often have no motion sensors. Use a mobile device with the required hardware.

Permission request does not appear

On iOS, call the permission prompt from a direct user gesture and ensure the page is served over HTTPS.

Values drift

Magnetic interference and sensor fusion algorithms can cause drift. Move away from magnets and metal objects.

Compass points the wrong way

Compass accuracy varies by device and environment. Do not rely on it for navigation.

常见问题

广告