I am trying to read the distance traveled since some codes were cleared from the OBD with an Android application.
I have managed to get the RPM and fuel % to work but the distance traveled is higher than what I would expect.
case 49: //PID(31): Distance Travelled(A*256)+B
Double miles = (((valueA*256)+valueB)*0.62137;
String displayDistance = String.valueOf("Miles: " + miles);
Anyone know where I've gone wrong?