Thread (30 messages) 30 messages, 4 authors, 2014-03-29

Re: [PATCH v3 2/3] input: appletouch: implement sensor data smoothing

From: Henrik Rydberg <hidden>
Date: 2014-03-09 13:50:27

Hi Clinton,
Use smoothed version of sensor array data to calculate movement and add weight
to prior values when calculating average. This gives more granular and more
predictable movement.
Great patch, just one thing:
+		/* Handle other edge. */
+		smooth_tmp[nb_sensors + 7] = (smooth[nb_sensors + 7] + smooth[nb_sensors + 6]) >> 1;
+
+		for (i = 0; i < nb_sensors + 7; i++)
+			smooth[i] = smooth_tmp[i];
Should be "< nb_sensors + 8" here, no?

Thanks,
Henrik
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help