It looks like you're using an Ad Blocker.
Please white-list or disable AboveTopSecret.com in your ad-blocking tool.
Thank you.
Some features of ATS will be disabled while you continue to use an ad-blocker.
#Robot does a YoYo routine of forward and Backward motions
def yoyo(speed, duration):
forward(speed, duration)
backward(speed, duration)
stop()
def beep(duration, frequency)
beep(duration, frequency)
beep(duration, frequency, frequency1)
stop()
#Robot does the wiggle routine from Left to Right
def wiggle(speed, duration):
turnLeft(speed, duration)
turnRight(speed, duration)
stop()
def ledLight():
ledLight('off')
ledLight(0)
ledLight('on')
ledLight(1)
#Robot incorporates the dance combination of YoYo and Wiggle followed by a beep and using the LedLight.
def dance(speed, duration):
for i in range(3)
yoyo(0,1)
beep(1,440,880)
wiggle(0,1)
ledLight(0)
stop()
#Main Program of Dance Routine that loops 3 times
def main():
from Myro import *
initalize()
speedValue = ask("please enter the Speed Value:")
dance()
main()
edit on 1-12-2012 by Manhater because: (no reason given)