From 4b71014572e4d0a2159bb20be513b04e4f24c2f4 Mon Sep 17 00:00:00 2001 From: David St-Onge Date: Sun, 2 Apr 2017 22:49:04 -0400 Subject: [PATCH] test lj --- src/testflockfev.bzz | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/testflockfev.bzz b/src/testflockfev.bzz index d0054ba..60c5086 100644 --- a/src/testflockfev.bzz +++ b/src/testflockfev.bzz @@ -168,13 +168,13 @@ function step() { neighbors.listen("cmd", function(vid, value, rid) { print("Got (", vid, ",", value, ") from robot #", rid) - if(value==22 and statef==idle) { + if(value==22 and CURSTATE=="IDLE") { statef=takeoff } else if(value==21) { statef=land - } else if(value==400 and statef==idle) { + } else if(value==400 and CURSTATE=="IDLE") { uav_arm() - } else if(value==401 and statef==idle){ + } else if(value==401 and CURSTATE=="IDLE"){ uav_disarm() } }