Exemplo n.º 1
0
 def reset(self):
     ModeProgram.reset(self)
     self.x_pos = 0
     self.heading = 'up'
     self.around_mult_f = 1
     self.around_mult = 1
     self.first_obstacle_reading = 0
     self.side = 'front'
Exemplo n.º 2
0
 def reset(self):
     ModeProgram.reset(self)
     self.x_pos = 0
     self.heading = 'up'
     self.around_mult_f = 1
     self.around_mult = 1
     self.first_obstacle_reading = 0
     self.side = 'front'
Exemplo n.º 3
0
 def reset(self):
     ModeProgram.reset(self)
     self.points = None # path the the robot draws
     self.index = 0 # index of point robot is going towards
     self.heading = math.pi / 2 # the current heading, in standard position
     self.rot_dir = 1 # 1 for counterclockwise, -1 for clockwise
     self.go_for = 0 # the time duration of the robot's current action
     # These two are only needed because the status method needs to access
     # them after they have been set by the time setting methods.
     self.delta_angle = 0
     self.delta_pos = 0
Exemplo n.º 4
0
 def reset(self):
     ModeProgram.reset(self)
     self.points = None  # path the the robot draws
     self.index = 0  # index of point robot is going towards
     self.heading = math.pi / 2  # the current heading, in standard position
     self.rot_dir = 1  # 1 for counterclockwise, -1 for clockwise
     self.go_for = 0  # the time duration of the robot's current action
     # These two are only needed because the status method needs to access
     # them after they have been set by the time setting methods.
     self.delta_angle = 0
     self.delta_pos = 0