Smart car speed measurement scheme