Compare commits
2 commits
2c84014bbf
...
9608a0166b
Author | SHA1 | Date | |
---|---|---|---|
9608a0166b | |||
432c86114e |
2 changed files with 3 additions and 4 deletions
|
@ -8,8 +8,8 @@ SONAR_ADC_PIN = 1
|
|||
# Motor Pins
|
||||
MOTOR_FL_F = 6
|
||||
MOTOR_FL_R = 7
|
||||
MOTOR_FR_F = 8
|
||||
MOTOR_FR_R = 9
|
||||
MOTOR_FR_F = 9
|
||||
MOTOR_FR_R = 8
|
||||
MOTOR_RL_F = 10
|
||||
MOTOR_RL_R = 11
|
||||
MOTOR_RR_F = 13
|
||||
|
|
|
@ -163,8 +163,7 @@ class motion:
|
|||
|
||||
def __roam_handle(self):
|
||||
if self.sensors.sonar_get_distance()<500:
|
||||
self.turn(50,1500)
|
||||
time.sleep(0.1)
|
||||
self.turn(50,2000)
|
||||
self.drive(25)
|
||||
time.sleep(0.5)
|
||||
if not self.roaming:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue