Skip to content

WaitForMotor is not synchronous  #10

Description

@battlesquid

Name: Oluwamayowa Esan
Platform: Windows 10

WaitForMotor doesn't seem to wait for the motor to complete it's action before moving to the next line. Instead it seems to skip to the last line of movement code and run that instead. For example:

% Move to 0 position

brick.MoveMotorAngleAbs('A', 20, 0, 'Brake'); 

brick.WaitForMotor('A'); % Wait for motor to complete motion

% Move to 90 Position

brick.MoveMotorAngleAbs('A', 20, 90, 'Brake'); 

brick.WaitForMotor('A'); % Wait for motor to complete motion

% Move to -90 Position

brick.MoveMotorAngleAbs('A', 20, -90, 'Brake'); 

brick.WaitForMotor('A'); % Wait for motor to 

This runs brick.MoveMotorAngleAbs('A', 20, -90, 'Brake');, but not any of the other commands.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions