Haohan's odometry; fixed type casting error

define DIAMETER will look like an int to the code and so it casted the
result to an int instead of float