为什么我的陀螺仪传感器返回的值始终为零?

时间:2015-12-18 09:00:48

标签: android sensor

 if (timestamp != 0) {
                final float dT = (event.timestamp - timestamp) * NS2S;
                // Axis of the rotation sample, not normalized yet.
                double axisX = event.values[0];
                double axisY = event.values[1];
                double axisZ = event.values[2];
}
timestamp = event time

我想读取3轴上的值。但传感器返回的值始终为零

0 个答案:

没有答案
相关问题