Self Driving RC Car

We are looking to build an rc car that can follow a path without physical markings such as tape. Our idea was to outfit a gyroscope on the car and use its output to allow the robot to keep an orientation until an ultrasonic sensor detects a wall. Is there a better way to do this?

I presume you are thinking about solid-state gyroscopes, like https://www.adafruit.com/product/3463 or https://www.adafruit.com/product/2472 — I’d choose the better and more expensive one myself.