Tagging commands

The at commands you entered before are still active in the server. You need a way to stop them if you want to do something else. The tagging mechanism will enable you to do that.

A tag in a name associated to a command. To tag a command with the name mytag, create it and simply prefix the command. For example :

  Var mytag = Tag.new; mytag: at (decibel.val > 0.7) wheels.speed = 0;

will launch the event catching command using the decibel sensor with tag mytag.

Later you will be able to stop that command :

  mytag.stop;

will stop the previous command and the robot will not react to sound anymore.

It if also possible to freeze temporarily a command :

  mytag.freeze;

will stop the commands tagged with mytag, but it will not be deleted, and

  mytag.unfreeze;

will resume the command.