From f2c4977fe43f5b07ba4605c58f1a8471bb0fe027 Mon Sep 17 00:00:00 2001 From: vivek-shankar Date: Sat, 18 Feb 2017 20:03:09 -0500 Subject: [PATCH] Barrier change in bzz --- src/roscontroller.cpp | 6 +++--- src/test1.bzz | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/roscontroller.cpp b/src/roscontroller.cpp index aaab1c6..f4b7365 100644 --- a/src/roscontroller.cpp +++ b/src/roscontroller.cpp @@ -514,11 +514,11 @@ namespace rosbzz_node{ void roscontroller::payload_obt(const mavros_msgs::Mavlink::ConstPtr& msg){ /*Ack from xbee about its transfer complete of multi packet*/ - if((uint64_t)msg->payload64[0]==(uint64_t)XBEE_MESSAGE_CONSTANT && msg->payload64.size() == 1){ + /*if((uint64_t)msg->payload64[0]==(uint64_t)XBEE_MESSAGE_CONSTANT && msg->payload64.size() == 1){ multi_msg=true; std::cout << "ACK From xbee after transimssion of code " << std::endl; - } - else if((uint64_t)msg->payload64[0]==(uint64_t)UPDATER_MESSAGE_CONSTANT && msg->payload64.size() > 10){ + }*/ + if((uint64_t)msg->payload64[0]==(uint64_t)UPDATER_MESSAGE_CONSTANT && msg->payload64.size() > 10){ uint16_t obt_msg_size=sizeof(uint64_t)*(msg->payload64.size()); uint64_t message_obt[obt_msg_size]; /* Go throught the obtained payload*/ diff --git a/src/test1.bzz b/src/test1.bzz index caa76ba..8800438 100644 --- a/src/test1.bzz +++ b/src/test1.bzz @@ -55,7 +55,7 @@ function hexagon() { # Constants # BARRIER_VSTIG = 1 -ROBOTS = 1 # number of robots in the swarm +ROBOTS = 2 # number of robots in the swarm # # Sets a barrier