diff --git a/src/CommunicationManager.cpp b/src/CommunicationManager.cpp index 368c729..3ce0abe 100644 --- a/src/CommunicationManager.cpp +++ b/src/CommunicationManager.cpp @@ -370,7 +370,7 @@ inline void CommunicationManager::Check_In_Messages_and_Transfer_To_Topics() ¤t_int64); header = u64_cvt_u16(current_int64); uint16_t checksum_cur=header[1]; - std::cout << "Received header" <size(); i++) { @@ -533,13 +533,16 @@ inline void CommunicationManager::Send_Mavlink_Message_Callback( uint16_t number=1; uint16_t total =ceil((double)((double)mavlink_msg->payload64.size()/(double)20)); std::cout <<"Payload size" <payload64.size() << std::endl; - uint64_t header = 0 | ((uint64_t)check_sum << 16) | ((uint64_t)number << 32) |((uint64_t) total << 48) ; + uint64_t header = (uint64_t)0 | ((uint64_t)check_sum << 16) | ((uint64_t)number << 32) |((uint64_t) total << 48) ; std::cout << "Total chunks:" <payload64.size(); i++) {