From 8a0f93dce20b917eb38b902c5d20fb959e8d7ded Mon Sep 17 00:00:00 2001 From: vivek-shankar Date: Fri, 27 Jan 2017 01:46:37 -0500 Subject: [PATCH] printing in and out chunks --- src/CommunicationManager.cpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/CommunicationManager.cpp b/src/CommunicationManager.cpp index b1ace6e..269d8b7 100644 --- a/src/CommunicationManager.cpp +++ b/src/CommunicationManager.cpp @@ -415,6 +415,7 @@ inline void CommunicationManager::Check_In_Messages_and_Transfer_To_Topics() for(uint16_t i =1; i<=header[3];i++){ it = multi_msgs.find(i); std::cout<<"Transfering to topic chunk no. :"<first << "Size of current map" <second->size()<< std::endl; + std::cout << "received Frame:"<second << std::endl; std::cout<<"Size of map : "<< multi_msgs.size()<< std::endl; for (std::size_t j = 1; j < it->second->size(); j++) { @@ -541,30 +542,33 @@ inline void CommunicationManager::Send_Mavlink_Message_Callback( { if(cnt<10){ + cnt++; converted_bytes += sprintf( temporary_buffer+converted_bytes, "%" PRIu64 " ", (uint64_t)mavlink_msg->payload64.at(i)); - cnt++; + } + if(cnt==10) { std::cout << "Multi frame sent no:"<