From cd413833b83472e03f6fe5885be7633f48da9276 Mon Sep 17 00:00:00 2001 From: vivek-shankar Date: Sun, 29 Jan 2017 15:49:47 -0500 Subject: [PATCH] debug print removed --- src/CommunicationManager.cpp | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/src/CommunicationManager.cpp b/src/CommunicationManager.cpp index 100627f..997d987 100644 --- a/src/CommunicationManager.cpp +++ b/src/CommunicationManager.cpp @@ -400,7 +400,7 @@ inline void CommunicationManager::Check_In_Messages_and_Transfer_To_Topics() ¤t_int64);*/ std::cout<1 && header[2]==1){ @@ -408,13 +408,13 @@ inline void CommunicationManager::Check_In_Messages_and_Transfer_To_Topics() uint16_t tmp_size=0; memcpy(&tmp_size,in_message->c_str()+tot,sizeof(uint16_t)); tot+=sizeof(uint16_t); - std::cout<<"received size in bytes: "<c_str()+tot,tmp_size*sizeof(uint64_t)); tot+=tmp_size*sizeof(uint64_t); - std::cout<<"tot size : "< >::iterator it = multi_msgs_receive.find(header[2]); @@ -482,13 +482,13 @@ inline void CommunicationManager::Check_In_Messages_and_Transfer_To_Topics() uint16_t tmp_size=0; memcpy(&tmp_size,it->second->c_str()+tot,sizeof(uint16_t)); tot+=sizeof(uint16_t); - std::cout<<"multi publisher received size in bytes: "<second->c_str()+tot,tmp_size*sizeof(uint64_t)); tot+=tmp_size*sizeof(uint64_t); - std::cout<<"tot size : "<second->c_str()+tot, tmp_size*sizeof(uint64_t)); - std::cout << "received Frame:" << current_int64 << std::endl; + //std::cout << "received Frame:" << current_int64 << std::endl; //if(previous_int64 != current_int64){ //mavlink_msg.payload64.push_back(current_int64); //previous_int64=current_int64; @@ -533,8 +533,8 @@ inline void CommunicationManager::Check_In_Messages_and_Transfer_To_Topics() } } else if(header[0]==(uint16_t)ACK_MESSAGE_CONSTANT){ - std::cout << "ACK Received header " <::iterator it = ack_received_dict.find(header[3]); @@ -547,7 +547,7 @@ inline void CommunicationManager::Check_In_Messages_and_Transfer_To_Topics() } } - std::cout << "ACK added and size of ack map " << ack_received_dict.size()<< std::endl; + //std::cout << "ACK added and size of ack map " << ack_received_dict.size()<< std::endl; } delete[] header; @@ -672,7 +672,7 @@ inline void CommunicationManager::Send_Mavlink_Message_Callback( /*Copy the data to char buff*/ memcpy((void*)temporary_buffer,(void*)cpy_buff,tot); delete[] cpy_buff; - std::cout << "Single packet message sent size"<payload64.size()<<" Tot size: "<< tot<< std::endl; + //std::cout << "Single packet message sent size"<payload64.size()<<" Tot size: "<< tot<< std::endl; Generate_Transmit_Request_Frame(temporary_buffer, &frame,tot); serial_device_.Send_Frame(frame); @@ -765,9 +765,9 @@ inline void CommunicationManager::Send_Mavlink_Message_Callback( multi_msgs_send_dict.push_back(frame); } delete[] cpy_buff; - std::cout << " Received size: " <payload64.size() << std::endl; - std::cout << "total size of multi msg dict mavlink size:" <payload64.size() << std::endl; + //std::cout << "total size of multi msg dict mavlink size:" <