*
* final float alpha = 0.8;
*
- * gravity[0] = alpha * gravity[0] + (1 - alpha) * event.data[0];
- * gravity[1] = alpha * gravity[1] + (1 - alpha) * event.data[1];
- * gravity[2] = alpha * gravity[2] + (1 - alpha) * event.data[2];
+ * gravity[0] = alpha * gravity[0] + (1 - alpha) * event.values[0];
+ * gravity[1] = alpha * gravity[1] + (1 - alpha) * event.values[1];
+ * gravity[2] = alpha * gravity[2] + (1 - alpha) * event.values[2];
*
- * linear_acceleration[0] = event.data[0] - gravity[0];
- * linear_acceleration[1] = event.data[1] - gravity[1];
- * linear_acceleration[2] = event.data[2] - gravity[2];
+ * linear_acceleration[0] = event.values[0] - gravity[0];
+ * linear_acceleration[1] = event.values[1] - gravity[1];
+ * linear_acceleration[2] = event.values[2] - gravity[2];
* }
* </pre>
*
* {
* if (timestamp != 0) {
* final float dT = (event.timestamp - timestamp) * NS2S;
- * angle[0] += event.data[0] * dT;
- * angle[1] += event.data[1] * dT;
- * angle[2] += event.data[2] * dT;
+ * angle[0] += event.values[0] * dT;
+ * angle[1] += event.values[1] * dT;
+ * angle[2] += event.values[2] * dT;
* }
* timestamp = event.timestamp;
* }