เซนเซอร์

การทดสอบการเคลื่อนที่และเข็มทิศ

อ่านข้อมูลมาตรความเร่ง ไจโรสโคป และเข็มทิศ หากมี พร้อมระดับฟองอากาศและการแสดงทิศทางแบบสด

ความเป็นส่วนตัว: ตัวอย่างเซ็นเซอร์ได้รับการประมวลผลภายในเครื่อง ไม่มีการอัปโหลดหรือจัดเก็บข้อมูลการเคลื่อนไหวหรือการวางแนว
ป้ายอินเทอร์เฟซและชื่อเครื่องมือได้รับการแปล คำแนะนำโดยละเอียดและคำถามที่พบบ่อยในหน้านี้ปัจจุบันเขียนเป็นภาษาอังกฤษ

อินเทอร์เฟซการทดสอบ

เบราว์เซอร์ของคุณอาจขออนุญาตหลังจากที่คุณกดเริ่ม
ในอุปกรณ์บางชนิด จะต้องให้สิทธิ์การเข้าถึงการเคลื่อนไหวและการวางแนวได้จากการกดปุ่ม
กดเริ่มเพื่อเริ่มต้น
อัลฟ่า / หัวเรื่อง—
เบต้า / เอียงหน้า/หลัง—
แกมมา / เอียงไปทางด้านข้าง—
เข็มทิศ—
แอคเซล เอ็กซ์—
แอคเซล วาย—
แอคเซล ซี—
ตัวอย่าง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.

คำถามที่พบบ่อย

โฆษณา