April 22, 2015 at 5:26 pm #12815
means every time u r getting double value of distance?
if thats the thing means u have not divided the value by 2.
the distance traveled is calculated as to-n-fro. so u hv to divide it by 2 to get correct distance