diabled barrier for stop state

This commit is contained in:
Gwaihir 2018-08-08 01:54:48 +00:00
parent ddbc1339cd
commit f58373e2b5
1 changed files with 6 additions and 4 deletions

View File

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