This commit is contained in:
David 2017-02-22 07:39:04 +00:00
parent 00242676c1
commit 80ccc87b63
1 changed files with 3 additions and 2 deletions

View File

@ -106,8 +106,9 @@ neighbors.listen("cmd",
function takeoff() {
log("TakeOff: ", flight.status)
if( flight.status == 2 and position.altitude >= TARGET_ALTITUDE-TARGET_ALTITUDE/20.0) {
barrier_set(ROBOTS,hexagon)
barrier_ready()
#barrier_set(ROBOTS,hexagon)
#barrier_ready()
statef=hexagon
}
else if( flight.status !=3){
log("Altitude: ", TARGET_ALTITUDE)