Compare commits

...

2 Commits

Author SHA1 Message Date
Siwat Sirichai 9608a0166b Update kuukar_motion.py 2022-12-12 17:25:02 +07:00
Siwat Sirichai 432c86114e Update kuukar_config.py 2022-12-12 17:24:43 +07:00
2 changed files with 3 additions and 4 deletions

View File

@ -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

View File

@ -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: