adapted barrier rebroadcast time on robots
This commit is contained in:
parent
d0fa6d647f
commit
81b263fa0a
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue