From 503d5d296f3bbbac033ca4047275a90ebeaa1894 Mon Sep 17 00:00:00 2001 From: vivek-shankar Date: Thu, 26 Jan 2017 23:10:43 -0500 Subject: [PATCH] dummy message bug correction --- src/CommunicationManager.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/CommunicationManager.cpp b/src/CommunicationManager.cpp index 6e5fb35..fa245f4 100644 --- a/src/CommunicationManager.cpp +++ b/src/CommunicationManager.cpp @@ -355,8 +355,8 @@ inline void CommunicationManager::Check_In_Messages_and_Transfer_To_Topics() uint16_t* header; if (size_in_messages > 0) { - //steps++; - //if(steps==100) steps=0; + steps++; + if(steps==100) steps=0; uint64_t current_int64 = 0; for (std::size_t j = 0; j < size_in_messages; j++) { @@ -385,10 +385,10 @@ inline void CommunicationManager::Check_In_Messages_and_Transfer_To_Topics() mavlink_publisher_.publish(mavlink_msg); delete[] header; } - else{ + else if (header[3]>1){ std::cout << "Multi packet: check_cur:"<