diabled barrier for stop state

This commit is contained in:
Gwaihir 2018-08-08 01:54:48 +00:00
parent ddbc1339cd
commit f58373e2b5

View File

@ -67,12 +67,14 @@ function stop() {
neighbors.broadcast("cmd", 21) neighbors.broadcast("cmd", 21)
uav_land() uav_land()
if(flight.status != 2 and flight.status != 3) { if(flight.status != 2 and flight.status != 3) {
barrier_set(ROBOTS,"TURNEDOFF","STOP", 21) BVMSTATE = "TURNEDOFF"
barrier_ready(21) #barrier_set(ROBOTS,"TURNEDOFF","STOP", 21)
#barrier_ready(21)
} }
} else { } else {
barrier_set(ROBOTS,"TURNEDOFF","STOP", 21) BVMSTATE = "TURNEDOFF"
barrier_ready(21) #barrier_set(ROBOTS,"TURNEDOFF","STOP", 21)
#barrier_ready(21)
} }
} }