Autonomous with ultrasonic sensor

Hi, I want to know if my code is okay, I can not check it because my robot is sealed
I want you to do is that in the autonomous travels head-on with only two motres until any of my ultrasonics detect a distance of 5 inches, but so far I have not left

Attach my code in image