change touch screen pixel values to velocity values. Next time need to work on threads in beaglebone