take off and land works

This commit is contained in:
isvogor 2017-02-17 17:29:42 -05:00
parent 9088a5d1f5
commit a6de3cecd1
2 changed files with 3 additions and 3 deletions

View File

@ -144,7 +144,7 @@ function step() {
flight.rc_cmd=0
statef = land
neighbors.broadcast("cmd", 21)
} else if(flight.rc_cmd==16 and flight.status==2) {
} else if(flight.rc_cmd==16) {
flight.rc_cmd=0
uav_goto()
}