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.
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:
This runs
brick.MoveMotorAngleAbs('A', 20, -90, 'Brake');, but not any of the other commands.