Just the way the smart drivetrain provided by vex does it. In a way, it is to convince teams to do their own coding because of inaccuracies that can easily be fixed.
You can watch this video above. It shows how the smartdrive isn’t the most accurate. To make it more accurate, use a PID loop. This is a great tutorial about PID loops.