from Myro import * init() p = takePicture() p savePicture(p, "me.jpg") motors(1, 1) motors(0, 0) motors(.8, .8) motors(-1, -1) motors(1, -1) motors(-.75, .75) motors(-1, 0) def stopWheels(): motors (_____, _____) def goForward(): motors (_____, _____) def goBackward(): motors (_____, _____) def spinLeft(): motors (_____, _____) def spinRight(): motors (_____, _____) def test(): goForward() # start going forward wait(1) # wait for one second spinLeft() # spin left wait(.1) # wait for one tenth of a second stopWheels() # stop the robot def goBackward(p): ''' go backward with power p that ranges from 0-1''' motors (-p, -p) def goBackwardAndStop(p, secs): ''' complete this comment''' motors (-p, -p) wait(secs) stopWheels() def test2(): goBackwardAndStop(1, .5) goForwardAndStop(1, 1.5) spinLeftAndStop(.9, .5) goForward(.5) goBackward(1) spinRight(.9) spinLeft(.9) spinRightAndStop(.9, .5)