|
Edited by 1597721285 at 2020-8-18 03:15 PM
Please try to modify the code on line 50:
"""
if 'forward' in v_command: # DOES NOT WORK YET
move.move(speed_set, 'forward', 'no', rad)
time.sleep(1)
move.motorStop()
elif 'backward' in v_command:
move.move(speed_set, 'backward', 'no', rad)
time.sleep(1)
move.motorStop()
''""
intoļ¼
"""
if 'forward' in v_command: # DOES NOT WORK YET
move.motor_left(1, 0, speed_set)
move.motor_right(1, 1, speed_set)
time.sleep(1)
move.motorStop()
elif 'backward' in v_command:
move.motor_left(1, 1, speed_set)
move.motor_right(1, 0, speed_set)
time.sleep(1)
move.motorStop()
"""
|
|