Skip to content

Instantly share code, notes, and snippets.

@kudkudak
Created January 30, 2014 09:20
Show Gist options
  • Save kudkudak/8705163 to your computer and use it in GitHub Desktop.
Save kudkudak/8705163 to your computer and use it in GitHub Desktop.
def act(self):
if len(self.command_queue) == 0:
if self.state == Rotator.STATE_ROTATE:
self.command_queue.append([TURN, \
self.state_helper * int((0.5*pi)/ TICK_ROTATE )]) # Rotate by 90 deegres
self.state_helper *= -1
return self.command_queue.pop(0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment