センサー

モーションとコンパスのテスト

利用可能な場合は、気泡水準器とライブ方向表示を使用して、加速度計、ジャイロスコープ、コンパスのデータを読み取ります。

プライバシー: センサーのサンプルはローカルで処理されます。モーションや方向のデータはアップロードまたは保存されません。
インターフェースのラベルとツール名が翻訳されます。このページの詳細なガイダンスと FAQ は現在英語で書かれています。

テストインターフェース

[スタート] を押した後、ブラウザーが許可を求める場合があります。
一部のデバイスでは、ボタンを押してモーションと方向へのアクセスを許可する必要があります。
「開始」を押して開始します。
アルファ / 見出し—
ベータ / 前後に傾ける—
ガンマ / 左右に傾ける—
コンパス—
アクセル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.

よくある質問

広告