Czujniki

Test żyroskopu

Odczytuj na żywo wartości prędkości obrotowej żyroskopu tam, gdzie są one widoczne na urządzeniu i przeglądarce, za pomocą prostego wykresu ruchu.

Prywatność: W tej zakładce przetwarzane są próbki rotacyjne. Żadne dane dotyczące ruchu nie są przesyłane ani przechowywane.
Etykiety interfejsów i nazwy narzędzi są tłumaczone. Szczegółowe wskazówki i często zadawane pytania na tej stronie są obecnie napisane w języku angielskim.

Interfejs testowy

Twoja przeglądarka może poprosić o pozwolenie po naciśnięciu przycisku Start.
Gotowy. Włącz żyroskop i obróć urządzenie.
X—°/s
Y—°/s
Z—°/s
Ogrom—°/s
Próbki0
Źródło czujnika—
Większość komputerów stacjonarnych nie posiada żyroskopu. Na urządzeniu mobilnym użyj protokołu HTTPS i przyznaj uprawnienia do ruchu. Mały dryft i szum są normalne w przypadku czujników konsumenckich.

Jak korzystać z tego narzędzia

  1. Click Enable gyroscope and grant motion permission if your browser asks.
  2. Rotate the device slowly around each axis and watch the x, y, and z values.
  3. Observe the magnitude graph while the device is still and moving.
  4. Click Stop to remove the listeners and end sensor access.

Reklama

Wyjaśnienie techniczne

The page prefers the Generic Sensor API Gyroscope constructor. Where that is unavailable it falls back to DeviceMotionEvent.rotationRate, which reports degrees per second around the alpha, beta, and gamma axes. Values are smoothed slightly for readability.

A desktop or a device without a gyroscope will not produce rotation data. iOS requires an explicit motion permission request from a user gesture. Drift and noise are normal for consumer sensors and are not proof of a hardware fault.

Rozwiązywanie problemów

No gyroscope data appears

Most laptops have no gyroscope. Use a phone or tablet and serve the page over HTTPS.

The permission prompt does not appear

On iOS the request must follow a direct tap. Reload and press the button again.

Values drift while the device is still

Sensor bias and temperature changes cause small drift. This is normal and is corrected by sensor fusion in many apps.

Only some axes change

Rotate around each axis deliberately. A device may not expose all axes equally depending on orientation and browser.

Często zadawane pytania

Reklama