From fc27a463424031253bc31aadb4df7f5f16a7cb05 Mon Sep 17 00:00:00 2001 From: vivek-shankar Date: Thu, 26 Jan 2017 19:49:09 -0500 Subject: [PATCH] debug --- src/CommunicationManager.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/CommunicationManager.cpp b/src/CommunicationManager.cpp index 761a865..80b0c84 100644 --- a/src/CommunicationManager.cpp +++ b/src/CommunicationManager.cpp @@ -313,7 +313,7 @@ unsigned short CommunicationManager::Caculate_Checksum(std::string* frame) unsigned short bytes_sum = 0; unsigned lowest_8_bits = 0; unsigned short checksum = 0; - unsigned char checksum_byte; + //unsigned char checksum_byte; for (unsigned short i = 0; i < frame->size(); i++) bytes_sum += static_cast(frame->at(i)); @@ -534,7 +534,7 @@ inline void CommunicationManager::Send_Mavlink_Message_Callback( uint16_t total =ceil((double)((double)mavlink_msg->payload64.size()/(double)10)); std::cout <<"Payload size" <payload64.size() << std::endl; uint64_t header = (uint64_t)0 | ((uint64_t)check_sum << 16) | ((uint64_t)number << 32) |((uint64_t) total << 48) ; - std::cout << "Total chunks:" <