Skip to content

Using no sleep causes problems #1

@silbo

Description

@silbo

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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions