Replaced the rate control in autonomous with a distance control