Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我目前检测到 y 轴上的运动。如何计算它在轴上移动的方向?
向上或向下移动时我得到相同的值。
这个需要陀螺仪吗?
请记住,加速度计将反映重力。因此,上下运动通常会反映为 9.81 m/s 2加上或减去设备相对于地球的实际加速度。