Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using no sleep causes problems #1

Open
silbo opened this issue Jan 28, 2018 · 0 comments
Open

Using no sleep causes problems #1

silbo opened this issue Jan 28, 2018 · 0 comments
Assignees
Labels

Comments

@silbo
Copy link
Member

silbo commented Jan 28, 2018

The idea is to simulate the robot going "crazy" when using code like:
sumorobot.move(LEFT)
sumorobot.move(RIGHT)

The problem is that currently there is a 50 ms sleep in the code execution to leave time to process WebSocket commands. This sleep causes the robot go to the last direction mentioned in the code. The desired outcome is that the robot would go left and right changing direction really fast.

Currently this is made possible trough detecting if there is no sleep used in the code and then the direction of the robot is changed each time the user code is executed, to simulate this desired behaviour.

@silbo silbo added the bug label Jan 28, 2018
@silbo silbo self-assigned this Jan 28, 2018
@silbo silbo changed the title Bug: no sleep causes problems No sleep causes problems Jan 28, 2018
@silbo silbo changed the title No sleep causes problems Using no sleep causes problems Jan 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant