Difference between revisions of ".numties"
From WikiManual
(Added an example since an example was referred to in the article but there was no example code to go with it.) |
|||
| Line 1: | Line 1: | ||
| − | The condition *.numties tells the DNA how many ties are currently attached to the robot. In this instance no attempt is made to feed unless at least one tie is detected. | + | The condition *.numties tells the [[Robot_DNA|DNA]] how many ties are currently attached to the robot. In this instance no attempt is made to feed unless at least one tie is detected. |
| + | |||
| + | cond | ||
| + | *.numties 1 >= | ||
| + | start | ||
| + | -1 .tieloc store | ||
| + | -1000 .tieval store | ||
| + | 1 .tienum store | ||
| + | stop | ||
Revision as of 23:52, 7 June 2008
The condition *.numties tells the DNA how many ties are currently attached to the robot. In this instance no attempt is made to feed unless at least one tie is detected.
cond *.numties 1 >= start -1 .tieloc store -1000 .tieval store 1 .tienum store stop