Encoder distance calculation and variables in smart dashboard