This commit is contained in:
David St-Onge 2017-02-22 17:02:40 -05:00
parent 2e2193fcf9
commit 9aee21a4ef
1 changed files with 3 additions and 3 deletions

View File

@ -106,9 +106,9 @@ neighbors.listen("cmd",
function takeoff() { function takeoff() {
log("TakeOff: ", flight.status) 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()
statef=hexagon #statef=hexagon
} }
else if( flight.status !=3){ else if( flight.status !=3){
log("Altitude: ", TARGET_ALTITUDE) log("Altitude: ", TARGET_ALTITUDE)