refactor ride_get_measurement