From 2fcf3996e8d5b16a85646c25037a0e4a36de0212 Mon Sep 17 00:00:00 2001 From: Anish Date: Wed, 27 Nov 2024 16:41:27 -0500 Subject: [PATCH] update filter --- .../traffic_incident/src/traffic_incident_node.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/carma-messenger-core/traffic_incident/src/traffic_incident_node.cpp b/carma-messenger-core/traffic_incident/src/traffic_incident_node.cpp index aecc4eb9..7432aa4e 100644 --- a/carma-messenger-core/traffic_incident/src/traffic_incident_node.cpp +++ b/carma-messenger-core/traffic_incident/src/traffic_incident_node.cpp @@ -150,8 +150,7 @@ bool TrafficIncidentNode::stopTrafficBroadcastCallback( void TrafficIncidentNode::spin_callback(void) { if ( - traffic_worker_.getDownTrack() > 0 && traffic_worker_.getUpTrack() > 0 && - traffic_worker_.getMinGap() > 0 && traffic_worker_.getAdvisorySpeed() > 0) { + traffic_worker_.getDownTrack() > 0 || traffic_worker_.getUpTrack() > 0 || traffic_worker_.getAdvisorySpeed() > 0) { // construct local mobilityOperation msg carma_v2x_msgs::msg::MobilityOperation traffic_mobility_msg = traffic_worker_.mobilityMessageGenerator(traffic_worker_.getPinPoint());