Professional Documents
Culture Documents
Untitled
Untitled
Untitled
def when_started1():
global myVariable
drivetrain.set_drive_velocity(50, PERCENT)
while True:
while (not location.position(X, MM) > 1000 and not location.position(X, MM) < -1000 and not
location.position(Y, MM) > 1000 and not location.position(Y, MM) < -1000):
drivetrain.turn_for(RIGHT, 5, DEGREES)
drivetrain.drive(FORWARD)
wait(5, MSEC)
drivetrain.stop()
wait(5, MSEC)
vr_thread(when_started1)