From 8ce8d1c62a4ce3cc978c8c679895b162b91dd5ca Mon Sep 17 00:00:00 2001 From: Ban Siesta Date: Fri, 19 Dec 2014 21:59:13 +0000 Subject: [PATCH] UASWaypointManager: don't clear systemid and compid of last partner so that we can still get DO_JUMP updates --- src/uas/UASWaypointManager.cc | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/uas/UASWaypointManager.cc b/src/uas/UASWaypointManager.cc index 08567b29d..dffa8b084 100644 --- a/src/uas/UASWaypointManager.cc +++ b/src/uas/UASWaypointManager.cc @@ -104,8 +104,6 @@ void UASWaypointManager::timeout() current_state = WP_IDLE; current_count = 0; current_wp_id = 0; - current_partner_systemid = 0; - current_partner_compid = 0; } } @@ -167,8 +165,6 @@ void UASWaypointManager::handleWaypointCount(quint8 systemId, quint8 compId, qui current_state = WP_IDLE; current_count = 0; current_wp_id = 0; - current_partner_systemid = 0; - current_partner_compid = 0; } @@ -208,8 +204,6 @@ void UASWaypointManager::handleWaypoint(quint8 systemId, quint8 compId, mavlink_ current_state = WP_IDLE; current_count = 0; current_wp_id = 0; - current_partner_systemid = 0; - current_partner_compid = 0; emit _stopProtocolTimer(); // Stop timer on our thread emit readGlobalWPFromUAS(false); -- 2.22.0