VisualExplorer.py

From IPRE Wiki
Jump to: navigation, search
'''
  This program brings up the joystick to allow the user to control the scribbler.  It also displays the
  camera image once a second.  The program stop when a key is pressed on the keyboard.
  
  @author Douglas Harms 
'''

from myro import *

init()

# display the joystick
joyStick()

# execute for 60 seconds
while timeRemaining(60):
    # display the camera image
    image = takePicture()
    show(image)
    wait( 1.0 )

stop()