Autonomous Code help beginner over under

Just started working on an autonomous code can anyone voice their opinions on whether it would run or not? (Python)

Welcome to the forum.
You should read through some of these community guidelines.

and then reply on this topic with a more detailed question, perhaps post the code you are thinking of running for autonomous.

3 Likes

Just started working an autonomous code
def autonomous ():
if brain.timer.time(SECONDS) <15():
drivetrain.set_drive_velocity(80,PERCENT)
drivetrain.set_turn_velocity(80, PERCENT)
clawmotor_3.set_velocity(90, PERCENT)
armmotor_4.set_velocity(80, PERCENT)
wait(2,SECONDS)
drivetrain.drive_for(FORWARD, 1000, MM)
drivetrain.turn_for(RIGHT, 90, DEGREES)
drivetrain.drive_for(FORWARD, 500, MM)
drivetrain.drive_for(REVERSE, 500, MM)
else brain.timer.time(SECONDS) >15:
break