• Hello there.
    I'm developing a site which can control an educational robot(by MDBT42Q).

    Here's my block code that I want to save and load.
    image
    (If you can't see photo, I attached at below.)
    It looks simple. First dropdown has two options(LEFT, RIGHT) and LEFT is 0, RIGHT is 1.
    Second dropdown has two also, CW is 0 , CCW is 1.

    It's a converted javascript code.

    /* motor_move function code */
    motor_move(1, 0, 0, 0, false);
    //motor_move's parameters : motor_move(motor, direction, velocity, angle, wait);
    

    If I set 'RIGHT' motor at block code and save my code, and then I load it and convert, the code shows

    motor_move(0,0,0,0,false);
    

    So the loaded block code shows 'RIGHT' motor set, but actually robot moves 'LEFT' motor.

    How can I save block code with right parameters that I set before?

    Help me please!


    1 Attachment

    • 캡처.PNG
About

Avatar for user110706 @user110706 started