2015年6月29日 星期一

運動感測器#1


研究一下運動感測器, G-Sensor (加速度計), Gyro Sensor陀邏儀,, E-compass 電子邏盤 , 先看一下Android 手機內運動感測器的輸出狀況. 到時自己實作時,也就知道應該做到這樣的結果, 其實, 發現要得到這樣的結果, 除了硬體外, 還必須有一些演算法搭配。

不管先來看一下, Android手機座標系統 (OpenGL ES座標系統)






加速度感應器 : 傳回 X, Y, Z 軸受重力的影響 . 加速度的單位是 m/sec2

當手機平放時, Z軸有值, X,Y軸為0; 正面放 Z軸輸出9.81, 反面放 Z軸輸出 -9.81




 當手機直立時, Y軸有值, X,Z軸為0; 正面放  Y軸輸出9.81, 反面放 Y軸輸出-9.81

 當手機側放時, X軸有值, Y,Z軸為0;  左側面放 X軸輸出9.81, 右側放 X軸輸出-9.81



當手機平放時, 以邏盤方式順時針或逆時針旋轉, 得到的數值都是Z值9.81, 無法得知其旋轉方向



方位感測器: 我們可以得知X,Y,Z方向的旋轉方向. 輸出角度數值為 [-π,π]

Azimuth: 為當手機平放時以邏盤方式轉動, 可得其為順時針或是逆時針轉動,

Pitch: 當手機繞著X旋轉時,輸出角度變化值

Roll: 當手機繞著Y旋轉時, 輸出角度變化值






整理資料來源連結:
[1] 感應器應用

2 則留言 :

  1. What a great blog website! Keep up the good work; you done a terrific job of touching on everything that matters to all readers. And your blog pays far more attention to details. I really appreciate you sharing.
    ley de divorcio en Virginia

    回覆刪除
  2. Store your shemale sex dolls in a dry place inside the case to avoid unnecessary heat and humidity. We do not recommend ironing your San Diego Premium Silicone Doll's clothes during use. Keep your doll away from perfumes and other body sprays, as some of them may contain alcohol.

    回覆刪除