I wrote a more accurate median filter for toucscreen. Median filter works by selecting the middle value among the sorted array. It helps to reject voltage spikes and keeps values steady. In conjunction with my touchscreen accuracy fix this gives a pixel perfect accuracy when drawing!
here is the fix for touchscreen.c file:
The insertion sort algorithm is quite slow but safe for DMA (algorithm is on-line and in-place). Anyone can offer a better algorithm for this process?
P.S.: The same filter could be used for VBAT and temp-sensor.
Last edited by ntrf.zns (2010-03-29 14:15:07)