I would like to control GPS module based on movement of whole device. At this moment I am getting X Y and Z axis of device and I am comparing it with previous values. But when the device is laid on the table, the values from accelerometer are still changing. I tried to round the values to one decimal number, but it is still not so reliable.
Is there any other possibility how to check if device is moving instead of comparing XYZ axes? Or is it possible to get these vales less precise? (when the device is laid on the table, the values will be still same…)
Thank you very much!