Math.
The car is aware of how many times the wheels rotate (as it is in control of how of many times the driveshaft turns based on gear and RPMs of the engine). Given that the wheels are a fixed diameter with a fixed circumference, it is simple math to translate how far the car travels for every rotation of the wheels.
Latest Answers