diff --git a/src/stand_by.bdb b/src/stand_by.bdb index cda97bc..72f975b 100644 Binary files a/src/stand_by.bdb and b/src/stand_by.bdb differ diff --git a/src/stand_by.bo b/src/stand_by.bo index 24d695f..62e6638 100644 Binary files a/src/stand_by.bo and b/src/stand_by.bo differ diff --git a/src/stand_by.bzz b/src/stand_by.bzz index cdf841c..41d4ff3 100644 --- a/src/stand_by.bzz +++ b/src/stand_by.bzz @@ -1,5 +1,5 @@ updated="update_ack" - +update_no=0 function init(){ barrier = stigmergy.create(101) barrier.put(id,1) @@ -18,6 +18,7 @@ barrier_val = barrier.size() neighbors.listen(updated, function(vid, value, rid) { + print(" got from",vid," " ) if(value==update_no) barrier_val=ROBOTS } ) diff --git a/src/test1.bzz b/src/test1.bzz index 26f2b56..6172eb4 100644 --- a/src/test1.bzz +++ b/src/test1.bzz @@ -7,7 +7,7 @@ include "/home/ubuntu/buzz/src/include/vec2.bzz" # This should be here for the updater to work, changing position of code will crash the updater #################################################################################################### updated="update_ack" - +update_no=0 function updated_neigh(){ neighbors.broadcast(updated, update_no) }