test
This commit is contained in:
parent
3695ced541
commit
225143a6a1
|
@ -104,6 +104,7 @@ neighbors.listen("cmd",
|
||||||
}
|
}
|
||||||
|
|
||||||
function takeoff() {
|
function takeoff() {
|
||||||
|
log("TakeOff: ", flight.status)
|
||||||
if( flight.status == 2 and position.altitude >= TARGET_ALTITUDE-TARGET_ALTITUDE/20.0) {
|
if( flight.status == 2 and position.altitude >= TARGET_ALTITUDE-TARGET_ALTITUDE/20.0) {
|
||||||
barrier_set(ROBOTS,hexagon)
|
barrier_set(ROBOTS,hexagon)
|
||||||
barrier_ready()
|
barrier_ready()
|
||||||
|
@ -115,7 +116,7 @@ function takeoff() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
function land() {
|
function land() {
|
||||||
#log("Land: ", flight.status)
|
log("Land: ", flight.status)
|
||||||
if(flight.status == 2 or flight.status == 3){
|
if(flight.status == 2 or flight.status == 3){
|
||||||
neighbors.broadcast("cmd", 21)
|
neighbors.broadcast("cmd", 21)
|
||||||
uav_land()
|
uav_land()
|
||||||
|
|
Loading…
Reference in New Issue