Slide 17
Slide 17 text
mymovehub = MoveHub(MY_MOVEHUB_ADD, 'BlueZ', MY_BTCTRLR_HCI)
:
if cx >= 120: # ӈટճ
(duty_a, duty_b) = (100, 10)
elif cx > 50: # ਐ
(duty_a, duty_b) = (100, 100)
elif cx > 0: # ࠨટճ
(duty_a, duty_b) = (10, 100)
else: # ఀࢭ
(duty_a, duty_b) = (0, 0)
mymovehub.run_motors_for_time(MOTOR_AB, 150, duty_a, duty_b)