# Begin project code
def onauton_autonomous_0():
myVariable = 0
drivetrain.set_drive_velocity(20, PERCENT)
drivetrain.set_turn_velocity(15, PERCENT)
donuteater.set_velocity(30, PERCENT)
drivetrain.drive_for(FORWARD, 16, INCHES)
drivetrain.turn_for(LEFT, 200, DEGREES)
drivetrain.drive_for(REVERSE, 16,INCHES)
solenoid.set(True)
# needed to get rid of the rubber band on the donuteater
donuteater_motor_a.spin_for(REVERSE, 180, DEGREES)
wait(0.5, SECONDS)
drivetrain.turn_for(RIGHT, 90, DEGREES)
drivetrain.drive_for(FORWARD, 16, INCHES)
wait(0.5, SECONDS)
donuteater.spin_for(FORWARD, 720, DEGREES)
wait(0.5, SECONDS)
drivetrain.turn_for(LEFT, 180, DEGREES)
drivetrain.drive_for(FORWARD, 31, INCHES)
After this line - drivetrain.turn_for(LEFT, 200, DEGREES) - my code stops running.
Basically, it would run the first code perfectly fine, but then it would just stop. I tried every thing that I had available and ask people if they could see the problem nobody I met could find anything wrong but there is something wrong as it does not run all the code.
edit: code tags added by mods, please remember to use them.