View: 50|Reply: 1

Adeept AWR speech.py backport

[Copy link]

2

Threads

3

Posts

47

Credits

Newbie

Rank: 1

Credits
47
Post time 2020-8-4 01:42:42 | Show all posts |Read mode
Hi.

Recently I`d try to backport Adeept picar-b speech functional to the Adeept AWR robot. After some try`n`fails it can turn left and right via voice commands. But I`m stuck with forward and backward modes. Can you please help?

Here is the code:
https://github.com/openbsod/Adee ... erver/speech.py#L50

Thank you in advance.


Reply

Use magic Report

0

Threads

23

Posts

73

Credits

Registered member

Rank: 2

Credits
73
Post time 2020-8-18 15:14:13 | Show all posts
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()
"""
Reply

Use magic Report

You have to log in before you can reply Login | Sign Up

Points Rules