adapted barrier rebroadcast time on robots

This commit is contained in:
vivek-shankar 2018-07-12 01:01:34 -04:00
parent d0fa6d647f
commit 81b263fa0a
2 changed files with 2 additions and 2 deletions

View File

@ -67,7 +67,7 @@ function barrier_wait(threshold, transf, resumef, bc) {
barrier = nil
timeW = 0
BVMSTATE = resumef
} else if(timeW % 50 == 0 and bc > 0)
} else if(timeW % 100 == 0 and bc > 0)
neighbors.broadcast("cmd", bc)
timeW = timeW+1

View File

@ -269,7 +269,7 @@ function nei_cmd_listen() {
if(logical_time != nil) reinit_time_sync()
barrier_set(ROBOTS, "TURNEDOFF", BVMSTATE, 777)
barrier_ready(777)
neighbors.broadcast("cmd", 777)
#neighbors.broadcast("cmd", 777)
}else if(value==900){ # Shapes
barrier_set(ROBOTS, "TASK_ALLOCATE", BVMSTATE, 900)
#barrier_ready(900)