have the pointing_task method be a loop that constantly is checking for joystick position. waits a few ms, then checks again.
something like
while( joystick position is not facing the right way)
yield viz.waittime(.01) #i forget the method
This way the loop will keep going and only exit until and continue with the rest of the program when the joystick is in position. the yield statement in the method makes other yield statement calling it actually wait and pause the program. (dont know why vizard does it this way but thats just how it is)
|