Skip to content

Commit

Permalink
note, sys.exit() ... no comment
Browse files Browse the repository at this point in the history
  • Loading branch information
martind committed Oct 10, 2014
1 parent 09be729 commit 5785044
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions sickday2014.py
Original file line number Diff line number Diff line change
Expand Up @@ -722,7 +722,7 @@ def followWall( self, atDistance, timeout=20 ):
angle = math.radians( (minIndex-270)/2.0 )
angle += math.radians(90)
if abs(angle) < math.radians(45):
speed = 0.1
speed = 0.2
if minDist < atDistance - 0.1:
angle += math.radians(10)
elif minDist > atDistance + 0.1:
Expand All @@ -732,12 +732,14 @@ def followWall( self, atDistance, timeout=20 ):
self.robot.setSpeedPxPa( speed, angle/2.0 )
self.robot.update()
self.driver.stop()
sys.exit()


def ver0( self, verbose=False ):
# follow each number separaterly
print "ver0", self.code, self.robot.battery
while True:
self.followWall( atDistance=1.5, timeout = 60.0 )

gameStartTime = self.robot.time
while True:
self.goToCenterArea()
Expand Down

0 comments on commit 5785044

Please sign in to comment.