Stable version of update but lots of stuff to fix
This commit is contained in:
parent
28a31e54eb
commit
70f2f98419
BIN
src/stand_by.bdb
BIN
src/stand_by.bdb
Binary file not shown.
BIN
src/stand_by.bo
BIN
src/stand_by.bo
Binary file not shown.
|
@ -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
|
||||
}
|
||||
)
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue