コード例 #1
0
 def __init__(self, addr=8, detect=True):
     PiggyParent.__init__(self)
     ''' 
     MAGIC NUMBERS <-- where we hard-code our settings  
     '''
     self.LEFT_DEFAULT = 80
     self.RIGHT_DEFAULT = 80
     """This is just the way your robot will look when activated. normally between 1000-2000"""
     self.MIDPOINT = 1500 
     self.load_defaults()
コード例 #2
0
ファイル: student.py プロジェクト: dadiletta/Piggy
 def __init__(self, addr=8, detect=True):
     PiggyParent.__init__(self)  # run the parent constructor
     ''' 
     MAGIC NUMBERS <-- where we hard-code our settings
     '''
     self.LEFT_DEFAULT = 80
     self.RIGHT_DEFAULT = 80
     self.MIDPOINT = 1500  # what servo command (1000-2000) is straight forward for your bot?
     self.set_motor_power(self.MOTOR_LEFT + self.MOTOR_RIGHT, 0)
     self.load_defaults()
コード例 #3
0
ファイル: student.py プロジェクト: pjstrauss12/Piggy
 def __init__(self, addr=8, detect=True):
     PiggyParent.__init__(self)  # run the parent constructor
     ''' 
     MAGIC NUMBERS <-- where we hard-code our settings
     '''
     self.LEFT_DEFAULT = 100  # motor speed
     self.RIGHT_DEFAULT = 95  # motor speed
     self.SAFE_DIST = 500  # how far I have to be from an object to drive
     self.corner_count = 0  # sets how many times the robot turns before get_me_out is activated
     self.MIDPOINT = 1600  # what servo command (1000-2000) is straight forward for your bot?
     self.load_defaults()
コード例 #4
0
 def __init__(self, addr=8, detect=True):
     PiggyParent.__init__(self)  # run the parent constructor
     ''' 
     MAGIC NUMBERS <-- where we hard-code our settings
     '''
     self.LEFT_DEFAULT = 77
     self.RIGHT_DEFAULT = 80
     self.exit_heading = 0
     self.SAFE_DISTANCE = 250
     self.MIDPOINT = 1225  # what servo command (1000-2000) is straight forward for your bot?
     self.load_defaults()
コード例 #5
0
ファイル: student.py プロジェクト: TobyHerlong/Piggy
 def __init__(self, addr=8, detect=True):
     PiggyParent.__init__(self)  # run the parent constructor
     ''' 
     MAGIC NUMBERS <-- where we hard-code our settings
     '''
     self.LEFT_DEFAULT = 90
     self.RIGHT_DEFAULT = 90
     self.EXIT_HEADING = 0
     self.start_time = 0
     self.SAFE_DIST = 300
     self.MIDPOINT = 1400  # what servo command (1000-2000) is straight forward for your bot?
     self.load_defaults()
コード例 #6
0
 def __init__(self, addr=8, detect=True):
     PiggyParent.__init__(self)  # run the parent constructor
     ''' 
     MAGIC NUMBERS <-- where we hard-code our settings
     '''
     self.LEFT_DEFAULT = 87
     self.RIGHT_DEFAULT = 84
     self.MIDPOINT = 1500
     self.SAFE_DISTANCE = 250
     self.CLOSE_DISTANCE = 40
     self.set_motor_power(self.MOTOR_LEFT + self.MOTOR_RIGHT, 0)
     self.load_defaults()
コード例 #7
0
ファイル: student.py プロジェクト: FabrizioParker/Piggy
 def __init__(self, addr=8, detect=True):
     PiggyParent.__init__(self)  # run the parent constructor
     ''' 
     MAGIC NUMBERS <-- where we hard-code our settings
     '''
     self.LEFT_DEFAULT = 90
     self.RIGHT_DEFAULT = 90
     self.MIDPOINT = 1500
     self.corner_count = 0
     self.SAFE_DIST = 250
     self.starting_postion = 0
     self.load_defaults(
     )  # what servo command (1000-2000) is straight forward for your bot?