modifications to ultrasonic distance and motor rotation